Add date to settings page
This commit is contained in:
parent
8c2af81adc
commit
60b8e5626a
|
@ -75,6 +75,7 @@ def page_settings():
|
|||
pk_skipped = skipped_product_key()
|
||||
pk_error = not is_valid_product_key()
|
||||
uptime = get_system_uptime()
|
||||
date = get_system_date()
|
||||
local_ip = get_local_ip()
|
||||
public_ip = get_public_ip()
|
||||
|
||||
|
@ -96,6 +97,9 @@ def page_settings():
|
|||
bitcoin_status_log = ""
|
||||
try:
|
||||
bitcoin_status_log = subprocess.check_output(["tail","-n","200","/mnt/hdd/mynode/bitcoin/debug.log"]).decode("utf8")
|
||||
lines = bitcoin_status_log.split('\n')
|
||||
lines.reverse()
|
||||
bitcoin_status_log = '\n'.join(lines)
|
||||
except:
|
||||
bitcoin_status_log = "ERROR"
|
||||
|
||||
|
@ -172,6 +176,7 @@ def page_settings():
|
|||
"upload_rate": upload_rate,
|
||||
"is_btc_lnd_tor_enabled": is_btc_lnd_tor_enabled(),
|
||||
"uptime": uptime,
|
||||
"date": date,
|
||||
"public_ip": public_ip,
|
||||
"local_ip": local_ip,
|
||||
"drive_usage": get_drive_usage(),
|
||||
|
|
|
@ -480,6 +480,10 @@
|
|||
<td>Uptime</td>
|
||||
<td style="padding-left: 20px;">{{uptime}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Date</td>
|
||||
<td style="padding-left: 20px;">{{date}}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="divider"></div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user