Exemplo n.º 1
0
 def delete_lineup(id):
     Database.delete_one("lineups_golf", {"_id": id})
Exemplo n.º 2
0
 def delete_from_mongo(self) -> None:
     """
     Delete data from mongodb.
     """
     Database.delete_one(self.collection, {"_id": self._id})
Exemplo n.º 3
0
 def delete(self):
     """Deletes an object from the database."""
     return Database.delete_one(self._db_collection, {'_id': self._id})
Exemplo n.º 4
0
 def delete_by_username(cls, username):
     return Database.delete_one("Users", {'username': username})
Exemplo n.º 5
0
 def delete_by_name(cls, ingredient_name):
     return Database.delete_one("Ingredient", {'name': ingredient_name})