Fix bug. Saved flags from apps were not associated with right parent variable.

This commit is contained in:
2025-02-15 18:10:29 +01:00
parent 46767996b8
commit 25f3ee12a4
2 changed files with 1122 additions and 1122 deletions

View File

@ -588,7 +588,7 @@ def clear_flag_mode_title(relayoutData, fig, data):
return dash.no_update, dash.no_update, dash.no_update
def extract_number(s):
return int(s[1:])-1 if s[1:].isdigit() else 0
return int(s[1:]) if s[1:].isdigit() else 0
@callback(Output('tbl', 'data'),
Input('commit-flag-button','n_clicks'),

View File

@ -9,7 +9,7 @@ import numpy as np
import pandas as pd
import dima.utils.g5505_utils as utils
UPLOAD_DIRECTORY = 'data_products/'
UPLOAD_DIRECTORY = 'data/'
flags_dict = {
"000" : {"flag_label": 'V', "flag_description": "Valid measurement"},