mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-30 19:54:16 -04:00
Add gte and lte as valid filters
This commit is contained in:
parent
6076e3af87
commit
57842ea31c
@ -317,7 +317,7 @@ public abstract record Filter<T> : Filter
|
|||||||
);
|
);
|
||||||
|
|
||||||
public static readonly Parser<Filter<T>> Ge = _GetOperationParser(
|
public static readonly Parser<Filter<T>> Ge = _GetOperationParser(
|
||||||
Parse.IgnoreCase("ge").Or(Parse.String(">=")).Token(),
|
Parse.IgnoreCase("ge").Or(Parse.IgnoreCase("gte")).Or(Parse.String(">=")).Token(),
|
||||||
(property, value) => new Ge(property, value)
|
(property, value) => new Ge(property, value)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -327,7 +327,7 @@ public abstract record Filter<T> : Filter
|
|||||||
);
|
);
|
||||||
|
|
||||||
public static readonly Parser<Filter<T>> Le = _GetOperationParser(
|
public static readonly Parser<Filter<T>> Le = _GetOperationParser(
|
||||||
Parse.IgnoreCase("le").Or(Parse.String("<=")).Token(),
|
Parse.IgnoreCase("le").Or(Parse.IgnoreCase("lte")).Or(Parse.String("<=")).Token(),
|
||||||
(property, value) => new Le(property, value)
|
(property, value) => new Le(property, value)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user