When copying out the script, we are including a qualified value rather than just the value itself. I am going to submit a bug for this, but the following should work every time:
provider = 'default'
limit = 100
query = {
"options": {
"includeUdtMembers": True,
"includeUdtDefinitions": False
},
"condition": {
"attributes": {
"values": [],
"requireAll": True
},
"properties": {
"op": "Or",
"conditions": [
{
"op": "And",
"conditions": [
{
"prop": "name",
"comp": "Equal",
"value": "MyTagName"
},
{
"prop": "value",
"comp": "Equal",
"value": "1"
}
]
}
]
}
},
"returnProperties": [
"tagType",
"quality"
]
}
results = system.tag.query(provider, query, limit)