Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

Commit

Permalink
start_date default seems unreliable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Miller committed Jul 3, 2019
1 parent 8395e1e commit d5bf006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/ajax.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ def getCompletionStatus():
db.user_sub_chapter_progress.insert(user_id=auth.user.id,
chapter_id = lastPageChapter,
sub_chapter_id = lastPageSubchapter,
status = -1)
status = -1, start_date=datetime.datetime.utcnow())
# the chapter might exist without the subchapter
result = db((db.user_chapter_progress.user_id == auth.user.id) & (db.user_chapter_progress.chapter_id == lastPageChapter)).select()
if not result:
Expand Down

0 comments on commit d5bf006

Please sign in to comment.