Commit e5126f9856cf0e832dc6830941ced43a90e43bb7

Authored by Bartłomiej Nitoń
1 parent 89bdee85

Modified create_walenty script.

dictionary/management/commands/create_walenty.py
... ... @@ -64,6 +64,8 @@ class Command(BaseCommand):
64 64 archive.add(os.path.basename(checked_stats_path))
65 65 write_stats(ready_stats_path, all_stats)
66 66 archive.add(os.path.basename(ready_stats_path))
  67 +
  68 + update_walenty_stats(all_stats)
67 69 finally:
68 70 archive.close()
69 71 os.remove(realizations_path)
... ... @@ -117,8 +119,6 @@ def create_pos_archive_and_get_stats(archive, pos, filename_base):
117 119 write_stats(checked_stats_path, checked_stats)
118 120 checked_stats_filename = os.path.basename(checked_stats_path)
119 121 archive.add(name=checked_stats_filename, arcname=os.path.join(u'%ss' % pos.tag, checked_stats_filename))
120   -
121   - update_walenty_stats(all_stats)
122 122 finally:
123 123 os.remove(walenty_path_ready)
124 124 os.remove(walenty_path_checked)
... ...
dictionary/templates/other_stats.html
1 1 {% if stats %}
2   -<strong>Statystyki dodatkowe wyliczone dla haseł o statusie wyższym niż "gotowe":</strong>
3   -<table class='VocabTable' id='other-stats-table'>
4   - <tr>
5   - <td class='EmptyCell'/>
6   - <td class='ColumnHeader'> Wartość (zaktualizowano: {{ stats.0.date|date:"d M Y" }})</td>
7   - </tr>
  2 +<strong>Statystyki dodatkowe wyliczone dla haseł o statusie wyższym niż "gotowe" (ostatnia aktualizacja: {{ stats.0.date|date:"d M Y" }}):</strong>
  3 +<table class='VocabTable' id='other-stats-table'>
8 4 {% for stat in stats %}
9 5 <tr>
10 6 <td class='RowHeader'>{{ stat.label }}</td>
... ...