登録単位数合計の取得

def get_registered_credits (self):
        """ 登録単位数合計の取得 """

        self.req("RSW0001000-flow")
        r = self.get({
                       "_eventId":     "search",
                       "moduleCode":   1,
                       "gakkiKbnCode": "A"
                   })
        html = r.text

        # XXX
        for l in html.split("\n"):
            if "単位</td>" in l:
                return float(l.strip().replace('<td align="center">', "").
                                       replace("単位</td>", ""))

        return 0.