Skip to content

Commit

Permalink
var renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
burnout87 committed Aug 12, 2024
1 parent 40dc17e commit 60c9bff
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cdci_data_analysis/analysis/ivoa_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ def run_ivoa_query_from_product_gallery(parsed_query_obj,
password=vo_mysql_pg_password,
database=vo_mysql_pg_db
) as connection:
create_db_query = parsed_query_obj.get('mysql_query')
db_query = parsed_query_obj.get('mysql_query')
with connection.cursor(dictionary=True) as cursor:
cursor.execute(create_db_query)
cursor.execute(db_query)
for row in cursor:
if product_gallery_url is not None:
path = row.get('path', None)
Expand All @@ -93,7 +93,6 @@ def run_ivoa_query_from_product_gallery(parsed_query_obj,
path_alias = path_alias[1:]
row['path_alias'] = os.path.join(product_gallery_url, path_alias)
result_list.append(row)
# result_obj = cursor.fetchall()


except Error as e:
Expand Down

0 comments on commit 60c9bff

Please sign in to comment.