MCPcopy
hub / github.com/scrapy/scrapy / getpriority

Method getpriority

scrapy/settings/__init__.py:392–402  ·  view source on GitHub ↗

Return the current numerical priority value of a setting, or ``None`` if the given ``name`` does not exist. :param name: the setting name :type name: str

(self, name: _SettingsKey)

Source from the content-addressed store, hash-verified

390 )
391
392 def getpriority(self, name: _SettingsKey) -> int | None:
393 """
394 Return the current numerical priority value of a setting, or ``None`` if
395 the given ``name`` does not exist.
396
397 :param name: the setting name
398 :type name: str
399 """
400 if name not in self:
401 return None
402 return self.attributes[name].priority
403
404 def maxpriority(self) -> int:
405 """

Callers 15

_map_keysFunction · 0.95
add_to_listMethod · 0.95
remove_from_listMethod · 0.95
maxpriorityMethod · 0.95
deleteMethod · 0.95
test_setitemMethod · 0.95
test_updateMethod · 0.95
test_getpriorityMethod · 0.95
test_add_to_listFunction · 0.95

Calls

no outgoing calls

Tested by 10

test_setitemMethod · 0.76
test_updateMethod · 0.76
test_getpriorityMethod · 0.76
test_add_to_listFunction · 0.76
test_remove_from_listFunction · 0.76