mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 17:31:09 -05:00
Implement hybrid filtering strategy for parks and rides
- Added comprehensive documentation for hybrid filtering implementation, including architecture, API endpoints, performance characteristics, and usage examples. - Developed a hybrid pagination and client-side filtering recommendation, detailing server-side responsibilities and client-side logic. - Created a test script for hybrid filtering endpoints, covering various test cases including basic filtering, search functionality, pagination, and edge cases.
This commit is contained in:
@@ -41,7 +41,6 @@ from django.shortcuts import get_object_or_404
|
||||
from rest_framework.permissions import AllowAny
|
||||
from django.utils import timezone
|
||||
from django_cloudflareimages_toolkit.models import CloudflareImage
|
||||
import json
|
||||
|
||||
# Set up logging
|
||||
logger = logging.getLogger(__name__)
|
||||
@@ -370,7 +369,7 @@ def save_avatar_image(request):
|
||||
old_avatar.delete()
|
||||
|
||||
# Debug logging to see what's happening with the CloudflareImage
|
||||
logger.info(f"CloudflareImage debug info:")
|
||||
logger.info("CloudflareImage debug info:")
|
||||
logger.info(f" ID: {cloudflare_image.id}")
|
||||
logger.info(f" cloudflare_id: {cloudflare_image.cloudflare_id}")
|
||||
logger.info(f" status: {cloudflare_image.status}")
|
||||
@@ -383,7 +382,7 @@ def save_avatar_image(request):
|
||||
avatar_variants = profile.get_avatar_variants()
|
||||
|
||||
# More debug logging
|
||||
logger.info(f"Avatar URL generation:")
|
||||
logger.info("Avatar URL generation:")
|
||||
logger.info(f" avatar_url: {avatar_url}")
|
||||
logger.info(f" avatar_variants: {avatar_variants}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user