I am trying to write to a csv file that already exists and for the first entry it works fine but when adding a second one it simply rewrites the first entry.
code:
def start(names, estimated_time, due_date):
data = [names, estimated_time, due_date]
if os.path.isfile("C:\\Users\\Drago\\TaskManager\\tasks.csv"):
with open("C:\\Users\\Drago\\TaskManager\\tasks.csv", 'w', newline='') as myfile:
wr = csv.writer(myfile, quoting=csv.QUOTE_ALL)
wr.writerow(data)
Any help would be appreciated thank you for your time :)