Skip to content

Commit

Permalink
Remove bug left from the old JSON query structure
Browse files Browse the repository at this point in the history
  • Loading branch information
JetamZ committed Nov 5, 2024
1 parent 32068e4 commit b19efc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/Server2_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def query():
connection.close()
final_step_name = json_query['steps'][-1]['goal']
results = step_results[final_step_name]
columns = [col.split(' AS ')[-1] for col in json_query['steps'][-1]['filtering']['columns']]
columns = [col.split(' AS ')[-1] for col in json_query['steps'][-1]['columns']]
response = [dict(zip(columns, row)) for row in results]

res.append(format_output(response))
Expand Down

0 comments on commit b19efc1

Please sign in to comment.