We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b59828 commit c9d6b97Copy full SHA for c9d6b97
readthedocs/core/utils.py
@@ -35,25 +35,6 @@ def run_on_app_servers(command):
35
return ret
36
37
38
-def make_latest(project):
39
- """
40
- Useful for correcting versions with no latest, using the database.
41
-
42
- >>> no_latest = Project.objects.exclude(versions__slug__in=['latest'])
43
- >>> for project in no_latest:
44
- >>> make_latest(project)
45
46
- branch = project.default_branch or project.vcs_repo().fallback_branch
47
- version_data, created = Version.objects.get_or_create(
48
- project=project,
49
- slug=LATEST,
50
- type='branch',
51
- active=True,
52
- verbose_name=LATEST_VERBOSE_NAME,
53
- identifier=branch,
54
- )
55
56
57
def clean_url(url):
58
parsed = urlparse(url)
59
if parsed.scheme:
0 commit comments