mirror of
https://github.com/iFargle/headscale-webui.git
synced 2026-01-04 03:33:28 +01:00
test
This commit is contained in:
@@ -358,7 +358,7 @@ def thread_machine_content(machine, machine_content, idx):
|
||||
expiry_time = str(expiry_local.strftime('%A %m/%d/%Y, %H:%M:%S'))+" "+str(timezone)+" ("+str(expiry_print)+")"
|
||||
LOG.error("Machine: "+machine["name"]+" expires: "+str(expiry_local.strftime('%Y'))+" / "+str(expiry_delta.days))
|
||||
|
||||
expiring_soon = True if int(expiry_delta.days) < 200 and int(expiry_delta.days) > 0 else False
|
||||
expiring_soon = True if int(expiry_delta.days) < 14 and int(expiry_delta.days) > 0 else False
|
||||
# Get the first 10 characters of the PreAuth Key:
|
||||
if machine["preAuthKey"]:
|
||||
preauth_key = str(machine["preAuthKey"]["key"])[0:10]
|
||||
|
||||
Reference in New Issue
Block a user