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

Add more operators to XPathQuery

This commit is contained in:
Daniel Mach 2025-01-03 13:47:22 +01:00
parent ffca873272
commit 5ab663c591

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 = ""