lacuscore 1.15.1__py3-none-any.whl → 1.15.2__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.
- lacuscore/lacuscore.py +8 -4
- {lacuscore-1.15.1.dist-info → lacuscore-1.15.2.dist-info}/METADATA +1 -1
- {lacuscore-1.15.1.dist-info → lacuscore-1.15.2.dist-info}/RECORD +5 -5
- {lacuscore-1.15.1.dist-info → lacuscore-1.15.2.dist-info}/LICENSE +0 -0
- {lacuscore-1.15.1.dist-info → lacuscore-1.15.2.dist-info}/WHEEL +0 -0
lacuscore/lacuscore.py
CHANGED
@@ -137,12 +137,12 @@ class LacusCore():
|
|
137
137
|
storage: dict[str, Any] | None=None,
|
138
138
|
headers: dict[str, str] | None=None,
|
139
139
|
http_credentials: dict[str, str] | None=None,
|
140
|
-
geolocation: dict[str, float] | None=None,
|
140
|
+
geolocation: dict[str, str | int | float] | None=None,
|
141
141
|
timezone_id: str | None=None,
|
142
142
|
locale: str | None=None,
|
143
143
|
color_scheme: str | None=None,
|
144
144
|
java_script_enabled: bool=True,
|
145
|
-
viewport: dict[str, int] | None=None,
|
145
|
+
viewport: dict[str, int | str] | None=None,
|
146
146
|
referer: str | None=None,
|
147
147
|
rendered_hostname_only: bool=True,
|
148
148
|
with_screenshot: bool=True,
|
@@ -171,12 +171,12 @@ class LacusCore():
|
|
171
171
|
storage: dict[str, Any] | None=None,
|
172
172
|
headers: dict[str, str] | None=None,
|
173
173
|
http_credentials: dict[str, str] | None=None,
|
174
|
-
geolocation: dict[str, float] | None=None,
|
174
|
+
geolocation: dict[str, str | int | float] | None=None,
|
175
175
|
timezone_id: str | None=None,
|
176
176
|
locale: str | None=None,
|
177
177
|
color_scheme: str | None=None,
|
178
178
|
java_script_enabled: bool=True,
|
179
|
-
viewport: dict[str, int] | None=None,
|
179
|
+
viewport: dict[str, int | str] | None=None,
|
180
180
|
referer: str | None=None,
|
181
181
|
rendered_hostname_only: bool=True,
|
182
182
|
with_screenshot: bool=True,
|
@@ -260,6 +260,10 @@ class LacusCore():
|
|
260
260
|
# Make sure we do not already have a capture with that UUID
|
261
261
|
if self.get_capture_status(uuid) == CaptureStatus.UNKNOWN:
|
262
262
|
perma_uuid = uuid
|
263
|
+
elif (self.get_capture_status(uuid) == CaptureStatus.DONE
|
264
|
+
and self.get_capture(uuid).get('error') is not None):
|
265
|
+
# The UUID exists, the capture is done, but it has an error -> re-capture on the same UUID
|
266
|
+
perma_uuid = uuid
|
263
267
|
else:
|
264
268
|
perma_uuid = str(uuid4())
|
265
269
|
self.master_logger.warning(f'UUID {uuid} already exists, forcing a new one: {perma_uuid}.')
|
@@ -1,10 +1,10 @@
|
|
1
1
|
lacuscore/__init__.py,sha256=aLBshQPT9IBDKn5qWrX9A_exqtLFPyLsQiPWdfpAFjA,537
|
2
2
|
lacuscore/helpers.py,sha256=dZjKKSp_4nFlRwvJmB6U8n0TAG2UL5JQjHdng14TX1c,14328
|
3
3
|
lacuscore/lacus_monitoring.py,sha256=r6IaYuh6sMq43eOWdZx0fU8p4PWVZlqSD6nr6yOaTUU,2713
|
4
|
-
lacuscore/lacuscore.py,sha256=
|
4
|
+
lacuscore/lacuscore.py,sha256=UzfrrnG4P3Wfob92yZC29kKKRtf3CFZDyHa_qyvkt00,44773
|
5
5
|
lacuscore/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
lacuscore/task_logger.py,sha256=2wDotU6r6vn-aKO8nZNdxSuisSj11LlcxuvW60qPL0Y,1909
|
7
|
-
lacuscore-1.15.
|
8
|
-
lacuscore-1.15.
|
9
|
-
lacuscore-1.15.
|
10
|
-
lacuscore-1.15.
|
7
|
+
lacuscore-1.15.2.dist-info/LICENSE,sha256=4C4hLYrIkUD96Ggk-y_Go1Qf7PBZrEm9PSeTGe2nd4s,1516
|
8
|
+
lacuscore-1.15.2.dist-info/METADATA,sha256=JsfVbw_hFq5IBHKik9I-hXUAPMmwSAyl56foeYWRfxA,2654
|
9
|
+
lacuscore-1.15.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
10
|
+
lacuscore-1.15.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|