mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-11-01 00:15:54 +00:00
8fecc08d19
Keep it not retarded
18 lines
367 B
Python
Executable file
18 lines
367 B
Python
Executable file
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
import sys
|
|
from nyaa import app, db
|
|
from flask_script import Manager
|
|
from flask_migrate import Migrate, MigrateCommand
|
|
|
|
migrate = Migrate(app, db)
|
|
|
|
manager = Manager(app)
|
|
manager.add_command("db", MigrateCommand)
|
|
|
|
if __name__ == "__main__":
|
|
# Patch sys.argv to default to 'db'
|
|
sys.argv.insert(1, 'db')
|
|
|
|
manager.run()
|