Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
E
esi-table-data
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esi-data-scrapping
esi-table-data
Commits
5f540ca6
Commit
5f540ca6
authored
Jun 27, 2017
by
Vasyl Bodnaruk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug with kwargs arguments
parent
23e32e55
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
service.py
esi/scraper/service.py
+2
-2
No files found.
esi/scraper/service.py
View file @
5f540ca6
...
...
@@ -21,7 +21,7 @@ class Service:
def
run_job
(
self
,
job
):
job
=
Job
.
objects
.
get
(
pk
=
job
)
uuid
=
self
.
api
.
schedule
(
'exa'
,
job
.
spider
.
sp_name
)
uuid
=
self
.
api
.
schedule
(
'exa'
,
job
.
spider
.
sp_name
,
query
=
job
.
query
)
job
.
job_uuid
=
uuid
job
.
start_time
=
datetime
.
now
()
job
.
status
=
'RUN'
...
...
@@ -52,7 +52,7 @@ class Service:
def
restart_job
(
self
,
job
):
job
=
Job
.
objects
.
get
(
pk
=
job
)
uuid
=
self
.
api
.
schedule
(
'exa'
,
job
.
spider
.
sp_name
)
uuid
=
self
.
api
.
schedule
(
'exa'
,
job
.
spider
.
sp_name
,
query
=
job
.
query
)
job
.
job_uuid
=
uuid
job
.
start_time
=
datetime
.
now
()
job
.
end_time
=
None
...
...
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