Skip to content

Rares ignored on sale #119

@fricklertomosh-crypto

Description

@fricklertomosh-crypto

When determining sellable items in the MarketParser, the raw market data contains rares, but after filtering wares by demand, rares are also kicked out, because rares never have a demand.

You should change (marketParser ln 136):
sellable_items = [x for x in data['Items'] if x['Consumer'] or
((x['Demand'] > 1 or x['Demand']) and cargo_parser.get_item(x['Name_Localised']) is not None)]
to
sellable_items = [x for x in data['Items'] if x['Consumer'] or
((x['Demand'] > 1 or x['Demand'] or x['Rare']) and cargo_parser.get_item(x['Name_Localised']) is not None)]
or something like that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions