From 8f65c70c762b627a3490435583f835b7fef51c53 Mon Sep 17 00:00:00 2001 From: "houhan@gmail.com" Date: Thu, 22 Aug 2024 00:10:55 +0000 Subject: [PATCH] hotfix: dict | dict in lower python version --- code/Home.py | 2 +- code/util/fetch_data_docDB.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/Home.py b/code/Home.py index a7fcca4..0ab0b2a 100644 --- a/code/Home.py +++ b/code/Home.py @@ -12,7 +12,7 @@ """ -__ver__ = 'v2.5.1' +__ver__ = 'v2.5.2' import pandas as pd import streamlit as st diff --git a/code/util/fetch_data_docDB.py b/code/util/fetch_data_docDB.py index 0136684..a3ed351 100644 --- a/code/util/fetch_data_docDB.py +++ b/code/util/fetch_data_docDB.py @@ -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")