1
0
Fork 0
Browse Source

change save_filtered_flickers to use writerow.

It was using writewrows before this but writerow makes it easier to
change. This is probably a nothing change but hey-ho!
stable
Craig Oates 3 years ago
parent
commit
3c15bf541e
  1. 5
      src/services/io_services.py

5
src/services/io_services.py

@ -24,5 +24,6 @@ def save_rps_above_threshold(readings, path):
def save_filtered_flickers(readings, path):
with open(path, mode="w") as results:
wtr = csv.writer(results, delimiter=',', lineterminator='\n')
wtr.writerows(readings)
wtr = csv.writer(results)
for item in readings:
wtr.writerow(item)