Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
W
website
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
84
Issues
84
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Video AG Infrastruktur
website
Commits
0aefcd3f
Commit
0aefcd3f
authored
Nov 27, 2017
by
Julian Rother
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed json handling job api endpoint
parent
e3495a26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
jobs.py
jobs.py
+1
-1
No files found.
jobs.py
View file @
0aefcd3f
...
...
@@ -103,7 +103,7 @@ def jobs_worker_ping(hostname):
@
jobs_api_token_required
def
jobs_ping
(
id
):
hostname
=
request
.
values
[
'host'
]
status
=
json
.
dumps
(
request
.
values
[
'status'
]
,
default
=
date_json_handler
)
status
=
json
.
dumps
(
json
.
loads
(
request
.
values
[
'status'
])
,
default
=
date_json_handler
)
state
=
request
.
values
[
'state'
]
if
state
==
'finished'
:
query
(
'UPDATE jobs SET time_finished = ?, status = ?, state = "finished" where id = ?'
,
datetime
.
now
(),
status
,
id
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment