Example #1
0
def get_txns():
    return db.get_all_transactions(1)
Example #2
0
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