FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit dd0e02e6 authored by Robin Goodall's avatar Robin Goodall :speech_balloon:
Browse files

site optimeindexes in set not list

parent f4f24467
No related branches found
No related tags found
No related merge requests found
Pipeline #38135 passed
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment