Experience level with scripting (1-10 scale): 1-2....still learning!!!
I've got a python script that calls on an API to gather information from a ticketing system. This script is used to track time worked on tickets. My boss is wanting that script to be run once a week. The script runs beautifully....but it's how it was set up that causes an issue with everything.
Right now we have to open a CMD window and type in:
python time_reports.py Insert JSON Web Token
This gives us all of the previous month. However, if we want a certain date range...we have to type in:
python time_reports.py Insert JSON Web Token 2017-07-01 2017-07-25
So, the higher ups are wanting that script to be run automatically, but I'm not sure how that's possible with dates always changing.
I was thinking of maybe using a batch file and then using Windows scheduler...but was hoping someone on here could help out with a better way.