File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 11from typing import Union , TYPE_CHECKING
22
3+ from ravendb .documents .queries .facets .misc import FacetTermSortMode
34from ravendb .tools .utils import Utils
45from abc import ABCMeta
56from enum import Enum
@@ -197,16 +198,6 @@ def __str__(self):
197198 return self .value
198199
199200
200- class FacetTermSortMode (Enum ):
201- value_asc = "ValueAsc"
202- value_desc = "ValueDesc"
203- hits_asc = "HitsAsc"
204- hits_desc = "HitsDesc"
205-
206- def __str__ (self ):
207- return self .value
208-
209-
210201class OldFacet (object ):
211202 def __init__ (
212203 self ,
@@ -218,7 +209,7 @@ def __init__(
218209 aggregation_field = None ,
219210 aggregation_type = None ,
220211 max_result = None ,
221- term_sort_mode = FacetTermSortMode .value_asc ,
212+ term_sort_mode = FacetTermSortMode .VALUE_ASC ,
222213 include_remaining_terms = False ,
223214 ):
224215 """
You can’t perform that action at this time.
0 commit comments