- accounting.py: 删除重复datetime导入, 清理未使用env变量 - failed_accounting.ui: Button text→label(规范), DatePicker→TextInput(不确定的widget) - index.ui: backgroundColor→bgcolor(规范), 3处修复 - llmusage_accounting_failed_update.dspy: 删除ServerEnv()违规(.dspy禁用), 用datetime替代 - 新增llmusage_history只读DSPY(create/update/delete返回只读提示)
5 lines
173 B
Python
5 lines
173 B
Python
#!/usr/bin/env python3
|
|
import json
|
|
result = {'success': False, 'message': '历史数据为只读,不可删除'}
|
|
return json.dumps(result, ensure_ascii=False, default=str)
|