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

Commit 1c7be0d

Browse files
bjones1bnmnetp
authored andcommitted
Fix: Provide sensible default values for more fields.
1 parent 29bad63 commit 1c7be0d

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
@@ -341,6 +341,7 @@ def addQuestionToDB(self):
341341
practice=practice,
342342
topic=topics,
343343
from_source=from_source,
344+
review_flag='F',
344345
optional=optional,
345346
description=et,
346347
**meta_opts,
@@ -588,7 +589,6 @@ def addAssignmentToDB(
588589
return
589590

590591
course_id = getCourseID(course_name)
591-
last_changed = datetime.now()
592592
sel = select([assignments]).where(
593593
and_(assignments.c.name == name, assignments.c.course == course_id)
594594
)
@@ -627,6 +627,7 @@ def addAssignmentToDB(
627627
visible=visible,
628628
time_limit=time_limit,
629629
from_source="T",
630+
released="F",
630631
)
631632
res = sess.execute(ins)
632633
a_id = res.inserted_primary_key[0]

0 commit comments

Comments
 (0)