def __init__(self): self.eve = evelinkinterface() self.sql = sqlConnection() self.sql.connect() #self.sql.resetReportCache() self.sde = sdeInterface() self.homeHeader=["System", "#Kills", "#Losses", "Kill dt avg", "Loss dt avg", "Kill dt variance", "Loss dt variance", "First Kill/Loss", "Last Kill/Loss", "Certainty"]
from eveIntel.zkillinterface import zKillInterface from eveIntel.sqlinterface import sqlConnection from eveIntel.evelinkinterface import evelinkinterface from eveIntel.sdeinterface import sdeInterface import time from ast import literal_eval evelink = evelinkinterface() sql = sqlConnection() sql.connect() zkill = zKillInterface() sde = sdeInterface() def getAllianceList(): return evelink.getAllianceList() def populateAlliancesAndCorps(): alliances = getAllianceList() a = alliances[0] for i in a.keys(): sql.insertAlliance(a[i]["id"], a[i]["name"]) for corp in a[i]["member_corps"].keys(): sql.insertCorp(corp, "", a[i]["id"]) def pullWHKills():