migration fixed, export wip

This commit is contained in:
2021-10-16 11:27:17 +03:00
parent 2a6baa7404
commit 00942e985b
2 changed files with 6 additions and 9 deletions

View File

@@ -140,13 +140,14 @@ def migrate(entry, users_by_oid, topics_by_oid):
except KeyError:
app = entry.get('application')
if app:
userslug = translit(app['name'], 'ru', reversed=True).replace(' ', '-').replace('\'', '').replace('.', '-').lower()
userdata = {
'username': app['email'],
'email': app['email'],
'name': app['name'],
'bio': app.get('bio', ''),
'emailConfirmed': False,
'slug': translit(app['name'], 'ru', reversed=True).replace(' ', '-').replace('\'', '').lower(),
'slug': userslug,
'createdAt': ts,
'wasOnlineAt': ts
}