Subscriptions belong to a company; BroV owns its Keychain token
- ops: subscriptions get a client (company) column (migrated in place); the brain fills it from «компания сага / для планеты»; /subs and «Весь план» group by company with per-company monthly totals; the company shows in agenda rows and the calendar. - BroV: the API token handed over in ops-token.import is saved by BroV itself, so the Keychain item belongs to BroV and macOS stops asking for the password. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -108,7 +108,7 @@ async def cmd_tasks(update: Update, ctx):
|
||||
@owner_only
|
||||
async def cmd_subs(update: Update, ctx):
|
||||
with lock:
|
||||
text = fmt.subs(ops.subs(), ops.monthly_cost(), ops.today())
|
||||
text = fmt.subs(ops.subs(), ops.monthly_by_client(), ops.today())
|
||||
await send_long(update, text)
|
||||
|
||||
|
||||
@@ -254,7 +254,7 @@ async def api_tasks(request):
|
||||
async def api_subs(request):
|
||||
check_auth(request)
|
||||
with lock:
|
||||
return ok({"subs": ops.subs(), "monthly_cost": ops.monthly_cost()})
|
||||
return ok({"subs": ops.subs(), "monthly_cost": ops.monthly_cost(), "by_client": ops.monthly_by_client()})
|
||||
|
||||
|
||||
async def api_routines(request):
|
||||
|
||||
Reference in New Issue
Block a user