Created
December 15, 2018 19:51
-
-
Save parzibyte/272d213486407dd8162c5a151410dd66 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def eliminar(id): | |
base_de_datos = obtener_bd() | |
resultado = base_de_datos.productos.delete_one( | |
{ | |
'_id': ObjectId(id) | |
}) | |
return resultado.deleted_count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment