예제 #1
0
파일: engine.py 프로젝트: rushiagr/mftrack
def get_txns():
    return db.get_all_transactions(1)
예제 #2
0
파일: engine.py 프로젝트: rushiagr/mftrack
def get_summary(user_id):
    """Get all the important data for the user"""
    txns = db.get_all_transactions(user_id)
    mf_dict, stats = get_detailed_stats(txns)
    mf_dict, stats = prettify_data(mf_dict, stats)
    return mf_dict, stats