Example #1
0
 def all(cls):
     x = DB.find(cls.collection, {})
     return [cls(**i) for i in x]
Example #2
0
 def getMany(cls, k, v):
     allalerts = DB.find(cls.collection, {k: v})
     return [cls(**i) for i in allalerts]
Example #3
0
 def findMany(cls, k, v):
     x = DB.find(cls.collection, {k: v})
     return [cls(**i) for i in x]
Example #4
0
 def all(cls):
     allalerts = DB.find(cls.collection, {})
     return [cls(**i) for i in allalerts]