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)
|
||||||
@ -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')
|
@app.route('/liveness')
|
||||||
def healthx():
|
def healthx():
|
||||||
|
@ -55,18 +55,19 @@
|
|||||||
<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>
|
||||||
|
|
||||||
|
<div class="hex">
|
||||||
|
<div class="hex-background">
|
||||||
|
<img src="https://static.vdk2ch.ru/thread-pics/{{pic}}" alt="954x960" id="img-15135655-d39bd5b1ed6c40e9a1d1eb2971a57584">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
<article id="m15135655" class="post__message ">
|
<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>
|
<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-background">
|
|
||||||
<img src="https://static.vdk2ch.ru/thread-pics/{{pic}}" alt="954x960" id="img-15135655-d39bd5b1ed6c40e9a1d1eb2971a57584">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% 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