(rev: int, lrn: int, new: int)
return ret
Calculate progress using weights and card counts from the sched.
Calculate progress using weights and card counts from the sched.
Calculate progress using weights and card counts from the sched .
def calcProgress(rev: int, lrn: int, new: int) -> int:
    """Calculate progress using weights and card counts from the sched."""
    ret = 0
    if includeRev:
        ret += rev * revWeight
    if includeLrn:
        ret += lrn * lrnWeight
    if includeNew or (includeNewAfterRevs and rev == 0):
        ret += new * newWeight
    return ret
def calcProgress ( rev : int , lrn : int , new : int ) -> int : ret = 0 if includeRev : ret += rev * revWeight if includeLrn : ret += lrn * lrnWeight if includeNew or ( includeNewAfterRevs and rev == 0 ) : ret += new * newWeight return ret