Skip to content

Commit

Permalink
Remove "(rule [internal code])" from user output
Browse files Browse the repository at this point in the history
  • Loading branch information
Famlam authored Nov 2, 2024
1 parent 834f2e1 commit 285515c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions plugins/TagWatchFrViPofm.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,27 +95,27 @@ def node(self, data, tags):
err = []
for k in tags:
if k in self._update_ks:
err.append({"class": self._update_ks[k][1], "subclass": stablehash64("{0}|{1}".format(self._update_ks, k)), "text": T_("tag key: {0} => {1} (rule ks)", k, self._update_ks[k][0])})
err.append({"class": self._update_ks[k][1], "subclass": stablehash64("{0}|{1}".format(self._update_ks, k)), "text": T_("tag key: {0} => {1}", k, self._update_ks[k][0])})
if k in self._update_ks_vs and tags[k] in self._update_ks_vs[k]:
err.append({"class": self._update_ks_vs[k][tags[k]][1], "subclass": stablehash64("{0}|{1}".format(self._update_ks, k)), "text": T_("tag value: {0}={1} => {2} (rule ks_vs)", k, tags[k],self._update_ks_vs[k][tags[k]][0])})
err.append({"class": self._update_ks_vs[k][tags[k]][1], "subclass": stablehash64("{0}|{1}".format(self._update_ks, k)), "text": T_("tag value: {0}={1} => {2}", k, tags[k],self._update_ks_vs[k][tags[k]][0])})
if k in self._update_ks_vr:
for v in self._update_ks_vr[k]:
if v.match(tags[k]):
err.append({"class": self._update_ks_vr[k][v][1], "subclass": stablehash64("{0}|{1}".format(v, k)), "text": T_("tag value: {0}={1} => {2} (rule ks_vr)", k, tags[k],self._update_ks_vr[k][v][0])})
err.append({"class": self._update_ks_vr[k][v][1], "subclass": stablehash64("{0}|{1}".format(v, k)), "text": T_("tag value: {0}={1} => {2}", k, tags[k],self._update_ks_vr[k][v][0])})

for kk in tags:
for k in self._update_kr:
if k.match(kk):
err.append({"class": self._update_kr[k][1], "subclass": stablehash64("{0}|{1}".format(kk, k)), "text": T_("tag key: {0} => {1} (rule kr)", kk, self._update_kr[k][0])})
err.append({"class": self._update_kr[k][1], "subclass": stablehash64("{0}|{1}".format(kk, k)), "text": T_("tag key: {0} => {1}", kk, self._update_kr[k][0])})
for k in self._update_kr_vs:
if k.match(kk):
if tags[kk] in self._update_kr_vs[k]:
err.append({"class": self._update_kr_vs[k][tags[kk]][1], "subclass": stablehash64("{0}|{1}".format(kk, k)), "text": T_("tag value: {0}={1} => {2} (rule kr_vs)", kk, tags[kk], self._update_kr_vs[k][tags[kk]][0])})
err.append({"class": self._update_kr_vs[k][tags[kk]][1], "subclass": stablehash64("{0}|{1}".format(kk, k)), "text": T_("tag value: {0}={1} => {2}", kk, tags[kk], self._update_kr_vs[k][tags[kk]][0])})
for k in self._update_kr_vr:
if k.match(kk):
for v in self._update_kr_vr[k]:
if v.match(tags[kk]):
err.append({"class": self._update_kr_vr[k][v][1], "subclass": stablehash64("{0}|{1}".format(kk, k)), "text": T_("tag value: {0}={1} => {2} (rule kr_vr)", kk, tags[kk], self._update_kr_vr[k][v][0])})
err.append({"class": self._update_kr_vr[k][v][1], "subclass": stablehash64("{0}|{1}".format(kk, k)), "text": T_("tag value: {0}={1} => {2}", kk, tags[kk], self._update_kr_vr[k][v][0])})
return err

def way(self, data, tags, nds):
Expand Down

0 comments on commit 285515c

Please sign in to comment.