Closed wdreames closed 1 year ago
Files I will need to make:
Primary challenge: How can my program remember which entries it has randomly outputted recently? Possible solution:
A possible way of doing this could be to store a timestamp to a text file when the random entry script ends. Then when the random entry script is run again, it checks the text file. If the difference is more than 30 minutes, it deletes new_journal_df.pkl, if it exists.
I have completed the Python logic for both the randomized entry and specific date outputs. The only task left for this is to refresh the randomized output if it is not used for 30 minutes
Successfully implemented a method of refreshing the randomized output. The Python script should be complete now!
Since I have already completed most of this logic in a jupyter notebook already, it should be fairly simple to convert to a Python script that the webpage can access. This should include a command-line API with two functions:
Additional Steps to Improve Performance: