Skip to content

Commit

Permalink
Fix stick command not working because it is trying to get stickers fr…
Browse files Browse the repository at this point in the history
…om past events
  • Loading branch information
MrPowerGamerBR committed Jun 2, 2024
1 parent 9eb8fe5 commit 6639332
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class LoriCoolCardsStickStickersExecutor(val loritta: LorittaBot, private val lo
// Now we get the cards that aren't already sticked but can be sticked
// We will also inner join because we need that info when generating the album
val cardsThatCanBeSticked = LoriCoolCardsUserOwnedCards.innerJoin(LoriCoolCardsEventCards).select {
LoriCoolCardsUserOwnedCards.sticked eq false and (LoriCoolCardsUserOwnedCards.card notInList alreadyStickedCardIds) and (LoriCoolCardsUserOwnedCards.user eq context.user.idLong)
LoriCoolCardsUserOwnedCards.sticked eq false and (LoriCoolCardsUserOwnedCards.card notInList alreadyStickedCardIds) and (LoriCoolCardsUserOwnedCards.user eq context.user.idLong) and (LoriCoolCardsUserOwnedCards.event eq event[LoriCoolCardsEvents.id])
}.orderBy(LoriCoolCardsEventCards.fancyCardId, SortOrder.ASC) // Not really needed but this keeps a consistent order
.toList()

Expand Down

0 comments on commit 6639332

Please sign in to comment.