MarioPrzBasto commited on
Commit
39dc66d
·
verified ·
1 Parent(s): 7cbd8d8

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +0 -2
main.py CHANGED
@@ -229,10 +229,8 @@ async def list_similar_files():
229
 
230
  @app.get("/files/find/{search}")
231
  async def search_file(search: str):
232
- logging.info(f"Procurar por: {search}")
233
  try:
234
  for filename in os.listdir(BASE_DIR):
235
- logging.info(f"Verificando ficheiro: {filename}")
236
  if f"{search}" in filename and filename.endswith(".json"):
237
  filepath = os.path.join(BASE_DIR, filename)
238
  if os.path.isfile(filepath):
 
229
 
230
  @app.get("/files/find/{search}")
231
  async def search_file(search: str):
 
232
  try:
233
  for filename in os.listdir(BASE_DIR):
 
234
  if f"{search}" in filename and filename.endswith(".json"):
235
  filepath = os.path.join(BASE_DIR, filename)
236
  if os.path.isfile(filepath):