Fix #12
This commit is contained in:
pare
6641fad072
commit
77851ded7d
S'han modificat 1 arxius amb 8 adicions i 1 eliminacions
|
@ -32,7 +32,14 @@ def unescape(s):
|
||||||
|
|
||||||
def create_panel(username, played_games, wins):
|
def create_panel(username, played_games, wins):
|
||||||
|
|
||||||
ratio = round((wins * 100) / played_games, 2)
|
if played_games > 0 and wins > 0:
|
||||||
|
|
||||||
|
ratio = round((wins * 100) / played_games, 2)
|
||||||
|
|
||||||
|
else:
|
||||||
|
|
||||||
|
ratio = 0
|
||||||
|
|
||||||
x = 10
|
x = 10
|
||||||
y = 10
|
y = 10
|
||||||
|
|
||||||
|
|
Loading…
Referencia en una nova incidència