Skip to content

Commit

Permalink
Merge pull request #72 from ArtificialQualia/dev
Browse files Browse the repository at this point in the history
fixes #71
  • Loading branch information
ArtificialQualia committed Feb 10, 2021
2 parents 6cf5304 + 954e8c9 commit 9bea49f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PyEveLiveDPS/logreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def __init__(self, mainWindow, characterMenu):
oneDayAgo = datetime.datetime.now() - datetime.timedelta(hours=24)
fileList = sorted(os.listdir(self.path), key=lambda file: os.stat(os.path.join(self.path, file)).st_mtime)
for filename in fileList:
timeString = filename.strip(".txt")
timeString = re.sub(r'_[0-9]*\.txt$', '', filename)
try:
fileTime = datetime.datetime.strptime(timeString, "%Y%m%d_%H%M%S")
except ValueError:
Expand Down

0 comments on commit 9bea49f

Please sign in to comment.