From 614feb5982ba428722236c0e52226fa839447ce1 Mon Sep 17 00:00:00 2001 From: iSecNew10 Date: Thu, 6 Apr 2023 09:15:53 +0200 Subject: [PATCH] Fix status page values --- appdb/Models/ServiceStatus.swift | 2 +- appdb/Tabs/Settings/System Status/SystemStatus.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/appdb/Models/ServiceStatus.swift b/appdb/Models/ServiceStatus.swift index 4029d1ce..e27f980b 100644 --- a/appdb/Models/ServiceStatus.swift +++ b/appdb/Models/ServiceStatus.swift @@ -14,7 +14,7 @@ struct ServiceStatus: Mappable { var name: String = "" var isOnline = false - var data: Int? + var data: String? mutating func mapping(map: Map) { name <- map["name"] diff --git a/appdb/Tabs/Settings/System Status/SystemStatus.swift b/appdb/Tabs/Settings/System Status/SystemStatus.swift index 42e423ac..fe431834 100644 --- a/appdb/Tabs/Settings/System Status/SystemStatus.swift +++ b/appdb/Tabs/Settings/System Status/SystemStatus.swift @@ -86,7 +86,7 @@ class SystemStatus: LoadingTableView { if let cell = tableView.dequeueReusableCell(withIdentifier: "service", for: indexPath) as? SimpleStaticCell { cell.textLabel?.text = services[indexPath.row].name if let data = services[indexPath.row].data { - cell.detailTextLabel?.text = String(data) + cell.detailTextLabel?.text = data cell.accessoryView = nil } else { cell.detailTextLabel?.text = ""