Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 36daed5

Browse files
committed
Fix: Provide sensible default values for more fields.
1 parent c2f1c0d commit 36daed5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

runestone/server/componentdb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ def addQuestionToDB(self):
336336
practice=practice,
337337
topic=topics,
338338
from_source=from_source,
339+
review_flag='F',
339340
optional=optional,
340341
description=et,
341342
**meta_opts,
@@ -583,7 +584,6 @@ def addAssignmentToDB(
583584
return
584585

585586
course_id = getCourseID(course_name)
586-
last_changed = datetime.now()
587587
sel = select([assignments]).where(
588588
and_(assignments.c.name == name, assignments.c.course == course_id)
589589
)
@@ -622,6 +622,7 @@ def addAssignmentToDB(
622622
visible=visible,
623623
time_limit=time_limit,
624624
from_source="T",
625+
released="F",
625626
)
626627
res = sess.execute(ins)
627628
a_id = res.inserted_primary_key[0]

0 commit comments

Comments
 (0)