Skip to content

Commit

Permalink
fix manifiest updater
Browse files Browse the repository at this point in the history
  • Loading branch information
Kigstn committed Feb 24, 2022
1 parent f6d0891 commit 08f3f54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Backend/core/destiny/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,16 @@ async def update(self, post_elevator: bool = True):
# save data to bulk insert later
to_insert = []
for reference_id, values in content.items():
# source hash can be classified
if source_hash := values.get("sourceHash") == "Classified":
source_hash = 0

to_insert.append(
DestinyCollectibleDefinition(
reference_id=int(reference_id),
description=values.get("displayProperties", "description"),
name=values.get("displayProperties", "name"),
source_hash=values.get("sourceHash"),
source_hash=source_hash,
item_hash=values.get("itemHash"),
parent_node_hashes=values.get("parentNodeHashes"),
)
Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.2"
__version__ = "1.0.3"

0 comments on commit 08f3f54

Please sign in to comment.