1
0
Fork 0
mirror of synced 2024-05-29 16:59:42 +12:00

Corrected where to update content

This commit is contained in:
phxntxm 2016-10-12 21:32:59 -05:00
parent 34f9cbba38
commit c4ff668c2d

View file

@ -114,7 +114,7 @@ class Raffle:
# Since we have no good thing to filter things off of, lets use the internal rethinkdb id
r_filter = {'id': raffles[0]['id']}
update = {'entrants': entrants}
await self.bot.update_content('raffles', update, r_filter)
await config.update_content('raffles', update, r_filter)
await self.bot.say("{} you have just entered the raffle!".format(author.mention))
# Otherwise, make sure the author gave a valid raffle_id
elif raffle_id in range(raffle_count):
@ -129,7 +129,7 @@ class Raffle:
# Since we have no good thing to filter things off of, lets use the internal rethinkdb id
r_filter = {'id': raffles[1]['id']}
update = {'entrants': entrants}
await self.bot.update_content('raffles', update, r_filter)
await self.config('raffles', update, r_filter)
await self.bot.say("{} you have just entered the raffle!".format(author.mention))
else:
fmt = "Please provide a valid raffle ID, as there are more than one setup on the server! " \