summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2011-11-17 17:31:54 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2011-11-17 17:31:54 (GMT)
commitf5e3496dbef7b60ef1cd86c867285647cc5e12ee (patch)
tree254ffb469ec914be94d7846f4b651f4b7ecee7b5
parent0419f0e243e635dd599665bb3a2e77509bd37bc2 (diff)
downloadtabellio.pcfdb-f5e3496dbef7b60ef1cd86c867285647cc5e12ee.zip
tabellio.pcfdb-f5e3496dbef7b60ef1cd86c867285647cc5e12ee.tar.gz
tabellio.pcfdb-f5e3496dbef7b60ef1cd86c867285647cc5e12ee.tar.bz2
nodoc column is defined as integer, convert it to string for indexes
-rw-r--r--tabellio/pcfdb/sync.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tabellio/pcfdb/sync.py b/tabellio/pcfdb/sync.py
index 92bcaab..2ab1e4d 100644
--- a/tabellio/pcfdb/sync.py
+++ b/tabellio/pcfdb/sync.py
@@ -762,7 +762,10 @@ class SyncFromPcfDbView(BrowserView):
object.session = sess
object.date = date
object.no = no
- object.nodoc = nodoc
+ if nodoc:
+ object.nodoc = str(nodoc)
+ else:
+ object.nodoc = None
object.doctype = doctype
object.file_image_id = image_id
object.topics = topics