small privacy improvements
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-08-14 11:36:39 +02:00
parent 2afde219a9
commit 3975ca5997
2 changed files with 10 additions and 3 deletions

View File

@@ -67,8 +67,9 @@ class JournalHandler(BaseHandler):
date = date
)
if new:
count = self.models.JournalEntry.select().count()
await query.edit_message_text(
text=f"What is your entry for {self.current_model.date_pretty}?"
text=f"Journal entry no. {count}. What happened on {self.current_model.date_pretty}?"
)
else:
await query.edit_message_text(text="An entry already exists for this date")
@@ -113,7 +114,10 @@ class JournalHandler(BaseHandler):
await update.message.reply_text("An entry already exists for this date")
return ConversationHandler.END
else:
await update.message.reply_text(f"What is your entry for {self.current_model.date_pretty}?")
count = self.models.JournalEntry.select().count()
await update.message.reply_text(
text=f"Journal entry no. {count}. What happened on {self.current_model.date_pretty}?"
)
return ADD_CONTENT