louking / rrwebapp

Race Results Web Application
0 stars 1 forks source link

view standings: racing team standings not working #486

Closed louking closed 3 years ago

louking commented 3 years ago

we're seeing, perhaps on tabulation

Message type:       ERROR
Location:           /var/www/scoretility.com/rrwebapp/rrwebapp/views/frontend/userviews.py:222
Module:             userviews
Function:           get
Time:               2021-06-06 16:50:15,386
User:               anonymous

Message:

Traceback (most recent call last):
  File "/var/www/scoretility.com/rrwebapp/rrwebapp/views/frontend/userviews.py", line 178, in get
    rr.renderseries(fh)
  File "/var/www/scoretility.com/rrwebapp/rrwebapp/renderstandings.py", line 1310, in renderseries
    self.collectstandings(racesprocessed, gen, race.id, byrunner, divrunner)
  File "/var/www/scoretility.com/rrwebapp/rrwebapp/renderstandings.py", line 1166, in collectstandings
    if self.hightolow: allresults.sort(reverse=True)
TypeError: '<' not supported between instances of 'RaceResult' and 'RaceResult'

and

Message type:       ERROR
Location:           /var/www/scoretility.com/venv/lib64/python3.6/site-packages/flask/app.py:1892
Module:             app
Function:           log_exception
Time:               2021-06-06 16:50:15,819
User:               anonymous

Message:

Exception on /viewstandings/ [GET]

Traceback (most recent call last):
  File "/var/www/scoretility.com/venv/lib64/python3.6/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/var/www/scoretility.com/venv/lib64/python3.6/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/var/www/scoretility.com/venv/lib64/python3.6/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/var/www/scoretility.com/venv/lib64/python3.6/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/var/www/scoretility.com/venv/lib64/python3.6/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/var/www/scoretility.com/venv/lib64/python3.6/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/var/www/scoretility.com/venv/lib64/python3.6/site-packages/flask/views.py", line 89, in view
    return self.dispatch_request(*args, **kwargs)
  File "/var/www/scoretility.com/venv/lib64/python3.6/site-packages/flask/views.py", line 163, in dispatch_request
    return meth(*args, **kwargs)
  File "/var/www/scoretility.com/rrwebapp/rrwebapp/views/frontend/userviews.py", line 178, in get
    rr.renderseries(fh)
  File "/var/www/scoretility.com/rrwebapp/rrwebapp/renderstandings.py", line 1310, in renderseries
    self.collectstandings(racesprocessed, gen, race.id, byrunner, divrunner)
  File "/var/www/scoretility.com/rrwebapp/rrwebapp/renderstandings.py", line 1166, in collectstandings
    if self.hightolow: allresults.sort(reverse=True)
TypeError: '<' not supported between instances of 'RaceResult' and 'RaceResult'