Changeset View
Changeset View
Standalone View
Standalone View
swh/deposit/migrations/0018_migrate_swhids.py
Show All 9 Lines | |||||
import os | import os | ||||
from typing import Any, Dict, Optional, Tuple | from typing import Any, Dict, Optional, Tuple | ||||
from django.db import migrations | from django.db import migrations | ||||
from swh.core import config | from swh.core import config | ||||
from swh.deposit.config import DEPOSIT_STATUS_LOAD_SUCCESS | from swh.deposit.config import DEPOSIT_STATUS_LOAD_SUCCESS | ||||
from swh.model.hashutil import hash_to_bytes, hash_to_hex | from swh.model.hashutil import hash_to_bytes, hash_to_hex | ||||
from swh.model.identifiers import CoreSWHID, ObjectType, QualifiedSWHID | from swh.model.swhids import CoreSWHID, ObjectType, QualifiedSWHID | ||||
from swh.storage import get_storage as get_storage_client | from swh.storage import get_storage as get_storage_client | ||||
from swh.storage.algos.snapshot import snapshot_id_get_from_revision | from swh.storage.algos.snapshot import snapshot_id_get_from_revision | ||||
SWH_PROVIDER_URL = "https://www.softwareheritage.org" | SWH_PROVIDER_URL = "https://www.softwareheritage.org" | ||||
logger = logging.getLogger(__name__) | logger = logging.getLogger(__name__) | ||||
▲ Show 20 Lines • Show All 322 Lines • Show Last 20 Lines |