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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bbdd_utils
3
- Version: 0.3.11
3
+ Version: 0.3.12
4
4
  Summary: insertar datos en una base de datos SQL o NoSQL
5
5
  Author: Luis_J_Domingo
6
6
  Description-Content-Type: text/markdown
@@ -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())
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bbdd_utils
3
- Version: 0.3.11
3
+ Version: 0.3.12
4
4
  Summary: insertar datos en una base de datos SQL o NoSQL
5
5
  Author: Luis_J_Domingo
6
6
  Description-Content-Type: text/markdown
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='bbdd_utils',
5
- version='0.3.11',
5
+ version='0.3.12',
6
6
  packages=find_packages(),
7
7
  install_requires=[],
8
8
  author='Luis_J_Domingo',
File without changes
File without changes
File without changes
File without changes