rewrite error message

make it clear that read_all_users_with_username reads multiple values
This commit is contained in:
Lili (Tlapka) 2023-01-03 13:34:06 +01:00
parent 8e461c5076
commit b34524334c
1 changed files with 2 additions and 2 deletions

View File

@ -51,8 +51,8 @@ def read_all_users_with_username(db, username):
users = cursor.fetchall() users = cursor.fetchall()
return users return users
except Error as e: except Error as e:
current_app.logger.error("Error occured reading points from username:", e.args[0]) current_app.logger.error("Error occured reading points by username:", e.args[0])
current_app.logger.error("To user:", username) current_app.logger.error("To everyone with username:", username)
def give_points_to_user(db, user_id, points): def give_points_to_user(db, user_id, points):