From 7a34915f8ec902c22c337576446d5bd8e0f418a1 Mon Sep 17 00:00:00 2001 From: Logan Williams Date: Wed, 10 May 2023 11:16:54 +0200 Subject: [PATCH] Remove old auto auto archiver file --- src/auto_archiver/auto_auto_archive.py | 34 -------------------------- 1 file changed, 34 deletions(-) delete mode 100644 src/auto_archiver/auto_auto_archive.py diff --git a/src/auto_archiver/auto_auto_archive.py b/src/auto_archiver/auto_auto_archive.py deleted file mode 100644 index 660be4f..0000000 --- a/src/auto_archiver/auto_auto_archive.py +++ /dev/null @@ -1,34 +0,0 @@ - -#TODO: refactor GDriveStorage before merging to main -# is it possible to have something like this with the new pipeline? - - -# # import tempfile -# import auto_archive -# from loguru import logger -# from configs import Config -# from storages import Storage - - -# def main(): -# c = Config() -# c.parse() -# logger.info(f'Opening document {c.sheet} to look for sheet names to archive') - -# gc = c.gsheets_client -# sh = gc.open(c.sheet) - -# wks = sh.get_worksheet(0) -# values = wks.get_all_values() - -# with tempfile.TemporaryDirectory(dir="./") as tmpdir: -# Storage.TMP_FOLDER = tmpdir -# for i in range(11, len(values)): -# c.sheet = values[i][0] -# logger.info(f"Processing {c.sheet}") -# auto_archive.process_sheet(c) -# c.destroy_webdriver() - - -# if __name__ == "__main__": -# main()