diff --git a/front/php/templates/language/de_de.json b/front/php/templates/language/de_de.json index 6233b592..51c270af 100755 --- a/front/php/templates/language/de_de.json +++ b/front/php/templates/language/de_de.json @@ -5,7 +5,7 @@ "API_icon": "", "APPRISE_HOST_description": "Apprise host URL starting with http:// or https://. (do not forget to include /notify at the end)", "APPRISE_HOST_name": "Apprise host URL", - "APPRISE_PAYLOAD_description": "Select the payoad type sent to Apprise. For example html works well with emails, text with chat apps, such as Telegram.", + "APPRISE_PAYLOAD_description": "Select the payload type sent to Apprise. For example html works well with emails, text with chat apps, such as Telegram.", "APPRISE_PAYLOAD_name": "Payload type", "APPRISE_SIZE_description": "The maximum size of the apprise payload as number of characters in the passed string. If above limit, it will be truncated and a (text was truncated) message is appended.", "APPRISE_SIZE_name": "Max payload size", diff --git a/front/plugins/_publisher_apprise/config.json b/front/plugins/_publisher_apprise/config.json index d5daaebd..7ad14747 100755 --- a/front/plugins/_publisher_apprise/config.json +++ b/front/plugins/_publisher_apprise/config.json @@ -444,7 +444,7 @@ "description": [ { "language_code": "en_us", - "string": "Select the payoad type sent to Apprise. For example html works well with emails, text with chat apps, such as Telegram." + "string": "Select the payload type sent to Apprise. For example html works well with emails, text with chat apps, such as Telegram." }, { "language_code": "es_es", diff --git a/server/device.py b/server/device.py index 76dbea2b..fd5239bc 100755 --- a/server/device.py +++ b/server/device.py @@ -29,6 +29,17 @@ class Device_obj: """) return self.db.sql.fetchall() + # Get specific column value based on dev_MAC + def getValueWithMac(self, column_name, dev_MAC): + + query = f"SELECT {column_name} FROM Devices WHERE dev_MAC = ?" + + self.db.sql.execute(query, (dev_MAC,)) + + result = self.db.sql.fetchone() + + return result[column_name] if result else None + #------------------------------------------------------------------------------- def save_scanned_devices (db):