summaryrefslogtreecommitdiffstats
path: root/import
diff options
context:
space:
mode:
authorLukas Metzger2020-07-21 13:37:37 +0200
committerLukas Metzger2020-07-21 13:37:37 +0200
commit6a39d8afef42b1c1e9575fc7207134c5d7889a7a (patch)
treed4c465a68ca01cda0cd4f764904a8f7808dc2646 /import
parentAdded names for sattelites (diff)
downloadbwlp-statistics-6a39d8afef42b1c1e9575fc7207134c5d7889a7a.tar.gz
bwlp-statistics-6a39d8afef42b1c1e9575fc7207134c5d7889a7a.tar.xz
bwlp-statistics-6a39d8afef42b1c1e9575fc7207134c5d7889a7a.zip
Add sample import script, fix readme
Diffstat (limited to 'import')
-rw-r--r--import/import-batch.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/import/import-batch.sh b/import/import-batch.sh
new file mode 100644
index 0000000..d15060f
--- /dev/null
+++ b/import/import-batch.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+if [ "$#" -lt 1 ]
+then
+ echo "You need to supply a folder for import!"
+ exit 1
+fi
+
+find $1 -name "*.json" -type f | while read line
+do
+ echo "Processing $line"
+ ../../bin/python3 import.py "$line"
+done