diff --git a/app.py b/app.py index 536a79a..db360c6 100644 --- a/app.py +++ b/app.py @@ -77,6 +77,7 @@ def load_classic_data(): command = {} command['name'] = None command['rank'] = None + command['rank_number'] = None command['rank_list'] = [] command['description'] = [] @@ -105,6 +106,7 @@ def load_classic_data(): rank = 33 - rank command['rank_list'].append(rank) command['rank'] = sum(command['rank_list']) + command['rank_number'] = len(command['rank_list']) # Description: description = text_lines[idx+1] diff --git a/templates/index.html b/templates/index.html index 9e53b8d..9a1e52c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,5 +1,6 @@ + LinuxHot16Challenge @@ -8,136 +9,147 @@ + - - -
-

Linux hot 16 challenge

-
- -
- -
+ +
+

Linux hot 16 challenge

+
+ +
+ +
-
-
-
Szukaj komendy:
-
- - -
+
+
+
Szukaj komendy:
+
+ + +
+
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {% for position in ranking[3:] %} - - - - - {% if position.description[3]|length > 2 %} - - {% else %} - - {% endif %} - - {% endfor %} - - - -
PozycjaIlość punktówKomendaOpis
{{ranking[0].nr}}{{ranking[0].rank}}{{ranking[0].name}}{{ranking[0].description[3]}}
{{ranking[1].nr}}{{ranking[1].rank}}{{ranking[1].name}}{{ranking[1].description[3]}}
{{ranking[2].nr}}{{ranking[2].rank}}{{ranking[2].name}}{{ranking[2].description[3]}}
{{position.nr}}{{position.rank}}{{position.name}}{{position.description[3]}}{{position.description[0]}}
-
- -
- -
- -
- -
© 2022
-
+
© 2022
+
- + + \ No newline at end of file