Small fix

This commit is contained in:
=
2025-09-02 21:52:11 -04:00
parent e323ac71e9
commit 3408b0e58d
+5 -1
View File
@@ -313,7 +313,11 @@ def menu_prepare_to_enforce():
if not exe1.empty and not exe2.empty:
condensed_combo = pd.concat([condensed_exe1, condensed_exe2], ignore_index=True)
condensed_combo = condensed_combo.drop_duplicates().reset_index(drop=True)
# Group by 'sha256' and merge list columns manually
condensed_combo = condensed_combo.groupby('sha256').agg(
lambda col: list(set([item for sublist in col if isinstance(sublist, list) for item in sublist]))
).reset_index()
print(f"✅ Combined {len(condensed_combo)} hashes.")
elif exe1.empty: