limit logs to a maximum number of pages
This commit is contained in:
parent
5ab8ca04b6
commit
9818481b08
2 changed files with 3 additions and 1 deletions
|
@ -6,6 +6,7 @@ from cachetools import lru_cache
|
|||
|
||||
from data.database import LogEntry, LogEntryKind, User, db
|
||||
|
||||
# TODO: Find a way to get logs without slowing down pagination significantly.
|
||||
def _logs_query(selections, start_time, end_time, performer=None, repository=None, namespace=None):
|
||||
joined = (LogEntry
|
||||
.select(*selections)
|
||||
|
|
Reference in a new issue