mirror of
https://github.com/YACReader/yacreader
synced 2025-07-27 09:24:57 -04:00
added comicVineID field to the data base, if the comic information has been scraped the properties dialog shows a link to the Comic Vine page with the comic information
This commit is contained in:
@ -212,7 +212,10 @@ void DBHelper::update(ComicInfo * comicInfo, QSqlDatabase & db)
|
||||
"brightness = :brightness,"
|
||||
"contrast = :contrast, "
|
||||
"gamma = :gamma,"
|
||||
"rating = :rating"
|
||||
"rating = :rating,"
|
||||
|
||||
//new 7.1 fields
|
||||
"comicVineID = :comicVineID"
|
||||
//--
|
||||
" WHERE id = :id ");
|
||||
|
||||
@ -263,6 +266,8 @@ void DBHelper::update(ComicInfo * comicInfo, QSqlDatabase & db)
|
||||
updateComicInfo.bindValue(":gamma", comicInfo->gamma);
|
||||
updateComicInfo.bindValue(":rating", comicInfo->rating);
|
||||
|
||||
updateComicInfo.bindValue(":comicVineID", comicInfo->comicVineID);
|
||||
|
||||
updateComicInfo.exec();
|
||||
}
|
||||
|
||||
@ -641,6 +646,8 @@ ComicInfo DBHelper::loadComicInfo(QString hash, QSqlDatabase & db)
|
||||
comicInfo.characters = record.value("characters");
|
||||
comicInfo.notes = record.value("notes");
|
||||
|
||||
comicInfo.comicVineID = record.value("comicVineID");
|
||||
|
||||
comicInfo.existOnDb = true;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user