mirror of
https://github.com/evilhero/mylar
synced 2025-02-01 12:07:50 +00:00
Reduced getIndex
response data to only expose minimal and necessary data to the API.
This commit is contained in:
parent
6550611e02
commit
9542c47fc2
1 changed files with 12 additions and 1 deletions
13
mylar/api.py
13
mylar/api.py
|
@ -183,7 +183,18 @@ class Api(object):
|
|||
self.data = self._error_with_message('Incorrect username or password.')
|
||||
|
||||
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
|
||||
|
||||
def _getReadList(self, **kwargs):
|
||||
|
|
Loading…
Reference in a new issue