fw42 / cubecomp

WCA Rubik's Cube competition website hosting
https://cubecomp.de/
MIT License
10 stars 4 forks source link

Competitor comparison not working #222

Closed Laura-O closed 8 years ago

Laura-O commented 8 years ago

When opening https://cubecomp.de/go16/de/comparison I get the following error message:

Liquid error: undefined methodcompetitors' for nil:NilClass`

It's strange that on other competition sites everything works as expected (e.g. here), although the files are identical in the admin interface.

fw42 commented 8 years ago

I think this is because the event handles are all wrong... Should be "3" instead of "333" etc..

Was probably related to https://github.com/fw42/cubecomp/issues/219#issuecomment-203682734.

Basically, the code only shows comparisons for official WCA events, but because you are not using the default event codes, it can't find any events that seem like official WCA events.

The error message is bad though. Will change it to show something more obvious.

fw42 commented 8 years ago

I'm gonna try to fix this in a smarter way.. You don't have to change all your handles if you don't want to. Give me a few minutes.

fw42 commented 8 years ago

@Laura-O this is fixed now, thanks for the bug report

Laura-O commented 8 years ago

Great, thanks!