spiderforce4ai 2.6.5__py3-none-any.whl → 2.6.6__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.
- spiderforce4ai/post_extraction_agent.py +8 -3
- {spiderforce4ai-2.6.5.dist-info → spiderforce4ai-2.6.6.dist-info}/METADATA +1 -1
- spiderforce4ai-2.6.6.dist-info/RECORD +7 -0
- spiderforce4ai-2.6.5.dist-info/RECORD +0 -7
- {spiderforce4ai-2.6.5.dist-info → spiderforce4ai-2.6.6.dist-info}/WHEEL +0 -0
- {spiderforce4ai-2.6.5.dist-info → spiderforce4ai-2.6.6.dist-info}/entry_points.txt +0 -0
- {spiderforce4ai-2.6.5.dist-info → spiderforce4ai-2.6.6.dist-info}/top_level.txt +0 -0
@@ -285,11 +285,16 @@ class PostExtractionAgent:
|
|
285
285
|
try:
|
286
286
|
with open(self.config.output_file, 'r', encoding='utf-8') as f:
|
287
287
|
current_results = json.load(f)
|
288
|
+
# Convert to list if it's a dict, or initialize new list
|
289
|
+
if isinstance(current_results, dict):
|
290
|
+
current_results = list(current_results.values())
|
291
|
+
elif not isinstance(current_results, list):
|
292
|
+
current_results = []
|
288
293
|
except (json.JSONDecodeError, FileNotFoundError):
|
289
|
-
current_results =
|
294
|
+
current_results = []
|
290
295
|
|
291
|
-
#
|
292
|
-
current_results
|
296
|
+
# Add new result to list
|
297
|
+
current_results.append(result)
|
293
298
|
|
294
299
|
# Save atomically using temporary file
|
295
300
|
temp_file = self.config.output_file.with_suffix('.tmp')
|
@@ -0,0 +1,7 @@
|
|
1
|
+
spiderforce4ai/__init__.py,sha256=BlrRIrtpDUHjmDedqgXP1KbAAsAH9vwFPncUR5VGGyM,44804
|
2
|
+
spiderforce4ai/post_extraction_agent.py,sha256=7N2VYCfsfIh-my-Sc0_lnhmsfb3nyIbDOpnI007M1DM,19075
|
3
|
+
spiderforce4ai-2.6.6.dist-info/METADATA,sha256=eoFT4zgeNK3TkBEF5pKnf5IducFbm1quZnndCuXPf-c,9012
|
4
|
+
spiderforce4ai-2.6.6.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
5
|
+
spiderforce4ai-2.6.6.dist-info/entry_points.txt,sha256=ibARQxOlDiL1ho12zbDZt4Uq5RKSIk_qk159ZlZ46hc,59
|
6
|
+
spiderforce4ai-2.6.6.dist-info/top_level.txt,sha256=Kth7A21Js7DCp0j5XBBi-FE45SCLouZkeNZU__Yr9Yk,15
|
7
|
+
spiderforce4ai-2.6.6.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
spiderforce4ai/__init__.py,sha256=BlrRIrtpDUHjmDedqgXP1KbAAsAH9vwFPncUR5VGGyM,44804
|
2
|
-
spiderforce4ai/post_extraction_agent.py,sha256=CY0P6Zjbu1FM4lcxNM2oHzIEEsl_qnZMFs0h5De5Nrs,18737
|
3
|
-
spiderforce4ai-2.6.5.dist-info/METADATA,sha256=PvmABqDj8rD8sNK-yLFMo6v_UuW0zU9jqHFfZio5ly4,9012
|
4
|
-
spiderforce4ai-2.6.5.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
5
|
-
spiderforce4ai-2.6.5.dist-info/entry_points.txt,sha256=ibARQxOlDiL1ho12zbDZt4Uq5RKSIk_qk159ZlZ46hc,59
|
6
|
-
spiderforce4ai-2.6.5.dist-info/top_level.txt,sha256=Kth7A21Js7DCp0j5XBBi-FE45SCLouZkeNZU__Yr9Yk,15
|
7
|
-
spiderforce4ai-2.6.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|