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
Show more breadcrumbs
MaitresNageurs
README
LabelsTower
Commits
ae37f758
Commit
ae37f758
authored
4 years ago
by
erichard
Browse files
Options
Downloads
Patches
Plain Diff
refactor name : evironment variable UserOption->LABELSTOWER_USER_OPTION
parent
e7b2ed5f
No related branches found
No related tags found
1 merge request
!69
User option
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker/Dockerfile_externals
+1
-1
1 addition, 1 deletion
docker/Dockerfile_externals
labelstower/getter.py
+1
-1
1 addition, 1 deletion
labelstower/getter.py
with
2 additions
and
2 deletions
docker/Dockerfile_externals
+
1
−
1
View file @
ae37f758
...
...
@@ -29,7 +29,7 @@ EXPOSE 5000
ENV FLASK_APP=test/demo
ENV FLASK_ENV=development
ENV
UserOption
=false
ENV
LABELSTOWER_USER_OPTION
=false
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
...
...
This diff is collapsed.
Click to expand it.
labelstower/getter.py
+
1
−
1
View file @
ae37f758
...
...
@@ -5,7 +5,7 @@ from typing import Dict, List
from
.request_db
import
send_query_to_db
from
.
import
bp
if
(
os
.
environ
[
"
UserOption
"
]
==
"
true
"
):
if
(
os
.
environ
[
"
LABELSTOWER_USER_OPTION
"
]
==
"
true
"
):
from
.sqlStmtUserOption
import
queries
,
FORBIDEN_LABEL_ONLY
,
ALL_LABEL_TYPE
else
:
from
.sqlStmt
import
queries
,
FORBIDEN_LABEL_ONLY
,
ALL_LABEL_TYPE
...
...
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