Browse Source

Fixed the call to get method in LeRelation.get_max_rank()

Roland Haroutiounian 9 years ago
parent
commit
e55187cbf7
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      leapi/lerelation.py

+ 1
- 1
leapi/lerelation.py View File

@@ -133,7 +133,7 @@ class _LeRelation(lecrud._LeCrud):
133 133
     ## @returns The maximum assignable rank for this relation
134 134
     # @todo implementation
135 135
     def get_max_rank(self):
136
-        max_rank_result = self.__class__.get(query_filters=['*'],field_list=['rank'], order=[('rank', 'DESC')], limit=1)
136
+        max_rank_result = self.__class__.get(field_list=['rank'], order=[('rank', 'DESC')], limit=1)
137 137
         max_rank = max_rank_result[0].rank
138 138
         return max_rank+1
139 139
 

Loading…
Cancel
Save