Skip to content

Commit

Permalink
Refactor logging of slots list
Browse files Browse the repository at this point in the history
  • Loading branch information
meatballs committed Sep 16, 2017
1 parent 4ceb34f commit e8ea65e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/scheduler/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ def build(
resources = defn.resources()
events, slots = events_and_slots(resources)

logger.debug('Slots List:')
for idx, slot in enumerate(slots):
logger.debug(f'{idx}: {slot.starts_at} {slot.venue}')
slots_by_index = {
idx: f'{slot.starts_at} {slot.venue}'
for idx, slot in enumerate(slots)}
logger.debug(f'\nSlots List:\n{slots_by_index}')

kwargs = {}
if objective == 'consistency' or diff:
Expand Down

0 comments on commit e8ea65e

Please sign in to comment.