Skip to content

Commit aaef73c

Browse files
authored
Merge pull request #91 from macagua/2025_upgrades
2025 upgrades
2 parents 043756e + 5469558 commit aaef73c

31 files changed

+788
-67
lines changed

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ build:
1515
# rust: "1.70"
1616
# golang: "1.20"
1717

18-
# Build documentation in the docs/ directory with Sphinx
18+
# Build documentation in the "build/" directory with Sphinx
1919
sphinx:
2020
configuration: source/conf.py
2121

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
SPHINXOPTS =
66
SPHINXBUILD = sphinx-build
77
PAPER =
8-
SOURCEDIR = source
98
BUILDDIR = build
9+
SOURCEDIR = source
1010

1111
# Internal variables.
1212
PAPEROPT_a4 = -D latex_paper_size=a4

recursos/leccion2/mysql/crud/mysql_record_delete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def eliminar_registro():
3838
# Cerrar el cursor
3939
cursor.close()
4040
except pymysql.err.Error as error:
41-
logging.info(f"¡Fallo la eliminación de registro(s) en la tabla!: {error}")
41+
logging.error(f"¡Fallo la eliminación de registro(s) en la tabla!: {error}")
4242
finally:
4343
if conexion:
4444
# Cerrar la conexión a la base de datos

recursos/leccion2/mysql/crud/mysql_record_insert.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def insertar_registro():
6363
)
6464
# Insertar un nuevo registro en la tabla
6565
cursor.execute(
66-
INSERT_SQL, (4, "Liliana", "Andradez", "4001", "+58-414-6782473")
66+
INSERT_SQL, (4, "Liliana", "Andradez", "3105", "+58-414-6782473")
6767
)
6868
# Confirmar la inserción del registro
6969
conexion.commit()
@@ -73,7 +73,7 @@ def insertar_registro():
7373
# Cerrar el cursor
7474
cursor.close()
7575
except pymysql.err.Error as error:
76-
logging.info(f"¡Fallo la inserción de registro(s) en la tabla!: {error}")
76+
logging.error(f"¡Fallo la inserción de registro(s) en la tabla!: {error}")
7777
finally:
7878
if conexion:
7979
# Cerrar la conexión a la base de datos

recursos/leccion2/mysql/crud/mysql_record_select.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def consultar_registro():
4545
# Cerrar el cursor
4646
cursor.close()
4747
except pymysql.err.Error as error:
48-
logging.info(f"¡Fallo la consulta de registro(s) en la tabla!: {error}")
48+
logging.error(f"¡Fallo la consulta de registro(s) en la tabla!: {error}")
4949
finally:
5050
if conexion:
5151
# Cerrar la conexión a la base de datos

recursos/leccion2/mysql/crud/mysql_record_update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def actualizar_registro():
4646
# Cerrar el cursor
4747
cursor.close()
4848
except pymysql.err.Error as error:
49-
logging.info(f"¡Fallo la actualización de registro(s) en la tabla!: {error}")
49+
logging.error(f"¡Fallo la actualización de registro(s) en la tabla!: {error}")
5050
finally:
5151
if conexion:
5252
# Cerrar la conexión a la base de datos

recursos/leccion2/mysql/sistema/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def insertar_registro(conexion_bd, insert_values, insert_sql):
143143
)
144144
# Insertar un nuevo registro en la tabla
145145
cursor.execute(
146-
insert_sql, (4, "Liliana", "Andradez", "4001", "+58-414-6782473")
146+
insert_sql, (4, "Liliana", "Andradez", "3105", "+58-414-6782473")
147147
)
148148
# Confirmar la inserción del registro
149149
conexion_bd.commit()

recursos/leccion2/postgresql/crud/postgresql_record_insert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def insertar_registro():
6969
)
7070
# Insertar un nuevo registro en la tabla
7171
cursor.execute(
72-
INSERT_SQL, (4, "Liliana", "Andradez", "4001", "+58-414-6782473")
72+
INSERT_SQL, (4, "Liliana", "Andradez", "3105", "+58-414-6782473")
7373
)
7474
# Confirmar la inserción del registro
7575
conexion.commit()

recursos/leccion2/postgresql/sistema/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def insertar_registro(conexion_bd, insert_values, insert_sql):
122122
)
123123
# Insertar un nuevo registro en la tabla
124124
cursor.execute(
125-
INSERT_SQL_SCRIPTS, (4, "Liliana", "Andradez", "4001", "+58-414-6782473")
125+
INSERT_SQL_SCRIPTS, (4, "Liliana", "Andradez", "3105", "+58-414-6782473")
126126
)
127127
logging.info(
128128
f"¡Fueron insertado(s) {cursor.rowcount} registro(s) correctamente en la tabla!\n"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
# Install the packages from PyPi repository.
12
SQLAlchemy==2.0.38
23
python-dotenv==1.0.1

0 commit comments

Comments
 (0)