diff --git a/geomagio/processing/copy_instrument.py b/geomagio/processing/copy_instrument.py index 32c2c71e779b119590eaa354987b07f991b2cc5b..1e0f0e582cde7b5ef5f4bfc638386237e32b5630 100644 --- a/geomagio/processing/copy_instrument.py +++ b/geomagio/processing/copy_instrument.py @@ -45,7 +45,7 @@ def copy_instrument( show_default="environment variable GITLAB_API_TOKEN", ), metadata_url: str = typer.Option( - default="https://staging-geomag.cr.usgs.gov/ws/secure/metadata", + default="https://geomag.usgs.gov/ws/secure/metadata", help="URL to metadata web service", metavar="URL", ), @@ -129,7 +129,7 @@ def create_metadata( category=MetadataCategory.INSTRUMENT, created_by=created_by_label, endtime=endtime, - metadata=metadata_class(**metadata), + metadata=(metadata_class(**metadata)).model_dump(), network="NT", location="R0", starttime=starttime, @@ -201,8 +201,7 @@ def upload_instrument_metadata( print("Updating metadata") return factory.update_metadata(metadata=instrument) - print("pretending to upload") - # return factory.create_metadata(metadata=instrument) + return factory.create_metadata(metadata=instrument) if __name__ == "__main__":