Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/s/e/selena-1.0.2/src/selena/boards/views/charts.py   selena(Download)
from django.utils import timezone
 
from boards.data_providers import get_probes_for_bar_chart
from .common import AjaxBase
 
    def _get_probes(self):
        end_date = timezone.now()
        start_date = end_date - timedelta(hours=1)
        return get_probes_for_bar_chart(self.service_id, start_date, end_date)