diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2023-05-16 00:05:27 +0100 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2023-05-16 00:05:27 +0100 |
commit | 0faf95d56815d310290d3533d81d888deb7731f0 (patch) | |
tree | ef9fd281f8b85aab569944eb712235aa321ba768 /parser.py | |
parent | 469de094098c5cf149b9aeab9c2a7d23aa22c11d (diff) | |
download | UKGenderPayGap-0faf95d56815d310290d3533d81d888deb7731f0.tar.gz UKGenderPayGap-0faf95d56815d310290d3533d81d888deb7731f0.zip |
Added heatmap
Diffstat (limited to 'parser.py')
-rw-r--r-- | parser.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -78,4 +78,8 @@ if __name__ == "__main__": host = "db" with database.PayGapDatabase(host = host) as db: - parse_csv(db, sys.argv[1])
\ No newline at end of file + p = sys.argv[1] + if os.path.basename(p) == "National_Statistics_Postcode_Lookup_UK.csv": + db.append_counties(p) + else: + parse_csv(db, p)
\ No newline at end of file |