mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-08 11:11:38 -07:00
Integer name casues restart #874
This commit is contained in:
0
front/php/templates/language/ru_ru.json
Normal file → Executable file
0
front/php/templates/language/ru_ru.json
Normal file → Executable file
@@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
# Schedule cron jobs
|
# Schedule cron jobs
|
||||||
* * * * * /app/back/cron_script.sh
|
* * * * * /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
|
||||||
|
|||||||
@@ -739,7 +739,7 @@ def guess_type(vendor, mac, ip, name, default):
|
|||||||
result = default
|
result = default
|
||||||
mac = mac.upper()
|
mac = mac.upper()
|
||||||
vendor = vendor.lower() if vendor else "unknown"
|
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
|
# Guess icon based on vendor
|
||||||
if any(brand in vendor for brand in {"samsung", "motorola"}):
|
if any(brand in vendor for brand in {"samsung", "motorola"}):
|
||||||
|
|||||||
Reference in New Issue
Block a user