Commit 9ee2d9a7 authored by Jasmin Jutila's avatar Jasmin Jutila
Browse files

Delete WritingReservations.py

parent 4787095d
import csv
import os
def write_new_reservation(date,time,length,id,field):
with open('reservations.csv', 'a', newline='') as file:
writer = csv.writer(file)
writer.writerow([date, time, length, id, field])
file.flush()
os.fsync(file.fileno())
file.close()
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment