cache latest server HostName in database

This commit is contained in:
ghost 2024-01-13 03:58:36 +02:00
parent becb46d1bc
commit af4ad5f65b
7 changed files with 91 additions and 16 deletions

View file

@ -31,7 +31,15 @@
</span>
{% endif %}
</td>
<td class="text-align-left">{{ server.info.HostName }}</td>
<td class="text-align-left">
{% if server.name %}
{{ server.name }}
{% elseif server.info.HostName %}
{{ server.info.HostName }}
{% else %}
#{{ server.crc32server }}
{% endif %}
</td>
<td class="text-align-left">{{ server.info.Map }}</td>
<td class="text-align-left">{{ server.added | format_date }}</td>
<td class="text-align-left">{{ server.online | format_date }}</td>