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 c70d04d commit 100400b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions server_extra.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ def fetch_survey_airtable():
load_from_airtable(
TENDERS_BASE, 'מכרז דגל', 'SYNC'
),
DF.select_fields(['מזהה המכרז'])
DF.select_fields(['מזהה המכרז', AIRTABLE_ID_FIELD]),
DF.filter_rows(lambda row: row['מזהה המכרז'] is not None)
).results()[0][0]
existing_flag_ids = list(filter(None, (r['מזהה המכרז'] for r in existing_flag_ids)))
return list(), existing_flag_ids
existing_flag_ids = dict((r['מזהה המכרז'], r[AIRTABLE_ID_FIELD]) for r in existing_flag_ids)
return dict(), existing_flag_ids
# return existing_base_ids, existing_flag_ids


Expand Down

0 comments on commit 100400b

Please sign in to comment.