# HG changeset patch # User ymh # Date 1310464767 -7200 # Node ID d89c497d29df49d2e222ffb17f602f722534156b # Parent d1c22af49d702606407e39e2b310ababb0b15ef6 Correction import tag popularity diff -r d1c22af49d70 -r d89c497d29df web/hdabo/fixtures/datasheet_10.yaml.bz2 Binary file web/hdabo/fixtures/datasheet_10.yaml.bz2 has changed diff -r d1c22af49d70 -r d89c497d29df web/hdabo/fixtures/datasheet_347.yaml.bz2 Binary file web/hdabo/fixtures/datasheet_347.yaml.bz2 has changed diff -r d1c22af49d70 -r d89c497d29df web/hdabo/fixtures/datasheet_all.yaml.bz2 Binary file web/hdabo/fixtures/datasheet_all.yaml.bz2 has changed diff -r d1c22af49d70 -r d89c497d29df web/hdabo/management/commands/import_tag_popularity.py --- a/web/hdabo/management/commands/import_tag_popularity.py Tue Jul 12 09:54:01 2011 +0200 +++ b/web/hdabo/management/commands/import_tag_popularity.py Tue Jul 12 11:59:27 2011 +0200 @@ -146,5 +146,5 @@ for tag in Tag.objects.filter(normalized_label=label): - tag.popularity += int(row['popularity']) + tag.popularity = tag.popularity + int(row['popularity']) tag.save()