diff --git a/update_event_view.py.template b/update_event_view.py.template index 99f9749..ef20fa5 100644 --- a/update_event_view.py.template +++ b/update_event_view.py.template @@ -33,9 +33,9 @@ res1 = client.execute(sql) sql = f"""create view {db}.event_view as select * from {db}.event -where lower(`#os`) != 'windows' +where (`#os`is null or lower(`#os`) != 'windows') and svrindex in {serverid} - and (orderid is null or not startsWith(orderid,'debugPay')) + and not startsWith(`orderid`,'debugPay') """ res2 = client.execute(sql) with open(svrid_file, 'w') as f: