-
Notifications
You must be signed in to change notification settings - Fork 0
Progress
Rhytidia edited this page Apr 17, 2026
·
11 revisions
Short progress updates on this project.
What's done
- Have short python program that asks questions and gets input through CLI and writes questions (in bold) and answers (plain text) to a markdown (MD) file whose file path is hardcoded into the program
Working on
- Write today's date at the top of the file in an h2 in markdown before writing the questions and answers. Learn how to use the
datetimemodule to do this
Later steps
- Learning to use
datetimewill be useful for generating a new file with today's date as the filename. - Then later I will need to write today's date as an h2 for log entries that start with today's date into a file that contains multiple log entries (as per Functionality overview plans).
What's done
- Program now writes today's date in an h2 in the markdown file before writing the questions & answers.
- If there is already a string with today's date in the file, then an h3 with "Update at" and the current time (HH:MM) is written before the question/answer list. So for a single day, the first log is printed under an h2 with today's date, and subsequent logs on the same day are written under an h3 that says "Update at {HH:MM}".
- If a question isn't answered, the question isn't printed in the MD file.
Working on
- Looking into how to open a new file within a user-provided directory and name it with today's date.
- Check to see if there is a file with today's date already and if not, create one.
Later steps
- Don't create a new file for each day, but append to existing file.
- Start a new file after X number of days or when a new month starts.
What's done
- Program now opens a file with user-provided directory, with some error handling (could be improved)
- Noted above that I want to have it check if there's a file with today's date already; that automatically happens when I use
with open()with 'a' flag.
Working on
- Same as "later steps" for 2026-04-14