Skip to content

Commit

Permalink
tweak code to make it easier
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstew committed Aug 8, 2024
1 parent c29ba8a commit 9d39d58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/baseline_by_relevance.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

import besapi

FIXLET_RELEVANCE = '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" )'


def main():
"""Execution starts here"""
Expand All @@ -19,7 +21,7 @@ def main():
print(bes_conn.last_connected)

# change the relevance here to adjust which content gets put in a baseline:
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" )'
fixlets_rel = FIXLET_RELEVANCE

# 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 whose(now - last report time of it < 60 * day) of it) of {fixlets_rel}"""
Expand Down

0 comments on commit 9d39d58

Please sign in to comment.