diff options
| author | st33v <st33v@f3rr3t.com> | 2020-03-21 09:30:34 +1100 |
|---|---|---|
| committer | st33v <st33v@f3rr3t.com> | 2020-03-21 09:30:34 +1100 |
| commit | 7c378b79497517ccddbc996aa9ed14cf1b08aa28 (patch) | |
| tree | b06bc528747dda0b4e252fa8b49d9a1a1135ec51 | |
| parent | 403886707bfea6cbcc6b4e0449f1d01879a0d951 (diff) | |
fix path to data file
| -rwxr-xr-x | getPlanes.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/getPlanes.py b/getPlanes.py index 54a8939..3ecef64 100755 --- a/getPlanes.py +++ b/getPlanes.py @@ -15,6 +15,7 @@ import datetime as dt # epoch = dt.datetime.utcfromtimestamp(0) #def unixSecs(myTime): # return (myTime - epoch).total_seconds() +csvPath = '/home/st33v/dev/service/covid-flights/' def isNum(item): """ @@ -55,7 +56,7 @@ planeDict = makeListofDicts(planes) planeFrame = pd.DataFrame.from_dict(planeDict) planeFrame['timeStamp'] = "{:%Y%m%dT%H%M}".format(dt.datetime.now()) -with open('covidPlanes.csv', 'a') as out: +with open(csvPath + 'covidPlanes.csv', 'a') as out: planeFrame.to_csv(out, mode = 'a', index = False, header = out.tell()==0) # Brief info for Journald |
