Skip to content

Commit 5a035c9

Browse files
daveoconnorkarimarie67
authored andcommitted
Fix issue with version not found errors when running certain tasks on version import
1 parent 178d46c commit 5a035c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

versions/tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def import_version(
148148
# Get the release date for the version
149149
if get_release_date and not version.release_date:
150150
commit_sha = tag["commit"]["sha"]
151-
get_release_date_for_version.delay(version.pk, commit_sha, token=token)
151+
get_release_date_for_version(version.pk, commit_sha, token=token)
152152

153153
# Load release downloads
154154
import_release_downloads(version.pk)
@@ -388,7 +388,7 @@ def import_library_versions(version_name, token=None, version_type="tag"):
388388
gc_removed_submodules.delay(library_keys, version_name)
389389

390390
# Retrieve and store the docs url for each library-version in this release
391-
get_and_store_library_version_documentation_urls_for_version.delay(version.pk)
391+
get_and_store_library_version_documentation_urls_for_version(version.pk)
392392

393393
# Load maintainers for library-versions
394394
call_command("update_maintainers", "--release", version.name)

0 commit comments

Comments
 (0)