[prixcarburant] fix site changes
This commit is contained in:
parent
a8617f597e
commit
fe94887947
3 changed files with 39 additions and 59 deletions
|
|
@ -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, }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue