Integer name casues restart #874

This commit is contained in:
jokob-sk
2024-11-06 08:14:32 +11:00
parent ab0e99d870
commit 775e46529d
3 changed files with 2 additions and 2 deletions

0
front/php/templates/language/ru_ru.json Normal file → Executable file
View File

View File

@@ -2,4 +2,4 @@
# Schedule cron jobs
* * * * * /app/back/cron_script.sh
* * * * * echo "$(date +'%Y-%m-%d %H:%M:%S') - Cron job ran" >> /app/front/log/cron_timestamp.log
#* * * * * echo "$(date +'%Y-%m-%d %H:%M:%S') - Cron job ran" >> /app/front/log/cron_timestamp.log

View File

@@ -739,7 +739,7 @@ def guess_type(vendor, mac, ip, name, default):
result = default
mac = mac.upper()
vendor = vendor.lower() if vendor else "unknown"
name = name.lower() if name else "(unknown)"
name = str(name).lower() if name else "(unknown)"
# Guess icon based on vendor
if any(brand in vendor for brand in {"samsung", "motorola"}):