Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/readdb.py
diff options
context:
space:
mode:
authorAndi_G <andigros72@googlemail.com>2011-08-20 01:45:39 (GMT)
committer Andi_G <andigros72@googlemail.com>2011-08-20 01:45:39 (GMT)
commit3d7729b1f74359da2856cc4b1188798d34d1e059 (patch)
treed9d540c796fc5dd073ec0829a0bd3bd0feb33870 /readdb.py
parentb870f1bf3d1385ab14c95f3203a9427693a137f9 (diff)
added support for pdfs without download url
Diffstat (limited to 'readdb.py')
-rw-r--r--readdb.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/readdb.py b/readdb.py
index 084abd8..2ddd8d4 100644
--- a/readdb.py
+++ b/readdb.py
@@ -623,7 +623,7 @@ class AnnotationManager:
#if self._annotates == "":
# self._annotates = "_"
#values = {'w3c_hasTarget' : self._annotates}
- values = {'w3c_hasTarget' : self._filehash}
+ values = {'checksum' : self._filehash}
_logger.debug('download annotations -- annotates is: %s ' % self._annotates)
try:
data = urllib.urlencode(values)
@@ -633,6 +633,7 @@ class AnnotationManager:
except Exception, detail:
_logger.debug("readdb: failure at initial sync request f. annotations; detail: %s ", detail)
+ _logger.debug('annojson is: %s', str(annojson))
if (annojson != None) and (len(annojson) > 0):
anno_arr = self.parse_annotations(annojson)
_logger.debug('length anno_arr %d', len(anno_arr))