From 5869655820e0553e1e9e9589084a190f3f89e173 Mon Sep 17 00:00:00 2001 From: esfalsa Date: Sun, 2 Apr 2023 19:38:13 -0700 Subject: [PATCH] Download dump in CLI mode if not found --- spyglass.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spyglass.py b/spyglass.py index 4db9960..f129ecd 100644 --- a/spyglass.py +++ b/spyglass.py @@ -236,6 +236,10 @@ def sanitize(string: str) -> Optional[str]: else: download_dump(session) logger.info("Download complete!") + else: + logger.info("No existing data dump found, downloading latest...") + download_dump(session) + logger.info("Download complete!") # Get the lists of founderless and passwordless regions logger.info("Getting founderless regions...")