1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-21 01:32:10 +01:00

Merge pull request #1684 from dmach/xpathquery-more-operators

Add more operators to XPathQuery
This commit is contained in:
Daniel Mach 2025-01-03 15:18:00 +01:00 committed by GitHub
commit 69700c5724
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,16 @@ class XPathQuery:
https://docs.djangoproject.com/en/dev/topics/db/queries/#complex-lookups-with-q-objects
"""
VALID_OPS = ["eq", "contains"]
VALID_OPS = [
"eq",
"gt",
"gteq",
"lt",
"lteq",
"contains",
"ends_with",
"starts_with",
]
def __init__(self, **kwargs):
self.xpath = ""