From 051faf78b823deaaaece9e381550670ee5bf5310 Mon Sep 17 00:00:00 2001 From: Manuel Schmid Date: Thu, 25 Jan 2024 23:49:25 +0100 Subject: [PATCH] fix: use correct default value in metadata check for created_by --- modules/async_worker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/async_worker.py b/modules/async_worker.py index 4ee8b833..e563e667 100644 --- a/modules/async_worker.py +++ b/modules/async_worker.py @@ -860,7 +860,7 @@ def worker(): metadata |= { 'software': f'Fooocus v{fooocus_version.version}', } - if modules.config.metadata_created_by != 'None': + if modules.config.metadata_created_by != '': metadata |= { 'created_by': modules.config.metadata_created_by } @@ -879,7 +879,7 @@ def worker(): "Version": f'Fooocus v{fooocus_version.version}' } - if modules.config.metadata_created_by != 'None': + if modules.config.metadata_created_by != '': generation_params |= { 'Created By': f'{modules.config.metadata_created_by}' }