annother hexxo
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simple_Not 2023-07-12 01:50:29 +10:00
parent 1cde8d0d02
commit 66cc98ecfc
2 changed files with 9 additions and 7 deletions

13
app.py
View File

@ -1,10 +1,10 @@
from flask import Flask, render_template, request from flask import Flask, render_template, request
from flask_assets import Bundle, Environment from flask_assets import Bundle, Environment
from todo import todos from todo import todos
from boards import board_list #from boards import board_list
from threads import threads_lists from threads import threads_lists
from threads_with_posts import open_threads from threads_with_posts import open_threads
#from arango import ArangoClient from arango import ArangoClient
import socket import socket
@ -24,11 +24,12 @@ js.build()
# arango_client = ArangoClient(hosts='http://localhost:8529') arango_client = ArangoClient(hosts='http://localhost:8529')
# db = arango_client.db('board1', username='root', password='rootpassword') db = arango_client.db('board1', username='root', password='rootpassword')
# boards = db.collection('boards')
# предполагается что меняться список будет весьма редко, поэтому подхватываем при лишь при перезапуске
boards0 = db.collection('boards')
board_list = [ k['_key'] for k in boards0]
@app.route('/liveness') @app.route('/liveness')

View File

@ -1,2 +1,3 @@
flask flask
flask-assets flask-assets
python-arango