Skip to content

Commit f11c886

Browse files
author
botON
committed
fix(wizard): correct parameter in show_wizards_schedule
- Revert aux_resolve_show_all parameter to use context instead of update.message. - The Message object does not have the args attribute that the function needs to resolve the schedule parameter (complete/futures). - This resolves the AttributeError that occurred when running /ver_agenda_magx.
1 parent ec8d90e commit f11c886

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pycamp_bot/commands/wizard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def aux_resolve_show_all(context):
287287
@active_pycamp_needed
288288
async def show_wizards_schedule(update, context, pycamp=None):
289289
try:
290-
show_all = aux_resolve_show_all(update.message)
290+
show_all = aux_resolve_show_all(context)
291291
except ValueError:
292292
await context.bot.send_message(
293293
chat_id=update.message.chat_id,

0 commit comments

Comments
 (0)