geminispace.info

gemini search engine
git clone https://git.clttr.info/geminispace.info.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 32d12c4c5e7396fb3ca01751acf9b37a8e5b1cd6
parent 2c002c6d76ccbef1860048fe963728a1f4418025
Author: Natalie Pendragon <natpen@natpen.net>
Date:   Fri, 15 May 2020 06:27:44 -0400

[crawl] [no-op] Add a line after backup operation

Just to visually set it off from the first crawl operation.

Diffstat:
Mgus/crawl.py | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/gus/crawl.py b/gus/crawl.py @@ -68,6 +68,7 @@ EXCLUDED_URL_PREFIXES = [ def backup_old_index(index_dir, backup_dir): last_index_modification_time = datetime.fromtimestamp(os.path.getmtime(index_dir)) print("Backing up last index from {:%Y-%m-%d}...".format(last_index_modification_time)) + print("--------------------------") backup_index_dir = backup_dir + "/{:%Y-%m-%d}".format(last_index_modification_time) shutil.rmtree(backup_index_dir, ignore_errors=True) shutil.copytree(index_dir, backup_index_dir)