Skip to content

Commit 3cddee5

Browse files
fix: Re-query data after updating sample data to refresh rows (#739)
* DataRefreshLogic * pylint * pylintfix * fix
1 parent 5a71a5f commit 3cddee5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/App/backend/services/sqldb_service.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ def get_client_data():
157157

158158
if len(rows) <= 6:
159159
update_sample_data(conn)
160+
cursor = conn.cursor()
161+
cursor.execute(sql_stmt)
162+
rows = dict_cursor(cursor)
160163

161164
formatted_users = []
162165
for row in rows:

0 commit comments

Comments
 (0)