Skip to content

Commit

Permalink
If there is same version tags, use newer one
Browse files Browse the repository at this point in the history
  • Loading branch information
dvershinin committed Mar 11, 2023
1 parent 9080a1c commit fca5520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lastversion/GitHubRepoSession.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ def get_latest(self, pre_ok=False, major=None):
tag_date = parser.parse(tag['updated'])
if ret and ret['version'] == version and ret['tag_date'] >= tag_date:
log.info(
'Tag {} matches already selected version but not newer date than we already found'.format(tag_name)
'Tag {} matches already selected version and is not newer'.format(tag_name)
)
continue
if ret and tag_date + timedelta(days=365) < ret['tag_date']:
Expand Down

0 comments on commit fca5520

Please sign in to comment.