mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-12 03:34:09 +02:00
Updated Useful import scripts (markdown)
@@ -86,7 +86,7 @@ import csv
|
||||
from dateutil.parser import parse
|
||||
|
||||
if len(sys.argv) < 2:
|
||||
print "Missing file to transform\n"
|
||||
print ("Missing file to transform\n")
|
||||
sys.exit(1)
|
||||
|
||||
bmi = lambda size: 0;
|
||||
@@ -94,7 +94,7 @@ if len(sys.argv) == 3:
|
||||
bmi = lambda weight: weight/(float(sys.argv[2])**2)
|
||||
|
||||
|
||||
with open("openScale_garmin_connect_import.csv", "wb") as outfile, open(sys.argv[1], "r") as infile:
|
||||
with open("openScale_garmin_connect_import.csv", "w") as outfile, open(sys.argv[1], "r") as infile:
|
||||
|
||||
reader = csv.DictReader(infile, delimiter=",")
|
||||
writer = csv.writer(outfile, delimiter=",")
|
||||
|
Reference in New Issue
Block a user