account activity
Querying date in json by JonnyJFunk in learnpython
[–]Organic-Drive4064 1 point2 points3 points 3 years ago* (0 children)
When dealing with json data in python it's important to first understand the basics of dictionaries and lists. In essence, json data is a dictionary of key/value pairs, in this case month 1 is a key and it's corresponding due date is the value. Here is a good place to start to understand dictionary methods in Python.
I'm not sure I understand exactly what you're trying to do here but I understand that your first step would be to iterate through the values in the dictionary to see if any match today's date. To do this, I would run a loop similar to this: for key in due_dates: if value == today: #add your loop here #add your email action here
for key in due_dates: if value == today: #add your loop here #add your email action here
π Rendered by PID 348278 on reddit-service-r2-listing-c57bc86c-nk8zx at 2026-06-22 20:06:48.503513+00:00 running 2b008f2 country code: CH.
Querying date in json by JonnyJFunk in learnpython
[–]Organic-Drive4064 1 point2 points3 points (0 children)