summaryrefslogtreecommitdiff
path: root/scripts/rankings-csv-convert.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-09-08 01:28:21 +0200
committeremkael <emkael@tlen.pl>2017-09-08 01:28:21 +0200
commit8f795b1d445441daab5ffb75060a6dbf8ed0934a (patch)
tree15e55a2a7e03867ac0cccfb8303674d478510503 /scripts/rankings-csv-convert.py
parent655a9847513332e8e119f37f7ed95f4ab002b1a1 (diff)
Renaming scripts so that their names make sense
Diffstat (limited to 'scripts/rankings-csv-convert.py')
-rw-r--r--scripts/rankings-csv-convert.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/rankings-csv-convert.py b/scripts/rankings-csv-convert.py
new file mode 100644
index 0000000..4dcee92
--- /dev/null
+++ b/scripts/rankings-csv-convert.py
@@ -0,0 +1,9 @@
+import csv, sys
+
+data = list(csv.reader(file(sys.argv[1]), delimiter=";"))
+
+output = csv.writer(file(sys.argv[2], 'w'))
+
+date = data[1][3]
+for row in data[4:-1]:
+ output.writerow([row[0], date, row[2], row[1]])