mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Fixed reading comics web controller.
This commit is contained in:
@ -25,12 +25,9 @@ void ReadingComicsController::service(HttpRequest &request, HttpResponse &respon
|
|||||||
|
|
||||||
void ReadingComicsController::serviceContent(const int &library, HttpResponse &response)
|
void ReadingComicsController::serviceContent(const int &library, HttpResponse &response)
|
||||||
{
|
{
|
||||||
//TODO sort comics before serving them
|
QList<ComicDB> readingComics = DBHelper::getReading(library);
|
||||||
int FIXME;
|
|
||||||
|
|
||||||
QList<ComicDB> tagComics = DBHelper::getReading(library);
|
for(const ComicDB &comic : readingComics)
|
||||||
|
|
||||||
for(const ComicDB &comic : tagComics)
|
|
||||||
{
|
{
|
||||||
response.write(YACReaderServerDataHelper::comicToYSFormat(library, comic).toUtf8());
|
response.write(YACReaderServerDataHelper::comicToYSFormat(library, comic).toUtf8());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user