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:
parent
ffca873272
commit
5ab663c591
@ -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 = ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user