This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#vaccine crons | |
*/30 * * * * /bin/bash -l -c 'cd /Users/username/path/to/file && python3 main.py' | |
#end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sqlalchemy | |
from flask_sqlalchemy import SQLAlchemy | |
from sqlalchemy import create_engine | |
from app import db | |
# engine = create_engine(app.config['SQLALCHEMY_DATABASE_URI']) | |
# if not engine.dialect.has_schema(engine, schema_name): | |
# engine.execute(sqlalchemy.schema.CreateSchema(schema_name)) | |
# insp = sqlalchemy.inspect(engine) | |
# if engine.dialect.has_schema(engine, schema_name): |
OlderNewer