Closed jdeniau closed 4 years ago
Bitbucket user dream approved :heavy_check_mark: the pull request on 2016-01-14 16:03
@jdeniau commented on 2016-01-15 07:40
Outdated location: line 236 of
datection/export.py
Est-ce qu'on ne devrait pas utiliser le force_lower_bound = datetime.now
?
@jdeniau commented on 2016-01-15 07:40
Outdated location: line 238 of
datection/export.py
Il vaut mieux stocker la valeur de now en dehors de la boucle for
, sinon tu la recalcule à chaque itération
@jnieuviarts commented on 2016-01-15 08:55
Location:
datection/export.py
Il vaut mieux stocker la valeur de now en dehors de la boucle
for
, sinon tu la recalcule à chaque itération
Bien vu ;-)
@jnieuviarts commented on 2016-01-15 08:57
Location:
datection/export.py
Est-ce qu'on ne devrait pas utiliser le
force_lower_bound = datetime.now
?
En effet, bonne idée. J'ai par contre conservé le test pour gérer le cas "None" renvoyé par l'itérateur.
J'ai aussi ajouté une condition dans l'itérateur qui ne gérait pas le cas ou le lower_bound était déjà un datetime (le time était écrasé)
@jdeniau approved :heavy_check_mark: the pull request on 2016-01-15 14:17