<filename>config.py<gh_stars>1-10
"""
Author: <NAME> <<EMAIL>>
Date: 2017/6/18

"""


# -*- coding: utf-8 -*-

class Config(object):
    JOBS = [
        {
            "id": "book",
            "func": "yitu.services.gzhu.hotbook:task",
            "args": "",
            "trigger": {
                "type": "cron",
                "day": "*/1"
            }
        },
        {
            "id": "book_change",
            "func": "yitu.services.gzhu.change_book_detail:change_detail",
            "args": "",
            "trigger": {
                "type": "cron",
                "day": "*/1"
            }
        }
    ]

    SCHEDULER_API_ENABLED = True


class Product(Config):
    SQLALCHEMY_DATABASE_URI = """sqlite:///data.sqlite3"""
    SQLALCHEMY_TRACK_MODIFICATIONS = True
    APP_KEY = "test-key"
    pass


class Develop(Config):
    SQLALCHEMY_DATABASE_URI = """mysql+pymysql://root:@localhost/yitu"""
    SQLALCHEMY_TRACK_MODIFICATIONS = True
    pass


config = {
    "default": Develop,
    "dev": Develop
}

<filename>config.py<gh_stars>1-10
"""
Author: <NAME> <<EMAIL>>
Date: 2017/6/18

"""


# -*- coding: utf-8 -*-

class Config(object):
    JOBS = [
        {
            "id": "book",
            "func": "yitu.services.gzhu.hotbook:task",
            "args": "",
            "trigger": {
                "type": "cron",
                "day": "*/1"
            }
        },
        {
            "id": "book_change",
            "func": "yitu.services.gzhu.change_book_detail:change_detail",
            "args": "",
            "trigger": {
                "type": "cron",
                "day": "*/1"
            }
        }
    ]

    SCHEDULER_API_ENABLED = True


class Product(Config):
    SQLALCHEMY_DATABASE_URI = """sqlite:///data.sqlite3"""
    SQLALCHEMY_TRACK_MODIFICATIONS = True
    APP_KEY = "test-key"
    pass


class Develop(Config):
    SQLALCHEMY_DATABASE_URI = """mysql+pymysql://root:@localhost/yitu"""
    SQLALCHEMY_TRACK_MODIFICATIONS = True
    pass


config = {
    "default": Develop,
    "dev": Develop
}

Author: <NAME> <<EMAIL>> Date: 2017/6/18 # -*- coding: utf-8 -*- sqlite:///data.sqlite3 mysql+pymysql://root:@localhost/yitu