style: Simplify code

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2506>
This commit is contained in:
jooola 2023-06-27 12:25:31 +00:00 committed by Georg Krause
parent cb4c27dce0
commit b20b33b838
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ class Command(BaseCommand):
self.stdout.write(f"Found {to_change.count()} uploads to update.")
target = options["target"] if options["target"] else options["source"]
target = options.get("target", options["source"])
for upl in to_change:
upl.audio_file = str(upl.source).replace(str(prefix), str(target))