Skip to content
Snippets Groups Projects
Commit 3787acf1 authored by Wernle, Alexandra Nicole's avatar Wernle, Alexandra Nicole
Browse files

Slight change to default url to upload directly to metadata webservice and...

Slight change to default url to upload directly to metadata webservice and changed alternate status to legacy instead of new.
parent ce1e6a38
No related branches found
No related tags found
1 merge request!227Changes to copy_absolutes.py and new copy_observatory.py
......@@ -38,7 +38,7 @@ def copy_absolutes(
show_default="environment variable GITLAB_API_TOKEN",
),
metadata_url: str = typer.Option(
default="https://geomag.usgs.gov/ws/secure",
default="https://geomag.usgs.gov/ws/secure/metadata",
help="URL to metadata web service",
metavar="URL",
),
......@@ -113,7 +113,7 @@ def create_reading_metadata(reading: Reading) -> Metadata:
network="NT",
starttime=min(measurement_times),
station=reading.metadata["station"],
status="reviewed" if reading.metadata.get("reviewed") else "new",
status="reviewed" if reading.metadata.get("reviewed") else "legacy",
updated_by=reading.metadata.get("reviewer"),
)
return metadata
......
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