Add optional benchmark to compbio lb

This commit is contained in:
stijndcl 2022-03-12 21:03:01 +01:00
parent 3f2f9cd8f3
commit 0f973efe29
2 changed files with 18 additions and 3 deletions

View file

@ -90,9 +90,10 @@ class SchoolSlash(commands.Cog):
_compbio_group = SlashCommandGroup("compbio", "Commands voor compbio opdrachten")
@_compbio_group.command(name="leaderboard", description="Gesorteerd en ingevuld leaderboard")
async def _compbio_lb_slash(self, ctx: ApplicationContext):
async def _compbio_lb_slash(self, ctx: ApplicationContext,
benchmark: Option(int, "De specifieke benchmark om op te halen (default k=600)", choices=[6, 10, 50, 600], default=600)):
await ctx.response.defer()
lb = leaderboards.CompbioLeaderboard(ctx)
lb = leaderboards.CompbioLeaderboard(ctx, kmer=benchmark)
await lb.respond()
@_compbio_group.command(name="submit", description="Link een Dodona-submission aan jouw username")