def get_all(self):
"""
Returns:
result(collection): all elements in the Entries Table
"""
try:
entries_table = self.db["Entries_Table"]
result = entries_table.find()
print result[0]
return result
except errors.ServerSelectionTimeoutError:
print('ERROR : No connection could be made because'
'the target machine actively refused it')
return None
评论列表
文章目录