alchemy updated

This commit is contained in:
2024-11-13 14:59:05 +03:00
parent 052d1f7b9c
commit 4199cc16b4
22 changed files with 123 additions and 181 deletions

View File

@@ -24,7 +24,7 @@ class CrypterEngine(CrudCollection):
@classmethod
def get_valid_keys(cls, row=None):
cls.encrypt_list, cls.decrypt_list = [], []
if not cls.filter_active(
if not cls.filter_all(
cls.created_at > datetime.now() - timedelta(days=29)
).get(1):
cls.create_encrypt_keys(count=100)
@@ -35,7 +35,7 @@ class CrypterEngine(CrudCollection):
decrypt_row.key_second.decode(),
decrypt_row.uu_id,
)
if encrypt_rows := cls.filter_active(
if encrypt_rows := cls.filter_all(
cls.created_at > datetime.now() - timedelta(days=29)
).data:
encrypt_row = random.choice(encrypt_rows)