1.修复漏斗分析添加条件后不出数据

This commit is contained in:
李伟 2022-05-06 10:57:56 +08:00
parent 51d899c9d1
commit 6fedca29b4

View File

@ -243,11 +243,11 @@ class BehaviorAnalysis:
event_filter = []
for item in filts:
comparator = item['comparator']
if item['tableType'] == 'user':
if item['table_type'] == 'user':
where = user_filter
elif item['tableType'] == 'event':
elif item['table_type'] == 'event':
where = event_filter
elif item['tableType'] == 'user_label':
elif item['table_type'] == 'user_label':
user_cluster_def = UserClusterDef(self.game, item['columnName'], self.data_where)
await user_cluster_def.init()
sub_qry = user_cluster_def.to_sql_qry()
@ -260,7 +260,7 @@ class BehaviorAnalysis:
else:
continue
tbl = getattr(self, f'{item["tableType"]}_tbl')
tbl = getattr(self, f'{item["table_type"]}_tbl')
col = getattr(tbl.c, item['columnName'])
# 日期类型处理时区
if item.get('data_type') == 'datetime':