fixes stats page activity limit

This commit is contained in:
Christian Beutel
2025-04-11 14:32:52 +02:00
parent 5790da2317
commit 6bf419b98e
4 changed files with 20 additions and 27 deletions

View File

@@ -15,6 +15,7 @@ export async function summit_logs_index(author: string, filter?: SummitLogFilter
const r = await f('/api/v1/summit-log?' + new URLSearchParams({
filter: filterText,
perPage: "-1",
expand: "trails_via_summit_logs.category",
sort: "+date",
}), {
@@ -28,17 +29,17 @@ export async function summit_logs_index(author: string, filter?: SummitLogFilter
const fetchedSummitLogs: ListResult<SummitLog> = await r.json();
for (const log of fetchedSummitLogs.items) {
if (!log.gpx) {
continue
}
const gpxData: string = await fetchGPX(log as any, f);
// for (const log of fetchedSummitLogs.items) {
// if (!log.gpx) {
// continue
// }
// const gpxData: string = await fetchGPX(log as any, f);
if (!log.expand) {
log.expand = {};
}
log.expand.gpx_data = gpxData;
}
// if (!log.expand) {
// log.expand = {};
// }
// log.expand.gpx_data = gpxData;
// }
summitLogs.set(fetchedSummitLogs.items);