Small fixes for Warnings found by PyCharm, mostly spellingerrors.
This commit is contained in:
@@ -11,15 +11,15 @@ MAX_ARTICLE_ITEMS = 10 # Maximum count of articles in the news RSS feed.
|
||||
MAX_COMMENT_ITEMS = 40 # Maximum count of comments in the comments RSS feed.
|
||||
|
||||
|
||||
# Start ignoring PyLintBear (R0201)
|
||||
# noinspection PyMethodMayBeStatic
|
||||
class LatestNews(Feed):
|
||||
""" An Feed with the latest news from this site """
|
||||
link = "http://www.kasu.at/"
|
||||
description = _("Current news from Kasu")
|
||||
title = "Kasu - traditonelle asiatische Spielkultur"
|
||||
link = "http://www.kasu.at/"
|
||||
title = _("Current news from Kasu")
|
||||
feed_type = Rss201rev2Feed
|
||||
|
||||
def items(self):
|
||||
def items(self) -> object:
|
||||
"""get the newest published news articles for the feed."""
|
||||
return Article.objects.published()[:MAX_ARTICLE_ITEMS]
|
||||
|
||||
@@ -77,6 +77,4 @@ class LatestComments(Feed):
|
||||
return 'From %(user_name)s in %(content_object)s' % {
|
||||
'user_name': item.user_name,
|
||||
'content_object': item.content_object
|
||||
}
|
||||
|
||||
# Stop ignoring
|
||||
}
|
||||
Reference in New Issue
Block a user