1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2025-02-01 20:11:31 +00:00

Reduced getIndex response data to only expose minimal and necessary data to the API.

This commit is contained in:
Roberto Pastor 2019-06-17 19:32:51 +02:00 committed by evilhero
parent 6550611e02
commit 9542c47fc2

View file

@ -183,7 +183,18 @@ class Api(object):
self.data = self._error_with_message('Incorrect username or password.') self.data = self._error_with_message('Incorrect username or password.')
def _getIndex(self, **kwargs): def _getIndex(self, **kwargs):
self.data = self._dic_from_query('SELECT * from comics order by ComicSortName COLLATE NOCASE') self.data = self._dic_from_query(
"SELECT ComicID as id,\
ComicName as name,\
ComicImageURL as imageURL,\
Status as status,\
ComicPublisher as publisher,\
ComicYear as year,\
LatestIssue as latestIssue,\
Total as totalIssues,\
DetailURL as detailsURL\
FROM comics \
ORDER BY ComicSortName COLLATE NOCASE")
return return
def _getReadList(self, **kwargs): def _getReadList(self, **kwargs):