Пример #1
0
 def get_plottable_last_hour(self, user):
     tz = UserProfile.objects.get(livetvusername=user).tz
     return [(adjust_time(node[0], tz).strftime("%Y-%m-%d %H:%M:%S"), node[1], node[2])
             for node in self.get_last_hour(user).values_list('timestamp', 'current_total', 'total_site_streamers')]
Пример #2
0
 def get_plottable_last_hour(self, user):
     return [(adjust_time(node[0]).strftime("%Y-%m-%d %H:%M:%S"), node[1], node[2])
             for node in self.get_last_hour(user).values_list('timestamp', 'current_total', 'total_site_streamers')]
Пример #3
0
 def time(self):
     return adjust_time(self.timestamp).strftime("%d/%m/%y %H:%M:%S")
Пример #4
0
 def get_plottable_last_hour(self, user):
     return [(adjust_time(node[0]).strftime("%Y-%m-%d %H:%M:%S"), node[1],
              node[2]) for node in self.get_last_hour(user).values_list(
                  'timestamp', 'current_total', 'total_site_streamers')]
Пример #5
0
 def time(self):
     return adjust_time(self.timestamp).strftime("%d/%m/%y %H:%M:%S")
Пример #6
0
 def get_plottable_last_hour(self, user):
     tz = UserProfile.objects.get(livetvusername=user).tz
     return [(adjust_time(node[0], tz).strftime("%Y-%m-%d %H:%M:%S"),
              node[1], node[2])
             for node in self.get_last_hour(user).values_list(
                 'timestamp', 'current_total', 'total_site_streamers')]