Commit 52c3c5bc authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

refactor: rename force update avatar option

parent 69a66605
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ class Synchronizer:
        self.project_description = project_description
        self.dry_run = dry_run
        self.continue_on_error = continue_on_error
        self.update_avatar = update_avatar
        self.force_update_avatar = update_avatar
        self.errors = []
        self.warnings = []
        self.groups_count = 0
@@ -469,7 +469,7 @@ class Synchronizer:
            and dest_avatar_url
            and src_avatar_url != f"{src_web_url}/-/avatar"
            # and not self.look_same_resources(src_avatar_url, dest_avatar_url)
            and (dest_avatar_url == f"{dest_web_url}/-/avatar" or self.update_avatar)
            and (dest_avatar_url == f"{dest_web_url}/-/avatar" or self.force_update_avatar)
        ):
            if self.dry_run:
                print(
@@ -629,7 +629,7 @@ class Synchronizer:
        src_avatar_url = src_group.avatar_url
        dest_avatar_url = dest_group.avatar_url
        if (
            src_avatar_url and (dest_avatar_url is None or self.update_avatar)
            src_avatar_url and (dest_avatar_url is None or self.force_update_avatar)
            # and not self.look_same_resources(src_avatar_url, dest_avatar_url)
        ):
            if self.dry_run: