From d1ad992cdb927d10102ad85677ffe2427cac6956 Mon Sep 17 00:00:00 2001 From: Markus Haller Date: Wed, 8 Nov 2023 14:30:59 +0100 Subject: [PATCH] fix #74 --- app/ptxboa_functions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/ptxboa_functions.py b/app/ptxboa_functions.py index a4b7c33d..6e5eea8b 100644 --- a/app/ptxboa_functions.py +++ b/app/ptxboa_functions.py @@ -640,6 +640,7 @@ def content_deep_dive_countries( source_region_code=region_list, parameter_code=parameter_code, process_code=process_code, + key_suffix="_ddc", ) with c1: # create plot: @@ -757,6 +758,7 @@ def display_and_edit_data_table( index: str = "source_region_code", columns: str = "process_code", values: str = "value", + key_suffix: str = "", ) -> pd.DataFrame: """Display selected input data as 2D table, which can also be edited.""" ind1 = input_data["source_region_code"].isin(source_region_code) @@ -767,7 +769,7 @@ def display_and_edit_data_table( if st.session_state["edit_input_data"]: disabled = [index] - key = f"edit_input_data_{parameter_code}" + key = f"edit_input_data_{parameter_code}{key_suffix}" else: disabled = True key = None