Did I find the right examples for you? yes no

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

src/d/u/dupeguru-HEAD/hscommon/currency.py   dupeguru(Download)
 
from .path import Path
from .util import iterdaterange
 
class Currency:
            date_end = date.today() - timedelta(1)
        sql = "select rate from rates where date = ? and currency = ?"
        for curdate in iterdaterange(date_start, date_end):
            cur = self._execute(sql, [date2str(curdate), currency_code])
            if cur.fetchone() is None:

src/m/o/moneyguru-HEAD/hscommon/currency.py   moneyguru(Download)
from . import io
from .path import Path
from .util import iterdaterange
 
class Currency:
            date_end = date.today() - timedelta(1)
        sql = "select rate from rates where date = ? and currency = ?"
        for curdate in iterdaterange(date_start, date_end):
            cur = self._execute(sql, [date2str(curdate), currency_code])
            if cur.fetchone() is None: