Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

[BUG] Team leaderbords #155

Closed
mrc4tt opened this issue Oct 22, 2019 · 1 comment
Closed

[BUG] Team leaderbords #155

mrc4tt opened this issue Oct 22, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@mrc4tt
Copy link

mrc4tt commented Oct 22, 2019

Describe the bug
Problems with view "/leaderboard" (Team Leaderboards)

Which Build
master

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'http://get5.lindhost.eu/'
  2. Click on 'Leaderboards'
  3. And click 'Team Leaderboard'
  4. See error: Sorry, unexpected error: 'NoneType' object has no attribute 'id'

Expected behavior
After the update of the new build, for fix "Admin" can't see stats on the private match?

Additional context´
Error log:

[2019-10-22 19:08:52,634] {/var/www/get5-web/venv/lib/python2.7/site-packages/flask/app.py:1753} ERROR - Exception on /leaderboard [GET]
Traceback (most recent call last):
  File "/var/www/get5-web/venv/lib/python2.7/site-packages/flask/app.py", line 2284, in wsgi_app
    response = self.full_dispatch_request()
  File "/var/www/get5-web/venv/lib/python2.7/site-packages/flask/app.py", line 1807, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/var/www/get5-web/venv/lib/python2.7/site-packages/flask/app.py", line 1710, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/var/www/get5-web/venv/lib/python2.7/site-packages/flask/app.py", line 1805, in full_dispatch_request
    rv = self.dispatch_request()
  File "/var/www/get5-web/venv/lib/python2.7/site-packages/flask/app.py", line 1791, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/var/www/get5-web/get5/leaderboard.py", line 126, in leaderboard
    return getLeaderboard()
  File "/var/www/get5-web/get5/leaderboard.py", line 56, in getLeaderboard
    dTeamStandings[winningTeam.name]['teamid'] = winningTeam.id
AttributeError: 'NoneType' object has no attribute 'id'
[2019-10-22 19:08:52,635] {/var/www/get5-web/get5/__init__.py:174} ERROR - 'NoneType' object has no attribute 'id'
@mrc4tt mrc4tt added the bug Something isn't working label Oct 22, 2019
@mrc4tt mrc4tt changed the title [BUG] Team leaderbords problem. [BUG] Team leaderbords Oct 22, 2019
@PhlexPlexico
Copy link
Owner

Duplicate of issue #145. Closing and refer to that one. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants