Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shadeofblue committed Aug 28, 2023
1 parent b4ca50f commit 0660c5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dapp_stats/dapp_size_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from dapp_runner.descriptor.dapp import PayloadDescriptor
from dapp_runner.descriptor.parser import load_yamls

from yapapi.payload.vm import _DEFAULT_REPO_SRV, resolve_repo_srv
from yapapi.payload.vm import DEFAULT_REPOSITORY_URL


class DappSizeResolverError(Exception):
Expand Down Expand Up @@ -106,8 +106,7 @@ def _resolve_payload_size_for_unknown_runtime(cls, payload: PayloadDescriptor) -

@classmethod
def _fetch_image_url_from_image_hash(cls, image_hash: str) -> str:
repo_url = resolve_repo_srv(_DEFAULT_REPO_SRV)
repo_package_url = f"{repo_url}/image.{image_hash}.link"
repo_package_url = f"{DEFAULT_REPOSITORY_URL}/image.{image_hash}.link"

try:
return cls._fetch_http_response_body(repo_package_url).decode("utf-8")
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ authorized_licenses = [
"MPL-2.0",
"Mozilla Public License 2.0 (MPL 2.0)",
"MIT",
"MIT License",
"LGPL",
"LGPL-3.0-or-later",
"GNU Lesser General Public License v3 or later (LGPLv3+)",
Expand Down

0 comments on commit 0660c5b

Please sign in to comment.