From 7662f289dc8966c0042db5ccee404f0818fa3913 Mon Sep 17 00:00:00 2001 From: TING-JUN WANG Date: Mon, 29 Apr 2024 22:30:15 +0800 Subject: [PATCH] refactor --- constant.py | 27 ++++++++++++++++++++++++--- main.py | 37 ++++--------------------------------- src/cleaner.py | 37 ++++++++++++++++++++++++------------- 3 files changed, 52 insertions(+), 49 deletions(-) diff --git a/constant.py b/constant.py index 31c9267..959ca97 100644 --- a/constant.py +++ b/constant.py @@ -5,18 +5,18 @@ KEEP_FILES = [".bashrc", ".bash_logout", ".bash_profile", "public-html", ".ssh", WHITE_LIST = ["mysql", "unix_manager", "unixmanager215", "gangxing", "how083012", "yulunliu", "amie12349", "minliwu", "chenyuyang", "unixmanager5xx"] # filter date -DATE = '2024-02-01' +DATE = '2024-04-01' # owner, you have to change the GOOGLE_CODE if change this variable GOOGLE_OWNER = "snsd0805@cmlab.csie.ntu.edu.tw" # notify_template -MAIL_MESSAGE = ''' +MAIL_MSG = ''' Hi, {}

因 CML Server 掛載家目錄(~)的 NAS 空間即將不足,我們將於 4/28(日) 00:00 開始清除長時間沒有修改紀錄的資料夾

-本次清理,我們將移除 2024/02/01 以後沒有修改紀錄的資料夾、檔案
+本次清理,我們將移除 '''+ DATE +''' 以後沒有修改紀錄的資料夾、檔案
以下是您家目錄中可能被移除的內容: