Skip to content

Commit

Permalink
update_stable_version: Versions are not hashes (yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
techtonik authored Nov 10, 2017
1 parent f093076 commit 44cc34e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions readthedocs/projects/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,8 @@ def update_stable_version(self):
project that can be considered stable.
"""
versions = self.versions.all()
# this returns packaging.version.Version object with human readable
# tag name or RTD labels (`stable` or `latest`)
new_stable = determine_stable_version(versions)
if new_stable:
current_stable = self.get_stable_version()
Expand Down

0 comments on commit 44cc34e

Please sign in to comment.