diff --git a/scripts/.sourcery.yaml b/scripts/.sourcery.yaml index 424f2d5e7077c1d2bc00234791d89b9d096dc13f..b5c068f1eba5d419c1a78eed413362ec8c82a12f 100644 --- a/scripts/.sourcery.yaml +++ b/scripts/.sourcery.yaml @@ -15,7 +15,6 @@ rule_settings: - use-fstring-for-formatting - replace-interpolation-with-fstring - use-fstring-for-concatenation - - remove-redundant-if - low-code-quality - for-append-to-extend - raise-specific-error diff --git a/scripts/gitlab_backup.py b/scripts/gitlab_backup.py index 0a05b48c48367bb7aea12d05c2d305933e3dfe36..4ff7f0c60fe55fa0d6213a819c760e0dc2ca048d 100755 --- a/scripts/gitlab_backup.py +++ b/scripts/gitlab_backup.py @@ -281,12 +281,11 @@ def main(args): in_started_state += 1 continue - if status == "finished": - print("Downloading export for {}".format(project)) - exportpath = p[project]["exportpath"] - with open(exportpath, "w+b") as f: - f.write(export.download()) - p[project]["downloaded"] = True + print("Downloading export for {}".format(project)) + exportpath = p[project]["exportpath"] + with open(exportpath, "w+b") as f: + f.write(export.download()) + p[project]["downloaded"] = True if in_started_state == 0: break print("Waiting for exports to be finished ({})".format(in_started_state))