blog/worker.py

14 lines
256 B
Python
Raw Normal View History

2020-07-08 14:36:13 +02:00
from oshipka import worker
from oshipka.persistance import populate_static, init_db
from populate import populate_db
from webapp.app import app
if init_db(app):
populate_static(app)
populate_db(app)
if __name__ == "__main__":
worker.main()