Don't use defunct id
This commit is contained in:
parent
7964be7adb
commit
c782ad8727
|
@ -38,11 +38,9 @@ class Raffle:
|
||||||
for r in raffle['raffles']:
|
for r in raffle['raffles']:
|
||||||
title = r['title']
|
title = r['title']
|
||||||
entrants = r['entrants']
|
entrants = r['entrants']
|
||||||
raffle_id = r['id']
|
|
||||||
|
|
||||||
# Check to see if this cog can find the server in question
|
# Check to see if this cog can find the server in question
|
||||||
if server is None:
|
if server is None:
|
||||||
await self.bot.db.query(r.table('raffles').get(raffle_id).delete())
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
now = pendulum.utcnow()
|
now = pendulum.utcnow()
|
||||||
|
|
Loading…
Reference in a new issue