summary refs log tree commit diff stats
path: root/cogs
diff options
context:
space:
mode:
authorsuhas <hi@suhas.one>2023-11-16 23:28:30 -0600
committersuhas <hi@suhas.one>2023-11-16 23:28:30 -0600
commita3e3ecebe52a85b2f667b1d05de9b4d5ce23439e (patch)
tree7001fa61c1e53066057b3a7f172958e7bde51934 /cogs
parent92069ffda5f1866f597d678593f377754d0e14e4 (diff)
downloadqbb-a3e3ecebe52a85b2f667b1d05de9b4d5ce23439e.tar.gz
actual final db issues fix hopefully
Diffstat (limited to 'cogs')
-rw-r--r--cogs/stats.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/cogs/stats.py b/cogs/stats.py
index 071d8d5..575dab5 100644
--- a/cogs/stats.py
+++ b/cogs/stats.py
@@ -2,8 +2,6 @@ from discord.ext.commands import Cog, Bot
 from discord.app_commands import command
 from discord import Interaction, Embed, Color
 from prisma import Prisma
-# from prisma.models import User, CategoryBreakdown
-# from prisma import get_client
 from common.types import category_field_translations
 
 reverse_categories = {v: k for k, v in category_field_translations.items()}
@@ -16,7 +14,6 @@ class Stats(Cog):
     @command(description="Get your statistics for qbb")
     async def stats(self, ctx: Interaction):
         db = Prisma()
-        # db = get_client()
         await db.connect()
         stats = await db.user.find_first(where={'id': ctx.user.id})
         cb = await db.categorybreakdown.find_first(where={'userId': ctx.user.id})
@@ -26,7 +23,6 @@ class Stats(Cog):
         embed = Embed(title="Your Stats!", description=f"""**Number of correct tossups:** {stats.questions_correct}
         **Number of incorrect tossups:** {stats.questions_incorrect}
         """)
-        print(stats.category_breakdown.__str__())
         for cat in category_field_translations.values():
             corr = getattr(cb, f'{cat}_correct')
             incorr = getattr(cb, f'{cat}_incorrect')