mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
Some fixes
This commit is contained in:
parent
00238e83c3
commit
e04f3d0ac3
@ -59,7 +59,7 @@ def service(service):
|
||||
job.delete()
|
||||
flash('Internal Server Error')
|
||||
return make_response(
|
||||
{'redirect_url': url_for('services.service', service='ocr')},
|
||||
{'redirect_url': url_for('services.service', service=service)},
|
||||
500)
|
||||
else:
|
||||
for file in add_job_form.files.data:
|
||||
|
@ -7,7 +7,7 @@ class RessourceList extends List {
|
||||
|
||||
|
||||
_init(ressources) {
|
||||
this.add(Object.values(ressources));
|
||||
this.addRessources(Object.values(ressources));
|
||||
this.sort("creation_date", {order: "desc"});
|
||||
}
|
||||
|
||||
@ -21,7 +21,7 @@ class RessourceList extends List {
|
||||
switch(operation.op) {
|
||||
case "add":
|
||||
if (pathArray.includes("results")) {break;}
|
||||
this.add([operation.value]);
|
||||
this.addRessources([operation.value]);
|
||||
break;
|
||||
case "remove":
|
||||
this.remove("id", pathArray[0]);
|
||||
@ -42,11 +42,11 @@ class RessourceList extends List {
|
||||
}
|
||||
|
||||
|
||||
add(ressources) {
|
||||
addRessources(ressources) {
|
||||
if (this.dataMapper) {
|
||||
super.add(ressources.map(x => this.dataMapper(x)));
|
||||
this.add(ressources.map(x => this.dataMapper(x)));
|
||||
} else {
|
||||
super.add(ressources);
|
||||
this.add(ressources);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user