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

changeset_metadata: use the sql query builder

parent 4d98b5da78a3
......@@ -165,9 +165,14 @@ class timeseries(SeriesServices):
def changeset_metadata(self, cn, csid):
assert isinstance(csid, int)
sql = (f'select metadata from "{self.namespace}".changeset '
f'where id = {csid}')
return cn.execute(sql).scalar()
q = sqlq(
f'id = %(csid)s', csid=csid
def type(self, cn, name):
return 'primary'
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