diff options
author | Ole Mathias Aa. Heggem <olemathias.aa.heggem@gmail.com> | 2019-04-15 21:51:22 +0100 |
---|---|---|
committer | olemathias.aa.heggem@gmail.com <root@gondul.tg19.gathering.org> | 2019-04-15 21:51:22 +0100 |
commit | 28f2fdc87d4561228825412edde7eff7cf68c2dc (patch) | |
tree | 61ed8d5d16cbb8ecbcd13b6acf5a3d29d49e5b6f /web/api/write/switches | |
parent | c09d78e79c4cddf31a5b10f3d4fe14fe4d693254 (diff) |
tag fix in switches write
Diffstat (limited to 'web/api/write/switches')
-rwxr-xr-x | web/api/write/switches | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web/api/write/switches b/web/api/write/switches index 1f91d48..e0ee950 100755 --- a/web/api/write/switches +++ b/web/api/write/switches @@ -63,6 +63,11 @@ foreach my $tmp2 (@tmp) { } else { %placement = %{convertplace($switch{'placement'})}; } + if (defined($switch{'tags'})) { + # MY GOD I HATE THIS + # But I'm too lazy to improve it more for now. + $switch{'tags'} = "[". join(",", map { "\"".$_."\"" } @{$switch{'tags'}})."]"; + } my ($x1,$x2,$y1,$y2); $x1 = $placement{'x1'}; $y1 = $placement{'y1'}; |