Open brodycritchlow opened 9 months ago
Hi dear, it is my first issue, I hope it will help you I made small edits on the logic in User class remove_funds function I can't commit or do pull request
@Thanoon12k Hi, would you mind creating a pull request with your updated changes (requesting to merge your fork into the main repo). So i can go ahead and review?
Resolved in latest commits.
Reopening this due to a small change that can be made:
We can take advantage of set
in python to use intersections so we don't have to do two dictionary comprehensions. Presumably saving some memory.
>>> a = {"test": [300, True], "test2": [400, False], "test3": [100, True]}
>>> b = {k: v for k, v in a.items() if v[1] == True} # our stacking discounts
>>> set(a) ^ set(b) # our non-stacking discounts [names]
{'test2'}
Our current discounting system, is not applying the stacking and non-stacking discounts correctly. Here is some things I think we should do:
List[NonStackingDiscount]
.