uselotus / lotus

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

Doc line too long FLK-W505
Style
Minor
a year agoa year old
 1# This template tag is needed for production
 2# Add it to one of your django apps (/appdir/templatetags/render_vite_bundle.py, for example) 3
 4import json
 5import os
doc line too long (98 > 88 characters)
 75            )
 76            continue
 77        if old_subscription.scheduled_end_date > now:
 78            # if the subscription is not ending, then we just need to update the next billing date 79            old_subscription.next_billing_date = None  # this will auto calculate it
 80            old_subscription.save()
 81            continue
doc line too long (271 > 88 characters)
 47
 48@shared_task
 49def calculate_invoice():
 50    # GENERAL PHILOSOPHY: this task is for periodic maintenance of ending susbcriptions. We only end and re-start subscriptions when they're scheduled to end, if for some other reason they end early then it is up to the other process to handle the invoice creationg and . 51    # get ending subs
 52    now_minus_30 = now_utc() + relativedelta(
 53        minutes=-30
doc line too long (106 > 88 characters)
1445
1446class ActivityGenericRelatedField(serializers.Field):
1447    """
1448    DRF Serializer field that serializers GenericForeignKey fields on the :class:`~activity.models.Action`1449    of known model types to their respective ActionSerializer implementation.
1450    """
1451
doc line too long (104 > 88 characters)
1217            raise serializers.ValidationError(
1218                f"Customer already has an active subscription to this plan"
1219            )
1220        # check that if the plan is designed for a specific customer, that the customer is that customer1221        tc = data["billing_plan"].plan.target_customer
1222        if tc is not None and tc != data["customer"]:
1223            raise serializers.ValidationError(