2025-01-18 23:41:53 -06:00
|
|
|
from django.views.generic import ListView
|
2025-01-18 21:31:19 -06:00
|
|
|
from django.shortcuts import render
|
|
|
|
from django.http import HttpResponse
|
2025-01-18 23:41:53 -06:00
|
|
|
from odyseescraper.models import OdyseeChannel, OdyseeRelease
|
2025-01-18 21:31:19 -06:00
|
|
|
|
2025-01-18 23:41:53 -06:00
|
|
|
class OdyseeReleaseListView(ListView):
|
|
|
|
model = OdyseeRelease
|
2025-01-23 20:56:21 -06:00
|
|
|
paginate_by = 3 * 5
|
2025-01-19 01:15:16 -06:00
|
|
|
template_name = 'release_list.html'
|
2025-01-24 14:28:30 -06:00
|
|
|
ordering = ['name', 'channel', 'released']
|
2025-01-23 20:02:28 -06:00
|
|
|
|
|
|
|
class OdyseeChannelListView(ListView):
|
|
|
|
model = OdyseeChannel
|
2025-01-23 20:56:21 -06:00
|
|
|
paginate_by = 10
|
2025-01-23 20:02:28 -06:00
|
|
|
template_name = 'channel_list.html'
|
2025-01-24 14:27:15 -06:00
|
|
|
ordering = ['name', 'handle']
|