def talks_count(query={}, include_deleted=False): """ Replacement for db.talks.count to account for versioning and so that we don't cache results. """ return count_distinct(db.talks, _counter, query, include_deleted)
def seminars_count(query={}): """ Replacement for db.seminars.count to account for versioning. """ return count_distinct(db.seminars, _counter, query)
def seminars_count(query={}, include_deleted=False): """ Replacement for db.seminars.count to account for versioning. """ return count_distinct(db.seminars, _counter, query, include_deleted)