Making sum metrics for numeric columns
This commit is contained in:
parent
1d6d821008
commit
aea304d814
|
|
@ -439,6 +439,8 @@ class Table(Model, Queryable, AuditMixinNullable):
|
|||
str(datatype).startswith('STRING')):
|
||||
dbcol.groupby = True
|
||||
dbcol.filterable = True
|
||||
elif str(datatype).upper() in ('DOUBLE', 'FLOAT', 'INT', 'BIGINT'):
|
||||
dbcol.sum = True
|
||||
db.session.merge(self)
|
||||
self.columns.append(dbcol)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue