diff --git a/utils/pathfunctions.py b/utils/pathfunctions.py index 573d086..b2a9121 100644 --- a/utils/pathfunctions.py +++ b/utils/pathfunctions.py @@ -69,7 +69,7 @@ def split_filepaths_grouped(df, col="filename", group_parts=4, min_parts=4): row["longestcfp"] = prefix_str row["middle"] = middle row["filename_only"] = filename - row["file_extension"] = os.path.splitext(filename)[1] + row["file_extension"] = os.path.splitext(filename)[1].tolower() new_rows.append(row) return pd.DataFrame(new_rows).drop(columns=["group_key"]) diff --git a/utils/policyfunctions.py b/utils/policyfunctions.py index 45a7c70..2a7d3d8 100644 --- a/utils/policyfunctions.py +++ b/utils/policyfunctions.py @@ -32,7 +32,8 @@ from bson import ObjectId def addHash(url, policy, hash): print(f"Adding the following: {hash} \n to {policy}:") for p in hash: - print(p) + pass + # print(p) def addPath(url, policy, hash):