PhlexPlexico / get5-web

[END OF LIFE] Webpanel for servers using the get5 CS:GO server plugin
GNU General Public License v3.0
21 stars 10 forks source link

[BUG] Users can't see "Total Matches" on Seasons #166

Closed mrc4tt closed 4 years ago

mrc4tt commented 4 years ago

Hi,

Some users can't see "Total Matches" on Seasons.

If I'm logged out of the get5page. I can see it, but others can't.

What can I do? I can't find any errors.

Here; the user can't see "Total Matches" screen1

User can see them if He clicking on Week 1 screen2

I did tell the user to try, logout. - He can't see the "Total Matches" (Where it should show: 12 - but it displays: 0) screen3

Here, he did log on, but can't see it. screen4

PhlexPlexico commented 4 years ago

I believe it's a bug in the template. I need to look into it more, but from what I can see, the map function isn't working as intended.

Possible error line: here

In your get5 instance, would you mind putting this line right below line 46 in season.py

app.logger.info("Our total matches are: {}".format(seasoned_matches))

Restart your Apache instance, and then tell the user to navigate to the page again. And provide the output from the log. And also once when you check the page as well. I need to verify it's just in the template, and not the middleware itself.

Thanks!

PhlexPlexico commented 4 years ago

Wait, nevermind. I think I know where the problem is. Let me push out a quick fix.

PhlexPlexico commented 4 years ago

https://github.com/PhlexPlexico/get5-web/commit/e82249bc2736cf843aea2fb1198fac2ec3a83ed4 Should fix in development branch.

mrc4tt commented 4 years ago

@PhlexPlexico danke <3

PhlexPlexico commented 4 years ago

Works now?

mrc4tt commented 4 years ago

@PhlexPlexico Yes! ;)

PhlexPlexico commented 4 years ago

Perfect. Going to close this issue now since that seems to have done it. Thanks for the report! 👍