Stitch old data with new pota member

merge-requests/203/head
Tag 2022-09-30 14:10:41 -07:00
rodzic 373faeae1e
commit 7e67dda3fc
1 zmienionych plików z 21 dodań i 6 usunięć

Wyświetl plik

@ -15873,19 +15873,34 @@ function mediaCheck()
g_tracker.worked.px = {};
g_tracker.confirmed.px = {};
}
if (typeof g_tracker.worked.pota == "undefined")
{
g_tracker.worked.pota = {};
g_tracker.confirmed.pota = {};
}
g_QSOhash = data.g_QSOhash;
for (var i in g_QSOhash)
{
if (
typeof g_QSOhash[i].px == "undefined" ||
g_QSOhash[i].px == null
)
if (typeof g_QSOhash[i].px == "undefined" || g_QSOhash[i].px == null)
{
if (g_QSOhash[i].dxcc != -1) { g_QSOhash[i].px = getWpx(g_QSOhash[i].DEcall); }
else g_QSOhash[i].px = null;
if (g_QSOhash[i].dxcc != -1)
{
g_QSOhash[i].px = getWpx(g_QSOhash[i].DEcall);
}
else
{
g_QSOhash[i].px = null;
}
}
if (typeof g_QSOhash[i].pota == "undefined" || g_QSOhash[i].pota == null)
{
g_QSOhash[i].pota = [];
}
g_QSOcount++;
if (g_QSOhash[i].confirmed) g_QSLcount++;
}