Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upRemove duplication of get_downloads #1600
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
gregmuellegger
Sep 7, 2015
Contributor
The Project.get_downloads is still used here:
readthedocs.org/readthedocs/api/base.py
Line 52 in 457823d
So I think we cannot remove one of the implementations.
|
The readthedocs.org/readthedocs/api/base.py Line 52 in 457823d So I think we cannot remove one of the implementations. |
gregmuellegger
closed this
Sep 7, 2015
gregmuellegger
added
Improvement
Status: invalid
labels
Sep 7, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
takotuesday commentedAug 26, 2015
These seem to be duplicate implementations:
https://github.com/rtfd/readthedocs.org/blob/master/readthedocs/builds/models.py#L167
and
https://github.com/rtfd/readthedocs.org/blob/master/readthedocs/projects/models.py#L422
It appears that the only implementation of get_downloads used, is within the Version class:
https://github.com/rtfd/readthedocs.org/search?utf8=%E2%9C%93&q=get_downloads
Is this legacy code that could be refactored?