Skip to content

Commit

Permalink
unmatched brace fix fml
Browse files Browse the repository at this point in the history
  • Loading branch information
melange396 committed Jul 25, 2024
1 parent aa88e12 commit 8970919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/endpoints/covidcast_utils/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def _load_data_sources():
data_sources_df: pd.DataFrame = pd.read_csv(_base_dir / "db_sources.csv")
data_sources_df = data_sources_df.replace({np.nan: None})
data_sources_df.columns = map(_clean_column, data_sources_df.columns)
datasource_fields = {f.name for f in fields(DataSource)}}
datasource_fields = {f.name for f in fields(DataSource)}
data_sources: List[DataSource] = [DataSource(**{k: v for k, v in d.items() if k in datasource_fields}) for d in data_sources_df.to_dict(orient="records")]
data_sources_df.set_index("source")
return data_sources, data_sources_df
Expand Down

0 comments on commit 8970919

Please sign in to comment.