Skip to content

Commit

Permalink
Merge pull request #4 from noranhe/main
Browse files Browse the repository at this point in the history
python 3.10 兼容
  • Loading branch information
vnpy committed Feb 20, 2022
2 parents 5db919d + ee49682 commit e672bfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vnpy_datamanager/ui/widget.py
Expand Up @@ -448,8 +448,8 @@ def __init__(self, start: datetime, end: datetime, parent=None):

def get_date_range(self) -> Tuple[datetime, datetime]:
""""""
start = self.start_edit.dateTime().toPyDateTime()
end = self.end_edit.dateTime().toPyDateTime() + timedelta(days=1)
start = self.start_edit.dateTime().toPython()
end = self.end_edit.dateTime().toPython() + timedelta(days=1)
return start, end


Expand Down

0 comments on commit e672bfa

Please sign in to comment.