Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nopaque
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SFB 1288 - INF
nopaque
Commits
e04f3d0a
Commit
e04f3d0a
authored
5 years ago
by
Patrick Jentsch
Browse files
Options
Downloads
Patches
Plain Diff
Some fixes
parent
00238e83
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/services/views.py
+3
-3
3 additions, 3 deletions
app/services/views.py
app/static/js/nopaque.lists.js
+5
-5
5 additions, 5 deletions
app/static/js/nopaque.lists.js
with
8 additions
and
8 deletions
app/services/views.py
+
3
−
3
View file @
e04f3d0a
...
@@ -12,8 +12,8 @@ import os
...
@@ -12,8 +12,8 @@ import os
SERVICES
=
{
'
corpus_analysis
'
:
{
'
name
'
:
'
Corpus analysis
'
},
SERVICES
=
{
'
corpus_analysis
'
:
{
'
name
'
:
'
Corpus analysis
'
},
'
setup_files
'
:
{
'
name
'
:
'
Setup files
'
,
'
setup_files
'
:
{
'
name
'
:
'
Setup files
'
,
'
resources
'
:
{
'
mem_mb
'
:
4096
,
'
n_cores
'
:
4
},
'
resources
'
:
{
'
mem_mb
'
:
4096
,
'
n_cores
'
:
4
},
'
add_job_form
'
:
AddSetupFilesJobForm
},
'
add_job_form
'
:
AddSetupFilesJobForm
},
'
nlp
'
:
{
'
name
'
:
'
Natural Language Processing
'
,
'
nlp
'
:
{
'
name
'
:
'
Natural Language Processing
'
,
'
resources
'
:
{
'
mem_mb
'
:
4096
,
'
n_cores
'
:
2
},
'
resources
'
:
{
'
mem_mb
'
:
4096
,
'
n_cores
'
:
2
},
'
add_job_form
'
:
AddNLPJobForm
},
'
add_job_form
'
:
AddNLPJobForm
},
...
@@ -59,7 +59,7 @@ def service(service):
...
@@ -59,7 +59,7 @@ def service(service):
job
.
delete
()
job
.
delete
()
flash
(
'
Internal Server Error
'
)
flash
(
'
Internal Server Error
'
)
return
make_response
(
return
make_response
(
{
'
redirect_url
'
:
url_for
(
'
services.service
'
,
service
=
'
ocr
'
)},
{
'
redirect_url
'
:
url_for
(
'
services.service
'
,
service
=
service
)},
500
)
500
)
else
:
else
:
for
file
in
add_job_form
.
files
.
data
:
for
file
in
add_job_form
.
files
.
data
:
...
...
This diff is collapsed.
Click to expand it.
app/static/js/nopaque.lists.js
+
5
−
5
View file @
e04f3d0a
...
@@ -7,7 +7,7 @@ class RessourceList extends List {
...
@@ -7,7 +7,7 @@ class RessourceList extends List {
_init
(
ressources
)
{
_init
(
ressources
)
{
this
.
add
(
Object
.
values
(
ressources
));
this
.
add
Ressources
(
Object
.
values
(
ressources
));
this
.
sort
(
"
creation_date
"
,
{
order
:
"
desc
"
});
this
.
sort
(
"
creation_date
"
,
{
order
:
"
desc
"
});
}
}
...
@@ -21,7 +21,7 @@ class RessourceList extends List {
...
@@ -21,7 +21,7 @@ class RessourceList extends List {
switch
(
operation
.
op
)
{
switch
(
operation
.
op
)
{
case
"
add
"
:
case
"
add
"
:
if
(
pathArray
.
includes
(
"
results
"
))
{
break
;}
if
(
pathArray
.
includes
(
"
results
"
))
{
break
;}
this
.
add
([
operation
.
value
]);
this
.
add
Ressources
([
operation
.
value
]);
break
;
break
;
case
"
remove
"
:
case
"
remove
"
:
this
.
remove
(
"
id
"
,
pathArray
[
0
]);
this
.
remove
(
"
id
"
,
pathArray
[
0
]);
...
@@ -42,11 +42,11 @@ class RessourceList extends List {
...
@@ -42,11 +42,11 @@ class RessourceList extends List {
}
}
add
(
ressources
)
{
add
Ressources
(
ressources
)
{
if
(
this
.
dataMapper
)
{
if
(
this
.
dataMapper
)
{
super
.
add
(
ressources
.
map
(
x
=>
this
.
dataMapper
(
x
)));
this
.
add
(
ressources
.
map
(
x
=>
this
.
dataMapper
(
x
)));
}
else
{
}
else
{
super
.
add
(
ressources
);
this
.
add
(
ressources
);
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment