mikemountain / fantasy-football-scoreboard

Display the score of your fantasy football team on a Raspberry Pi driven RGB LED matrix for maximum ease of disappointment
GNU General Public License v3.0
56 stars 9 forks source link

Error with datetime in data.py #11

Closed sklafg closed 3 years ago

sklafg commented 3 years ago

Hi,

I'm getting this error when I try to launch the program.

Traceback (most recent call last): File "main.py", line 27, in data = Data(config) File "/home/pi/fantasy-football-scoreboard/data/data.py", line 25, in init self.refreshstart() File "/home/pi/fantasy-football-scoreboard/data/data.py", line 73, in refresh start start_delta = datetime.strptime("{} 20:20:00 EDT".format(self.config.opening _day), "%Y-%m-%d %H:%M:%S %Z") - datetime.now() File "/usr/lib/python2.7/_strptime.py", line 332, in _strptime (data_string, format)) ValueError: time data '2020-09-10 20:20:00 EDT' does not match format '%Y-%m-%d %H:%M:%S %Z'

mikemountain commented 3 years ago

Huh, that's really weird because the time should match-up perfectly, I verified it a few different ways...

I'm going to push up a new version of the repo soon that has this stuff removed (I was working on adding draft features but life got in the way) and it's only used for the draft, so we can just get rid of it for now, so I'll close this once I push it up

mikemountain commented 3 years ago

@sklafg can you pull the master branch and give it another run?

sklafg commented 3 years ago

It works fine now. Well done, thanks!