potentially solving the 'shipcall_id' error log

This commit is contained in:
scopesorting 2023-11-21 11:51:49 +01:00
parent 3cc1591aba
commit 9346920a97

View File

@ -207,6 +207,7 @@ class SQLHandler():
returns: participant_id_list, where every element is an int
"""
df = self.df_dict.get("shipcall_participant_map")
if 'shipcall_id' in list(df.columns):
df = df.set_index('shipcall_id', inplace=False)
# the 'if' call is needed to ensure, that no Exception is raised, when the shipcall_id is not present in the df