Skip to content

Commit

Permalink
Merge pull request #722 from Scheirle/pcs_fix_721
Browse files Browse the repository at this point in the history
[pelican_comment_system] Fix comparison of offset-naive and offset-aware datetimes
  • Loading branch information
justinmayer committed May 23, 2016
2 parents 3b8055c + 89ca956 commit c478eb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pelican_comment_system/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def getReply(self, slug):
return None

def __lt__(self, other):
return self.metadata['date'] < other.metadata['date']
return self.date < other.date

def sortReplies(self):
for r in self.replies:
Expand Down

0 comments on commit c478eb7

Please sign in to comment.