mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
chore: rename logging.py and redis.py to avoid circular imports
Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
This commit is contained in:
parent
b757e66997
commit
9c0f8f053e
32 changed files with 72 additions and 73 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue