aboutsummaryrefslogtreecommitdiff
path: root/jb/managers/hit.py
diff options
context:
space:
mode:
Diffstat (limited to 'jb/managers/hit.py')
-rw-r--r--jb/managers/hit.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/jb/managers/hit.py b/jb/managers/hit.py
index ce8ffa5..7d60b63 100644
--- a/jb/managers/hit.py
+++ b/jb/managers/hit.py
@@ -69,7 +69,9 @@ class HitQuestionManager(PostgresManager):
class HitTypeManager(PostgresManager):
def create(self, hit_type: HitType) -> None:
+ assert hit_type.id is None
assert hit_type.amt_hit_type_id is not None
+
data = hit_type.to_postgres()
query = sql.SQL(
"""
@@ -162,6 +164,7 @@ class HitTypeManager(PostgresManager):
c.execute(query, data)
conn.commit()
assert c.rowcount == 1, c.rowcount
+
return None