Changeset - 882866aa38f6
[Not reviewed]
default
0 1 0
Laman - 3 years ago 2021-12-16 21:37:59

adjusted all.hst encoding to iso8859
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
rank_progress.py
Show inline comments
 
@@ -151,7 +151,7 @@ if __name__ == "__main__":
 
	if args.file:
 
		print("Reading {} ...".format(args.file))
 
		with ZipFile(args.file) as f:
 
			s = f.read("all.hst").decode("utf-8")
 
			s = f.read("all.hst").decode("iso8859")
 
	else:
 
		url = "https://europeangodatabase.eu/EGD/EGD_2_0/downloads/hisgor.zip"
 
		print("Downloading data from {} ...".format(url))
 
@@ -159,7 +159,7 @@ if __name__ == "__main__":
 
			with urllib.request.urlopen(url) as f:
 
				compressed_data = f.read()
 
				with ZipFile(io.BytesIO(compressed_data)) as g:
 
					s = g.read("all.hst").decode("utf-8")
 
					s = g.read("all.hst").decode("iso8859")
 
		except URLError as e:
 
			print(
 
				"* Failed to connect to the server. "
0 comments (0 inline, 0 general)