GihhArwtw commited on
Commit
59a8346
·
1 Parent(s): 812b9b2

bug fix for empty `my submission`

Browse files
Files changed (1) hide show
  1. competitions/submissions.py +1 -1
competitions/submissions.py CHANGED
@@ -138,7 +138,7 @@ class Submissions:
138
  submissions_df = pd.DataFrame(team_submissions_info["submissions"])
139
 
140
  if len(submissions_df) == 0:
141
- return pd.DataFrame(), pd.DataFrame()
142
 
143
  if not private:
144
  submissions_df = submissions_df.drop(columns=["private_score"])
 
138
  submissions_df = pd.DataFrame(team_submissions_info["submissions"])
139
 
140
  if len(submissions_df) == 0:
141
+ return pd.DataFrame()
142
 
143
  if not private:
144
  submissions_df = submissions_df.drop(columns=["private_score"])