tidy and refactor

This commit is contained in:
Oliver Gorwits
2017-12-30 14:55:00 +00:00
parent 79f22a47b3
commit e5b96b0781
2 changed files with 191 additions and 149 deletions

View File

@@ -98,7 +98,6 @@ ajax '/ajax/data/device/netmap' => require_login sub {
]) : ())
}, {
columns => [qw/left_ip speed right_ip/],
'+select' => [\'row_number() over()'], '+as' => ['row_number'],
result_class => 'DBIx::Class::ResultClass::HashRefInflator',
});
@@ -118,7 +117,6 @@ ajax '/ajax/data/device/netmap' => require_login sub {
FROMID => $link->{left_ip},
TOID => $link->{right_ip},
SPEED => $link->{speed},
ID => $link->{row_number},
};
++$ok_dev{$link->{left_ip}};