aboutsummaryrefslogtreecommitdiffhomepage
path: root/apioforum/orm.py
diff options
context:
space:
mode:
Diffstat (limited to 'apioforum/orm.py')
-rw-r--r--apioforum/orm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/apioforum/orm.py b/apioforum/orm.py
index b364be1..14747c6 100644
--- a/apioforum/orm.py
+++ b/apioforum/orm.py
@@ -4,7 +4,7 @@
from .db import get_db
class DBObj:
- def __init_subclass__(cls, /, table, **kwargs):
+ def __init_subclass__(cls, *, table, **kwargs):
# DO NOT pass anything with sql special characters in as the table name
super().__init_subclass__(**kwargs)
cls.table_name = table
@@ -13,7 +13,7 @@ class DBObj:
def fetch(cls, *, id):
"""fetch an object from the database, looked up by id."""
db = get_db()
- # xxx this could be sped up by caching this query maybe instead of
+ # XXX this could be sped up by caching this query maybe instead of
# string formatting every time
row = db.execute(f"select * from {cls.table_name} where id = ?",(id,)).fetchone()
if row is None: