diff options
Diffstat (limited to 'import-csv.py')
-rw-r--r-- | import-csv.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/import-csv.py b/import-csv.py index de0eb7a..ae4b9e6 100644 --- a/import-csv.py +++ b/import-csv.py @@ -1,10 +1,11 @@ -from f1elo.db import Session, find_driver -from f1elo.model import * +import csv import sys +from f1elo.db import find_driver, Session +from f1elo.model import * + session = Session() -import csv with open(sys.argv[1]) as f: reader = csv.reader(f) for row in reader: |