Fixed missed column name change.
build_develop / build (push) Successful in 1m24s

This commit is contained in:
2024-09-03 11:52:40 -04:00
parent 7e0ff1da18
commit a55a90b922
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -62,11 +62,11 @@ class ViewCog(commands.Cog, name="View Commands"):
await interaction.followup.send(f'Quarter "{quarter_name}" is invalid.', ephemeral=True) await interaction.followup.send(f'Quarter "{quarter_name}" is invalid.', ephemeral=True)
return return
cycles = ppdf.groupby("Cycle") quarters = ppdf.groupby("QuarterName")
content = "" content = ""
for cycle in cycles.groups: for quarter in quarters.groups:
content += f"**{cycle}**\n" content += f"**{quarter}**\n"
unsorted_all = cycles.get_group(cycle).groupby("DiscordMember") unsorted_all = quarters.get_group(quarter).groupby("DiscordMember")
members = unsorted_all.get_group(name=True) members = unsorted_all.get_group(name=True)
# there can be no non-discord members sometimes. # there can be no non-discord members sometimes.
+1 -1
View File
@@ -46,7 +46,7 @@ CREATE TABLE EventPoints (
UserId varchar(32) not null, UserId varchar(32) not null,
DiscordMember boolean not null, DiscordMember boolean not null,
Points int unsigned DEFAULT 0, Points int unsigned DEFAULT 0,
PRIMARY KEY (Cycle, UserId) PRIMARY KEY (QuarterName, UserId)
); );
CREATE TABLE Messages ( CREATE TABLE Messages (