保留两个小数位
This commit is contained in:
parent
67eb6d7271
commit
b84b6281fb
@ -124,7 +124,8 @@ class ToSql:
|
||||
select_exprs + [func.count(sa.distinct(self.columns[event['event_attr_id']])).label('values')])
|
||||
else:
|
||||
qry = sa.select(
|
||||
select_exprs + [getattr(func, analysis)(self.columns[event['event_attr_id']]).label('values')])
|
||||
select_exprs + [
|
||||
func.round(getattr(func, analysis)(self.columns[event['event_attr_id']]), 2).label('values')])
|
||||
|
||||
qry = qry.where(and_(*where))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user