コード例 #1
0
ファイル: models.py プロジェクト: GerasymenkoS/lctva
 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
ファイル: models.py プロジェクト: Cheyans/lctva
 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
ファイル: models.py プロジェクト: Cheyans/lctva
 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')]