Add parcel status in colissimo
This commit is contained in:
parent
90c45817c1
commit
5143cafa02
1 changed files with 3 additions and 1 deletions
|
|
@ -41,8 +41,10 @@ class ColissimoBackend(BaseBackend, ICapParcel):
|
|||
label = data['message']
|
||||
p.info = label
|
||||
# TODO, need to know the delivery message
|
||||
if "blablabla" in label:
|
||||
if u"remis au gardien ou" in label or u"Votre colis est livré" in label:
|
||||
p.status = p.STATUS_ARRIVED
|
||||
elif u"pas encore pris en charge par La Poste" in label:
|
||||
p.status = p.STATUS_PLANNED
|
||||
else:
|
||||
p.status = p.STATUS_IN_TRANSIT
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue