X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/4c63fbcb3e43afa7a5ee9cbe5024737b3318613c..49fe4547c8128d80307e020190258c018cdba3c5:/forum_modules/sximporter/importer.py diff --git a/forum_modules/sximporter/importer.py b/forum_modules/sximporter/importer.py index 2bc4fb8..adee0d3 100644 --- a/forum_modules/sximporter/importer.py +++ b/forum_modules/sximporter/importer.py @@ -160,6 +160,7 @@ def userimport(dump, options): silver = int(badges['2']), bronze = int(badges['3']), real_name = sxu.get('realname', ''), + location = sxu.get('location', ''), ) osqau.save() @@ -201,6 +202,12 @@ def userimport(dump, options): osqau.silver += int(badges['2']) osqau.bronze += int(badges['3']) + osqau.date_joined = readTime(sxu.get('creationdate')) + osqau.website = sxu.get('websiteurl', '') + osqau.date_of_birth = sxu.get('birthday', None) and readTime(sxu['birthday']) or None + osqau.location = sxu.get('location', '') + osqau.real_name = sxu.get('realname', '') + merged_users.append(osqau.id) osqau.save()