mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Update compbio leaderboard to assignment 4
This commit is contained in:
parent
0151913e61
commit
8e050f9ab3
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue