BE+FE: change log

This commit is contained in:
jokob-sk
2026-07-05 22:38:29 +10:00
parent 35313feff4
commit e0449bed8e
44 changed files with 1346 additions and 542 deletions

View File

@@ -139,3 +139,29 @@ def apply_events_filters(data, options):
]
return data
def extract_paging(options):
if not options:
return {
"page": 1,
"limit": 50,
"offset": 0,
"sort": [],
"search": None
}
page = getattr(options, "page", 1) or 1
limit = getattr(options, "limit", 50) or 50
search = getattr(options, "search", None)
sort = getattr(options, "sort", []) or []
offset = (page - 1) * limit
return {
"page": page,
"limit": limit,
"offset": offset,
"sort": sort,
"search": search
}