Skip to content
Snippets Groups Projects
Commit d89a92ae authored by vlorentz's avatar vlorentz
Browse files

Fix mypy error

parent fb2c2d82
No related branches found
No related tags found
No related merge requests found
......@@ -285,7 +285,7 @@ def migrate_deposit_swhid_context_null(apps, schema_editor) -> None:
)
deposit.swh_id_context = QualifiedSWHID(
object_type=ObjectType.DIRECTORY,
object_id=dir_id,
object_id=hash_to_bytes(dir_id),
origin=origin,
visit=CoreSWHID(object_type=ObjectType.SNAPSHOT, object_id=snp_id),
anchor=CoreSWHID(object_type=ObjectType.REVISION, object_id=rev_id_bytes),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment