dont delete until this is sorted

master
lza_menace 2 years ago
parent 419e58ec15
commit a993eed760

@ -75,10 +75,10 @@ def cli(app):
print(f'Transaction not found for tx #{tx.id}: {tx.tx_id}') print(f'Transaction not found for tx #{tx.id}: {tx.tx_id}')
except Exception as e: except Exception as e:
print(f'Error for tx #{tx.id}: {e}') print(f'Error for tx #{tx.id}: {e}')
finally: # finally:
# just delete it if older than 12 hours # # just delete it if older than 96 hours
if tx.create_date <= datetime.utcnow() - timedelta(hours=12): # if tx.create_date <= datetime.utcnow() - timedelta(hours=96):
tx.delete_instance() # tx.delete_instance()
@app.cli.command('generate_data') @app.cli.command('generate_data')
def generate_data(): def generate_data():

Loading…
Cancel
Save