fix: use correct default value in metadata check for created_by

This commit is contained in:
Manuel Schmid 2024-01-25 23:49:25 +01:00
parent 20b79788a0
commit 051faf78b8
No known key found for this signature in database
GPG Key ID: 32C4F7569B40B84B
1 changed files with 2 additions and 2 deletions

View File

@ -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}'
}