-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathlearnbetter.py
42 lines (38 loc) · 848 Bytes
/
learnbetter.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
from app import create_app, db, cli
from app.models import (
User,
Article,
Highlight,
Topic,
highlights_topics,
Tag,
tags_articles,
tags_highlights,
Approved_Sender,
Task,
Notification,
Suggestion,
Event,
Comms,
)
app = create_app()
cli.register(app)
@app.shell_context_processor
def make_shell_context():
return {
"db": db,
"User": User,
"Article": Article,
"Highlight": Highlight,
"Topic": Topic,
"highlights_topics": highlights_topics,
"Tag": Tag,
"tags_articles": tags_articles,
"tags_highlights": tags_highlights,
"Task": Task,
"Notification": Notification,
"Approved_Sender": Approved_Sender,
"Suggestion": Suggestion,
"Event": Event,
"Comms": Comms,
}