Skip to content

Commit e8b1822

Browse files
authored
Merge pull request #4 from aws-deepracer-community/fix/upcoming
Don't save FINAL for unknown states
2 parents 019e027 + 8ee97e8 commit e8b1822

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/deepracer_race_stats/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,11 @@ def update(leaderboard_arn, status):
8585
# Output filename of the nearest hour (2021-01-01 01:00:00.csv)
8686
output_file = os.path.join(leaderboard_output_folder, "{}.csv".format(now.isoformat()))
8787
response = list_leaderboard(leaderboard_arn)
88-
else:
88+
elif status == "CLOSED":
8989
output_file = os.path.join(leaderboard_output_folder, "FINAL.csv")
9090
response = list_leaderboard(leaderboard_arn)
91+
else:
92+
return
9193

9294
# Video S3 column is too large and will not work anyways so we drop it.
9395
boto_response_to_csv(response, output_file, drop_columns=["SubmissionVideoS3path"])

0 commit comments

Comments
 (0)