Browse Source

fix bug

devel
www-data 8 years ago
parent
commit
de1e8cd291
  1. 2
      djing/settings.py
  2. 2
      statistics/models.py

2
djing/settings.py

@ -130,7 +130,7 @@ LANGUAGE_CODE = 'ru'
LANGUAGES = ( LANGUAGES = (
('ru', _('Russian')), ('ru', _('Russian')),
#('en', _('English')),
('en', _('English'))
) )
PROJECT_PATH = os.path.dirname(os.path.abspath(__file__)) PROJECT_PATH = os.path.dirname(os.path.abspath(__file__))

2
statistics/models.py

@ -36,7 +36,7 @@ class StatManager(models.Manager):
charts_octets = (byte_to_mbit(avarage(c)) for c in charts_octets) charts_octets = (byte_to_mbit(avarage(c)) for c in charts_octets)
charts_times = split_list(charts_times, count_of_parts) charts_times = split_list(charts_times, count_of_parts)
charts_times = (avarage(t) for t in charts_times)
charts_times = tuple(avarage(t) for t in charts_times)
charts_data = zip(charts_times, charts_octets) charts_data = zip(charts_times, charts_octets)
charts_data = ["{x: new Date(%d), y: %.2f}" % (cd[0], cd[1]) for cd in charts_data] charts_data = ["{x: new Date(%d), y: %.2f}" % (cd[0], cd[1]) for cd in charts_data]

Loading…
Cancel
Save