File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1111def list_data (params ):
1212 ref = DB .collection ("categories" )
1313
14- query = ref .order_by ("category" , "asc" )
14+ query = ref .order_by ("category" , direction = firestore . Query . ASCENDING )
1515
1616 if "category" in params :
1717 category_array = convert_to_array (params ["category" ])
@@ -22,7 +22,7 @@ def list_data(params):
2222
2323 documents = query .stream ()
2424 data = []
25-
25+
2626 if "onlyname" in params :
2727 for doc in documents :
2828 data .append (doc .get ("category" ))
Original file line number Diff line number Diff line change 1414def list_data (params ):
1515 ref = DB .collection ("technologies" )
1616
17- query = ref .order_by ("technology" , 'asc' )
17+ query = ref .order_by ("technology" , direction = firestore . Query . ASCENDING )
1818
1919 if "technology" in params :
2020 arfilters = []
@@ -34,7 +34,7 @@ def list_data(params):
3434
3535 documents = query .stream ()
3636 data = []
37-
37+
3838 if "onlyname" in params and "client" not in params :
3939 appended_tech = set ()
4040 for doc in documents :
You can’t perform that action at this time.
0 commit comments