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

Minor refactor of resource catalog #3188

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Current (in progress)

- Nothing yet
- Resource catalog: fix preview_url and add extras [#3188](https://github.com/opendatateam/udata/pull/3188)

## 10.0.0 (2024-11-07)

Expand Down
3 changes: 2 additions & 1 deletion udata/core/dataset/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class ResourcesCsvAdapter(csv.NestedAdapter):
("harvest.modified_at", lambda o: o.harvest and o.harvest.modified_at),
("schema_name", "schema.name"),
("schema_version", "schema.version"),
("preview_url", lambda o: o.preview_url or False),
("preview_url", lambda o: o.preview_url or None),
("extras", lambda o: o.extras),
)
attribute = "resources"