From cd37411bd0edb22dadf06b5b293151148b0dd5cf Mon Sep 17 00:00:00 2001 From: Jackson Date: Wed, 3 Apr 2024 09:37:26 +0200 Subject: [PATCH] fixup! move server_name fetch in synadm media delete down --- synadm/cli/media.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/synadm/cli/media.py b/synadm/cli/media.py index 207d5c6..ec77ee9 100644 --- a/synadm/cli/media.py +++ b/synadm/cli/media.py @@ -274,7 +274,8 @@ def media_delete_cmd(helper, media_id, before_days, before, before_ts, click.echo("Combination of --media-id and --size not valid.") media_deleted = None elif media_id: - server_name = helper.retrieve_homeserver_name(helper.config["base_url"]) + server_name = helper.retrieve_homeserver_name( + helper.config["base_url"]) media_deleted = helper.api.media_delete(server_name, media_id) else: media_deleted = helper.api.media_delete_by_date_or_size(