Did I find the right examples for you? yes no

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

src/c/o/cookcountyjail-HEAD/countyapi/housing_location_info.py   cookcountyjail(Download)
from django.db.utils import DatabaseError
from utils import convert_to_int, join_with_space_and_convert_spaces, yesterday
from models import HousingLocation
 
 
                        self._inmate.housing_history.get_or_create(housing_location=self._housing_location)
                    if new_history:
                        housing_history.housing_date_discovered = yesterday()
                        housing_history.save()
                        self._inmate.in_jail = self._housing_location.in_jail

src/c/o/cookcountyjail-HEAD/countyapi/charges.py   cookcountyjail(Download)
 
from django.db.utils import DatabaseError
from utils import just_empty_lines, strip_the_lines, yesterday
 
 
                    new_charge = self._inmate.charges_history.create(charges=parsed_charges,
                                                                     charges_citation=parsed_charges_citation)
                    new_charge.date_seen = yesterday()
                    new_charge.save()
        except DatabaseError as e:

src/c/o/cookcountyjail-HEAD/scraper/search_commands.py   cookcountyjail(Download)
from datetime import date
 
from utils import ONE_DAY, yesterday
from concurrent_base import ConcurrentBase
 
    def find_inmates(self, exclude_list=None, number_to_fetch=MAX_INMATE_NUMBER, start_date=None):
        if exclude_list is None:
            exclude_list = []
        if start_date is None:
            start_date = yesterday()
    def _find_inmates(self, args):
        excluded_inmates = set(args['excluded_inmates'])
        cur_date = args['start_date']
        while cur_date <= yesterday():
            for inmate_id in _jail_ids(cur_date, args['number_to_fetch']):

src/c/o/cookcountyjail-HEAD/scraper/inmates.py   cookcountyjail(Download)
from datetime import date
 
from utils import ONE_DAY, yesterday
from concurrent_base import ConcurrentBase