Closed xe1os closed 5 years ago
This is most likely do to an error in your data, as seen in issue #134. Please provide a log file when the issue currently happens, as it is far easier to debug. Thanks!
This is most likely do to an error in your data, as seen in issue #134. Please provide a log file when the issue currently happens, as it is far easier to debug. Thanks!
@PhlexPlexico thank you
You currently have matches that are cancelled, or a match that has been completed with no winner.
dTeamStandings[winningTeam.name]['teamid'] = winningTeam.id AttributeError: 'NoneType' object has no attribute 'id'
Please run select * from `match` where winner is NULL
and update those records accordingly.
You currently have matches that are cancelled, or a match that has been completed with no winner.
dTeamStandings[winningTeam.name]['teamid'] = winningTeam.id AttributeError: 'NoneType' object has no attribute 'id'
Please run
select * from `match` where winner is NULL
and update those records accordingly.
@PhlexPlexico i have updated the values for records with NULL information in the database using your query select * from `match` where winner is NULL
.
Still getting the same error :(
Can you post your latest log again after causing this error? It seems you have some data problems in your database that's causing this error, as I cannot reproduce.
Also, would you mind running select * from map_stats where winner is NULL
? It's possible the winners were never set in the map stats.
Aha. it's because, if you are setting "forfeit" to the team (without connecting to gameserver e.g) it will say that.
Example from my database:
Uno momento, making one fix for this as well within the query.
Latest push to master will also show winner in the map stats as well.
Describe the bug Error while viewing Team Leaderboard (/leaderboard)
Which Build Both
To Reproduce Steps to reproduce the behavior:
Expected behavior Should show the team leaderboard for all matches irrespective of season.
Additional context We should be able to see top team across all matches, like we have player leaderboard for all matches (/leaderboard/players)