Updated the comparison operation to properly calculate mongo connection version

minor changes made to fix quality issues

changes made as suggested

removed unused import statement
This commit is contained in:
aarif
2019-10-01 18:35:47 +05:00
parent 7be6acb880
commit c7a05ecf77

View File

@@ -755,7 +755,7 @@ class SplitMongoModuleStore(SplitBulkWriteMixin, ModuleStoreWriteBase):
"""
Returns the wire version for mongo. Only used to unit tests which instrument the connection.
"""
return self.db_connection.mongo_wire_version
return self.db_connection.mongo_wire_version()
def _drop_database(self, database=True, collections=True, connections=True):
"""