Merge branch 'revert-7d6a2e0a' into 'master'
Revert "Calculate all Cycles..." See merge request family/period!1
This commit is contained in:
commit
16ad5e3a98
@ -151,6 +151,7 @@ def cycle_math():
|
|||||||
for num, cycle in enumerate(all_cycles):
|
for num, cycle in enumerate(all_cycles):
|
||||||
# http://127.0.0.1:5000/cycle_math
|
# http://127.0.0.1:5000/cycle_math
|
||||||
# cycle length = next start - this start
|
# cycle length = next start - this start
|
||||||
|
if num > 0:
|
||||||
this_start = pendulum.parse(cycle['start_time'])
|
this_start = pendulum.parse(cycle['start_time'])
|
||||||
next_start = pendulum.parse(all_cycles[num-1]['start_time'])
|
next_start = pendulum.parse(all_cycles[num-1]['start_time'])
|
||||||
cycle_length = (next_start - this_start).days
|
cycle_length = (next_start - this_start).days
|
||||||
|
Loading…
Reference in New Issue
Block a user