MCPcopy
hub / github.com/django/django / quality

Method quality

django/http/request.py:799–810  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

797
798 @cached_property
799 def quality(self):
800 try:
801 quality = float(self.params.get("q", 1))
802 except ValueError:
803 # Discard invalid values.
804 return 1
805
806 # Valid quality values must be between 0 and 1.
807 if quality < 0 or quality > 1:
808 return 1
809
810 return round(quality, 3)
811
812 @property
813 def specificity(self):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected