Closed bjerrecs closed 4 years ago
Wait, actually found it. https://github.com/PhlexPlexico/get5-web/blob/master/get5/match.py#L699 just needs to be is_admin
not lis_admin
. Will fix.
PR #148 should fix this. Please confirm, thanks!
I can confirm, this happens if I setting 1 match to being: Private Match
Sorry, unexpected error: 'BaseQuery' object is not callable
- and this happens, if I edit on database set match 1 to being private match and clicking on the match (as admin, and I get the error!)
And are you running the latest version after PR #148 was updated? If so, please supply the log at the time of error. Thanks!
And are you running the latest version after PR #148 was updated? If so, please supply the log at the time of the error. Thanks!
Yes, I did installed it yesterday! ;) if I looking on Match.py (it's updated, as you did fix! with "lis_admin" to "is_admin" ;)
Pastebin for errors: https://pastebin.com/wMDyjsLp build: a668e46
For reference this is where it's failing and it's to do with logic of selecting the PlayerStats
model. Will look into later.
Should maybe replace that list to combine with this: playerstats_steam = [r.steam_id for r in PlayerStats.query.filter(PlayerStats.match_id=match.id)]
on that line. That may fix it.
Latest development push should fix it.
Can confirm the fix worked on my end! Thanks!
Describe the bug Installed the Get5 Web as per standard. Can create matches, seasons and more.
All works fine.
But i cant access the match while its live?
Here are the screenshots off the results of pressing the match ID buttom.
First screenshot of error is from superadmin and the other is from a normal admin
Which Build Get5 d0477c6+