@staticmethod
    def format_approvals(approvals):
        bits = []
        for approval in approvals:
            if approval.action == ModelApproval.ACTION_WORKFLOW and approval.value > 0:
                bits.append("+A")
            elif approval.action == ModelApproval.ACTION_REVIEWED:
                if approval.value > 0:
                    bits.append("R+" + str(approval.value))
                elif approval.value < 0:
                    bits.append("R" + str(approval.value))
                else:
                    bits.append("R=0")
            elif approval.action == ModelApproval.ACTION_VERIFIED:
                if approval.value > 0:
                    bits.append("V+" + str(approval.value))
                elif approval.value < 0:
                    bits.append("V" + str(approval.value))
                else:
                    bits.append("V=0")
        return ",".join(bits)
dataset/ETHPy150Open berrange/gerrymander/gerrymander/commands.py/CommandWatch.format_approvals/original