mirror of
https://github.com/iFargle/headscale-webui.git
synced 2026-03-18 04:46:45 +01:00
test
This commit is contained in:
@@ -349,7 +349,10 @@ def thread_machine_content(machine, machine_content, idx):
|
||||
expiry_local = expiry_parse.astimezone(timezone)
|
||||
expiry_delta = int(expiry_local - local_time)*-1
|
||||
expiry_print = helper.pretty_print_duration(expiry_delta)
|
||||
expiry_time = str(expiry_local.strftime('%A %m/%d/%Y, %H:%M:%S'))+" "+str(timezone)+" ("+str(expiry_print)+")"
|
||||
if int(expiry_delta) > 0:
|
||||
expiry_time = "Machine has expired."
|
||||
else:
|
||||
expiry_time = str(expiry_local.strftime('%A %m/%d/%Y, %H:%M:%S'))+" "+str(timezone)+" ("+str(expiry_print)+")"
|
||||
|
||||
# Get the first 10 characters of the PreAuth Key:
|
||||
if machine["preAuthKey"]:
|
||||
|
||||
Reference in New Issue
Block a user