Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
f1df48e3
Commit
f1df48e3
authored
Apr 07, 2020
by
Mathieu Giraud
Browse files
controllers/sample_set.py: bikeshed, simplify display of non-classified configs
parent
16323d62
Pipeline
#135041
passed with stages
in 13 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/controllers/sample_set.py
View file @
f1df48e3
...
...
@@ -709,8 +709,8 @@ def getConfigsByClassification():
classification
[
"%02d_%s"
%
(
i
,
class_elt
)][
"info"
]
=
class_elt
.
info
classification
[
"%02d_%s"
%
(
i
,
class_elt
)][
"configs"
]
=
configs
i
+=
1
classification
[
"%02d_noclass"
%
i
][
"name"
]
=
"
No classification
"
classification
[
"%02d_noclass"
%
i
][
"info"
]
=
"
Configs without classification
"
classification
[
"%02d_noclass"
%
i
][
"name"
]
=
"
–
"
classification
[
"%02d_noclass"
%
i
][
"info"
]
=
""
classification
[
"%02d_noclass"
%
i
][
"configs"
]
=
db
(
(
db
.
config
.
classification
==
None
)
&
(
auth
.
vidjil_accessible_query
(
PermissionEnum
.
read
.
value
,
db
.
config
)
|
auth
.
vidjil_accessible_query
(
PermissionEnum
.
admin
.
value
,
db
.
config
)
)
).
select
(
orderby
=
db
.
config
.
id
)
return
classification
...
...
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