Skip to content

Commit

Permalink
So it's possible to accindentaly introduce a blank row in the
Browse files Browse the repository at this point in the history
spreadsheet when I'm manually looking at it, so this just catches a dumb
situation and moves one.
  • Loading branch information
clolsonus committed May 20, 2021
1 parent c539aaf commit 07b44ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions services/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def process( settings ):
reader = csv.DictReader(f)
for row in reader:
print("row:", row)
if "Timestamp" not in row:
continue
timestamp = row['Timestamp']
dt = datetime.strptime(timestamp, '%m/%d/%Y %H:%M:%S')
ts = time.mktime(dt.timetuple())
Expand Down

0 comments on commit 07b44ea

Please sign in to comment.