1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

No more internal communication via HTTP

This commit is contained in:
Krateng
2019-02-21 09:43:35 +01:00
parent efd4b89da1
commit 46d0874dfc
10 changed files with 22 additions and 138 deletions

View File

@@ -1,11 +1,10 @@
import urllib
import json
import database
from htmlgenerators import artistLink
def instructions(keys,dbport):
def instructions(keys):
response = urllib.request.urlopen("http://[::1]:" + str(dbport) + "/issues")
db_data = json.loads(response.read())
db_data = database.issues()
i = 0
html = "<table class='list'>"