diff --git a/endpoints/karma.py b/endpoints/karma.py index ad09e10..a94feca 100644 --- a/endpoints/karma.py +++ b/endpoints/karma.py @@ -39,7 +39,7 @@ class KarmaDB: def __init__(self): self.db_path = os.path.join("/", "var", "lib", "singerdbs", "karma.db") - async def get_karma(self, keyword: str) -> str | int: + async def get_karma(self, keyword: str) -> int | dict: async with sqlite3.connect(self.db_path, timeout=2) as db_conn: async with db_conn.execute("SELECT score FROM karma WHERE keyword = ? LIMIT 1", (keyword,)) as db_cursor: try: