示例#1
0
    def set_increment_invite_tutoend_count(self, cnt=1, now=None):
        """招待成功してチュートリアルも終わった数.
        """
        def func(pipe):
            InviteCount.incrby(now or OSAUtil.get_now(),
                               InviteCount.TARGET.TUTOEND, cnt, pipe)

        self.__append_process(InviteCount.getDBName(), func)
        return self
示例#2
0
    def set_increment_invite_success_count(self, cnt=1, now=None):
        """招待成功数.
        """
        def func(pipe):
            InviteCount.incrby(now or OSAUtil.get_now(),
                               InviteCount.TARGET.SUCCESS, cnt, pipe)

        self.__append_process(InviteCount.getDBName(), func)
        return self