PeterJCLaw / srcomp-cli

Command line tools for interacting with the state of the Student Robotics Competition
https://github.com/PeterJCLaw/srcomp/wiki
0 stars 2 forks source link

shift-matches produces timezone-naive match periods, which breaks things #22

Closed PeterJCLaw closed 2 years ago

PeterJCLaw commented 2 years ago
$ srcomp show-schedule --all .
Traceback (most recent call last):
  File ".../bin/srcomp", line 33, in <module>
    sys.exit(load_entry_point('sr.comp.cli', 'console_scripts', 'srcomp')())
  File ".../sr/srcomp-cli/sr/comp/cli/command_line.py", line 84, in main
    settings.func(settings)
  File ".../sr/srcomp-cli/sr/comp/cli/show_schedule.py", line 24, in command
    current_matches = list(comp.schedule.matches_at(now))
  File ".../sr/srcomp/sr/comp/matches.py", line 431, in matches_at
    if match.start_time <= date < match.end_time:
TypeError: can't compare offset-naive and offset-aware datetimes