forked from retoor/devplacepy
docs: add CLAUDE.md with project guidelines and conventions, document new devii admin quota reset endpoints and CLI commands, update README with coverage CI and devii_admin_daily_usd config, add European date normalization to ProjectForm model
This commit is contained in:
@@ -173,9 +173,9 @@ async def devii_ws(websocket: WebSocket):
|
||||
text = str(data.get("text", "")).strip()
|
||||
if not text:
|
||||
continue
|
||||
limit = svc.daily_limit_for(owner_kind)
|
||||
limit = svc.daily_limit_for(owner_kind, owner_is_admin)
|
||||
spent = svc.spent_24h(owner_kind, owner_id)
|
||||
if spent >= limit:
|
||||
if limit > 0 and spent >= limit:
|
||||
await websocket.send_json({
|
||||
"type": "error",
|
||||
"text": "Daily AI quota reached (100%). Try again later.",
|
||||
|
||||
Reference in New Issue
Block a user