Skip to content

Commit

Permalink
Merge pull request #71 from OpenRarity/impreso/version_bump
Browse files Browse the repository at this point in the history
Library version bump to 0.5.0-beta
  • Loading branch information
impreso authored Oct 4, 2022
2 parents 3032ddd + f1b4533 commit 39a6169
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions open_rarity/scoring/token_feature_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ def extract_unique_attribute_count(
unique_attributes_count: int = 0

for string_attribute in token.metadata.string_attributes.values():
count = collection.attributes_frequency_counts[
string_attribute.name
][string_attribute.value]
count = collection.total_tokens_with_attribute(string_attribute)

if count == 1:
unique_attributes_count += 1
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "open-rarity"
version = "0.4.3-beta"
version = "0.5.0-beta"
description = "Open-Rarity library is an open standard that provides an easy, explanable and reproducible computation for NFT rarity"
authors = ["Dan Meshkov <[email protected]>", "Vicky Gong <[email protected]>"]
license = "Apache-2.0"
Expand Down

0 comments on commit 39a6169

Please sign in to comment.