Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
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
humanities
gargantext
Commits
d3d7d7a9
Commit
d3d7d7a9
authored
Sep 09, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] Progression bar at startup non empty + user can not see corpus if workflow is not over yet.
parent
9212848b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
11 deletions
+23
-11
main.py
gargantext/util/toolchain/main.py
+4
-0
parsing.py
gargantext/util/toolchain/parsing.py
+0
-1
project.html
templates/pages/projects/project.html
+19
-10
No files found.
gargantext/util/toolchain/main.py
View file @
d3d7d7a9
...
...
@@ -61,7 +61,11 @@ def parse_extract_indexhyperdata(corpus):
# apply actions
print
(
'CORPUS #
%
d'
%
(
corpus
.
id
))
corpus
.
status
(
'Docs'
,
progress
=
1
)
corpus
.
save_hyperdata
()
parse
(
corpus
)
docs
=
corpus
.
children
(
"DOCUMENT"
)
.
count
()
print
(
'CORPUS #
%
d: parsed
%
d'
%
(
corpus
.
id
,
docs
))
extract_ngrams
(
corpus
)
...
...
gargantext/util/toolchain/parsing.py
View file @
d3d7d7a9
...
...
@@ -95,7 +95,6 @@ def parse(corpus):
try
:
print
(
"PARSING"
)
# print("DETECT_LANG?", DETECT_LANG)
corpus
.
status
(
'Docs'
,
progress
=
0
)
#1 corpus => 1 or multi resources.path (for crawlers)
resources
=
corpus
.
resources
()
if
len
(
resources
)
==
0
:
...
...
templates/pages/projects/project.html
View file @
d3d7d7a9
...
...
@@ -110,17 +110,17 @@
</a>
</div>
<div
class=
"col-md-3 content"
>
<a
href=
"/projects/{{project.id}}/corpora/{{corpus.id}}"
title=
"View the corpus"
>
<button
type=
"button"
class=
"btn btn-default"
aria-label=
"Left Align"
>
<span
class=
"glyphicon glyphicon-eye-open"
aria-hidden=
"true"
></span>
</button>
</a>
<!-- -->
{% for state in corpus.hyperdata.statuses %}
{% ifequal state.action "Workflow" %}
{% if state.complete %}
<a
href=
"/projects/{{project.id}}/corpora/{{corpus.id}}"
title=
"View the corpus"
>
<button
type=
"button"
class=
"btn btn-default"
aria-label=
"Left Align"
>
<span
class=
"glyphicon glyphicon-eye-open"
aria-hidden=
"true"
></span>
</button>
</a>
<button
type=
"button"
class=
"btn btn-default yopla"
data-container=
"body"
data-toggle=
"popover"
data-placement=
"bottom"
data-trigger=
"focus"
data-content=
"
<ul>
...
...
@@ -168,8 +168,17 @@
{{ state.error }}
{% else %}
<div
class=
"progress"
>
<div
class=
" progress-bar progress-bar-striped
progress-bar-success
"
role=
"progressbar"
aria-valuenow=
"45"
aria-valuemin=
"0"
aria-valuemax=
"100"
style=
"width: 20%"
>
<span>
Upload
</span>
</div>
{% for state in corpus.hyperdata.statuses %}
{% if state.action != "Workflow" %}
<!-- {% if state.action != "Workflow" %} --!>
<div class=" progress-bar progress-bar-striped
{% if state.complete %}
progress-bar-success
...
...
@@ -177,7 +186,7 @@
active
{% endif %}
"
role=
"progressbar"
aria-valuenow=
"45"
aria-valuemin=
"0"
aria-valuemax=
"100"
style=
"width: 2
5
%"
>
role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 2
0
%">
<span>
{{ state.action }}
{% if state.complete %}
...
...
@@ -188,7 +197,7 @@
</span>
</div>
{% endif %}
<!-- {% endif %} --!>
{% endfor %}
</div>
{% endif %}
...
...
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