- init_db.py: parameterize SQL queries to prevent SQL injection - scheduled_tasks.json: resolve duplicate periodic task pk (4 -> 15) - db_utils.py: use function parameter in _get_status_pattern_matching instead of capturing the enclosing scope variable - url_detail.html: fix wrong field name image_urls -> images_url - settings.py: align Celery queues (default/light/heavy) with the task queues and supervisord workers - Add /task/publish_<id>/ route to fix broken publish links in templates
22 lines
868 B
Python
22 lines
868 B
Python
from django.urls import path
|
|
from . import views
|
|
|
|
urlpatterns = [
|
|
path('', views.link_list, name='link_list'),
|
|
#
|
|
path('logs/database', views.log_db, name='log_db'),
|
|
path('logs/<str:log_type>', views.logs, name='logs'),
|
|
#
|
|
path('urls/charts/', views.charts, name='charts'),
|
|
path('urls-by-fetch-date/', views.urls_by_fetch_date, name='urls_by_fetch_date'),
|
|
path('urls-per-status/', views.urls_per_status, name='urls_per_status'),
|
|
path('urls-per-source/', views.urls_per_source, name='urls_per_source'),
|
|
path('urls-per-search/', views.urls_per_search, name='urls_per_search'),
|
|
#
|
|
path('llm/', views.llm, name='llm'),
|
|
#
|
|
path('urls/', views.filtered_urls, name='filtered_urls'),
|
|
path('urls/<int:id>/', views.url_detail_view, name='url_detail'),
|
|
path('task/publish_<int:id>/', views.publish, name='publish'),
|
|
]
|