From 48e25359da5bde00ca66b786155483584aef13da Mon Sep 17 00:00:00 2001 From: Burathar Date: Wed, 16 Dec 2020 14:03:31 +0100 Subject: [PATCH] Remove duplicate quote in logging lines --- .gitignore | 2 +- app/database_cleaner.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 29bb024..fa1b5d1 100644 --- a/.gitignore +++ b/.gitignore @@ -141,4 +141,4 @@ cython_debug/ app.db .vscode/ - +logs/ \ No newline at end of file diff --git a/app/database_cleaner.py b/app/database_cleaner.py index 0faef0f..d5ca6b8 100644 --- a/app/database_cleaner.py +++ b/app/database_cleaner.py @@ -13,13 +13,13 @@ def remove_dead_urls(): def check_url(url): if url.death is not None: if datetime.now() > url.death : - app.logger.info(f"Removed hash '{url.hash}'' because its retention time has passed.") + app.logger.info(f"Removed hash '{url.hash}' because its retention time has passed.") db.session.delete(url) db.session.commit() return "Timeout" if url.view_counter is not None: if url.view_counter <= 0: - app.logger.info(f"Removed hash '{url.hash}'' because its viewcouner has run out.") + app.logger.info(f"Removed hash '{url.hash}' because its viewcouner has run out.") db.session.delete(url) db.session.commit() return "Counter"