mirror of
https://github.com/Xevion/runnerspace.git
synced 2026-01-31 08:25:52 -06:00
Add bio generation to faker command
This commit is contained in:
+2
-1
@@ -68,7 +68,8 @@ def create_app():
|
|||||||
for profile in users.values():
|
for profile in users.values():
|
||||||
new_user = User(username=profile['username'],
|
new_user = User(username=profile['username'],
|
||||||
name=profile['name'],
|
name=profile['name'],
|
||||||
password=generate_password_hash('password', method='sha256'))
|
password=generate_password_hash('password', method='sha256'),
|
||||||
|
about_me=fake.paragraph(nb_sentences=5))
|
||||||
db.session.add(new_user)
|
db.session.add(new_user)
|
||||||
|
|
||||||
print(f'Committing {len(users)} users into DB.')
|
print(f'Committing {len(users)} users into DB.')
|
||||||
|
|||||||
Reference in New Issue
Block a user