db seed command

This commit is contained in:
Gardient
2021-09-21 18:38:52 +03:00
parent 59049dcf72
commit d48f36df60
6 changed files with 19 additions and 5 deletions

View File

@@ -54,6 +54,7 @@ def register_shellcontext(app: Flask):
"""Shell context objects."""
return {
'db': db,
'TargetExchange': target_exchange.models.TargetExchange
}
app.shell_context_processor(shell_context)
@@ -63,3 +64,4 @@ def register_commands(app: Flask):
"""Register Click commands."""
app.cli.add_command(commands.clean)
app.cli.add_command(commands.urls)
app.cli.add_command(commands.seed)