Skip to content

Commit

Permalink
hotfix: dict | dict in lower python version
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhou committed Aug 22, 2024
1 parent 67e86ac commit 8f65c70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/Home.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"""

__ver__ = 'v2.5.1'
__ver__ = 'v2.5.2'

import pandas as pd
import streamlit as st
Expand Down
2 changes: 1 addition & 1 deletion code/util/fetch_data_docDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def fetch_fip_data(client):
logger.warning(f"found {len(name_results)} results")

# in case there is overlap between these two queries, filter down to a single list with unique IDs
unique_results_by_id = { r['_id']: r for r in modality_results } | { r['_id']: r for r in name_results }
unique_results_by_id = {**{ r['_id']: r for r in modality_results }, **{ r['_id']: r for r in name_results }}
results = list(unique_results_by_id.values())
logger.warning(f"found {len(results)} unique results")

Expand Down

0 comments on commit 8f65c70

Please sign in to comment.