[historique.get_datetime] inversion des args
args !
This commit is contained in:
parent
66be47e496
commit
2bf07035ab
1 changed files with 2 additions and 2 deletions
|
@ -1027,9 +1027,9 @@ class historique(Attr):
|
||||||
"""Renvoie un objet datetime de la ligne correspondante"""
|
"""Renvoie un objet datetime de la ligne correspondante"""
|
||||||
datepart = self.value.split(',',1)[0]
|
datepart = self.value.split(',',1)[0]
|
||||||
try:
|
try:
|
||||||
return datetime.datetime.strptime(self.FORMAT, datepart)
|
return datetime.datetime.strptime(datepart, self.FORMAT)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
return datetime.datetime.strptime(self.FORMAT_OLD, datepart)
|
return datetime.datetime.strptime(datepart, self.FORMAT_OLD)
|
||||||
|
|
||||||
@crans_attribute
|
@crans_attribute
|
||||||
class info(Attr):
|
class info(Attr):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue