Fix none query issue.
This commit is contained in:
@@ -149,7 +149,7 @@ class VoteHighcouncilView(nextcord.ui.View):
|
|||||||
stmt = (
|
stmt = (
|
||||||
select(CouncilMembers.MemberId)
|
select(CouncilMembers.MemberId)
|
||||||
.where(CouncilMembers.ElectionCycle == cycle)
|
.where(CouncilMembers.ElectionCycle == cycle)
|
||||||
.where(CouncilMembers.ClanLeaderSpeechId is not None)
|
.filter(CouncilMembers.ClanLeaderSpeechId.is_not(None))
|
||||||
)
|
)
|
||||||
|
|
||||||
options = [
|
options = [
|
||||||
@@ -222,7 +222,7 @@ class VoteHighcouncilView(nextcord.ui.View):
|
|||||||
stmt = (
|
stmt = (
|
||||||
select(CouncilMembers.MemberId)
|
select(CouncilMembers.MemberId)
|
||||||
.where(CouncilMembers.ElectionCycle == cycle)
|
.where(CouncilMembers.ElectionCycle == cycle)
|
||||||
.where(CouncilMembers.DiscordManagerSpeechId is not None)
|
.filter(CouncilMembers.DiscordManagerSpeechId.is_not(None))
|
||||||
)
|
)
|
||||||
|
|
||||||
options = [
|
options = [
|
||||||
|
|||||||
Reference in New Issue
Block a user