Skip to content
Extraits de code Groupes Projets
Valider 9ebddf0f rédigé par Alexandre Morignot's avatar Alexandre Morignot
Parcourir les fichiers

[residentadvisor] handles empty price

parent 6e9952a3
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -23,11 +23,14 @@ def weboob_get(id):
event = backends['residentadvisor'].get_event(id)
return {'title': event.summary,
result = {'title': event.summary,
'day': event.start_date.strftime('%d'),
'month': event.start_date.strftime('%m'),
'year': event.start_date.strftime('%Y'),
'place': event.location,
'desc': '%i euros' % event.price,
'url': event.url}
if event.price:
result['desc'] = '%i euros' % event.price
return result
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter