Move arithmetic to Python code

This commit is contained in:
Daniel Markstedt 2021-09-20 15:58:56 -07:00
parent 57bbcbd639
commit dcd516aa48
2 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@
<hr/> <hr/>
<h2>Upload File</h2> <h2>Upload File</h2>
<p>Uploads file to <tt>{{base_dir}}</tt>. The largest file size accepted is {{max_file_size / 1024 /1024}} MB</p> <p>Uploads file to <tt>{{base_dir}}</tt>. The largest file size accepted is {{max_file_size}} MB</p>
<table style="border: none"> <table style="border: none">
<tr style="border: none"> <tr style="border: none">
<td style="border: none; vertical-align:top;"> <td style="border: none; vertical-align:top;">

View File

@ -69,7 +69,7 @@ def index():
base_dir=base_dir, base_dir=base_dir,
scsi_ids=scsi_ids, scsi_ids=scsi_ids,
reserved_scsi_ids=reserved_scsi_ids, reserved_scsi_ids=reserved_scsi_ids,
max_file_size=MAX_FILE_SIZE, max_file_size=int(MAX_FILE_SIZE / 1024 / 1024),
running_env=running_env(), running_env=running_env(),
server_info=server_info, server_info=server_info,
netinfo=get_network_info(), netinfo=get_network_info(),