Skip to content

Commit

Permalink
Remove unnecessary shell context hanlder
Browse files Browse the repository at this point in the history
  • Loading branch information
greyli committed Sep 9, 2024
1 parent ab7d9d2 commit bba4ed9
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions examples/ch5/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,26 +215,6 @@ def increment_edited_count(target, value, oldvalue, initiator):
target.edited_count += 1


# shell context
@app.shell_context_processor
def make_shell_context():
return dict(
db=db,
Note=Note,
Author=Author,
Article=Article,
Country=Country,
Capital=Capital,
Student=Student,
Teacher=Teacher,
User=User,
Photo=Photo,
Collection=Collection,
Post=Post,
Comment=Comment
)


# commands
@app.cli.command('init')
@click.option('--drop-table', is_flag=True, help='Re-create the tables.')
Expand Down

0 comments on commit bba4ed9

Please sign in to comment.