mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Don't run migration potentially getting new settings from gitlab when not needed
This commit is contained in:
parent
46e9318e02
commit
89edc1b443
|
@ -8,13 +8,12 @@ import sys
|
||||||
from src.migrations.utils import return_example_file
|
from src.migrations.utils import return_example_file
|
||||||
|
|
||||||
logger = logging.getLogger("rcgcdw.migrations.1.13.1.1")
|
logger = logging.getLogger("rcgcdw.migrations.1.13.1.1")
|
||||||
base_file = return_example_file()
|
|
||||||
new_settings = settings.copy()
|
new_settings = settings.copy()
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
global base_file
|
|
||||||
if "event_appearance" not in settings:
|
if "event_appearance" not in settings:
|
||||||
logger.info("Running migration 1.13.1.1")
|
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
|
if "event_appearance" not in base_file: # if local base file is outdated, download from repo
|
||||||
base_file = return_example_file(force=True)
|
base_file = return_example_file(force=True)
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue