give screening start a 10 minute extra window
This commit is contained in:
1 parent
0fb748220f
commit
e0cb73e57a
1 file changed
+1
-1
@@ -26,7 +26,7 @@ async def get_infodesk_screenings(
|
|||||||
|
|
||||||
query = (
|
query = (
|
||||||
select(Screening)
|
select(Screening)
|
||||||
.where(Screening.start > now)
|
.where(Screening.start > now - timedelta(minutes=10))
|
||||||
.where(Screening.start < today + timedelta(days=1))
|
.where(Screening.start < today + timedelta(days=1))
|
||||||
.order_by(col(Screening.start))
|
.order_by(col(Screening.start))
|
||||||
.limit(8)
|
.limit(8)
|
||||||
|
|||||||
Reference in new issue
Block a user