# Local files which handle specific stats
import docker
import github
import bitly
import groups
import zap_services

# Python imports
import os
import sys

def usage():
    print("stats.py collect | daily | website")

def collect():
    docker.collect()
    github.collect()
    bitly.collect()
    zap_services.collect()

def daily():
    docker.daily()
    github.daily()
    bitly.daily()
    zap_services.daily()

def website():
    docker.website()
    github.website()
    bitly.website()
    groups.website()
    zap_services.website()

if __name__ == '__main__':
    if len(sys.argv) == 2:
        fn = sys.argv[1]
        if fn in globals():
            globals()[sys.argv[1]]()
        else:
            usage()
    else:
        usage()

@@ -289,24 +289,25 @@
 llect()%0A    
+#
 zap_services
@@ -387,24 +387,25 @@
 daily()%0A    
+#
 zap_services
@@ -516,16 +516,17 @@
 e()%0A    
+#
 zap_serv

Disable service stats while debugging them..