def _UpdateSessionStats(self): if self.session: stats, created = SessionStats.objects.get_or_create( session=self.session, site=self.site) stats.Update(self)
def _UpdateUserStats(self): if self.user: stats, created = UserStats.objects.get_or_create(user=self.user, site=self.site) stats.Update(self)
def _UpdateKegStats(self): if self.keg: stats, created = KegStats.objects.get_or_create(keg=self.keg, site=self.site) stats.Update(self)
def _UpdateSystemStats(self): stats, created = SystemStats.objects.get_or_create(site=self.site) stats.Update(self)