From 8283baf003e6464d4dfe669f8e71e7fc516df700 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 17 Nov 2011 13:19:10 +0100 Subject: [PATCH] sync adopted/decreted info on dossiers --- tabellio/pcfdb/sync.py | 6 ++++++ 1 file changed, 6 insertions(+) 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: