Elfsong commited on
Commit
26c150c
·
verified ·
1 Parent(s): 552ed33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -29,6 +29,7 @@ def get_status(credentials, instance_name):
29
  return status, ip_address
30
 
31
  def get_time_remaining(last_start_timestamp, run_duration_seconds):
 
32
  last_start_dt = parser.isoparse(last_start_timestamp)
33
  end_run_dt = last_start_dt + timedelta(seconds=run_duration_seconds)
34
  now_dt = datetime.now(tz=last_start_dt.tzinfo)
 
29
  return status, ip_address
30
 
31
  def get_time_remaining(last_start_timestamp, run_duration_seconds):
32
+ run_duration_seconds = int(run_duration_seconds)
33
  last_start_dt = parser.isoparse(last_start_timestamp)
34
  end_run_dt = last_start_dt + timedelta(seconds=run_duration_seconds)
35
  now_dt = datetime.now(tz=last_start_dt.tzinfo)