small fix: moving the url length check in the inner loop

This commit is contained in:
Fabio Bas 2014-07-23 23:10:48 +02:00
parent b40abfa1ad
commit 49b3568b53

View file

@ -145,13 +145,13 @@ void DBPriceUpdater::updatePrices()
bNotFirst = true; bNotFirst = true;
} }
muidMap.insert(muid, cards[i]); muidMap.insert(muid, cards[i]);
}
if(q.length() > 240) if(q.length() > 240)
{ {
urls.append(base + q); urls.append(base + q);
bNotFirst=false; bNotFirst=false;
q = ""; q = "";
}
} }
} }
if(q.length() > 0) if(q.length() > 0)