fix: Fixed search
This commit is contained in:
@@ -19,3 +19,17 @@ EchoLog is a simple, modern homelab journal web app. It lets you document what y
|
|||||||
|
|
||||||
## Docs
|
## Docs
|
||||||
For more information, see the [Docs](https://echolog.jdbnet.co.uk).
|
For more information, see the [Docs](https://echolog.jdbnet.co.uk).
|
||||||
|
|
||||||
|
## Environment Variables
|
||||||
|
|
||||||
|
```
|
||||||
|
MYSQL_HOST=10.10.2.27
|
||||||
|
MYSQL_USER=echolog
|
||||||
|
MYSQL_PASSWORD=gHH0&nGWK!@8Y5
|
||||||
|
MYSQL_DATABASE=echolog
|
||||||
|
SECRET_KEY=bgSNcrA0gZiRX9LbZmminf2LItEXeo
|
||||||
|
TZ=Europe/London
|
||||||
|
LOGIN_ENABLED=true
|
||||||
|
LOGIN_USERNAME=jamie
|
||||||
|
LOGIN_PASSWORD=jamieB223
|
||||||
|
```
|
||||||
@@ -92,7 +92,12 @@ def search():
|
|||||||
entries = cursor.fetchall()
|
entries = cursor.fetchall()
|
||||||
cursor.close()
|
cursor.close()
|
||||||
conn.close()
|
conn.close()
|
||||||
return render_template('index.html', entries=entries)
|
today = datetime.now(tz).date().isoformat()
|
||||||
|
now = datetime.now(tz)
|
||||||
|
page = 1
|
||||||
|
has_prev = False
|
||||||
|
has_next = False
|
||||||
|
return render_template('index.html', entries=entries, today=today, now=now, page=page, has_prev=has_prev, has_next=has_next)
|
||||||
|
|
||||||
@app.route('/login', methods=['GET', 'POST'])
|
@app.route('/login', methods=['GET', 'POST'])
|
||||||
def login():
|
def login():
|
||||||
|
|||||||
Reference in New Issue
Block a user