Remove references to legacy is_blue attributes

Provide simple EVE model creation forms with ID, populate the rest from providers
Correct handling of non-main characters in signals
This commit is contained in:
Adarnof
2017-03-25 17:59:38 -04:00
parent 54262a850d
commit 64e7c6093e
6 changed files with 98 additions and 38 deletions

View File

@@ -49,7 +49,6 @@ class CorpStat(object):
self.corp = EveCorporationInfo.objects.get(corporation_id=corp_id)
self.n_fats = Fat.objects.filter(character__corporation_id=self.corp.corporation_id).filter(
fatlink__fatdatetime__gte=start_of_month).filter(fatlink__fatdatetime__lte=start_of_next_month).count()
self.blue = self.corp.is_blue
def avg_fat(self):
return "%.2f" % (float(self.n_fats) / float(self.corp.member_count))