ops: dates shown as DD.MM.YYYY (bot, digest, reminders, BroV)
Storage and the API stay ISO; ru_day() formats every user-facing date, Claude is asked to write dates in its replies the same way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+3
-3
@@ -17,7 +17,7 @@ from telegram.ext import (Application, CallbackQueryHandler, CommandHandler, Con
|
||||
filters)
|
||||
|
||||
from . import brain, fmt, voice
|
||||
from .core import Ops, OpsError
|
||||
from .core import Ops, OpsError, ru_day
|
||||
from .db import connect
|
||||
|
||||
log = logging.getLogger("brovops")
|
||||
@@ -186,10 +186,10 @@ async def on_button(update: Update, ctx):
|
||||
note = f"✓ Сделано: {ops.complete_task(ref)['title']}"
|
||||
elif kind == "sub":
|
||||
s = ops.pay_sub(ref)
|
||||
note = f"₽ Оплачено: {s['name']}, следующее списание {s['next_date']}"
|
||||
note = f"₽ Оплачено: {s['name']}, следующее списание {ru_day(s['next_date'])}"
|
||||
else:
|
||||
r = ops.done_routine(ref)
|
||||
note = f"✓ {r['title']}: следующий раз {r['next_date']}"
|
||||
note = f"✓ {r['title']}: следующий раз {ru_day(r['next_date'])}"
|
||||
else:
|
||||
ops.snooze(kind, ref, 1)
|
||||
note = "⏰ Напомню завтра"
|
||||
|
||||
Reference in New Issue
Block a user