Commit 7c030ad9 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Added a new script for migration. [skip ci]

parent 373e203d
Pipeline #48142 skipped
import sys
from nomad import infrastructure
from nomad.migration import Package
from nomad.processing import Upload
infrastructure.setup_logging()
infrastructure.setup_mongo()
sources = sys.argv[1:]
names = list(package.package_id for package in Package.objects(upload_id__in=sources))
targets = Upload.objects(name__in=names)
for target in targets:
print(targets.upload_id)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment