Fix searchbar showing None if there's nothing written

This commit is contained in:
magmaus3 2022-11-08 12:29:58 +01:00
parent ec68ef897c
commit 733f0abf52
Signed by: magmaus3
GPG key ID: 966755D3F4A9B251

View file

@ -28,7 +28,7 @@
<div class='searchBar'>
<form action="/search" method="get">
<div class="search_entry">
<input type='text' id="q" name="q" value='{{ QueryValues["q"] }}' placeholder="Enter a level name or code"/>
<input type='text' id="q" name="q" value='{{ QueryValues["q"] if QueryValues["q"] is not none }}' placeholder="Enter a level name or code"/>
<button class="searchButton" id='searchButton' type='submit'>🔍</button>
</div>
<details>