CrewID 0 can't be scanned, so don't even try it
This commit is contained in:
parent
d42d8b9900
commit
b06706a895
1 changed files with 51 additions and 48 deletions
|
@ -72,7 +72,8 @@ void DatabaseThread::scanCrewMembersList(QStringList crewList, int maxPages, int
|
||||||
{
|
{
|
||||||
foreach (const QString &crewID, crewList)
|
foreach (const QString &crewID, crewList)
|
||||||
{
|
{
|
||||||
|
if (crewID != "0")
|
||||||
|
{
|
||||||
int currentPage = 0;
|
int currentPage = 0;
|
||||||
int foundPlayers = 0;
|
int foundPlayers = 0;
|
||||||
int totalPlayers = 1000;
|
int totalPlayers = 1000;
|
||||||
|
@ -99,6 +100,7 @@ void DatabaseThread::scanCrewMembersList(QStringList crewList, int maxPages, int
|
||||||
if (netReply->isFinished())
|
if (netReply->isFinished())
|
||||||
{
|
{
|
||||||
QByteArray crewJson = netReply->readAll();
|
QByteArray crewJson = netReply->readAll();
|
||||||
|
qDebug() << crewJson;
|
||||||
QJsonDocument crewDocument = QJsonDocument::fromJson(crewJson);
|
QJsonDocument crewDocument = QJsonDocument::fromJson(crewJson);
|
||||||
QJsonObject crewObject = crewDocument.object();
|
QJsonObject crewObject = crewDocument.object();
|
||||||
QVariantMap crewMap = crewObject.toVariantMap();
|
QVariantMap crewMap = crewObject.toVariantMap();
|
||||||
|
@ -137,4 +139,5 @@ void DatabaseThread::scanCrewMembersList(QStringList crewList, int maxPages, int
|
||||||
delete netManager;
|
delete netManager;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue