diff options
-rw-r--r-- | manage.py | 3 | ||||
-rw-r--r-- | scripts/__init__.py | 0 | ||||
-rw-r--r-- | scripts/munin.py | 20 |
3 files changed, 0 insertions, 23 deletions
@@ -7,8 +7,5 @@ from app import create_app app = create_app() cli = FlaskGroup(app) -# import scripts -from scripts import * - if __name__ == '__main__': cli() diff --git a/scripts/__init__.py b/scripts/__init__.py deleted file mode 100644 index e69de29..0000000 --- a/scripts/__init__.py +++ /dev/null diff --git a/scripts/munin.py b/scripts/munin.py deleted file mode 100644 index e50fc2b..0000000 --- a/scripts/munin.py +++ /dev/null @@ -1,20 +0,0 @@ -import sys -from itertools import chain -from app import fit - - -if __name__ == "__main__": - entries = {} - - if len(sys.argv) > 1 and sys.argv[1] == 'config': - print 'graph_title Klausuren' - print 'graph_vlabel Amount' - for label in fit.keys(): - print '%s.label %s' % (label, label.capitalize()) - - else: - for label, value in fit.items(): - # fetch all file entries and chain them as a list of tuples - module_list = chain(*map(value.get_module, value.get_modules())) - amount = sum([len(x[1]) for x in module_list]) - print '%s.value %d' % (label, amount) |