Skip to content

Commit

Permalink
refactor: Database file list
Browse files Browse the repository at this point in the history
Signed-off-by: William Moreno Reyes CP|MBA <wmoreno@bmogroup.solutions>
  • Loading branch information
williamjmorenor committed Jul 14, 2024
1 parent 107c858 commit 86c60ec
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cacao_accounting_desktop/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,12 @@
APP_BACKUP_DIR.mkdir(parents=True, exist_ok=True)


# ---------------------------------------------------------------------------------------
# Se define aquí para evitar un error de directorio no encontrado.
# ---------------------------------------------------------------------------------------
FILE_LIST = os.listdir(APP_DATA_DIR)


# ---------------------------------------------------------------------------------------
# Funciones auxiliares
# ---------------------------------------------------------------------------------------
def get_database_file_list():
"""Return database files as a list. """
FILE_LIST = os.listdir(APP_DATA_DIR)
DB_FILES = []
for file in FILE_LIST:
if file.endswith(".db"):
Expand Down

0 comments on commit 86c60ec

Please sign in to comment.