Skip to content

Commit

Permalink
Update import statements
Browse files Browse the repository at this point in the history
  • Loading branch information
greyli committed Sep 8, 2024
1 parent c186782 commit 2f01ee4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions greybook/core/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from sqlalchemy import select

from greybook.core.extensions import db
from greybook.lorem import fake_admin, fake_categories, fake_comments, fake_links, fake_posts, fake_replies
from greybook.models import Admin, Category


Expand All @@ -25,7 +26,6 @@ def init_db_command(drop):
)
def init_blog_command(username, password):
"""Initialize the blog."""

db.create_all()
click.echo('Initialized the database.')

Expand Down Expand Up @@ -66,8 +66,6 @@ def init_blog_command(username, password):
@click.option('--reply', default=50, help='Quantity of replies, default is 50.')
def lorem_command(category, post, comment, reply):
"""Generate fake data."""
from greybook.lorem import fake_admin, fake_categories, fake_comments, fake_links, fake_posts, fake_replies

db.drop_all()
db.create_all()

Expand Down

0 comments on commit 2f01ee4

Please sign in to comment.