add sync of appendix number

This commit is contained in:
Frédéric Péters 2011-11-18 15:33:03 +01:00
parent f5e3496dbe
commit 0437d3feca
1 changed files with 3 additions and 2 deletions

View File

@ -716,7 +716,7 @@ class SyncFromPcfDbView(BrowserView):
where_ts = ''
if timestamp:
where_ts = cursor.mogrify('AND t_document.ts > %s', (timestamp,))
cursor.execute('''SELECT t_document.id, type, sess, date, no, nodoc,
cursor.execute('''SELECT t_document.id, type, sess, date, no, nodoc, anx,
intit, auteurs, matiereids, comppols, imageid,
textdefts, textprovts
FROM t_document
@ -735,7 +735,7 @@ class SyncFromPcfDbView(BrowserView):
if row is None:
break
count += 1
(doc_id, doctype, sess, date, no, nodoc, intit, authors, topics,
(doc_id, doctype, sess, date, no, nodoc, anx, intit, authors, topics,
polgroups, image_id, textprovts, textdefts) = row
if intit is None:
@ -766,6 +766,7 @@ class SyncFromPcfDbView(BrowserView):
object.nodoc = str(nodoc)
else:
object.nodoc = None
object.noannexe = anx
object.doctype = doctype
object.file_image_id = image_id
object.topics = topics