1
0
Fork 0
mirror of synced 2024-06-16 17:44:33 +12:00

Don't use defunct id

This commit is contained in:
Phxntxm 2017-07-23 14:59:23 -05:00
parent 7964be7adb
commit c782ad8727

View file

@ -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()