luci-app-statistics: protect nested formating litteral

Signed-off-by: Martin Schitter <ms+git@mur.at>
This commit is contained in:
Martin Schitter 2021-11-06 12:52:51 +01:00
parent b0279f474e
commit d91702cb22

View file

@ -89,7 +89,8 @@ return baseclass.extend({
opts[dsn2] = { color: "0000ff", title: "NLQ (%s)".format(host), flip: true };
g.push({
title: "%H: Signal Quality (%s)".format(host), vlabel: "ETX",
title: "%%H: Signal Quality (%s)".format(host),
vlabel: "ETX",
number_format: "%5.2lf", detail: true,
data: {
types: [ "signal_quality" ],