]> git.openstreetmap.org Git - osqa.git/commitdiff
fix in sximporter, some tags don't have creator
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Thu, 22 Apr 2010 13:09:53 +0000 (13:09 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Thu, 22 Apr 2010 13:09:53 +0000 (13:09 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@62 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum_modules/sximporter/importer.py

index fb69930f120b83b7141c76966999601ada1fdf69..1ab6abe9951fdec43458b2d8677e44e2a71ff22e 100644 (file)
@@ -163,7 +163,7 @@ def tagsimport(dump, uidmap):
             id = int(sxtag['id']),\r
             name = sxtag['name'],\r
             used_count = int(sxtag['count']),\r
-            created_by_id = uidmap[sxtag['userid']],\r
+            created_by_id = uidmap[sxtag.get('userid', 1)],\r
         )\r
         otag.save()\r
 \r