def get_dsl_logoff_query(screen):
q = None
for evtid in config.EVENTS_LOGOFF:
tmp = Q("match",event_identifier=evtid)
if q is None:
q = tmp
else:
q = q | tmp
if screen is True:
for evtid in config.EVENTS_LOGOFF_SCREEN:
q = q | Q("match",event_identifier=evtid)
return q
评论列表
文章目录