Spaces:
Running
Running
bug fix for empty `my submission`
Browse files
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()
|
| 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"])
|