From 2f782ed81def381e17476e46e818fd1122ca5849 Mon Sep 17 00:00:00 2001 From: Jeremy Fee <jmfee@usgs.gov> Date: Fri, 18 Mar 2022 15:28:27 -0600 Subject: [PATCH] Update sqlalchemy deprecated tometadata to to_metadata --- geomagio/api/db/metadata_history_table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geomagio/api/db/metadata_history_table.py b/geomagio/api/db/metadata_history_table.py index 471869fe..8fbd785c 100644 --- a/geomagio/api/db/metadata_history_table.py +++ b/geomagio/api/db/metadata_history_table.py @@ -4,7 +4,7 @@ from .common import sqlalchemy_metadata from .metadata_table import metadata # create copy of original metadata table and add to sqlalchemy metadata -metadata_history = metadata.tometadata( +metadata_history = metadata.to_metadata( metadata=sqlalchemy_metadata, name="metadata_history" ) metadata_history.indexes.clear() -- GitLab