Commit e5126f9856cf0e832dc6830941ced43a90e43bb7
1 parent
89bdee85
Modified create_walenty script.
Showing
2 changed files
with
4 additions
and
8 deletions
dictionary/management/commands/create_walenty.py
@@ -64,6 +64,8 @@ class Command(BaseCommand): | @@ -64,6 +64,8 @@ class Command(BaseCommand): | ||
64 | archive.add(os.path.basename(checked_stats_path)) | 64 | archive.add(os.path.basename(checked_stats_path)) |
65 | write_stats(ready_stats_path, all_stats) | 65 | write_stats(ready_stats_path, all_stats) |
66 | archive.add(os.path.basename(ready_stats_path)) | 66 | archive.add(os.path.basename(ready_stats_path)) |
67 | + | ||
68 | + update_walenty_stats(all_stats) | ||
67 | finally: | 69 | finally: |
68 | archive.close() | 70 | archive.close() |
69 | os.remove(realizations_path) | 71 | os.remove(realizations_path) |
@@ -117,8 +119,6 @@ def create_pos_archive_and_get_stats(archive, pos, filename_base): | @@ -117,8 +119,6 @@ def create_pos_archive_and_get_stats(archive, pos, filename_base): | ||
117 | write_stats(checked_stats_path, checked_stats) | 119 | write_stats(checked_stats_path, checked_stats) |
118 | checked_stats_filename = os.path.basename(checked_stats_path) | 120 | checked_stats_filename = os.path.basename(checked_stats_path) |
119 | archive.add(name=checked_stats_filename, arcname=os.path.join(u'%ss' % pos.tag, checked_stats_filename)) | 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 | finally: | 122 | finally: |
123 | os.remove(walenty_path_ready) | 123 | os.remove(walenty_path_ready) |
124 | os.remove(walenty_path_checked) | 124 | os.remove(walenty_path_checked) |
dictionary/templates/other_stats.html
1 | {% if stats %} | 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 | {% for stat in stats %} | 4 | {% for stat in stats %} |
9 | <tr> | 5 | <tr> |
10 | <td class='RowHeader'>{{ stat.label }}</td> | 6 | <td class='RowHeader'>{{ stat.label }}</td> |