Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Values go into negatives when printing list sorted by value #2

Closed
explodingpaws opened this issue Aug 20, 2022 · 2 comments
Closed

Comments

@explodingpaws
Copy link

When printing a list of items sorted by value, some of them go into the negative.

Input:
print(items.sort_by('value'))

Output:
(more output) ...Item(Id=10467162863, Name='XXL Basketball Head', Acronym='', Rap=2747, Value=-1, Default_Value=2747, Demand='None', Trend='None', Projected=False, Hyped=False, Rare=False), Item(Id=10467173753, Name='Guardian Angel Wings', Acronym='', Rap=1067, Value=-1, Default_Value=1067, Demand='None', Trend='None', Projected=False, Hyped=False, Rare=False), Item(Id=10467314620, Name='Black Headphones', Acronym='', Rap=1060, Value=-1, Default_Value=1060, Demand='None', Trend='None', Projected=False, Hyped=False, Rare=False), Item(Id=10467322128, Name='Gold Headphones', Acronym='', Rap=572, Value=-1, Default_Value=572, Demand='None', Trend='None', Projected=False, Hyped=False, Rare=False), Item(Id=10487204569, Name='NARS Lip Crossbody Bag 1.0', Acronym='', Rap=9388, Value=-1, Default_Value=9388, Demand='None', Trend='None', Projected=False, Hyped=False, Rare=False), Item(Id=10487228860, Name='NARS Lip Crossbody Bag 3.0', Acronym='', Rap=10385, Value=-1, Default_Value=10385, Demand='None', Trend='None', Projected=True, Hyped=False, Rare=False), Item(Id=10537487639, Name='NARS Light Reflecting Leather Moto Jacket', Acronym='', Rap=377, Value=-1, Default_Value=377, Demand='None', Trend='None', Projected=False, Hyped=False, Rare=False)]

@insaneinthamembrane
Copy link
Owner

hi there, it's meant to have a negative value as that means it's unvalued

@explodingpaws
Copy link
Author

alr ty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants