Parcourir la source

Small bugfix in mongDB datasource in multi direction order param

Yann Weber il y a 8 ans
Parent
révision
5b987857bf
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2
    1
      plugins/mongodb_datasource/datasource.py

+ 2
- 1
plugins/mongodb_datasource/datasource.py Voir le fichier

@@ -494,10 +494,11 @@ field/operator couple in a query. We will keep only the first one")
494 494
 
495 495
     ##@brief Generate a comparison function for post reccursion sorting in
496 496
     #select
497
+    #@return a lambda function that take 2 dict as arguement
497 498
     @classmethod
498 499
     def __generate_lambda_cmp_order(cls, order):
499 500
         if len(order) == 0:
500
-            return lambda a,b: False
501
+            return lambda a,b: 0
501 502
         glco = cls.__generate_lambda_cmp_order
502 503
         fname, cmpdir = order[0]
503 504
         order = order[1:]

Loading…
Annuler
Enregistrer