Esempio n. 1
0
def get_stats():
    now = datetime.datetime.now()
    yesterday = now - datetime.timedelta(days=1)
    last_24 = Reporter(since=yesterday)
    forever = Reporter()

    return forever.get_stats(), last_24.get_stats()
Esempio n. 2
0
def stats():
    reporter = Reporter()
    reporter.report()