Skip to content

Commit

Permalink
Simple initial reminder creation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdrans committed Mar 25, 2020
1 parent 8b08120 commit 04ae5ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ def list_reminders():
def add_reminder(reminder):
print()
reminder = input("What would you like to be reminded about?: ")
due = input("When is your reminder due?: ")

with open('reminders.csv', 'a+', newline='\n') as file:
writer = csv.writer(file)
writer.writerow([reminder, due])
writer.writerow([reminder])

0 comments on commit 04ae5ec

Please sign in to comment.