1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 13:49:59 +00:00
nyaa/db_migrate.py
TheAMM eac41d561a Fix db_migrate.py shebang for venvs
Allows one to call it using ./db_migrate.py without errors
2017-05-27 18:14:43 +03:00

14 lines
292 B
Python
Executable file

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
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__":
manager.run()