Small fix
This commit is contained in:
+6
-2
@@ -313,8 +313,12 @@ def menu_prepare_to_enforce():
|
|||||||
|
|
||||||
if not exe1.empty and not exe2.empty:
|
if not exe1.empty and not exe2.empty:
|
||||||
condensed_combo = pd.concat([condensed_exe1, condensed_exe2], ignore_index=True)
|
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.")
|
print(f"✅ Combined {len(condensed_combo)} hashes.")
|
||||||
elif exe1.empty:
|
elif exe1.empty:
|
||||||
condensed_combo = condensed_exe2
|
condensed_combo = condensed_exe2
|
||||||
|
|||||||
Reference in New Issue
Block a user