projects
/
oweals
/
karmaworld.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d25dadb
)
Mark document as is_processed=True to avoid loop
author
Josh Williams
<jwilliams@endpoint.com>
Tue, 24 Sep 2013 21:18:11 +0000
(17:18 -0400)
committer
Josh Williams
<jwilliams@endpoint.com>
Tue, 24 Sep 2013 21:18:11 +0000
(17:18 -0400)
The .save() immediately following this checked is_processed, found it to
be False, and kicked off a whole new processing task; lather, rinse,
repeat. We may want to refactor something else, but this fixes that for
now.
karmaworld/apps/notes/gdrive.py
patch
|
blob
|
history
diff --git
a/karmaworld/apps/notes/gdrive.py
b/karmaworld/apps/notes/gdrive.py
index 605ea016d5d93ca471825e021167139c3cfc450a..3b35c397c770a46ac1c780df7bb3d5a0110212c7 100644
(file)
--- a/
karmaworld/apps/notes/gdrive.py
+++ b/
karmaworld/apps/notes/gdrive.py
@@
-251,6
+251,7
@@
def convert_raw_document(raw_document):
content_dict = download_from_gdrive(file_dict, http, mimetype=raw_document.mimetype)
# this should have already happened, lets see why it hasn't
+ raw_document.is_processed = True
raw_document.save()
note = raw_document.convert_to_note()