Improve resource scan

Walk only unique paths
This commit is contained in:
2020-05-04 11:04:29 +03:00
parent d350603c48
commit 789c5aba3e
20 changed files with 113 additions and 58 deletions

View File

@ -30,7 +30,7 @@ export function getBuildingPageAttributes(): BuildingPageAttributes {
buildTypeId: getNumber(elClassId($buildEl.attr('class'), 'gid')),
level: getNumber(elClassId($buildEl.attr('class'), 'level')),
buildId: getNumber(p.query.id) || undefined,
categoryId: getNumber(p.query.category, 1),
categoryId: getNumber(p.query.category) || 1,
sheetId: getNumber(p.query.s) || undefined,
tabId: getNumber(p.query.t) || undefined,
};