Skip to content

Commit

Permalink
fix sync tenders endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Nov 24, 2024
1 parent 100400b commit 58a70e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server_extra.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def fetch_survey_airtable():
TENDERS_BASE, 'מכרז דגל', 'SYNC'
),
DF.select_fields(['מזהה המכרז', AIRTABLE_ID_FIELD]),
DF.filter_rows(lambda row: row['מזהה המכרז'] is not None)
DF.filter_rows(lambda row: row.get('מזהה המכרז') is not None)
).results()[0][0]
existing_flag_ids = dict((r['מזהה המכרז'], r[AIRTABLE_ID_FIELD]) for r in existing_flag_ids)
return dict(), existing_flag_ids
Expand Down

0 comments on commit 58a70e0

Please sign in to comment.