From: hernani Date: Thu, 22 Apr 2010 13:09:53 +0000 (+0000) Subject: fix in sximporter, some tags don't have creator X-Git-Tag: live~1012 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/98d186d284c53497d000a86caf40c72f5a8a9225 fix in sximporter, some tags don't have creator git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@62 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum_modules/sximporter/importer.py b/forum_modules/sximporter/importer.py index fb69930..1ab6abe 100644 --- a/forum_modules/sximporter/importer.py +++ b/forum_modules/sximporter/importer.py @@ -163,7 +163,7 @@ def tagsimport(dump, uidmap): id = int(sxtag['id']), name = sxtag['name'], used_count = int(sxtag['count']), - created_by_id = uidmap[sxtag['userid']], + created_by_id = uidmap[sxtag.get('userid', 1)], ) otag.save()