|
@@ -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')}"
|