Skip to content

Commit

Permalink
removing two-sided printing
Browse files Browse the repository at this point in the history
  • Loading branch information
BatuevIO authored Oct 17, 2024
1 parent 02ee2d7 commit ad0c29f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,14 +243,16 @@ 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

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)

Expand Down

0 comments on commit ad0c29f

Please sign in to comment.