changed default event view to 90 days

This commit is contained in:
Keanu D?lle 2022-03-08 17:49:30 +01:00
parent 9912af7690
commit d259817ea9

View File

@ -58,16 +58,10 @@ pub fn read_events(
} }
} }
}, },
None => Local::now().naive_local() + Duration::days(30) None => Local::now().naive_local() + Duration::days(90)
};
let limit = match limit{
Some(limit) => limit,
None => settings.api.default_pagination_limit,
};
let offset = match offset{
Some(offset) => offset,
None => 0,
}; };
let limit = limit.unwrap_or(settings.api.default_pagination_limit);
let offset = offset.unwrap_or(0);
let groups = match groups{ let groups = match groups{
Some(groups) => { Some(groups) => {