summaryrefslogtreecommitdiff
path: root/make-place
diff options
context:
space:
mode:
Diffstat (limited to 'make-place')
-rwxr-xr-xmake-place13
1 files changed, 13 insertions, 0 deletions
diff --git a/make-place b/make-place
new file mode 100755
index 00000000..70f2bfac
--- /dev/null
+++ b/make-place
@@ -0,0 +1,13 @@
+#!/bin/env python3
+import sys
+import common
+
+target = open(sys.argv[1]).read().strip()
+data = common.load_data(sys.stdin.readline)
+
+data[target] = data.get(target, 0.0) + 1.0
+
+keys = list(data.keys())
+keys.sort()
+for k in keys:
+ print('%-15s\t%.0lf' % (k, data[k]))