uselotus / lotus

File .deepsource.toml not found in the default branch of the repository root. Please refer to the docs.

Use of an unneeded not detected PYL-C0113
Anti-pattern
Major
a year agoa year old
Consider changing "not flat_fee_behavior == 'refund'" to "flat_fee_behavior != 'refund'"
 97                    ili.metadata = subperiod["unique_identifier"]
 98                    ili.save()
 99    # flat fee calculation for current plan
100    if not flat_fee_behavior == "refund":101        flat_costs_dict_list = sorted(
102            list(subscription.prorated_flat_costs_dict.items()), key=lambda x: x[0]
103        )