summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2012-06-04 07:54:16 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2012-06-04 07:54:16 (GMT)
commit186c5734e64aa5bd4619bb374444c39c6e11fbc6 (patch)
tree053b670693a89f4dd57cf49fed996f7572b996d9
parent5b28e05df43ad9049e5a9205a1efdb216d5c2bdc (diff)
downloadtabellio.pcfdb-186c5734e64aa5bd4619bb374444c39c6e11fbc6.zip
tabellio.pcfdb-186c5734e64aa5bd4619bb374444c39c6e11fbc6.tar.gz
tabellio.pcfdb-186c5734e64aa5bd4619bb374444c39c6e11fbc6.tar.bz2
make sure not to include cricom number in commission code (#1383)
-rw-r--r--tabellio/pcfdb/sync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tabellio/pcfdb/sync.py b/tabellio/pcfdb/sync.py
index 418ef7b..d2071fb 100644
--- a/tabellio/pcfdb/sync.py
+++ b/tabellio/pcfdb/sync.py
@@ -958,7 +958,7 @@ class SyncFromPcfDbView(BrowserView):
if doctype == 'CRICOM':
nocric = object.no.split('-')[0]
try:
- nocric, com_code, nocricom = re.match(r'(\d+)-(.*)(\d+)', object.no).groups()
+ nocric, com_code, nocricom = re.match(r'(\d+)-(.*?)(\d+)', object.no).groups()
except AttributeError:
# make sure we do not get anything afterwards
nocric, com_code, nocricom = '999', 'XXX', '999'