fix off-by-one error of not showing 'always show' trips 7 days before the event
This commit is contained in:
@ -289,7 +289,7 @@ ORDER BY last_access DESC
|
||||
}
|
||||
}
|
||||
|
||||
for date in TripDetails::pinned_days(db, self.amount_days_to_show()).await {
|
||||
for date in TripDetails::pinned_days(db, self.amount_days_to_show() - 1).await {
|
||||
if self.is_guest {
|
||||
let day = Day::new_guest(db, date, true).await;
|
||||
if !day.planned_events.is_empty() {
|
||||
|
Reference in New Issue
Block a user