def counters_list(): counters = SocialCounter.select() return render_template('counters_list.html', current_user=current_user, counters=counters)
def social_counters(): social_counters = SocialCounter.select() for sc in social_counters: if sc.is_runnable(): processed = SocialCount.fetch_counters(sc.name, sc.urls) print("%s job: social counters processed" % datetime.utcnow())