From ad0c29f1bc2512aa4bd9c72a480b572f95e26df8 Mon Sep 17 00:00:00 2001 From: Ilya Date: Fri, 18 Oct 2024 00:39:37 +0300 Subject: [PATCH] removing two-sided printing --- src/handlers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/handlers.py b/src/handlers.py index b44c7a5..1a9e2eb 100644 --- a/src/handlers.py +++ b/src/handlers.py @@ -243,6 +243,7 @@ async def __print_settings_solver(update: Update, context: CallbackContext): r = requests.get(settings.PRINT_URL + f'''/file/{pin}''') if r.status_code == 200: options = r.json()['options'] + options['two_sided'] = False # remove when fixed else: await update.callback_query.message.reply_text(ans.settings_change_fail) return @@ -250,7 +251,8 @@ async def __print_settings_solver(update: Update, context: CallbackContext): if button == 'copies': options['copies'] = options['copies'] % 5 + 1 elif button == 'twosided': - options['two_sided'] = not options['two_sided'] + pass + # options['two_sided'] = not options['two_sided'] else: await context.bot.answer_callback_query(update.callback_query.id, ans.settings_warning)