Pārlūkot izejas kodu

Investigating strange error

ogert 5 gadi atpakaļ
vecāks
revīzija
7de521cc96
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      cdplib/db_handlers/MongodbHandler.py

+ 2 - 1
cdplib/db_handlers/MongodbHandler.py

@@ -289,7 +289,8 @@ class MongodbHandler:
             self._log.log_and_raise_error(('An error occured trying to query data from {}, with query {}: {}:{}. \nError:{}').format(collection_name, attribute, comparison_operator, attribute_value, error))
             self._log.log_and_raise_error(('An error occured trying to query data from {}, with query {}: {}:{}. \nError:{}').format(collection_name, attribute, comparison_operator, attribute_value, error))
             return None
             return None
 
 
-        if len(list(data))> 0:
+        print(len(list(data)))
+        if len(list(data)) > 0:
             if return_as_dataframe:
             if return_as_dataframe:
                 return self.convert_mongo_data_into_dataframe(data, index, collection_name)
                 return self.convert_mongo_data_into_dataframe(data, index, collection_name)
             else:
             else: