MCPcopy
hub / github.com/madhavanmalolan/awesome-reactnative-ui / getRank

Function getRank

extractor.py:19–30  ·  view source on GitHub ↗
(image)

Source from the content-addressed store, hash-verified

17
18
19def getRank(image):
20 if 'shield' in image or 'badge' in image:
21 return 0
22 if ".gif" in image:
23 return 10
24 if ".png" in image:
25 return 5
26 if ".jpg" in image or ".jpeg" in image:
27 return 3
28 if ".svg" in image:
29 return 2
30 return 1
31
32def getImage(repo):
33 base = "https://raw.githubusercontent.com/"+repo+ "/master/"

Callers 1

getImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected