Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

src/b/o/bodhi-HEAD/tools/metrics.py   bodhi(Download)
from sqlalchemy.sql import and_
 
from bodhi.util import get_db_from_config, header, get_critpath_pkgs
from bodhi.models import Update, Release, UpdateStatus, UpdateType
 
def main(releases=None):
    db = get_db_from_config()
 
    stats = {}  # {release: {'stat': ...}}
    feedback = 0  # total number of updates that received feedback

src/b/o/bodhi-HEAD/tools/pickledb.py   bodhi(Download)
from progressbar import ProgressBar, SimpleProgress, Percentage, Bar
 
from bodhi.util import get_db_from_config, get_critpath_pkgs
 
 
    critpath = {}
 
    db = get_db_from_config()
 
    # Allow filtering of releases to load

src/b/o/bodhi-HEAD/bodhi/tests/test_utils.py   bodhi(Download)
from bodhi.models import Update
from bodhi.util import get_db_from_config, get_critpath_pkgs
from bodhi.config import config
 
 
    def test_get_db_from_config(self):
        db = get_db_from_config(dev=True)
        num = db.query(Update).count()
        assert num == 0, num