Explorar o código

Change if to elif

JoostSijm %!s(int64=4) %!d(string=hai) anos
pai
achega
4d5ba3ef13
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/vboo_info_bot/telegram_bot.py

+ 1 - 1
src/vboo_info_bot/telegram_bot.py

@@ -34,7 +34,7 @@ def text_handler(update, context):
             article = api.get_article(article_id)
             formatted_article = functions.telegram_format_article(article)
             update.message.reply_text(formatted_article, parse_mode=ParseMode.MARKDOWN_V2)
-        if re.match(r'war\/details\/\d+', fragment):
+        elif re.match(r'war\/details\/\d+', fragment):
             war_id = fragment.replace('war/details', '')
             war = api.get_war(war_id)
             formatted_war = functions.telegram_format_war(war)