mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 06:17:17 +00:00
Merge pull request #7 from apoclyps/docker-support
[ISSUE-3] Adding docker support
This commit is contained in:
@@ -19,14 +19,14 @@ class RecentComics(Feed):
|
||||
|
||||
@staticmethod
|
||||
def items() -> ComicBook:
|
||||
return ComicBook.objects.order_by('-date_added')[:10]
|
||||
return ComicBook.objects.order_by("-date_added")[:10]
|
||||
|
||||
def item_title(self, item: ComicBook) -> str:
|
||||
return item.file_name
|
||||
|
||||
def item_description(self, item: ComicBook) -> str:
|
||||
return item.date_added.strftime('%a, %e %b %Y %H:%M')
|
||||
return item.date_added.strftime("%a, %e %b %Y %H:%M")
|
||||
|
||||
# item_link is only needed if NewsItem has no get_absolute_url method.
|
||||
def item_link(self, item: ComicBook) -> str:
|
||||
return '/comic/read/{0}/0/'.format(urlsafe_base64_encode(item.selector.bytes).decode())
|
||||
return "/comic/read/{0}/0/".format(urlsafe_base64_encode(item.selector.bytes))
|
||||
|
||||
Reference in New Issue
Block a user