Skip to content

Commit

Permalink
Update baseline_by_relevance.py
Browse files Browse the repository at this point in the history
add relevance filter
  • Loading branch information
jgstew authored Mar 12, 2024
1 parent 68b875f commit 9afa1e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/baseline_by_relevance.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def main():
fixlets_rel = 'fixlets whose(name of it starts with "Update:") of bes sites whose( external site flag of it AND name of it = "Updates for Windows Applications Extended" )'

# this gets the info needed from the items to make the baseline:
session_relevance = f"""(it as string) of (url of site of it, ids of it, content id of default action of it | "Action1") of it whose(exists default action of it AND globally visible flag of it AND name of it does not contain "(Superseded)" AND exists applicable computers of it) of {fixlets_rel}"""
session_relevance = f"""(it as string) of (url of site of it, ids of it, content id of default action of it | "Action1") of it whose(exists default action of it AND globally visible flag of it AND name of it does not contain "(Superseded)" AND exists applicable computers whose(now - last report time of it < 60 * day) of it) of {fixlets_rel}"""

print("getting items to add to baseline...")
result = bes_conn.session_relevance_array(session_relevance)
Expand Down

0 comments on commit 9afa1e1

Please sign in to comment.