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

Fixed strange issue with urllib trying to connect on IPv4

This commit is contained in:
Krateng
2019-02-15 15:18:57 +01:00
parent d481746514
commit 3a06123255
7 changed files with 21 additions and 19 deletions

View File

@@ -4,7 +4,7 @@ from htmlgenerators import artistLink
def replacedict(keys,dbport):
response = urllib.request.urlopen("http://localhost:" + str(dbport) + "/issues")
response = urllib.request.urlopen("http://[::1]:" + str(dbport) + "/issues")
db_data = json.loads(response.read())
i = 0