Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LabelsTower
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Gitlab has been updated. More info
here
.
Show more breadcrumbs
MaitresNageurs
README
LabelsTower
Commits
d9175416
Commit
d9175416
authored
6 years ago
by
Deleted User
Browse files
Options
Downloads
Patches
Plain Diff
rm_to_unselect_tab() and maj_result_from_db() are OK.
parent
073dcc09
No related branches found
No related tags found
1 merge request
!50
[1] Site générique
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/labelsTower.py
+1
-1
1 addition, 1 deletion
app/labelsTower.py
app/static/maj_tutorial.js
+3
-3
3 additions, 3 deletions
app/static/maj_tutorial.js
with
4 additions
and
4 deletions
app/labelsTower.py
+
1
−
1
View file @
d9175416
...
...
@@ -48,7 +48,7 @@ def get_datas(name, id):
elif
(
name
==
'
all_tutos
'
):
return
(
jsonify
(
send_sql_request
(
'
SELECT * FROM elements ORDER BY title
'
)))
elif
(
name
==
'
tutos
'
):
return
(
jsonify
(
send_sql_request
(
'
SELECT * FROM elements WHERE
link
IN (
'
+
request
.
form
[
'
data
'
]
+
'
) ORDER BY title
'
)))
return
(
jsonify
(
send_sql_request
(
'
SELECT * FROM elements WHERE
id
IN (
'
+
id
+
'
) ORDER BY title
'
)))
elif
(
name
==
'
id_labels_tutos
'
):
return
(
jsonify
(
send_sql_request
(
'
SELECT DISTINCT id_label FROM elements_labels WHERE id_element IN (
'
+
request
.
form
[
'
data
'
]
+
'
)
'
)))
elif
(
name
==
'
labels_of_a_link
'
):
...
...
This diff is collapsed.
Click to expand it.
app/static/maj_tutorial.js
+
3
−
3
View file @
d9175416
...
...
@@ -81,9 +81,9 @@ function maj_results_after_remove() {
* selected must have this two labels.
*/
join_labels
=
join_labels_from_old_tab
(
hierarchy
.
old_labels_tab
);
all_
link
s
=
JSON
.
parse
(
request_ajax
(
"
tuto_family/
"
+
join_labels
));
result
.
links_of_results
=
"
'
"
+
all_link
s
.
join
(
"
',
'
"
)
+
"
'
"
;
result
.
result_tab
=
JSON
.
parse
(
request_ajax
_post
(
'
tutos
'
,
result
.
links_of_results
));
all_
id_label
s
=
JSON
.
parse
(
request_ajax
(
"
tuto_family/
"
+
join_labels
));
result
.
links_of_results
=
all_id_label
s
.
join
(
'
,
'
)
;
result
.
result_tab
=
JSON
.
parse
(
request_ajax
(
"
tutos
/
"
+
result
.
links_of_results
));
del_unselect_language
();
result
.
del_unselected_results
();
hierarchy
.
maj_new_labels_tab
();
...
...
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