diff --git a/compendium_v2/publishers/survey_publisher_2022.py b/compendium_v2/publishers/survey_publisher_2022.py index 03bdbfa2a628970d6ff408af53a7402bd38e9b58..cb5f9ee8e8561fdd34b63e0a1a49349b8ed6073e 100644 --- a/compendium_v2/publishers/survey_publisher_2022.py +++ b/compendium_v2/publishers/survey_publisher_2022.py @@ -63,8 +63,8 @@ def transfer_budget(): with db.session_scope() as session, survey_db.session_scope() as survey: rows = survey.execute(text(BUDGET_QUERY)) for row in rows: - nren = row['nren'] - _budget = row['budget'] + nren = row[0] + _budget = row[1] try: budget = float(_budget.replace('"', '').replace(',', '')) except ValueError: @@ -94,9 +94,9 @@ def transfer_funding_sources(): data = survey.execute( text(FUNDING_SOURCES_TEMPLATE_QUERY.format(source.value))) for row in data: - nren = row['nren'] + nren = row[0] nrens.add(nren) - _value = row['value'] + _value = row[1] try: value = float(_value.replace('"', '').replace(',', '')) except ValueError: