From f9ff27c0550f0e1f7fcc5d0d260312cd91f79cc7 Mon Sep 17 00:00:00 2001 From: Lili Date: Tue, 18 Oct 2022 14:10:52 +0200 Subject: [PATCH] bugfix --- tlapbot/owncast_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tlapbot/owncast_helpers.py b/tlapbot/owncast_helpers.py index 1bb4108..dc2ee1f 100644 --- a/tlapbot/owncast_helpers.py +++ b/tlapbot/owncast_helpers.py @@ -57,7 +57,7 @@ def read_users_points_from_username(db, username): if points is None: return None else: - return cursor.fetchone()[0] + return points[0] except Error as e: print("Error occured reading points from username:", e.args[0]) print("To user:", username)