after audit
This commit is contained in:
parent
e8e20637e6
commit
a5165dc3ba
80 changed files with 8489 additions and 7302 deletions
|
|
@ -16,14 +16,13 @@ from app.db.models import (
|
|||
)
|
||||
from app.services.publication_identifiers import application as identifier_service
|
||||
from app.services.publication_identifiers.types import DisplayIdentifier
|
||||
from app.services.publications.pdf_queue_common import (
|
||||
PDF_STATUS_QUEUED,
|
||||
PDF_STATUS_RUNNING,
|
||||
PDF_STATUS_UNTRACKED,
|
||||
)
|
||||
from app.services.publications.types import PublicationListItem
|
||||
|
||||
PDF_STATUS_UNTRACKED = "untracked"
|
||||
PDF_STATUS_QUEUED = "queued"
|
||||
PDF_STATUS_RUNNING = "running"
|
||||
PDF_STATUS_RESOLVED = "resolved"
|
||||
PDF_STATUS_FAILED = "failed"
|
||||
|
||||
|
||||
def _bounded_limit(limit: int, *, max_value: int = 500) -> int:
|
||||
return max(1, min(int(limit), max_value))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue