Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libs/kraj_zl.py -- zmena distance_to_counts #20

Open
glomerata opened this issue Apr 13, 2020 · 1 comment
Open

libs/kraj_zl.py -- zmena distance_to_counts #20

glomerata opened this issue Apr 13, 2020 · 1 comment

Comments

@glomerata
Copy link

Pardon,
neumi pouzivat git, a tak nevim, kde mam napsat, ze:
v https://github.com/lynt-smitka/khs-crawler/blob/master/libs/kraj_zl.py
je treba zmenit:

Puvodni hodnotu
distance_to_counts = pocet_okresu * 2
nahradit za
distance_to_counts = pocet_okresu + 1

Otestovano:
distance_to_counts = pocet_okresu + 1
...
print(i,lines[i],lines[i+distance_to_counts])
12 okres Kroměříž 26
13 okres Uherské Hradiště 129
14 okres Vsetín 43
15 okres Zlín 60

@helb
Copy link
Collaborator

helb commented Apr 13, 2020

Diky, zmenim to. Ta PDFka s tabulkami se rozbiji kazdou chvili, resenim by bylo pouzit jinou knihovnu – #16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants