def _addq_WF(q): filt_from_fw = {} if session.get('fw_filt'): filt_from_fw = fwapp_util.wf_filt_given_fw_filt( session.get('fw_filt'), app.lp) return { "$and": [q, app.BASE_Q_WF, session.get('wf_filt', {}), filt_from_fw]}
def _addq_WF(q): filt_from_fw = {} if session.get('fw_filt'): filt_from_fw = fwapp_util.wf_filt_given_fw_filt( session.get('fw_filt'), app.lp) return { "$and": [q, app.BASE_Q_WF, session.get('wf_filt', {}), filt_from_fw]}