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

Commit 8d49819

Browse files
committed
New: Respect deadline if given
1 parent 4ed7669 commit 8d49819

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bookserver/crud.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ async def fetch_last_answer_table_entry(
270270
tbl.div_id == query_data.div_id,
271271
tbl.course_name == query_data.course,
272272
tbl.sid == query_data.sid,
273+
tbl.timestamp <= query_data.deadline,
273274
)
274275
)
275276
.order_by(tbl.timestamp.desc())

0 commit comments

Comments
 (0)