diff --git a/dictionary/management/commands/create_walenty.py b/dictionary/management/commands/create_walenty.py index 255178f..b55a9c6 100644 --- a/dictionary/management/commands/create_walenty.py +++ b/dictionary/management/commands/create_walenty.py @@ -64,6 +64,8 @@ class Command(BaseCommand): archive.add(os.path.basename(checked_stats_path)) write_stats(ready_stats_path, all_stats) archive.add(os.path.basename(ready_stats_path)) + + update_walenty_stats(all_stats) finally: archive.close() os.remove(realizations_path) @@ -117,8 +119,6 @@ def create_pos_archive_and_get_stats(archive, pos, filename_base): write_stats(checked_stats_path, checked_stats) checked_stats_filename = os.path.basename(checked_stats_path) archive.add(name=checked_stats_filename, arcname=os.path.join(u'%ss' % pos.tag, checked_stats_filename)) - - update_walenty_stats(all_stats) finally: os.remove(walenty_path_ready) os.remove(walenty_path_checked) diff --git a/dictionary/templates/other_stats.html b/dictionary/templates/other_stats.html index d7e62b5..ed9e7c9 100644 --- a/dictionary/templates/other_stats.html +++ b/dictionary/templates/other_stats.html @@ -1,10 +1,6 @@ {% if stats %} -<strong>Statystyki dodatkowe wyliczone dla haseł o statusie wyższym niż "gotowe":</strong> -<table class='VocabTable' id='other-stats-table'> - <tr> - <td class='EmptyCell'/> - <td class='ColumnHeader'> Wartość (zaktualizowano: {{ stats.0.date|date:"d M Y" }})</td> - </tr> +<strong>Statystyki dodatkowe wyliczone dla haseł o statusie wyższym niż "gotowe" (ostatnia aktualizacja: {{ stats.0.date|date:"d M Y" }}):</strong> +<table class='VocabTable' id='other-stats-table'> {% for stat in stats %} <tr> <td class='RowHeader'>{{ stat.label }}</td>