Browse Source

Update controls.py

pull/18/head
James Mc Dermott 3 years ago
committed by GitHub
parent
commit
aa35c2c5e3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      scripts/controls.py

+ 5
- 2
scripts/controls.py View File

@@ -22,13 +22,16 @@ __version__ = '1.0.0'
__copyright__ = 'Copyright (c) 2017 theycallmemac'
__license__ = 'GPL-3.0'

def get_statuses(status, options, room):
if options.available and len(status) <= 9: print(room + ": " + status)
else: print(room + ": " + status)
def run_loop(lst, options, details):
week, day, time = details[0:3]
for room in lst:
timetable, url = builders.build_timetable("GLA." + room, week, day, time)
status = checks.check_room(url)
if options.available and len(status) <= 9: print(room + ": " + status)
else: print(room + ": " + status)
get_statuses(status, options, room)


def booking_control(c, g, details):


Loading…
Cancel
Save