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
8c0843d2
Commit
8c0843d2
authored
1 year ago
by
Patrick Jentsch
Browse files
Options
Downloads
Plain Diff
Merge branch 'development'
parents
518a2451
d4c9ab58
No related branches found
Branches containing commit
Tags
1.0.0
Tags containing commit
No related merge requests found
Pipeline
#42505
passed
1 year ago
Stage: build
Stage: publish
Stage: sca
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/__init__.py
+1
-1
1 addition, 1 deletion
app/__init__.py
app/users/__init__.py
+1
-1
1 addition, 1 deletion
app/users/__init__.py
app/users/cli.py
+14
-0
14 additions, 0 deletions
app/users/cli.py
with
16 additions
and
2 deletions
app/__init__.py
+
1
−
1
View file @
8c0843d2
...
...
@@ -99,7 +99,7 @@ def create_app(config: Config = Config) -> Flask:
from
.users
import
bp
as
users_blueprint
default_breadcrumb_root
(
users_blueprint
,
'
.users
'
)
app
.
register_blueprint
(
users_blueprint
,
url_prefix
=
'
/users
'
)
app
.
register_blueprint
(
users_blueprint
,
cli_group
=
'
user
'
,
url_prefix
=
'
/users
'
)
from
.workshops
import
bp
as
workshops_blueprint
app
.
register_blueprint
(
workshops_blueprint
,
url_prefix
=
'
/workshops
'
)
...
...
This diff is collapsed.
Click to expand it.
app/users/__init__.py
+
1
−
1
View file @
8c0843d2
...
...
@@ -15,4 +15,4 @@ def before_request():
pass
from
.
import
events
,
json_routes
,
routes
,
settings
from
.
import
cli
,
events
,
json_routes
,
routes
,
settings
This diff is collapsed.
Click to expand it.
app/users/cli.py
0 → 100644
+
14
−
0
View file @
8c0843d2
from
app.models
import
User
import
os
import
shutil
from
app
import
db
from
.
import
bp
@bp.cli.command
(
'
reset
'
)
def
reset
():
'''
Reset terms of use accept
'''
for
user
in
[
x
for
x
in
User
.
query
.
all
()
if
x
.
terms_of_use_accepted
]:
print
(
f
'
Resetting user
{
user
.
username
}
'
)
user
.
terms_of_use_accepted
=
False
db
.
session
.
commit
()
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