[prixcarburant] fix site changes

This commit is contained in:
Bezleputh 2013-12-10 19:23:06 +01:00 committed by Romain Bignon
commit fe94887947
3 changed files with 39 additions and 59 deletions

View file

@ -34,8 +34,8 @@ class PrixCarburantsBackend(BaseBackend, ICapPriceComparison):
VERSION = '0.h'
DESCRIPTION = 'French governement website to compare fuel prices'
LICENSE = 'AGPLv3+'
CONFIG = BackendConfig(Value('zipcode', label='Zipcode', regexp='\d+'))
BROWSER = PrixCarburantsBrowser
CONFIG = BackendConfig(Value('zipcode', label='Zipcode', regexp='\d+'))
def search_products(self, pattern=None):
with self.browser:
@ -66,5 +66,4 @@ class PrixCarburantsBackend(BaseBackend, ICapPriceComparison):
def fill_price(self, price, fields):
return self.get_price(price)
OBJECTS = {Price: fill_price,
}
OBJECTS = {Price: fill_price, }