summaryrefslogtreecommitdiffstats
path: root/tabellio
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2011-11-06 12:02:50 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2011-11-06 12:02:50 (GMT)
commit90ae858430283f0dd4871fabe7954f9e1fe56048 (patch)
treedc66033e0516e9ee2465ec90bf963cc2fd342490 /tabellio
parent71cfb0218bb7ba08f0dbf83ffb517097a42e188e (diff)
downloadtabellio.pcfdb-90ae858430283f0dd4871fabe7954f9e1fe56048.zip
tabellio.pcfdb-90ae858430283f0dd4871fabe7954f9e1fe56048.tar.gz
tabellio.pcfdb-90ae858430283f0dd4871fabe7954f9e1fe56048.tar.bz2
import question numbers
Diffstat (limited to 'tabellio')
-rw-r--r--tabellio/pcfdb/sync.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tabellio/pcfdb/sync.py b/tabellio/pcfdb/sync.py
index d760f9f..6578a5d 100644
--- a/tabellio/pcfdb/sync.py
+++ b/tabellio/pcfdb/sync.py
@@ -779,7 +779,7 @@ class SyncFromPcfDbView(BrowserView):
if timestamp:
where_ts = cursor.mogrify('AND t_qe.ts > %s', (timestamp,))
- cursor.execute('''SELECT t_histo.id, t_histo.st, t_histo.sess, objet, t_qe.auteurs, date
+ cursor.execute('''SELECT t_histo.id, t_histo.st, t_histo.sess, t_qe.no, objet, t_qe.auteurs, date
FROM t_qe JOIN t_histo
ON (t_qe.id = t_histo.objid)
WHERE objet IS NOT NULL
@@ -789,7 +789,7 @@ class SyncFromPcfDbView(BrowserView):
row = cursor.fetchone()
if row is None:
break
- dos_id, state, sess, intit, authors, date = row
+ dos_id, state, sess, no, intit, authors, date = row
print 't_qe/dos id:', dos_id
if not hasattr(self.questions_folder, dos_id):
self.questions_folder.invokeFactory('tabellio.documents.question', dos_id)
@@ -797,7 +797,7 @@ class SyncFromPcfDbView(BrowserView):
object.title = intit
object.session = sess
object.state = state
- object.no = None
+ object.no = no
object.date = date
object.questype = 'QE'
if authors: