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
4ec0acc0
Commit
4ec0acc0
authored
5 years ago
by
Patrick Jentsch
Browse files
Options
Downloads
Patches
Plain Diff
Make Corpus model available in flask shell.
parent
46b8550c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
opaque.py
+2
-2
2 additions, 2 deletions
opaque.py
with
2 additions
and
2 deletions
opaque.py
+
2
−
2
View file @
4ec0acc0
from
app
import
create_app
,
db
from
app
import
create_app
,
db
from
app.models
import
User
,
Role
,
Permission
,
Job
from
app.models
import
Corpus
,
User
,
Role
,
Permission
,
Job
from
flask_migrate
import
Migrate
from
flask_migrate
import
Migrate
import
os
import
os
...
@@ -10,7 +10,7 @@ migrate = Migrate(app, db)
...
@@ -10,7 +10,7 @@ migrate = Migrate(app, db)
@app.shell_context_processor
@app.shell_context_processor
def
make_shell_context
():
def
make_shell_context
():
return
dict
(
db
=
db
,
User
=
User
,
Role
=
Role
,
Permission
=
Permission
,
Job
=
Job
)
return
dict
(
db
=
db
,
Corpus
=
Corpus
,
User
=
User
,
Role
=
Role
,
Permission
=
Permission
,
Job
=
Job
)
@app.cli.command
()
@app.cli.command
()
...
...
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