mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
fix: use correct default value in metadata check for created_by
This commit is contained in:
@@ -860,7 +860,7 @@ def worker():
|
|||||||
metadata |= {
|
metadata |= {
|
||||||
'software': f'Fooocus v{fooocus_version.version}',
|
'software': f'Fooocus v{fooocus_version.version}',
|
||||||
}
|
}
|
||||||
if modules.config.metadata_created_by != 'None':
|
if modules.config.metadata_created_by != '':
|
||||||
metadata |= {
|
metadata |= {
|
||||||
'created_by': modules.config.metadata_created_by
|
'created_by': modules.config.metadata_created_by
|
||||||
}
|
}
|
||||||
@@ -879,7 +879,7 @@ def worker():
|
|||||||
"Version": f'Fooocus v{fooocus_version.version}'
|
"Version": f'Fooocus v{fooocus_version.version}'
|
||||||
}
|
}
|
||||||
|
|
||||||
if modules.config.metadata_created_by != 'None':
|
if modules.config.metadata_created_by != '':
|
||||||
generation_params |= {
|
generation_params |= {
|
||||||
'Created By': f'{modules.config.metadata_created_by}'
|
'Created By': f'{modules.config.metadata_created_by}'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user