mirror of
https://github.com/iFargle/headscale-webui.git
synced 2026-01-03 19:23:35 +01:00
Test
This commit is contained in:
@@ -347,13 +347,11 @@ def thread_machine_content(machine, machine_content, idx):
|
||||
|
||||
expiry_parse = parser.parse(machine["expiry"])
|
||||
expiry_local = expiry_parse.astimezone(timezone)
|
||||
expiry_delta = local_time - expiry_local
|
||||
expiry_print = helper.pretty_print_duration(expiry_delta)
|
||||
expiry_delta = expiry_local - local_time
|
||||
expiry_print = helper.pretty_print_duration(expiry_delta, "expiry")
|
||||
expiry_time = str(expiry_local.strftime('%A %m/%d/%Y, %H:%M:%S'))+" "+str(timezone)+" ("+str(expiry_print)+")"
|
||||
|
||||
testasdf = expiry_local - local_time
|
||||
LOG.error(machine["name"]+": expiry_delta ("+str(expiry_delta)+"): "+str(expiry_delta.days)+"d "+str(expiry_delta.seconds)+"s")
|
||||
LOG.error(machine["name"]+": testasdf ("+str(testasdf) +"): "+str(testasdf.days) +"d "+str(testasdf.seconds) +"s")
|
||||
|
||||
# Get the first 10 characters of the PreAuth Key:
|
||||
if machine["preAuthKey"]:
|
||||
|
||||
Reference in New Issue
Block a user