diff --git a/utils/statistics_server_v3.py b/utils/statistics_server_v3.py index d6fbd36..3aa2ee2 100644 --- a/utils/statistics_server_v3.py +++ b/utils/statistics_server_v3.py @@ -181,7 +181,7 @@ def last_n_deals(n): ''' connection = sqlite3.connect(profits_database) cursor = connection.cursor() - cursor.execute(f"SELECT * FROM profits_table ORDER BY timestamp DESC LIMIT {n}") + cursor.execute(f"SELECT * FROM profits_table ORDER BY timestamp DESC LIMIT ?",(n,)) result = cursor.fetchall() connection.close()