コード例 #1
0
ファイル: manage.py プロジェクト: cyhhao/beijing_bus
def build_cache():
    import logging
    logging.basicConfig(level=logging.INFO)

    cache.invalidate(hard=True)
    BeijingBus.get_all_stations()

    click.secho('Done!', fg='green')
コード例 #2
0
ファイル: manage.py プロジェクト: zzl2/beijing_bus
def build_cache():
    import logging
    logging.basicConfig(level=logging.INFO)

    cache.invalidate(hard=True)
    BeijingBus.get_all_stations()

    click.secho('Done!', fg='green')