Skip to content

Commit

Permalink
fix _get_json
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Mar 3, 2024
1 parent 8ba7b28 commit a10dbd8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions backoffice/remote_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ def folder(self) -> str:
"""The S3 (sub)prefix of this resource"""
return self.id

@property
def versions_path(self) -> str:
return f"{self.id}/versions.json"

def get_versions(self) -> Versions:
return self._get_json(Versions)

Expand Down Expand Up @@ -89,7 +85,7 @@ def stage_new_version(self, package_url: str) -> StagedVersion:
return ret

def _get_json(self, typ: Type[J]) -> J:
path = f"{self.folder}{type.__name__.lower()}.json"
path = f"{self.folder}{typ.__name__.lower()}.json"
data = self.client.load_file(path)
if data is None:
return typ()
Expand Down

0 comments on commit a10dbd8

Please sign in to comment.