Commit eb9d5529 authored by leszeks's avatar leszeks

pep8 fixes

parent 1408fe0d
Pipeline #1047 passed with stage
in 40 seconds
......@@ -10,7 +10,7 @@ from six.moves.urllib.request import urlopen
config = configparser.ConfigParser()
config_path = os.path.join(os.path.dirname(
os.path.abspath(__file__)), "config.ini")
os.path.abspath(__file__)), "config.ini")
config.read(config_path)
......@@ -29,7 +29,7 @@ def get_available_models():
return available_models
def download(name = "default_model"):
def download(name="default_model"):
"""After called it downloads a specified database model.
Currently only one model available.
......@@ -44,7 +44,7 @@ def download(name = "default_model"):
return
if name in models:
url = config["DOWNLOAD"]["default_model"]
url = url.replace("plwn_dump_27-03-2018.sqlite",name)
url = url.replace("plwn_dump_27-03-2018.sqlite", name)
r = requests.get(url)
with open(name, "wb") as f:
f.write(r.content)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment