File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -400,13 +400,18 @@ def GetLastKicksDate(self,kickId) -> str:
400400
401401 def GetLastSubKicksDate (self , kickId ):
402402 lastSubDate = self .GetLastSubDate (kickId )
403- lastSubDateObj = datetime .datetime .fromisoformat (lastSubDate )
404403 lastKicksDate = self .GetLastKicksDate (kickId )
405- lastKicksDateObj = datetime .datetime .fromisoformat (lastKicksDate )
406404 lastDate = ""
407- if lastSubDateObj > lastKicksDateObj :
405+ if lastSubDate and lastKicksDate :
406+ lastSubDateObj = datetime .datetime .fromisoformat (lastSubDate )
407+ lastKicksDateObj = datetime .datetime .fromisoformat (lastKicksDate )
408+ if lastSubDateObj > lastKicksDateObj :
409+ lastDate = lastSubDate
410+ else :
411+ lastDate = lastKicksDate
412+ elif lastSubDate :
408413 lastDate = lastSubDate
409- else :
414+ elif lastKicksDate :
410415 lastDate = lastKicksDate
411416 return lastDate
412417
You can’t perform that action at this time.
0 commit comments