Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
Signed-off-by: anasty17 <[email protected]>
  • Loading branch information
anasty17 committed Oct 24, 2022
1 parent dde1e7b commit 809aa8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
for key, value in config_dict.items():
environ[key] = str(value)
if pf_dict := db.settings.PFile.find_one({'_id': bot_id}):
del config_dict['_id']
del pf_dict['_id']
for key, value in pf_dict.items():
if value:
with open(key, 'wb+') as f:
Expand Down
4 changes: 2 additions & 2 deletions bot/modules/bot_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ def edit_bot_settings(update, context):
dispatcher.remove_handler(value_handler)
elif data[1] == 'edtvar' and STATE == 'view':
value = config_dict[data[2]]
if not value:
value = 'Empty'
if value == '':
value = 'None'
query.answer(text=f'{value}', show_alert=True)
elif data[1] == 'edit':
query.answer()
Expand Down

0 comments on commit 809aa8c

Please sign in to comment.