コード例 #1
0
ファイル: views.py プロジェクト: steinar/biwinning
def do_update(club_id):
    club = get_club(club_id)
    update_club(club, threaded=True)
    next_view = request.args.get('next') or 'club_overview'
    return redirect(url_for(next_view, club_id=club_id))
コード例 #2
0
ファイル: update.py プロジェクト: steinar/biwinning
def update():
    for club in Club.all():
        print "Updating: ", club.strava_id
        update_club(club)