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
e70e6260
Commit
e70e6260
authored
Jun 22, 2017
by
Vasyl Bodnaruk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace uuid on spider name
parent
bcdbee56
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
models.py
esi/scraper/models.py
+1
-1
tables.js
esi/static/js/tables.js
+4
-4
job_list.html
esi/templates/job_list.html
+8
-8
No files found.
esi/scraper/models.py
View file @
e70e6260
...
...
@@ -75,7 +75,7 @@ class Job(models.Model):
return
{
'id'
:
self
.
pk
,
'name'
:
self
.
name
,
'
uuid'
:
self
.
job_uuid
,
'
spider'
:
self
.
spider
.
name
,
'create_time'
:
self
.
create_time
,
'start_time'
:
self
.
start_time
,
'end_time'
:
self
.
end_time
,
...
...
esi/static/js/tables.js
View file @
e70e6260
...
...
@@ -19,7 +19,7 @@
return
`
<tr id="
${
data
.
id
}
">
<td data-col="job">
${
data
.
name
}
</td>
<td data-col="
uuid">
${
data
.
uuid
}
</td>
<td data-col="
spider">
${
data
.
spider
}
</td>
<td data-col="created-date">
${
new
Date
(
data
.
create_time
).
format
(
'dd.mm.yyyy HH:MM'
)}
</td>
<td data-col="status" class="text-success">
${
data
.
status
}
</td>
<td data-col="action">
...
...
@@ -36,7 +36,7 @@
return
`
<tr id="
${
data
.
id
}
">
<td data-col="job">
${
data
.
name
}
</td>
<td data-col="
uuid">
${
data
.
uuid
}
</td>
<td data-col="
spider">
${
data
.
spider
}
</td>
<td data-col="created-date">
${
data
.
create_time
?
new
Date
(
data
.
create_time
).
format
(
'dd.mm.yyyy HH:MM'
)
:
'No date'
}
</td>
<td data-col="start-date">
${
data
.
start_time
?
new
Date
(
data
.
start_time
).
format
(
'dd.mm.yyyy HH:MM'
)
:
'No date'
}
</td>
<td data-col="status" class="text-success">
${
data
.
status
}
</td>
...
...
@@ -52,7 +52,7 @@
return
`
<tr id="
${
data
.
id
}
">
<td data-col="job">
${
data
.
name
}
</td>
<td data-col="
uuid">
${
data
.
uuid
}
</td>
<td data-col="
spider">
${
data
.
spider
}
</td>
<td data-col="created-date">
${
data
.
create_time
?
new
Date
(
data
.
create_time
).
format
(
'dd.mm.yyyy HH:MM'
)
:
'No date'
}
</td>
<td data-col="start-date">
${
data
.
start_time
?
new
Date
(
data
.
start_time
).
format
(
'dd.mm.yyyy HH:MM'
)
:
'No date'
}
</td>
<td data-col="finished-date">
${
data
.
end_time
?
new
Date
(
data
.
end_time
).
format
(
'dd.mm.yyyy HH:MM'
)
:
'No date'
}
</td>
...
...
@@ -68,7 +68,7 @@
return
`
<tr id="
${
data
.
id
}
">
<td data-col="job">
${
data
.
name
}
</td>
<td data-col="
uuid">
${
data
.
uuid
}
</td>
<td data-col="
spider">
${
data
.
spider
}
</td>
<td data-col="created-date">
${
new
Date
(
data
.
create_time
).
format
(
'dd.mm.yyyy HH:MM'
)}
</td>
<td data-col="start-date">
${
new
Date
(
data
.
create_time
).
format
(
'dd.mm.yyyy HH:MM'
)}
</td>
<td data-col="finished-date">
${
new
Date
(
data
.
create_time
).
format
(
'dd.mm.yyyy HH:MM'
)}
</td>
...
...
esi/templates/job_list.html
View file @
e70e6260
...
...
@@ -28,7 +28,7 @@
<table
data-table=
"pending"
class=
"table table-sm table-custom"
>
<thead
class=
"thead-inverse"
>
<th>
Job
</th>
<th>
Uuid
</th>
<th>
Spider
</th>
<th>
Created date
</th>
<th>
Status
</th>
<th
style=
"width: 250px"
>
Actions
</th>
...
...
@@ -38,7 +38,7 @@
{% for i in jobs.pending %}
<tr
id=
"{{ i.pk }}"
>
<td
data-col=
"job"
>
{{ i.name }}
</td>
<td
data-col=
"
uuid"
>
{{ i.job_uuid
}}
</td>
<td
data-col=
"
spider"
>
{{ i.spider
}}
</td>
<td
data-col=
"created-date"
>
{{ i.create_time }}
</td>
<td
data-col=
"status"
class=
"text-success"
>
{{ i.status }}
</td>
<td
data-col=
"action"
>
...
...
@@ -70,7 +70,7 @@
<table
data-table=
"running"
class=
"table table-sm table-custom"
>
<thead
class=
"thead-inverse"
>
<th>
Job
</th>
<th>
Uuid
</th>
<th>
Spider
</th>
<th>
Created date
</th>
<th>
Start date
</th>
<th>
Status
</th>
...
...
@@ -82,7 +82,7 @@
{% for i in jobs.running %}
<tr
id=
"{{ i.pk }}"
>
<td
data-col=
"job"
>
{{ i.name }}
</td>
<td
data-col=
"
uuid"
>
{{ i.job_uuid
}}
</td>
<td
data-col=
"
spider"
>
{{ i.spider
}}
</td>
<td
data-col=
"created-date"
>
{{ i.create_time }}
</td>
<td
data-col=
"start-date"
>
{{ i.start_time }}
</td>
<td
data-col=
"status"
class=
"text-success"
>
{{ i.status }}
</td>
...
...
@@ -114,7 +114,7 @@
<table
data-table=
"finished"
class=
"table table-sm table-custom"
>
<thead
class=
"thead-inverse"
>
<th>
Job
</th>
<th>
Uuid
</th>
<th>
Spider
</th>
<th>
Created date
</th>
<th>
Started date
</th>
<th>
Finished date
</th>
...
...
@@ -127,7 +127,7 @@
{% for i in jobs.finished %}
<tr
id=
"{{ i.pk }}"
>
<td
data-col=
"job"
>
{{ i.name }}
</td>
<td
data-col=
"
uuid"
>
{{ i.job_uuid
}}
</td>
<td
data-col=
"
spider"
>
{{ i.spider
}}
</td>
<td
data-col=
"created-date"
>
{{ i.create_time }}
</td>
<td
data-col=
"start-date"
>
{{ i.start_time }}
</td>
<td
data-col=
"finished-date"
>
{{ i.finish_time }}
</td>
...
...
@@ -159,7 +159,7 @@
<table
data-table=
"deleted"
class=
"table table-sm table-custom"
>
<thead
class=
"thead-inverse"
>
<th>
Job
</th>
<th>
Uuid
</th>
<th>
Spider
</th>
<th>
Created date
</th>
<th>
Started date
</th>
<th
style=
"width: 200px;"
>
Finished date
</th>
...
...
@@ -172,7 +172,7 @@
{% for i in jobs.deleted %}
<tr
id=
"{{ i.pk }}"
>
<td
data-col=
"job"
>
{{ i.name }}
</td>
<td
data-col=
"
uuid"
>
{{ i.job_uuid
}}
</td>
<td
data-col=
"
spider"
>
{{ i.spider
}}
</td>
<td
data-col=
"created-date"
>
{{ i.create_time }}
</td>
<td
data-col=
"start-date"
>
{{ i.start_time }}
</td>
<td
data-col=
"finished-date"
>
{{ i.finish_time }}
</td>
...
...
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