-
From 1016d11ae20dff47fa644bb45177dd8d82367fed Mon Sep 17 00:00:00 2001 From: Simple_Not <44047940+moonbaseDelta@users.noreply.github.com> Date: Wed, 12 Jul 2023 01:43:59 +1000 Subject: [PATCH] annother hexxo --- app.py | 9 ++++++++- templates/posts.html | 13 +++++++------ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/app.py b/app.py index ddf2def..7709315 100644 --- a/app.py +++ b/app.py @@ -4,10 +4,10 @@ from todo import todos from boards import board_list from threads import threads_lists from threads_with_posts import open_threads +from arango import ArangoClient import socket - app = Flask(__name__) assets = Environment(app) @@ -23,6 +23,13 @@ js.build() + +arango_client = ArangoClient(hosts='http://localhost:8529') +db = arango_client.db('board1', username='root', password='rootpassword') + +boards = db.collection('boards') + + @app.route('/liveness') def healthx(): diff --git a/templates/posts.html b/templates/posts.html index ec76c02..38a7473 100644 --- a/templates/posts.html +++ b/templates/posts.html @@ -55,18 +55,19 @@ + +