forked from Nate158digimon/nakamotoinstitute.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sni.py
51 lines (48 loc) · 1.02 KB
/
sni.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
43
44
45
46
47
48
49
50
51
from app import cli, create_app, db
from app.models import (
Author,
BlogPost,
BlogPostTranslation,
BlogSeries,
Category,
Doc,
Email,
EmailThread,
Episode,
Format,
ForumThread,
Language,
Post,
Price,
Quote,
QuoteCategory,
ResearchDoc,
Skeptic,
Translator,
)
app = create_app()
cli.register(app)
@app.shell_context_processor
def make_shell_context():
return {
"db": db,
"Author": Author,
"BlogPost": BlogPost,
"BlogPostTransaction": BlogPostTranslation,
"BlogSeries": BlogSeries,
"Category": Category,
"Doc": Doc,
"Email": Email,
"EmailThread": EmailThread,
"Episode": Episode,
"Format": Format,
"ForumThread": ForumThread,
"Language": Language,
"Post": Post,
"Price": Price,
"Quote": Quote,
"QuoteCategory": QuoteCategory,
"ResearchDoc": ResearchDoc,
"Skeptic": Skeptic,
"Translator": Translator,
}