From 89edc1b443550b39e26c44da5d872051c0424267 Mon Sep 17 00:00:00 2001 From: Frisk Date: Mon, 3 May 2021 18:21:37 +0200 Subject: [PATCH] Don't run migration potentially getting new settings from gitlab when not needed --- src/migrations/11311.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/migrations/11311.py b/src/migrations/11311.py index ec966b2..05c1584 100644 --- a/src/migrations/11311.py +++ b/src/migrations/11311.py @@ -8,13 +8,12 @@ import sys from src.migrations.utils import return_example_file logger = logging.getLogger("rcgcdw.migrations.1.13.1.1") -base_file = return_example_file() new_settings = settings.copy() def run(): - global base_file if "event_appearance" not in settings: logger.info("Running migration 1.13.1.1") + base_file = return_example_file() if "event_appearance" not in base_file: # if local base file is outdated, download from repo base_file = return_example_file(force=True) try: