Parcourir la source

remove unused imports

Daniel Sheffield il y a 1 an
Parent
commit
c992553c98
2 fichiers modifiés avec 3 ajouts et 4 suppressions
  1. 1 1
      app/rest/Cache.py
  2. 2 3
      app/rest/pyapi.py

+ 1 - 1
app/rest/Cache.py

@@ -6,7 +6,7 @@
 import os
 from typing import Dict
 
-from .hash_util import blake, blake_file, bytes_to_base32, bytes_to_hash, hash_to_base32
+from .hash_util import blake, bytes_to_hash, hash_to_base32
 from .CachedLoadingPage import CachedLoadingPage
 
 def delete_page(name: str, root: str = 'app/rest/static/files'):

+ 2 - 3
app/rest/pyapi.py

@@ -8,8 +8,8 @@ from threading import Thread
 from typing import Union
 from bottle import (
     route, request, response,
-    static_file, redirect,
-    FormsDict, HTTPResponse,
+    static_file,
+    FormsDict,
 )
 from psycopg import Cursor, connect
 from psycopg.rows import TupleRow
@@ -18,7 +18,6 @@ from .query_to_xml import get_categories, get_groups, get_products, get_tags
 from .CachedLoadingPage import CachedLoadingPage
 from .Cache import Cache
 from . import trend as worker
-from time import sleep
 
 host = f"host={os.getenv('HOST')}"
 db = f"dbname={os.getenv('DB', 'grocery')}"