This commit is contained in:
parent
38d9e1443f
commit
1016d11ae2
9
app.py
9
app.py
@ -4,10 +4,10 @@ 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
|
||||||
|
|
||||||
import socket
|
import socket
|
||||||
|
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
assets = Environment(app)
|
assets = Environment(app)
|
||||||
@ -24,6 +24,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')
|
@app.route('/liveness')
|
||||||
def healthx():
|
def healthx():
|
||||||
return "<h1><center>Liveness check completed</center><h1>"
|
return "<h1><center>Liveness check completed</center><h1>"
|
||||||
|
@ -55,11 +55,6 @@
|
|||||||
<img src="https://static.vdk2ch.ru/thread-pics/{{pic}}" alt="954x960" id="img-15135655-d39bd5b1ed6c40e9a1d1eb2971a57584" class="post__file-preview " data-type="2" data-title="image.png" data-width="954" data-height="960" data-md5="15135655-d39bd5b1ed6c40e9a1d1eb2971a57584" data-src="https://static.vdk2ch.ru/thread-pics/{{pic}}" width="168" height="170">
|
<img src="https://static.vdk2ch.ru/thread-pics/{{pic}}" alt="954x960" id="img-15135655-d39bd5b1ed6c40e9a1d1eb2971a57584" class="post__file-preview " data-type="2" data-title="image.png" data-width="954" data-height="960" data-md5="15135655-d39bd5b1ed6c40e9a1d1eb2971a57584" data-src="https://static.vdk2ch.ru/thread-pics/{{pic}}" width="168" height="170">
|
||||||
</a>
|
</a>
|
||||||
</figure>
|
</figure>
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
<article id="m15135655" class="post__message ">
|
|
||||||
<a href="/news/res/15135633.html#15135633" class="post-reply-link" data-thread="15135633" data-num="15135633">>>15135633 (OP)</a><br>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="hex">
|
<div class="hex">
|
||||||
<div class="hex-background">
|
<div class="hex-background">
|
||||||
@ -67,6 +62,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
<article id="m15135655" class="post__message ">
|
||||||
|
<a href="/news/res/15135633.html#15135633" class="post-reply-link" data-thread="15135633" data-num="15135633">>>15135633 (OP)</a><br>
|
||||||
|
|
||||||
|
|
||||||
{% for pic in thread.pic_links %}
|
{% for pic in thread.pic_links %}
|
||||||
<svg class="post__file-preview " data-width="954" data-height="960" data-type="2" data-md5="15135655-d39bd5b1ed6c40e9a1d1eb2971a57584" data-title="image.png" viewBox="0 0 100 100" data-src="https://static.vdk2ch.ru/thread-pics/{{pic}}" width="168" height="170" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
<svg class="post__file-preview " data-width="954" data-height="960" data-type="2" data-md5="15135655-d39bd5b1ed6c40e9a1d1eb2971a57584" data-title="image.png" viewBox="0 0 100 100" data-src="https://static.vdk2ch.ru/thread-pics/{{pic}}" width="168" height="170" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
||||||
<defs>
|
<defs>
|
||||||
|
Loading…
Reference in New Issue
Block a user