diff options
| author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2024-12-01 02:58:46 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-30 15:58:46 +0000 |
| commit | beee377175d2d762bbab715389f8e44d2fa5f96f (patch) | |
| tree | a796e427a96acd0f9a5eaecffc3d6dfbb435723c | |
| parent | ce226f73524c2723d3b0fe122c25448fd2531e45 (diff) | |
| download | NotEnoughUpdates-REPO-beee377175d2d762bbab715389f8e44d2fa5f96f.tar.gz NotEnoughUpdates-REPO-beee377175d2d762bbab715389f8e44d2fa5f96f.tar.bz2 NotEnoughUpdates-REPO-beee377175d2d762bbab715389f8e44d2fa5f96f.zip | |
Fix: A few issues with the change to the script (#1481)
| -rw-r--r-- | .github/scripts/updateMuseum.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/.github/scripts/updateMuseum.py b/.github/scripts/updateMuseum.py index d6a48f89..72104baf 100644 --- a/.github/scripts/updateMuseum.py +++ b/.github/scripts/updateMuseum.py @@ -44,7 +44,7 @@ def processMuseumData(internalName, data): armor.add(armorSet) if armorSet in setOverride: addPieceToSet(setOverride[armorSet], armorSet) - return + continue addPieceToSet(internalName, armorSet) else: donationXp = data.get('donation_xp', 0) @@ -81,6 +81,7 @@ setPriorityList = [ "CLOAK", ] +# Manually added overrides for armor sets as the Hypixel API does not provide the correct data setOverride = { "BLAZE": [ "BLAZE_BOOTS", @@ -98,7 +99,7 @@ setOverride = { "ENDER_BELT", "ENDER_CLOAK", "ENDER_GAUNTLET", - "ENDER_NECKLACE" + "ENDER_NECKLACE", "END_BOOTS", "END_CHESTPLATE", "END_HELMET", @@ -193,7 +194,7 @@ if __name__ == '__main__': maxValues['total'] = maxValues['weapons'] + maxValues['armor'] + maxValues['rarities'] outputJson = { - "notice": "This file is automatically generated and should not be modified manually. Please edit the `updatedMuseum.py` file instead.", + "notice": "This file is automatically generated and should not be modified manually. Please edit the `updateMuseum.py` file instead.", "weapons": sorted(list(weapons), key=lambda item: (itemToXp.get(item, 0), item)), "armor": sorted(list(armor), key=lambda item: (itemToXp.get(item, 0), item)), "rarities": sorted(list(rarities), key=lambda item: (itemToXp.get(item, 0), item)), |
