Commit d52924ab authored by Bezleputh's avatar Bezleputh

[vlille] url changed transpole is now known as ilevia

parent a46c1b9d
Pipeline #1989 passed with stages
in 17 minutes and 39 seconds
......@@ -28,7 +28,7 @@ __all__ = ['VlilleBrowser']
class VlilleBrowser(PagesBrowser):
BASEURL = 'https://www.transpole.fr'
BASEURL = 'https://www.ilevia.fr'
list_page = URL('/cms/vlille/les-stations-cartographies/', ListStationsPage)
def get_station_list(self):
......
......@@ -17,6 +17,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from decimal import Decimal
from weboob.browser.pages import HTMLPage
from weboob.browser.elements import ItemElement, TableElement, method
......@@ -52,7 +53,7 @@ class ListStationsPage(HTMLPage):
levelbikes.name = u'Bikes'
levelbikes.address = u'%s' % adresse
lastvalue = GaugeMeasure()
lastvalue.level = float(value)
lastvalue.level = Decimal(value)
lastvalue.date = last_update
if lastvalue.level < 1:
lastvalue.alarm = u'Empty station'
......@@ -68,7 +69,7 @@ class ListStationsPage(HTMLPage):
lastvalue = GaugeMeasure()
if lastvalue.level < 1:
lastvalue.alarm = u'Full station'
lastvalue.level = float(value)
lastvalue.level = Decimal(value)
lastvalue.date = last_update
levelattach.lastvalue = lastvalue
levelattach.history = NotLoaded
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment