udata 11.1.2.dev1__py3-none-any.whl → 11.1.2.dev3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of udata might be problematic. Click here for more details.
- udata/core/site/api.py +9 -0
- udata/frontend/__init__.py +1 -1
- udata/static/chunks/{10.8ca60413647062717b1e.js → 10.471164b2a9fe15614797.js} +3 -3
- udata/static/chunks/{10.8ca60413647062717b1e.js.map → 10.471164b2a9fe15614797.js.map} +1 -1
- udata/static/chunks/{11.b6f741fcc366abfad9c4.js → 11.55ab79044cda0271b595.js} +3 -3
- udata/static/chunks/{11.b6f741fcc366abfad9c4.js.map → 11.55ab79044cda0271b595.js.map} +1 -1
- udata/static/chunks/{13.2d06442dd9a05d9777b5.js → 13.d9c1735d14038b94c17e.js} +2 -2
- udata/static/chunks/{13.2d06442dd9a05d9777b5.js.map → 13.d9c1735d14038b94c17e.js.map} +1 -1
- udata/static/chunks/{17.e8e4caaad5cb0cc0bacc.js → 17.81c57c0dedf812e43013.js} +2 -2
- udata/static/chunks/{17.e8e4caaad5cb0cc0bacc.js.map → 17.81c57c0dedf812e43013.js.map} +1 -1
- udata/static/chunks/{8.778091d55cd8ea39af6b.js → 8.b58fcd977fcaf3415571.js} +2 -2
- udata/static/chunks/{8.778091d55cd8ea39af6b.js.map → 8.b58fcd977fcaf3415571.js.map} +1 -1
- udata/static/chunks/{9.033d7e190ca9e226a5d0.js → 9.07515e5187f475bce828.js} +3 -3
- udata/static/chunks/{9.033d7e190ca9e226a5d0.js.map → 9.07515e5187f475bce828.js.map} +1 -1
- udata/static/common.js +1 -1
- udata/static/common.js.map +1 -1
- udata/tests/test_tags.py +3 -6
- {udata-11.1.2.dev1.dist-info → udata-11.1.2.dev3.dist-info}/METADATA +1 -1
- {udata-11.1.2.dev1.dist-info → udata-11.1.2.dev3.dist-info}/RECORD +23 -24
- udata/core/tags/views.py +0 -18
- {udata-11.1.2.dev1.dist-info → udata-11.1.2.dev3.dist-info}/WHEEL +0 -0
- {udata-11.1.2.dev1.dist-info → udata-11.1.2.dev3.dist-info}/entry_points.txt +0 -0
- {udata-11.1.2.dev1.dist-info → udata-11.1.2.dev3.dist-info}/licenses/LICENSE +0 -0
- {udata-11.1.2.dev1.dist-info → udata-11.1.2.dev3.dist-info}/top_level.txt +0 -0
udata/core/site/api.py
CHANGED
|
@@ -15,6 +15,8 @@ from udata.core.organization.csv import OrganizationCsvAdapter
|
|
|
15
15
|
from udata.core.organization.models import Organization
|
|
16
16
|
from udata.core.reuse.api import ReuseApiParser
|
|
17
17
|
from udata.core.reuse.csv import ReuseCsvAdapter
|
|
18
|
+
from udata.core.tags.csv import TagCsvAdapter
|
|
19
|
+
from udata.core.tags.models import Tag
|
|
18
20
|
from udata.harvest.csv import HarvestSourceCsvAdapter
|
|
19
21
|
from udata.harvest.models import HarvestSource
|
|
20
22
|
from udata.models import Dataset, Reuse
|
|
@@ -159,6 +161,13 @@ class SiteHarvestsCsv(API):
|
|
|
159
161
|
return csv.stream(adapter, "harvest")
|
|
160
162
|
|
|
161
163
|
|
|
164
|
+
@api.route("/site/tags.csv", endpoint="site_tags_csv")
|
|
165
|
+
class SiteTagsCsv(API):
|
|
166
|
+
def get(self):
|
|
167
|
+
adapter = TagCsvAdapter(Tag.objects.order_by("-total"))
|
|
168
|
+
return csv.stream(adapter, "tags")
|
|
169
|
+
|
|
170
|
+
|
|
162
171
|
@api.route("/site/context.jsonld", endpoint="site_jsonld_context")
|
|
163
172
|
class SiteJsonLdContext(API):
|
|
164
173
|
def get(self):
|