Beispiel #1
0
 def _UpdateSessionStats(self):
     if self.session:
         stats, created = SessionStats.objects.get_or_create(
             session=self.session, site=self.site)
         stats.Update(self)
Beispiel #2
0
 def _UpdateUserStats(self):
     if self.user:
         stats, created = UserStats.objects.get_or_create(user=self.user,
                                                          site=self.site)
         stats.Update(self)
Beispiel #3
0
 def _UpdateKegStats(self):
     if self.keg:
         stats, created = KegStats.objects.get_or_create(keg=self.keg,
                                                         site=self.site)
         stats.Update(self)
Beispiel #4
0
 def _UpdateSystemStats(self):
     stats, created = SystemStats.objects.get_or_create(site=self.site)
     stats.Update(self)