From 8e050f9ab3a7d620e9e7b03fce1a7195c6936ac8 Mon Sep 17 00:00:00 2001 From: stijndcl Date: Thu, 31 Mar 2022 20:12:44 +0200 Subject: [PATCH] Update compbio leaderboard to assignment 4 --- cogs/slash/school_slash.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/slash/school_slash.py b/cogs/slash/school_slash.py index c26f61b..60a8657 100644 --- a/cogs/slash/school_slash.py +++ b/cogs/slash/school_slash.py @@ -102,7 +102,7 @@ class SchoolSlash(commands.Cog): submission: Option(int, description="Id van je Dodona indiening.", required=True)): await ctx.response.defer(ephemeral=True) - with open("files/compbio_benchmarks_2.json", "r") as fp: + with open("files/compbio_benchmarks_4.json", "r") as fp: file = json.load(fp) submission = str(submission) @@ -110,7 +110,7 @@ class SchoolSlash(commands.Cog): if submission in file: return await ctx.send_followup("❌ Deze submission is al aan iemand gelinkt.") - with open("files/compbio_benchmarks_2.json", "w") as fp: + with open("files/compbio_benchmarks_4.json", "w") as fp: file[submission] = ctx.user.id json.dump(file, fp)