From 7b2e52776dd51fa564af3a94b1fea61b3d9faae2 Mon Sep 17 00:00:00 2001 From: Adriel <NuquiA@cardiff.ac.uk> Date: Wed, 26 Oct 2022 12:25:33 +0100 Subject: [PATCH] small bug fix --- Group_game/leaderboard.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Group_game/leaderboard.py b/Group_game/leaderboard.py index bc0a7c5..8169c0e 100644 --- a/Group_game/leaderboard.py +++ b/Group_game/leaderboard.py @@ -34,7 +34,7 @@ def append_leaderboard(seconds_used,filename): #time_used = 20 minutes - time r minutes = seconds_used // 60 seconds = seconds_used % 60 - time = [round(minutes), round(seconds)] + time = [round(minutes), round(seconds)] print("Congrats, enter your name on the leaderboard!") name = input("What's your name? :") @@ -73,4 +73,6 @@ def append_leaderboard(seconds_used,filename): #time_used = 20 minutes - time r print("Continuing back into the game...") print('Returning back to the game...') + #Returns back to game.py +append_leaderboard(932, 'Times.csv') -- GitLab