Changeset a300c14 in osmose-frontend


Ignore:
Timestamp:
Mar 17, 2013 11:55:03 AM (7 years ago)
Author:
Frédéric Rodrigo <frodrigo@…>
Branches:
master
Children:
1a03bb7
Parents:
4b3a24a
Message:

Fix probleme when no update delay

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • map.py

    r274d24b ra300c14  
    149149    if delay: 
    150150        delay = delay[0]/60/60/24 
     151    else: 
     152        delay = 0 
    151153 
    152154    return template('map/index', categories=categories, lat=params["lat"], lon=params["lon"], zoom=params["zoom"], 
  • views/control/updates.tpl

    r91dcf8c ra300c14  
    11%rebase layout title=_("Last updates") 
    2 <p>{{_("Median delay:")}} {{liste[len(liste)/2][2]}}</p> 
     2<p>{{_("Median delay:")}} {{(liste[len(liste)/2][2]) if len(liste)>0 else ""}}</p> 
    33<table> 
    44<tr> 
Note: See TracChangeset for help on using the changeset viewer.