bbdd-utils 0.3.11__tar.gz → 0.3.12__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {bbdd_utils-0.3.11 → bbdd_utils-0.3.12}/PKG-INFO +1 -1
- {bbdd_utils-0.3.11 → bbdd_utils-0.3.12}/bbdd_utils/utils.py +2 -0
- {bbdd_utils-0.3.11 → bbdd_utils-0.3.12}/bbdd_utils.egg-info/PKG-INFO +1 -1
- {bbdd_utils-0.3.11 → bbdd_utils-0.3.12}/setup.py +1 -1
- {bbdd_utils-0.3.11 → bbdd_utils-0.3.12}/LICENSE +0 -0
- {bbdd_utils-0.3.11 → bbdd_utils-0.3.12}/README.md +0 -0
- {bbdd_utils-0.3.11 → bbdd_utils-0.3.12}/bbdd_utils/__init__.py +0 -0
- {bbdd_utils-0.3.11 → bbdd_utils-0.3.12}/bbdd_utils.egg-info/SOURCES.txt +0 -0
- {bbdd_utils-0.3.11 → bbdd_utils-0.3.12}/bbdd_utils.egg-info/dependency_links.txt +0 -0
- {bbdd_utils-0.3.11 → bbdd_utils-0.3.12}/bbdd_utils.egg-info/top_level.txt +0 -0
- {bbdd_utils-0.3.11 → bbdd_utils-0.3.12}/pyproject.toml +0 -0
- {bbdd_utils-0.3.11 → bbdd_utils-0.3.12}/setup.cfg +0 -0
@@ -88,6 +88,8 @@ def Insert(conn, tabla, data):
|
|
88
88
|
# Si `data` es un solo diccionario, conviértelo en una lista
|
89
89
|
if isinstance(data, dict):
|
90
90
|
data = [data]
|
91
|
+
if isinstance(data, tuple):
|
92
|
+
data = list(data)
|
91
93
|
# Inserta cada elemento de la lista en la tabla
|
92
94
|
for registro in data:
|
93
95
|
columnas = ", ".join(registro.keys())
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|