From a993eed760876953ccd246bdc41fc0a286138b10 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Wed, 4 Jan 2023 07:46:02 -0800 Subject: [PATCH] dont delete until this is sorted --- nerochan/cli.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nerochan/cli.py b/nerochan/cli.py index 34d999f..361c3c8 100644 --- a/nerochan/cli.py +++ b/nerochan/cli.py @@ -75,10 +75,10 @@ def cli(app): print(f'Transaction not found for tx #{tx.id}: {tx.tx_id}') except Exception as e: print(f'Error for tx #{tx.id}: {e}') - finally: - # just delete it if older than 12 hours - if tx.create_date <= datetime.utcnow() - timedelta(hours=12): - tx.delete_instance() + # finally: + # # just delete it if older than 96 hours + # if tx.create_date <= datetime.utcnow() - timedelta(hours=96): + # tx.delete_instance() @app.cli.command('generate_data') def generate_data():