Skip to content

Commit

Permalink
fun
Browse files Browse the repository at this point in the history
  • Loading branch information
lunamidori5 committed Jan 12, 2025
1 parent ccfc0f8 commit ed33b9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Webserver/Programs/Downloader/helper_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_api_key():
api_key = f.read()
break

if attempt_count > 1:
if attempt_count > 0:
print("Login failed, please try again manually")
print("API KEY not set, please log into Midori AI's Servers")
print("Run ``midori_ai_login -u \"username\"``")
Expand Down
5 changes: 1 addition & 4 deletions Webserver/Programs/File_manager/file_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ def confirm(text="Are you sure?"):
else:
print("Invalid input. Please enter 'y' or 'n'.")




def walk_directory(directory: pathlib.Path, tree: Tree) -> None:
"""Recursively build a Tree with directory contents."""
# Sort dirs first then by filename
Expand Down Expand Up @@ -265,7 +262,7 @@ def unpack_tar(tar_file, dst_dir):
spinner.succeed(text=f"Done moving files to {dst_dir}")

spinner.start(text=f"Cleaning up temporary folder: {temp_workfolder}")
os.rmdir(temp_workfolder)
remove_directory_recursively(temp_workfolder, spinner)
spinner.succeed(text=f"Done cleaning up temporary folder: {temp_workfolder}")

def upload_to_midori_ai(data: bytes):
Expand Down

0 comments on commit ed33b9a

Please sign in to comment.