Closed melikecode closed 7 years ago
Post request is working for creating a new activity (we proved the concept on 24 October by writing text to a file). However, I'm having trouble getting things to work for the activity logging. It doesn't seem to want to write the activity name to the test file (only the duration). I'm not sure if there's a problem with the data not coming in properly, and don't know how to print stuff in Terminal to find out where the problem is in the code.
• Can I submit the log form (i.e. POST request or alternative method?) YES
• Is the submitted log information written to a JSON file (i.e. "logged-activities")? YES
• Does the submitted log data include number of minutes, activity, date-time entered? YES - DATE NOT TIME FOR NOW
• Does the submitted information show in the correct fields/format in the JSON file? YES
All requirements met.
does the activity name field automatically suggest activity names when i start typing? YES
do I get a message telling me my submission was successful? YES