udata 13.0.1.dev3__py3-none-any.whl → 13.0.1.dev4__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/harvest/actions.py +1 -1
- udata/migrations/2025-10-29-harvesters-sources-integrity.py +27 -0
- {udata-13.0.1.dev3.dist-info → udata-13.0.1.dev4.dist-info}/METADATA +1 -1
- {udata-13.0.1.dev3.dist-info → udata-13.0.1.dev4.dist-info}/RECORD +8 -7
- {udata-13.0.1.dev3.dist-info → udata-13.0.1.dev4.dist-info}/WHEEL +0 -0
- {udata-13.0.1.dev3.dist-info → udata-13.0.1.dev4.dist-info}/entry_points.txt +0 -0
- {udata-13.0.1.dev3.dist-info → udata-13.0.1.dev4.dist-info}/licenses/LICENSE +0 -0
- {udata-13.0.1.dev3.dist-info → udata-13.0.1.dev4.dist-info}/top_level.txt +0 -0
udata/harvest/actions.py
CHANGED
|
@@ -273,7 +273,7 @@ def schedule(
|
|
|
273
273
|
def unschedule(source: HarvestSource):
|
|
274
274
|
"""Unschedule an harvesting on a source"""
|
|
275
275
|
if not source.periodic_task:
|
|
276
|
-
msg = "Harvesting on source {0} is
|
|
276
|
+
msg = "Harvesting on source {0} is not scheduled".format(source.name)
|
|
277
277
|
raise ValueError(msg)
|
|
278
278
|
|
|
279
279
|
source.periodic_task.delete()
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Fix HarvestSource with removed `periodic_task`
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
import logging
|
|
6
|
+
|
|
7
|
+
import mongoengine
|
|
8
|
+
|
|
9
|
+
from udata.harvest.models import HarvestSource
|
|
10
|
+
|
|
11
|
+
log = logging.getLogger(__name__)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def migrate(db):
|
|
15
|
+
log.info("Processing HarvestSource periodic_task.")
|
|
16
|
+
|
|
17
|
+
sources = HarvestSource.objects
|
|
18
|
+
count = 0
|
|
19
|
+
for source in sources:
|
|
20
|
+
try:
|
|
21
|
+
source.schedule # query periodic_task
|
|
22
|
+
except mongoengine.errors.DoesNotExist:
|
|
23
|
+
count += 1
|
|
24
|
+
source.periodic_task = None
|
|
25
|
+
source.save()
|
|
26
|
+
|
|
27
|
+
log.info(f"Modified {count} sources")
|
|
@@ -297,7 +297,7 @@ udata/forms/widgets.py,sha256=7qymIpynrQmNlA8hrkcF0RB8eLwOJFkjca_KOZ0zqtE,1332
|
|
|
297
297
|
udata/frontend/__init__.py,sha256=DkqncR72V9TRlA3QEcpVtCIkUMUlnTytBlJFQ4HfEiA,6454
|
|
298
298
|
udata/frontend/markdown.py,sha256=5kNMVOMLlGvJfpIVONaQv4JT1pi6qWNcnb_BVV_VNJQ,4324
|
|
299
299
|
udata/harvest/__init__.py,sha256=C4y5w4vGb_F9Opy62lzV3eHo4DkNyRgPCq-wsarPXiQ,28
|
|
300
|
-
udata/harvest/actions.py,sha256=
|
|
300
|
+
udata/harvest/actions.py,sha256=COcr00jKUGyP85GSXK72o1nUrW7mRcOcxb204WzC9ug,9724
|
|
301
301
|
udata/harvest/api.py,sha256=GuTcGyMxuuf5cHA4N4onJaM7p7EeDlZbaDehAJRx1mM,16695
|
|
302
302
|
udata/harvest/commands.py,sha256=xzqSq2NeR6RoB3iZJUd8MFbpGIlkpNGZ1FxCZ6QNNg4,4906
|
|
303
303
|
udata/harvest/csv.py,sha256=TcHWJLiEbK8ouwGGYZy9US4nMxfWk1Ydw8sMlPit1tk,392
|
|
@@ -400,6 +400,7 @@ udata/migrations/2025-07-30-purge-old-harvest-dynamic-fields.py,sha256=ijeu6WvX6
|
|
|
400
400
|
udata/migrations/2025-09-04-update-legacy-frequencies.py,sha256=8YAROAHhytf6Kses_54aFscmPNes2aHRYqTwNpawdVk,1693
|
|
401
401
|
udata/migrations/2025-10-01-delete-orphaned-topic-elements.py,sha256=Mhx5ANOihZL4botxtjvfsll-xKBtkVQBkPcSq0BJ-Ec,788
|
|
402
402
|
udata/migrations/2025-10-21-remove-ckan-harvest-modified-at.py,sha256=85oGDAOLB7K9KzPRHHokc36EeMKLdWaOb3IkpwYkL3E,837
|
|
403
|
+
udata/migrations/2025-10-29-harvesters-sources-integrity.py,sha256=tt8ThVhtgiBSvRxZEO4LQiDPW4RKZDsOkPepTntOVew,571
|
|
403
404
|
udata/migrations/__init__.py,sha256=RBCBDaTlLjuMs_Qzwji6Z6T4r7FCGXhESKoxQbT5qAA,11221
|
|
404
405
|
udata/models/__init__.py,sha256=RT0WaPKm2linlYnTmD0xck7M2XuIoIJ94E0ErzNGzaw,1418
|
|
405
406
|
udata/mongo/__init__.py,sha256=y4Rv-kq3o_kcEulcNpePLzocXPBNpx3Jd82G-VZPaMc,1421
|
|
@@ -626,9 +627,9 @@ udata/translations/pt/LC_MESSAGES/udata.mo,sha256=2b-HzdA9hy3KAHFH0up-UF0UirUDG3
|
|
|
626
627
|
udata/translations/pt/LC_MESSAGES/udata.po,sha256=fqJ5-j3wIGQLxepZQzhazN21rU6d-JdiDSOoQGqx8Es,48877
|
|
627
628
|
udata/translations/sr/LC_MESSAGES/udata.mo,sha256=UXrktIsPbdMCW31S1i3oQa9xQ-zRL-ppg005Scs0PNk,25482
|
|
628
629
|
udata/translations/sr/LC_MESSAGES/udata.po,sha256=KAe1Ydtzk8m1N2HZRzn6VlPnBWOaGxZl-7o3WD7qivQ,54816
|
|
629
|
-
udata-13.0.1.
|
|
630
|
-
udata-13.0.1.
|
|
631
|
-
udata-13.0.1.
|
|
632
|
-
udata-13.0.1.
|
|
633
|
-
udata-13.0.1.
|
|
634
|
-
udata-13.0.1.
|
|
630
|
+
udata-13.0.1.dev4.dist-info/licenses/LICENSE,sha256=V8j_M8nAz8PvAOZQocyRDX7keai8UJ9skgmnwqETmdY,34520
|
|
631
|
+
udata-13.0.1.dev4.dist-info/METADATA,sha256=rr1eePCW5Uo_A-xg6OyZHh7XuQ00hXG3jU4kbUu1oOM,5173
|
|
632
|
+
udata-13.0.1.dev4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
633
|
+
udata-13.0.1.dev4.dist-info/entry_points.txt,sha256=v2u12qO11i2lyLNIp136WmLJ-NHT-Kew3Duu8J-AXPM,614
|
|
634
|
+
udata-13.0.1.dev4.dist-info/top_level.txt,sha256=EF6CE6YSHd_og-8LCEA4q25ALUpWVe8D0okOLdMAE3A,6
|
|
635
|
+
udata-13.0.1.dev4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|