File .deepsource.toml
not found in the default branch of the repository root. Please refer to the docs.
585 )
586 subsection = str(subsection // 1)
587 for tc in random_date(sub.start_date, sub.end_date, 1):
588 tc = tc589 Event.objects.create(
590 organization=organization,
591 customer=customer,
482 )
483 subsection = str(subsection // 1)
484 for tc in random_date(sub.start_date, sub.end_date, 1):
485 tc = tc486 Event.objects.create(
487 organization=organization,
488 customer=customer,
372 )
373 subsection = str(subsection // 1)
374 for tc in random_date(sub.start_date, sub.end_date, 1):
375 tc = tc376 Event.objects.create(
377 organization=organization,
378 customer=customer,
287KAFKA_HOST = config("KAFKA_URL", default="redpanda:29092")
288if KAFKA_HOST:
289 if "," not in KAFKA_HOST:
290 KAFKA_HOST = KAFKA_HOST291 else:
292 KAFKA_HOST = [
293 "{}:{}".format(parsedUrl.hostname, parsedUrl.port)
Variable is being assigned to itself. It is unnecessary to assign a variable to itself without any modification. You can safely remove this assignment operation.
if condition:
x = x
doSomething()
if condition:
doSomething()