From 904963e3fcb0bd9a34577e80a6b3e821d1bfb5c7 Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 1 Jul 2020 00:10:14 +0100 Subject: [PATCH] Fix where clause in igloo like increment Allowed players to obtain infinite likes per day --- houdini/handlers/play/igloo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/houdini/handlers/play/igloo.py b/houdini/handlers/play/igloo.py index 0770e31..89f3493 100644 --- a/houdini/handlers/play/igloo.py +++ b/houdini/handlers/play/igloo.py @@ -542,7 +542,7 @@ async def handle_like_igloo(p): like_insert = like_insert.on_conflict_do_update( constraint='igloo_like_pkey', set_=dict(count=IglooLike.count + 1, date=datetime.now()), - where=(IglooLike.date < datetime.today()) + where=IglooLike.date < datetime.combine(datetime.today(), datetime.min.time()) ) like_count = await like_insert.gino.scalar()