We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 56a087d + 789ac17 commit ba3e9f4Copy full SHA for ba3e9f4
src/server/api/admin_api.py
@@ -239,15 +239,15 @@ def get_run_logs():
239
with engine.connect() as connection:
240
q = text("""select keycol,valcol from kv_unique where keycol like '%_update'; """)
241
result = connection.execute(q)
242
+ row_list = []
243
- if result.rowcount > 0:
244
- rows = result.fetchall()
245
246
- row_list = []
+ if result.rowcount > 0:
+ rows = result.fetchall()
247
248
- for row in rows:
249
- row_dict = row._mapping
250
- row_list.append({row_dict['keycol'] : row_dict['valcol']})
+ for row in rows:
+ row_dict = row._mapping
+ row_list.append({row_dict['keycol'] : row_dict['valcol']})
251
252
return jsonify(row_list)
253
0 commit comments