Changeset View
Changeset View
Standalone View
Standalone View
swh/graphql/backends/archive.py
# Copyright (C) 2022 The Software Heritage developers | |||||
# See the AUTHORS file at the top-level directory of this distribution | |||||
# License: GNU General Public License version 3, or any later version | |||||
# See top-level LICENSE file for more information | |||||
from swh.graphql import server | from swh.graphql import server | ||||
class Archive: | class Archive: | ||||
def __init__(self): | def __init__(self): | ||||
self.storage = server.get_storage() | self.storage = server.get_storage() | ||||
def get_origin(self, url): | def get_origin(self, url): | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |