Skip to content

Commit 1b2f83c

Browse files
committed
bug fixes
1 parent ef28f35 commit 1b2f83c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

budget_graph/db_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def wrapper(*args, **kwargs):
5959
# all the necessary event handlers are already contained inside the called functions
6060
logger_database.debug(f'[DB_CONNECT][defer] FAILED: connecting to database: {str(err)}')
6161
finally:
62+
# logging is inside the function
6263
close_db(connection) # the 'if' condition is not required since it is inside the called function
6364
return wrapper
6465

@@ -398,7 +399,7 @@ def check_user_is_group_owner_by_telegram_id(self, telegram_id: int, group_id: i
398399
with conn.cursor() as cur:
399400
cur.execute(
400401
read_sql_file('check_user_is_group_owner_by_telegram_id'),
401-
{'telegram_id': telegram_id, 'group_id': group_id}
402+
{'owner': telegram_id, 'group_id': group_id}
402403
)
403404
return bool(cur.fetchone()[0])
404405

0 commit comments

Comments
 (0)