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

Commit 836f28b

Browse files
authored
Merge pull request #1205 from bjones1/default_vals
Default vals
2 parents 627236b + 36daed5 commit 836f28b

4 files changed

Lines changed: 9 additions & 10 deletions

File tree

index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Runestone Components
33
********************
44
This site documents the working of the Runestone Components. See the `Runestone Interactive Overview <https://runestone.academy/runestone/books/published/overview/overview.html>`_ or the `Runestone instructor's guide <https://runestone.academy/runestone/static/instructorguide/index.html>`_.
55

6-
Demo linking to the Runestone Server docs: `assignments/grades_report endpoint`.
6+
Demo linking to the Runestone Server docs: :ref:`assignments/grades_report endpoint`.
77

88

99
Getting started

runestone/common/js/runestonebase.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,8 @@ export default class RunestoneBase {
7474
});
7575
}
7676

77-
// .. _logBookEvent:
78-
//
79-
// logBookEvent
80-
// ------------
77+
// _`logBookEvent`
78+
//----------------
8179
// This function sends the provided ``eventInfo`` to the `hsblog endpoint` of the server. Awaiting this function returns either ``undefined`` (if Runestone services are not available) or the data returned by the server as a JavaScript object (already JSON-decoded).
8280
async logBookEvent(eventInfo) {
8381
if (this.graderactive) {
@@ -127,10 +125,8 @@ export default class RunestoneBase {
127125
return post_return;
128126
}
129127

130-
// .. _logRunEvent:
131-
//
132-
// logRunEvent
133-
// -----------
128+
// -`logRunEvent`
129+
//---------------
134130
// This function sends the provided ``eventInfo`` to the `runlog endpoint`. When awaited, this function returns the data (decoded from JSON) the server sent back.
135131
async logRunEvent(eventInfo) {
136132
let post_promise = "done";

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]

runestone/timed/js/timed.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,8 @@ export default class Timed extends RunestoneBase {
997997
});
998998
localStorage.setItem(this.localStorageKey(), storageObj);
999999
}
1000+
// _`timed exam endpoint parameters`
1001+
//----------------------------------
10001002
logScore() {
10011003
this.logBookEvent({
10021004
event: "timedExam",

0 commit comments

Comments
 (0)