server/sources/datafeed.py
changeset 10581 7846d26ff91d
parent 10551 1182f5f16a3d
child 10603 65ad6980976e
--- a/server/sources/datafeed.py	Fri Jul 24 16:15:17 2015 +0200
+++ b/server/sources/datafeed.py	Fri Jul 24 16:19:39 2015 +0200
@@ -23,7 +23,6 @@
 import StringIO
 from os.path import exists
 from datetime import datetime, timedelta
-from base64 import b64decode
 from cookielib import CookieJar
 import urlparse
 from lxml import etree
@@ -282,7 +281,7 @@
         sql = ('SELECT extid, eid, type FROM entities, cw_source_relation '
                'WHERE entities.eid=cw_source_relation.eid_from '
                'AND cw_source_relation.eid_to=%s' % self.eid)
-        return dict((b64decode(uri), (eid, type))
+        return dict((self.decode_extid(uri), (eid, type))
                     for uri, eid, type in cnx.system_sql(sql).fetchall())
 
     def init_import_log(self, cnx, **kwargs):