aboutsummaryrefslogtreecommitdiffstats
path: root/api/database.py
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-09-08 17:13:52 -0700
committerPinapelz <yukais@pinapelz.com>2025-09-09 12:06:42 -0700
commit07b245e3ff157b6543358cfb4fcb7c337510608e (patch)
tree1f4d1552fb1295417c28d960ef3f26a0ac52a4f0 /api/database.py
parent62ba7cb1a7023e97cef418eeec6e5c610e244b91 (diff)
dynamic number of correct and wrong answers
Diffstat (limited to 'api/database.py')
-rw-r--r--api/database.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/database.py b/api/database.py
index 0f31a7d..a5d70e6 100644
--- a/api/database.py
+++ b/api/database.py
@@ -84,7 +84,7 @@ class PostgresHandler:
print(e)
return False
- def get_random_row(self, table_name: str, count: int, condition: str = None):
+ def get_random_rows(self, table_name: str, count: int, condition: str = None):
if condition is None:
condition = "1 = 1"
try:
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage