MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / compareAttrs

Function compareAttrs

db_update.py:418–426  ·  view source on GitHub ↗
(attrs1, attrs2)

Source from the content-addressed store, hash-verified

416 print('finding item replacements')
417
418 def compareAttrs(attrs1, attrs2):
419 # Consider items as different if they have no attrs
420 if len(attrs1) == 0 and len(attrs2) == 0:
421 return False
422 if set(attrs1) != set(attrs2):
423 return False
424 if all(attrs1[aid] == attrs2[aid] for aid in attrs1):
425 return True
426 return False
427
428 skillReqAttribs = {
429 182: 277,

Callers 1

processReplacementsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected