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

Function getgroupname

scripts/itemDiff.py:136–151  ·  view source on GitHub ↗

Get group name from the new db

(grp)

Source from the content-addressed store, hash-verified

134
135 groupnames = {}
136 def getgroupname(grp):
137 """Get group name from the new db"""
138 if grp in groupnames:
139 name = groupnames[grp]
140 else:
141 query = 'SELECT name FROM invgroups WHERE groupID = ?'
142 new_cursor.execute(query, (grp,))
143 name = ""
144 for row in new_cursor:
145 name = row[0]
146 if not name:
147 old_cursor.execute(query, (grp,))
148 for row in old_cursor:
149 name = row[0]
150 groupnames[grp] = name
151 return name
152
153 effectnames = {}
154 def geteffectname(effect):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected