コード例 #1
0
ファイル: main.py プロジェクト: Mouther/roadpin
def g_json_by_today():
    today = util.date_today()
    tomorrow = util.date_tomorrow()
    cfg.logger.debug("today: %s tomorrow: %s", today, tomorrow)
    start_timestamp = util.date_to_timestamp(today)
    end_timestamp = util.date_to_timestamp(tomorrow)
    return _process_result(g_json_handler(start_timestamp, end_timestamp))
コード例 #2
0
ファイル: main.py プロジェクト: g0v/roadpin
def g_json_by_today():
    today = util.date_today()
    tomorrow = util.date_tomorrow()
    cfg.logger.debug("today: %s tomorrow: %s", today, tomorrow)
    start_timestamp = util.date_to_timestamp(today)
    end_timestamp = util.date_to_timestamp(tomorrow)
    return _process_result(g_json_handler(start_timestamp, end_timestamp))
コード例 #3
0
ファイル: main.py プロジェクト: Mouther/roadpin
def g_json_by_timestamp(start_timestamp, end_timestamp):
    return _process_result(g_json_handler(start_timestamp, end_timestamp))
コード例 #4
0
ファイル: main.py プロジェクト: Mouther/roadpin
def g_json_by_date():
    params = dict(request.params)
    start_timestamp = util.date_to_timestamp(params['begin_at'])
    end_timestamp = util.date_to_timestamp(params['end_at'])
    return _process_result(g_json_handler(start_timestamp, end_timestamp))
コード例 #5
0
def g_json():
    _log_entry()
    return _process_result(g_json_handler())
コード例 #6
0
ファイル: main.py プロジェクト: ChuyuHsu/LittleBeeGeo
def g_json():
    return _process_result(g_json_handler())
コード例 #7
0
ファイル: main.py プロジェクト: g0v/roadpin
def g_json_by_timestamp(start_timestamp, end_timestamp):
    return _process_result(g_json_handler(start_timestamp, end_timestamp))
コード例 #8
0
ファイル: main.py プロジェクト: g0v/roadpin
def g_json_by_date():
    params = dict(request.params)
    start_timestamp = util.date_to_timestamp(params['begin_at'])
    end_timestamp = util.date_to_timestamp(params['end_at'])
    return _process_result(g_json_handler(start_timestamp, end_timestamp))