Skip to content

Commit

Permalink
remove deprecation message because the Freitagsrunde might take over
Browse files Browse the repository at this point in the history
  • Loading branch information
ekeih committed Nov 18, 2024
1 parent c88f3f2 commit 32a98e3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
MessageHandler, filters)

from frontend.schedule import schedule
from frontend.strings import about_text, goodbye, help_text
from frontend.strings import about_text, help_text

logging.getLogger('JobQueue').setLevel(logging.INFO)
logging.getLogger('telegram').setLevel(logging.INFO)
Expand Down Expand Up @@ -166,7 +166,6 @@ async def menu(update: Update, context: CallbackContext) -> None:
reply = possible_canteens.pop()[1]
await update.message.reply_text(text=reply, parse_mode=ParseMode.MARKDOWN, disable_web_page_preview=True)
message_logger.debug('Out: %s' % reply)
await update.message.reply_text(text=goodbye, parse_mode=ParseMode.MARKDOWN, disable_web_page_preview=True)
elif len(possible_canteens) > 1:
reply = 'Meintest du vielleicht:\n'
for canteen in possible_canteens:
Expand All @@ -183,7 +182,6 @@ async def menu(update: Update, context: CallbackContext) -> None:
else:
await update.message.reply_text(text=reply, parse_mode=ParseMode.MARKDOWN, disable_web_page_preview=True)
message_logger.debug('Out: %s' % reply)
await update.message.reply_text(text=goodbye, parse_mode=ParseMode.MARKDOWN, disable_web_page_preview=True)
else:
reply = 'Sorry, leider habe ich das Datum nicht verstanden. Probier es doch einmal mit `/%s morgen`, ' \
'`/%s dienstag`, `/%s yesterday` oder `/%s next friday`.' % (requested_canteen, requested_canteen,
Expand Down

0 comments on commit 32a98e3

Please sign in to comment.