diff options
author | David Timber <dxdt@dev.snart.me> | 2024-11-14 04:57:20 +0100 |
---|---|---|
committer | David Timber <dxdt@dev.snart.me> | 2024-11-14 05:03:42 +0100 |
commit | 03e678b8e3b643a29afcb0432dbe7ab3d4fcd78f (patch) | |
tree | cb32b307aa4c3726eaa92fd9a6e2130d9d2c94d9 /make-place |
Initial commit
Diffstat (limited to 'make-place')
-rwxr-xr-x | make-place | 13 |
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])) |