Skip to content

Commit

Permalink
Fix for metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
dividor committed May 31, 2024
1 parent 911c396 commit 4978e57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ingestion/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,9 @@ def save_openapi_data(files_dir, conn, api_name):
r["api_description"] += f' : {meta["get"]["description"]}'
r["api_definition"] = str(meta)
r["file_name"] = f
if 'location_name' in df.columns:
r['countries'] = sorted(df['location_name'].unique())
for field in ['location_name', 'origin_location_name']:
if field in df.columns:
r['countries'] = sorted(df[field].unique())

table_metadata.append(r)

Expand Down

0 comments on commit 4978e57

Please sign in to comment.