From 3f7489836f0d908fb7f523cc00ce04c69b120697 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Thu, 9 Mar 2023 23:13:05 -0500 Subject: [PATCH] Cleanup --- libretranslate/secret.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libretranslate/secret.py b/libretranslate/secret.py index 1651e8b..ce69910 100644 --- a/libretranslate/secret.py +++ b/libretranslate/secret.py @@ -1,12 +1,8 @@ import atexit import random import string -from multiprocessing.dummy import Value from libretranslate.storage import get_storage -from apscheduler.schedulers.background import BackgroundScheduler - -setup_secrets = Value('b', False) def generate_secret(): return ''.join(random.choices(string.ascii_uppercase + string.digits, k=7)) @@ -16,8 +12,6 @@ def rotate_secrets(): secret_1 = s.get_str("secret_1") s.set_str("secret_0", secret_1) s.set_str("secret_1", generate_secret()) - print(s.get_str("secret_0")) - print(s.get_str("secret_1")) def secret_match(secret):