Bandaid fix so HC votes can be viewed.
build_latest / build (push) Successful in 1m39s
build_release / build (push) Successful in 48s
build_develop / build (push) Successful in 52s

This commit is contained in:
2024-01-09 20:04:49 -05:00
parent 8c8dc2c638
commit a8697b0187
+2 -7
View File
@@ -7,12 +7,7 @@ from nextcord.ext import commands
from sqlalchemy import select
from sqlalchemy.orm import Session
from database_setup.sql_data_classes import (
ElectionInformation,
Presences,
Votes,
engine,
)
from database_setup.sql_data_classes import Presences, Votes, engine
class ViewCog(commands.Cog, name="View Commands"):
@@ -121,7 +116,7 @@ class ViewCog(commands.Cog, name="View Commands"):
"""
with Session(engine) as session:
stmt = select(ElectionInformation.ElectionCycle)
stmt = select(Votes.ElectionCycle).distinct()
elections = session.scalars(stmt)
# if empty compare string