Browse Source

added mensa closed handling

quotes
angerstoner 7 years ago
parent
commit
1a03ac6f4f
  1. 2
      schneiderbot.py

2
schneiderbot.py

@ -159,7 +159,7 @@ def mensa(bot, update, args):
message = "Das Essen für %s in der %s \n" % (data["date"], MENSA_NAME[which]) message = "Das Essen für %s in der %s \n" % (data["date"], MENSA_NAME[which])
if len(data["meals"]) > 0:
if len(data["meals"]) > 1:
for meal in data["meals"]: for meal in data["meals"]:
if meal["category"] in categories: if meal["category"] in categories:
meal_line = "*%s*\n" % meal["category"] meal_line = "*%s*\n" % meal["category"]

Loading…
Cancel
Save