Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
0031d025
Commit
0031d025
authored
May 11, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] 修复上次提交引起的bug
parent
ebef4f25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
10 deletions
+0
-10
api.py
apps/ops/api.py
+0
-7
views.py
apps/ops/views.py
+0
-3
No files found.
apps/ops/api.py
View file @
0031d025
...
...
@@ -70,13 +70,6 @@ class CeleryTaskLogApi(generics.RetrieveAPIView):
end
=
False
queryset
=
CeleryTask
.
objects
.
all
()
def
get_object
(
self
):
return
CeleryTask
(
id
=
"4cae9ad8-1116-45e7-b019-9b1856696fd7"
,
log_path
=
"2018-05-10/ca77e6db-9ac6-4970-80d1-eecdbcc3fcc5.log"
,
status
=
"finished"
)
def
get
(
self
,
request
,
*
args
,
**
kwargs
):
mark
=
request
.
query_params
.
get
(
"mark"
)
or
str
(
uuid
.
uuid4
())
task
=
self
.
get_object
()
...
...
apps/ops/views.py
View file @
0031d025
...
...
@@ -124,6 +124,3 @@ class AdHocHistoryDetailView(AdminUserRequiredMixin, DetailView):
class
CeleryTaskLogView
(
AdminUserRequiredMixin
,
DetailView
):
template_name
=
'ops/celery_task_log.html'
model
=
CeleryTask
def
get_object
(
self
,
queryset
=
None
):
return
CeleryTask
(
id
=
"4cae9ad8-1116-45e7-b019-9b1856696fd7"
)
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