Skip to content

Commit

Permalink
Add __wingettotalresttime4.py - with imporovements
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonidBeynenson committed Mar 12, 2021
1 parent 512e24a commit a531172
Show file tree
Hide file tree
Showing 2 changed files with 760 additions and 1 deletion.
2 changes: 1 addition & 1 deletion __wingettotalresttime3.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def __init__(self, first_time, last_time, num_rest_minutes):
class Data:
def __init__(self, first_time, last_time):
delta1 = last_time - first_time
assert(delta1.days == 0)
assert (delta1.days == 0), str(delta1)
if delta1.days > 0:
print "WARNING: number of days =", delta1.days
required_len = 1 + int(delta1.seconds) // DEFAULT_TIME_STEP_IN_SECONDS()
Expand Down
Loading

0 comments on commit a531172

Please sign in to comment.