aboutsummaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-01-17 22:39:56 +0100
committerneodarz <neodarz@neodarz.net>2019-01-17 22:39:56 +0100
commit073e919ef198a04da1e5ed28a7dfbc5d9681fc14 (patch)
treecd8a60cb0eb261489c5d1e5008c99101628e5b9b /app.py
parent82aefaaaf1c0fc64e584f7025259f84d2bcc347b (diff)
downloadkhanindexer-073e919ef198a04da1e5ed28a7dfbc5d9681fc14.tar.xz
khanindexer-073e919ef198a04da1e5ed28a7dfbc5d9681fc14.zip
Be more specific on index source database
Diffstat (limited to 'app.py')
-rw-r--r--app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.py b/app.py
index 933a140..31f338d 100644
--- a/app.py
+++ b/app.py
@@ -33,7 +33,7 @@ def search():
def crawl():
try:
- db.create_tables([Page])
+ db.create_tables(Page.__subclasses__())
process = CrawlerProcess(get_project_settings())
process.crawl(ScrapSpider)
process.start()