Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PLWN_API
Manage
Activity
Members
Labels
Plan
Issues
10
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Libraries
PLWN_API
Commits
52267138
Commit
52267138
authored
4 years ago
by
Leszek Szymczak
Browse files
Options
Downloads
Patches
Plain Diff
Update plwn/download.py
parent
41c988a0
1 merge request
!4
Adding download option
Pipeline
#1049
passed with stage
in 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plwn/download.py
+2
-4
2 additions, 4 deletions
plwn/download.py
with
2 additions
and
4 deletions
plwn/download.py
+
2
−
4
View file @
52267138
...
...
@@ -15,6 +15,7 @@ config.read(config_path)
def
get_available_models
():
"""
Returns available models.
"""
root
=
ET
.
parse
(
urlopen
(
"
https://minio.clarin-pl.eu/public
"
)).
getroot
()
available_models
=
[]
for
child
in
root
.
findall
(
...
...
@@ -30,10 +31,7 @@ def get_available_models():
def
download
(
name
=
"
default_model
"
):
"""
After called it downloads a specified database model.
Currently only one model available.
"""
"""
After called it downloads a specified database model.
"""
models
=
get_available_models
()
if
name
==
"
default_model
"
:
url
=
config
[
"
DOWNLOAD
"
][
name
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment