@property
    def case_link(self):
        url = self.case_detail_url
        if url:
            return html.mark_safe("<a class='ajax_dialog' href='%s' target='_blank'>%s</a>" % (
                self.case_detail_url, html.escape(self.case_name_display)))
        else:
            return self.case_name % "%s (bad ID format)"
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/reports/standard/cases/data_sources.py/CaseDisplay.case_link/swapped operands of `%`