From 5cb47c7c2ff3b4c51d9318e3bca903530bd79acb Mon Sep 17 00:00:00 2001 From: Dejwut Date: Wed, 17 May 2023 03:44:53 +0200 Subject: [PATCH] Added location for aps. --- server/server/src/database.go | 5 +++-- server/server/src/structs.go | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/server/server/src/database.go b/server/server/src/database.go index edb97f7..0358cbd 100644 --- a/server/server/src/database.go +++ b/server/server/src/database.go @@ -37,9 +37,10 @@ func ApsQuery() []Ap { bruh int name string uwec int + location string ) - rows.Scan(&uwec, &ip, &name, &bruh) - array = append(array, Ap{ip, name, bruh}) + rows.Scan(&uwec, &ip, &name, &bruh, &location) + array = append(array, Ap{ip, name, bruh, location}) } return array } diff --git a/server/server/src/structs.go b/server/server/src/structs.go index 2ccb2d8..ef0f75f 100644 --- a/server/server/src/structs.go +++ b/server/server/src/structs.go @@ -4,6 +4,7 @@ type Ap struct { IP string Name string Type int + Location string } type ApModel struct {