From: jordan Date: Wed, 16 Mar 2011 20:30:26 +0000 (+0000) Subject: #OSQA-603, removing the previously added in commit 857 call to the save method. It... X-Git-Tag: live~409 X-Git-Url: https://git.openstreetmap.org/osqa.git/commitdiff_plain/9c32be5633e8d9035a1c7b12ce4f86b913ce6a41 #OSQA-603, removing the previously added in commit 857 call to the save method. It turned out that the issue is more cache related and the badge calculation works fine. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@858 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum_modules/sximporter/importer.py b/forum_modules/sximporter/importer.py index 1f71f37..98c9dbd 100644 --- a/forum_modules/sximporter/importer.py +++ b/forum_modules/sximporter/importer.py @@ -769,9 +769,6 @@ def badges_import(dump, uidmap, post_list): osqaa.save() badge.awarded_count += 1 - # After the update of the badge awarded count property we should save the model. - badge.save() - user_badge_count[user_id] += 1 readTable(dump, "Users2Badges", callback)