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

All Samples(7)  |  Call(6)  |  Derive(0)  |  Import(1)

src/s/e/selena-1.0.2/src/selena/boards/views/boards.py   selena(Download)
from django.shortcuts import get_object_or_404
 
from boards.data_providers import (
    CLASSIFICATION_NOT_CORE,
    CLASSIFICATION_ONLY_CORE,
    def _get_items(self):
        end_date = timezone.now()
        start_date = end_date - timedelta(hours=1)
        return get_index_data(start_date, end_date)
 
    def _get_items(self):
        end_date = timezone.now()
        start_date = end_date - timedelta(hours=1)
        return get_index_data(
            start_date,
    def _get_items(self):
        end_date = timezone.now()
        start_date = end_date - timedelta(minutes=settings.ERROR_TIME_INTERVAL)
        return get_index_data(
            start_date,
    def _get_items(self):
        end_date = timezone.now()
        start_date = end_date - timedelta(minutes=settings.ERROR_TIME_INTERVAL)
        return get_index_data(
            start_date,