Пример #1
0
def get_recent_SQL():
    # returns the most recent data from the database
    # with time stamp
    model = whitefish.WhiteFishModel()
    model = model.get_recent_sql()
    # model.print()
    return model
Пример #2
0
def find_by_date(find_date):
    model = whitefish.WhiteFishModel()
    model_list = model.find_by_date(find_date=find_date)
    return [vars(models) for models in model_list]
Пример #3
0
def get_all():
    # returns list of all Models from SQL
    model = whitefish.WhiteFishModel()
    model_list = model.get_all()
    return [vars(models) for models in model_list]
Пример #4
0
def web_to_sql(resort="wf", refresh=False):
    model = whitefish.WhiteFishModel()
    model = model.get_recent_web(refresh=refresh)
    model.commit_to_SQL()
    return model.get_recent_sql()
Пример #5
0
def get_recent_web(resort="wf", refresh=False):
    model = whitefish.WhiteFishModel()
    model = model.get_recent_web()
    return model