From d4ae79cd33806a07f4e1efb2a3c87aaa08bb9994 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Thu, 25 Dec 2014 18:19:37 -0800 Subject: [PATCH] Minor oops in misc/add-station --- misc/add-station.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/add-station.py b/misc/add-station.py index e9370e0e..e1b78ebf 100644 --- a/misc/add-station.py +++ b/misc/add-station.py @@ -131,14 +131,14 @@ def addStation( )) # Add to the .csv first. - with open(csvFile, "ab") as fh: + with open(csvFile, "a") as fh: fh.write("'{}','{}',{},'{}','{}'\n".format( sysCsvName, stnCsvName, distLs, blackMarket, maxPadSize, - ).encode()) + )) # Now insert into the DB. cur = conn.cursor()