Skip to content
Snippets Groups Projects
Commit d256a280 authored by Simon Künzel's avatar Simon Künzel
Browse files

Fix bug in job query

parent fc6f8094
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,9 @@ def api_route_get_jobs():
raise ApiClientException(ERROR_REQUEST_INVALID_PARAMETER("URL.state", "Unknown state"))
def _trans(session: SessionDb):
query = Job.select(api_user_ac(), [])
query = Job.select(api_user_ac(), [{
Job.cause_job: {} # Required to load one level deep to get id even if full job is not serialized
}])
if state is not None:
query = query.where(Job.state == state)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment