mirror of
https://github.com/Xevion/runnerspace.git
synced 2026-01-31 06:25:56 -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():
|
||||
new_user = User(username=profile['username'],
|
||||
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)
|
||||
|
||||
print(f'Committing {len(users)} users into DB.')
|
||||
|
||||
Reference in New Issue
Block a user