Example #1
0
def importer_depth():
    """Update the RRD data for the import queue depth."""
    trans = transaction.begin()
    initialize_sql(ini)
    StatBookmarkMgr.count_importer_depth()
    trans.commit()
    celery.task.subtask(importer_depth_rrd).delay()
Example #2
0
def importer_depth():
    """Update the RRD data for the import queue depth."""
    trans = transaction.begin()
    initialize_sql(ini)
    StatBookmarkMgr.count_importer_depth()
    trans.commit()
    celery.task.subtask(importer_depth_rrd).delay()
Example #3
0
def count_tags():
    """Count the total number of tags in the system"""
    trans = transaction.begin()
    StatBookmarkMgr.count_total_tags()
    trans.commit()
Example #4
0
def count_unique():
    """Count the unique number of bookmarks/urls in the system"""
    trans = transaction.begin()
    StatBookmarkMgr.count_unique_bookmarks()
    trans.commit()
Example #5
0
def count_total():
    """Count the total number of bookmarks in the system"""
    trans = transaction.begin()
    initialize_sql(ini)
    StatBookmarkMgr.count_total_bookmarks()
    trans.commit()
Example #6
0
def count_total():
    """Count the total number of bookmarks in the system"""
    trans = transaction.begin()
    initialize_sql(ini)
    StatBookmarkMgr.count_total_bookmarks()
    trans.commit()