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()
def count_tags(): """Count the total number of tags in the system""" trans = transaction.begin() StatBookmarkMgr.count_total_tags() trans.commit()
def count_unique(): """Count the unique number of bookmarks/urls in the system""" trans = transaction.begin() StatBookmarkMgr.count_unique_bookmarks() trans.commit()
def count_total(): """Count the total number of bookmarks in the system""" trans = transaction.begin() initialize_sql(ini) StatBookmarkMgr.count_total_bookmarks() trans.commit()