Hello, I am creating an app using tinydb. I have the app saving 3 pieces of info under each tag. Info #1 is the game name info #2 is startdate and info #3 is enddate
when I go to load it into the list I keep getting Game 1 ["03/12/2022","05/12/2022"] how can I brake this up into 3 variables so that I can use them later for example if the current date comes close to the end date send a message.
I would also like to clean up the listview to get rid of the brackets and quotation marks and possibly add "start date:" and "end date:" to the view for each one. Maybe change the text color of the Game 1 name.
I have implemented a few snippets I found from the web on saving and importing the data from tinydb but did not find anything on how to break it up.
thanks for any help
below is the main screen that populates the list view
Hello. Here is a screen shot of saving to my tinydb. this section is on another screen where the user enters the info. it has 2 datepicker boxes and a dropdown list picker. infolist is initialized as a global "create empty list"
I will try to explain it a little better of basically what I want the app to pretty much do.
I want the item list (listviewer) populated with
Game1 (subscription) preferably in a different color
Start date : (start date) End Date: (end date)
Game2 (subscription) preferably in a different color
Start date : (start date) End Date: (end date)
Etc..
When the user. Clicks on one of the games they can then click on a button to delete it from the database or do other things. That part I have pretty much setup.
I want to store the end date in a variable so I can email or notify user through notifications when the date is a week away from the current date
Thank you. Will this save the end date as a variable so I can do a for next type loop to compare to today's date and find the ones that are about to expire and send a notification?
hello again. Sorry to bother you but I have been trying for hours to make the remove item routine work. how would I go about removing an item and saving the new database. It will remove from the list on the screen but will not save a new tinydb properly. Here is what I have in my delete button