From 9487af45bf70781eb1553ea315abb8f2596b0842 Mon Sep 17 00:00:00 2001 From: Nickelza Date: Thu, 2 Nov 2023 01:45:30 +0100 Subject: [PATCH] fix(bounty): Resetting total gained bounty on bounty reset --- src/service/bounty_service.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/service/bounty_service.py b/src/service/bounty_service.py index 9ac3e0d7..8e516792 100644 --- a/src/service/bounty_service.py +++ b/src/service/bounty_service.py @@ -202,6 +202,9 @@ async def reset_bounty(context: ContextTypes.DEFAULT_TYPE) -> None: # Reset bounty gift tax User.update(bounty_gift_tax=0).execute() + # Reset total gained bounty + User.update(total_gained_bounty=0).execute() + # Delete tax events IncomeTaxEvent.delete().execute()