Commit a91e9789 authored by Aurélien Campéas's avatar Aurélien Campéas
Browse files

metadata: updating entails a complete remplacement of the (non-internal) metadata

This simplifies the overall handling.
parent 8ebaec6b7eb8
......@@ -132,11 +132,13 @@ class TimeSerie(SeriesServices):
assert isinstance(metadata, dict)
assert not set(metadata.keys()) & self.metakeys
meta = self.metadata(cn, seriename)
# remove al but internal stuff
newmeta = {key: meta[key] for key in self.metakeys}
reg = self.schema.registry
sql = reg.update().where(
reg.c.seriename == seriename
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