Skip to content

Commit

Permalink
correccion de de proceso
Browse files Browse the repository at this point in the history
  • Loading branch information
RiveroDev committed Dec 8, 2020
1 parent 754b9b3 commit d163556
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DataBaseCreat.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self):

def renameDB(self):
print("Desea crear una Nueva Base de datos: S/N")
estado = input("ingrese: ")
estado = input("ingrese respuesta: ")
if estado.upper() == "S":
nuevoNombre = (input("Escriba el Nombre de la BD: ")+".db")
self.nameDataBase = nuevoNombre
Expand All @@ -35,7 +35,7 @@ def crearBaseDatos(self):
print("La Base de datos existe")
else:
print("La Base de datos no Existe desea crrear una: S/N")
opcion = input()
opcion = input("ingrese respuesta: ")
if opcion.upper() == "S":
db = sq3.connect(self.nameDataBase)
db.close()
Expand Down
Binary file added __pycache__/DataBaseCreat.cpython-38.pyc
Binary file not shown.
Empty file added papa.db
Empty file.
11 changes: 11 additions & 0 deletions pruebas .py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#
# este es un archivo para realizar pruebas en las diferentes clases y objetos
#

import DataBaseCreat as DTBS

basedatos = DTBS.CreadorBD()

basedatos.renameDB()
print(basedatos.existeBaseDatos())
basedatos.crearBaseDatos()

0 comments on commit d163556

Please sign in to comment.