mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
feat: progress bar improvements (#2962)
* feat: align progress bar vertically * feat: use fixed width for status text, remove ordinals * refactor: align progress to actions
This commit is contained in:
@@ -372,10 +372,6 @@ def get_file_from_folder_list(name, folders):
|
||||
return os.path.abspath(os.path.realpath(os.path.join(folders[0], name)))
|
||||
|
||||
|
||||
def ordinal_suffix(number: int) -> str:
|
||||
return 'th' if 10 <= number % 100 <= 20 else {1: 'st', 2: 'nd', 3: 'rd'}.get(number % 10, 'th')
|
||||
|
||||
|
||||
def makedirs_with_log(path):
|
||||
try:
|
||||
os.makedirs(path, exist_ok=True)
|
||||
|
||||
Reference in New Issue
Block a user