removing unused if-statements
This commit is contained in:
parent
08ab984096
commit
ad7637368b
@ -261,9 +261,6 @@ class SQLHandler():
|
|||||||
filtered_series = self.filter_df_by_participant_type(df_times, participant_type)
|
filtered_series = self.filter_df_by_participant_type(df_times, participant_type)
|
||||||
#filtered_series = df_times.loc[df_times["participant_type"]==participant_type]
|
#filtered_series = df_times.loc[df_times["participant_type"]==participant_type]
|
||||||
|
|
||||||
if len(filtered_series)==0:
|
|
||||||
return None
|
|
||||||
|
|
||||||
if len(filtered_series)==0:
|
if len(filtered_series)==0:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
@ -39,9 +39,6 @@ class ValidationRules(ValidationRuleFunctions):
|
|||||||
if len(spm.loc[spm["shipcall_id"]==shipcall.id])==0:
|
if len(spm.loc[spm["shipcall_id"]==shipcall.id])==0:
|
||||||
return (StatusFlags.GREEN.value, [])
|
return (StatusFlags.GREEN.value, [])
|
||||||
|
|
||||||
if len(df_times)==0:
|
|
||||||
return (StatusFlags.GREEN.value, [])
|
|
||||||
|
|
||||||
# filter by shipcall id
|
# filter by shipcall id
|
||||||
df_times = self.sql_handler.get_times_of_shipcall(shipcall)
|
df_times = self.sql_handler.get_times_of_shipcall(shipcall)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user