# Copyright (c) 2017 Brian Ginsburg, Julie Rutherford-Fields
# This work is available under the "3-clause ('new') BSD License”.
# Please see the file COPYING in this distribution
# for license terms.

import os

# general config
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL']
SECRET_KEY = os.environ['SECRET_KEY']

# scheduler
SCHEDULER_API_ENABLED = True
JOBS =  [
    {
        'id': 'get_mail',
        'func': 'app.email.get_mail:get_mail',
        'trigger': 'cron',
        'day_of_week': 'mon-sun',
        'hour': 1,
        'minute': 15,
    },
    {
        'id': 'send_mail',
        'func': 'app.email.send_mail:send_mail',
        'trigger': 'cron',
        'day_of_week': 'mon-sat',
        'hour': 11,
        'minute': 15,
    }
]

# production config
DEBUG = False
SQLALCHEMY_ECHO = False
