added search history table

This commit is contained in:
Xevion
2019-07-02 20:39:50 -05:00
parent e9a00f5683
commit 4bbc17ec52
6 changed files with 37 additions and 16 deletions

View File

@@ -1,9 +1,9 @@
from app import app, db
from app.models import User, Post
from app.models import User, Post, Search
@app.shell_context_processor
def make_shell_context():
return {'db' : db, 'User' : User, 'Post' : Post}
return {'db' : db, 'User' : User, 'Post' : Post, 'Search' : Search}
if __name__ == "__main__":
app.run(host="0.0.0.0")