79548432

Date: 2025-04-01 11:04:10
Score: 0.5
Natty:
Report link

to handle both cases you can do-

allowed_extensions = request.POST.getlist("allowed-extension[]") or request.POST.get("allowed-extensions", "").split(",")
allowed_extensions = [ext.strip() for ext in allowed_extensions if ext.strip()]  # this will clean up your white space
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Yuvraj