Skip to content

Commit

Permalink
Add url type (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarans authored Dec 6, 2024
1 parent cc67e69 commit b70c3b8
Show file tree
Hide file tree
Showing 31 changed files with 26,980 additions and 26,975 deletions.
5 changes: 4 additions & 1 deletion common/dataset_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,17 @@ def __init__(
def get_status(self):
self.public = "N" if self["private"] else "Y"
self.data_link = ""
self.data_type = ""
requestable = self.dataset.is_requestable()
if requestable:
self.requestable = "Y"
else:
self.requestable = "N"
resources = self.dataset.get_resources()
if resources:
self.data_link = resources[0]["url"]
resource = resources[0]
self.data_link = resource["url"]
self.data_type = resource["url_type"]
self.archived = "Y" if self["archived"] else "N"

def get_cod(self):
Expand Down
2 changes: 2 additions & 0 deletions get_datasets_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def main(downloads, output_dir, **ignore):
"fresh",
"organisation",
"data link",
"data type",
"url",
"is cod",
"tags",
Expand Down Expand Up @@ -111,6 +112,7 @@ def main(downloads, output_dir, **ignore):
datasetstats.fresh,
org,
datasetstats.data_link,
datasetstats.data_type,
url,
datasetstats.is_cod,
datasetstats.tags,
Expand Down
53,892 changes: 26,946 additions & 26,946 deletions tests/fixtures/datasets.csv

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/fixtures/input/datasets_0.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/fixtures/input/datasets_1.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/fixtures/input/datasets_10.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/fixtures/input/datasets_11.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/fixtures/input/datasets_12.json

Large diffs are not rendered by default.

Loading

0 comments on commit b70c3b8

Please sign in to comment.