chore: rename logging.py and redis.py to avoid circular imports

Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
This commit is contained in:
Leonidas Spyropoulos 2022-05-06 20:22:07 +01:00
parent b757e66997
commit 9c0f8f053e
No known key found for this signature in database
GPG key ID: 59E43E106B247368
32 changed files with 72 additions and 73 deletions

View file

@ -16,7 +16,7 @@ from sqlalchemy import and_, case, or_
import aurweb.config
import aurweb.models.package_request
from aurweb import cookies, db, logging, models, time, util
from aurweb import aur_logging, cookies, db, models, time, util
from aurweb.cache import db_count_cache
from aurweb.exceptions import handle_form_exceptions
from aurweb.models.account_type import TRUSTED_USER_AND_DEV_ID, TRUSTED_USER_ID
@ -24,7 +24,7 @@ from aurweb.models.package_request import PENDING_ID
from aurweb.packages.util import query_notified, query_voted, updated_packages
from aurweb.templates import make_context, render_template
logger = logging.get_logger(__name__)
logger = aur_logging.get_logger(__name__)
router = APIRouter()
@ -80,7 +80,7 @@ async def index(request: Request):
bases = db.query(models.PackageBase)
redis = aurweb.redis.redis_connection()
redis = aurweb.aur_redis.redis_connection()
cache_expire = 300 # Five minutes.
# Package statistics.