diff options
author | neodarz <neodarz@neodarz.net> | 2019-02-06 00:03:04 +0100 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2019-02-06 00:03:04 +0100 |
commit | f84e8fb75b8096dff5a39936ac26c933fdba3059 (patch) | |
tree | d0b06665fbba8bc9de4b5058e46a1ca513673bf8 /crawler/neodarznet | |
parent | 74dbf4defed8ae348a327e4674d917b3dd869713 (diff) | |
download | khanindexer-f84e8fb75b8096dff5a39936ac26c933fdba3059.tar.xz khanindexer-f84e8fb75b8096dff5a39936ac26c933fdba3059.zip |
Fix logging info
Diffstat (limited to '')
-rw-r--r-- | crawler/neodarznet/pipelines.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crawler/neodarznet/pipelines.py b/crawler/neodarznet/pipelines.py index 1f3a9fc..36a7f1f 100644 --- a/crawler/neodarznet/pipelines.py +++ b/crawler/neodarznet/pipelines.py @@ -12,9 +12,8 @@ class NeodarznetPipeline(object): if page.content_length != item['content_length']: q = Neodarznet.update(**item).where(Neodarznet.url == item['url']) q.execute() - logging.info("Update item {}".format(page)) + logging.info("Update item {}".format(page)) except Neodarznet.DoesNotExist: page = Neodarznet.create(**item) logging.info("Create item {}".format(page)) - logging.info('Item {} stored in db'.format(page)) return item |