FAQ | This is a LIVE service | Changelog

GitLab has been upgraded to 13.10.3. See what's new in the Changelog.

Commit dd0e02e6 authored by Robin Goodall's avatar Robin Goodall 💬

site optimeindexes in set not list

parent f4f24467
Pipeline #38135 passed with stages
in 7 minutes and 24 seconds
......@@ -260,8 +260,8 @@ def op_get_sites():
if config.get('booker.buildings') is None:
op_get_buildings()
# Get all (non -1) site OptimeIndexes for filtered buildings
site_ois = [b['Site'] for b in config.get('booker.buildings')
if b['Site'] != -1]
site_ois = {b['Site'] for b in config.get('booker.buildings')
if b['Site'] != -1}
if len(site_ois) == 0:
LOG.error('No sites in Booker related to TermTime rooms')
raise BookerAPIError()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment