diff --git a/models/x_analysis.py b/models/x_analysis.py index 7097557..8a5b2ec 100644 --- a/models/x_analysis.py +++ b/models/x_analysis.py @@ -260,7 +260,10 @@ class XAnalysis: qry = sa.select().where(*where_account) sql = str(qry.compile(compile_kwargs={"literal_binds": True})) where_account_str = sql.split('WHERE ')[1] - where_account_str = where_account_str.split('AND')[0] + if "orderid" in where_account_str: + where_account_str = "1=1" + else: + where_account_str = where_account_str.split('AND')[0] if self.game == 'huixie' and quota == '#distinct_id': event_n='new_device' else: