Skip to content

Commit

Permalink
Dinner fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Qwor01 committed Sep 6, 2024
1 parent 178995f commit 3d154f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions telegram_bot/dinner.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

logger = structlog.get_logger()

FOOD_THREAD_ID = 4226
#FOOD_THREAD_ID = 4226


def default_factory():
Expand All @@ -26,7 +26,7 @@ def async_only_dinner_chat(func):
async def wrapper(update: Update, context: ContextTypes.DEFAULT_TYPE):
if (
update.effective_message
and update.effective_message.message_thread_id == FOOD_THREAD_ID
#and update.effective_message.message_thread_id == FOOD_THREAD_ID
):
logger.info(
"Handling request in Food Topic thread",
Expand Down Expand Up @@ -424,6 +424,7 @@ async def end_dinner(update: Update, context: ContextTypes.DEFAULT_TYPE):
message_thread_id=await get_thread_id(update),
)
orderRound = defaultdict(int)
beerOrder = defaultdict(int)
fullOrder = defaultdict(default_factory)
if context.chat_data and "order_msg" in context.chat_data:
del context.chat_data["order_msg"]
Expand Down

0 comments on commit 3d154f4

Please sign in to comment.