undo expired vote streak optimizations
from discord.ext import commands, tasks
import discord
-import arrow
class Database(commands.Cog):
@@ -162,10 +161,7 @@ class Database(commands.Cog):
async def mass_fetch_votestreaks(self):
async with self.db.acquire() as con:
- return await con.fetch(
- 'SELECT uid, vote_streak FROM users WHERE vote_streak > 0 AND streak_time < $1',
- arrow.utcnow().shift(days=-1, minutes=-10).timestamp
- )
+ return await con.fetch('SELECT uid, vote_streak FROM users WHERE vote_streak > 0')
async def set_balance(self, uid, emeralds):
await self.fetch_user(uid)
