Removed Bug with false 25+ Rec Support

This commit is contained in:
jmueller
2023-12-14 22:31:51 +01:00
parent b3db08c03c
commit bc24db57dd

View File

@@ -803,7 +803,7 @@ class report_buttons(discord.ui.View):
@discord.ui.button(label="Rekrutenbesichtigung generieren", style=discord.ButtonStyle.primary, row=1, custom_id="report_buttons_checkout")
async def checkout_recruits(self, button, interaction):
if get_count_recruits(1) > 25:
if get_count_recruits(1) <= 25:
generate_report25_inst = generate_report25()
generate_report25_inst.children[0].options = build_option_list()[0]
generate_report25_inst.children[0].max_values = get_count_recruits()