From 668de7ecd25f4a88853ad7173a0913360cda7311 Mon Sep 17 00:00:00 2001 From: Jan Heinrich Merker Date: Mon, 14 Oct 2024 17:19:39 +0200 Subject: [PATCH] Remove unused code Signed-off-by: Jan Heinrich Merker --- archive_query_log/api/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/archive_query_log/api/main.py b/archive_query_log/api/main.py index f0d97d3..415baac 100644 --- a/archive_query_log/api/main.py +++ b/archive_query_log/api/main.py @@ -1,6 +1,6 @@ from datetime import datetime from pathlib import Path -from typing import NamedTuple, Type, Union +from typing import Type from elasticsearch_dsl.query import Exists, Query, Term from expiringdict import ExpiringDict @@ -14,7 +14,6 @@ from archive_query_log.orm import Archive, Provider, Source, Capture, \ BaseDocument, Serp, Result, UrlQueryParser, UrlPageParser, \ UrlOffsetParser, WarcQueryParser, WarcSnippetsParser -from archive_query_log.utils.time import utc_now _CACHE_SECONDS_STATISTICS = 60 * 5 # 5 minutes _CACHE_SECONDS_PROGRESS = 60 * 10 # 10 minutes @@ -391,4 +390,4 @@ def get_progress(): ), ] - return progress_list \ No newline at end of file + return progress_list