Add Job details view #76
Annotations
2 errors
Run tests:
invenio_jobs/models.py#L1
Black format check
--- /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/models.py 2024-05-29 13:18:50.223868+00:00
+++ /home/runner/work/invenio-jobs/invenio-jobs/invenio_jobs/models.py 2024-05-29 13:20:44.568362+00:00
@@ -44,11 +44,10 @@
# TODO: See if we move this to an API class
@Property
def last_run(self):
"""Last run of the job."""
return self.runs.order_by(Run.created.desc()).first()
-
class RunStatusEnum(enum.Enum):
"""Enumeration of a run's possible states."""
|
Run tests
Process completed with exit code 1.
|
Loading