summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2011-11-17 12:19:10 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2011-11-17 12:19:10 (GMT)
commit8283baf003e6464d4dfe669f8e71e7fc516df700 (patch)
tree1e3dba8cbb5516f72d31827c5d39391629311fb8
parent05a86149b9158e9702ac6d0a053ad7ee39f37d25 (diff)
downloadtabellio.pcfdb-8283baf003e6464d4dfe669f8e71e7fc516df700.zip
tabellio.pcfdb-8283baf003e6464d4dfe669f8e71e7fc516df700.tar.gz
tabellio.pcfdb-8283baf003e6464d4dfe669f8e71e7fc516df700.tar.bz2
sync adopted/decreted info on dossiers
-rw-r--r--tabellio/pcfdb/sync.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tabellio/pcfdb/sync.py b/tabellio/pcfdb/sync.py
index 22c6335..cd3eb39 100644
--- a/tabellio/pcfdb/sync.py
+++ b/tabellio/pcfdb/sync.py
@@ -960,6 +960,12 @@ class SyncFromPcfDbView(BrowserView):
date, desc, authors, docid, docpages, comment, comid, views = histo_row
if not views:
continue
+
+ if desc == u'Envoi à la sanction':
+ object.adopted = True
+ if desc == u'Décret':
+ object.decreted = True
+
if 'TBC' in views:
pass # this line is ok, we will take it
elif 'ARL' in views: