A User will specify a time interval
of n secs/mins/hours and then two times (start
/ stop
).
I need to be able to take this interval
, and then step through the start
and stop
times, in order to get a list of these times. Then after this, I will perform a database look up via a table.objects.filter
, in order to retrieve the data corresponding to each time.
I'm making some ridiculously long algorithms at the moment and I'm positive there could be an easier way to do this. That is, a more pythonic way. Thoughts?