'Fixed' Path function
This commit is contained in:
+11
-4
@@ -52,8 +52,8 @@ def menu():
|
|||||||
html_file = "augmentedlist.html"
|
html_file = "augmentedlist.html"
|
||||||
augmented_df = pd.read_html(html_file)
|
augmented_df = pd.read_html(html_file)
|
||||||
print(augmented_df)
|
print(augmented_df)
|
||||||
|
|
||||||
combined_df = pd.concat(augmented_df, ignore_index=True)
|
combined_df = pd.concat(augmented_df, ignore_index=True)
|
||||||
|
|
||||||
path_eligible, path_ineligible = utils.pathfunctions.filepathInitialGroup(combined_df)
|
path_eligible, path_ineligible = utils.pathfunctions.filepathInitialGroup(combined_df)
|
||||||
path_eligible.to_html("EligblePaths.html", index=False)
|
path_eligible.to_html("EligblePaths.html", index=False)
|
||||||
path_ineligible.to_html("IneligiblePaths.html",index=False)
|
path_ineligible.to_html("IneligiblePaths.html",index=False)
|
||||||
@@ -62,23 +62,30 @@ def menu():
|
|||||||
|
|
||||||
executionhist = utils.allowlist.allowlistexechistories(url,True)
|
executionhist = utils.allowlist.allowlistexechistories(url,True)
|
||||||
print(executionhist)
|
print(executionhist)
|
||||||
|
|
||||||
aggregated = utils.hashfunctions.aggregateHashes(executionhist)
|
aggregated = utils.hashfunctions.aggregateHashes(executionhist)
|
||||||
print(aggregated)
|
print(aggregated)
|
||||||
|
|
||||||
augmented = utils.hashfunctions.augmentAggregatedHashes(url,aggregated)
|
augmented = utils.hashfunctions.augmentAggregatedHashes(url,aggregated)
|
||||||
print(augmented)
|
print(augmented)
|
||||||
|
|
||||||
augmented.to_html("augmentedlist.html", index=False)
|
augmented.to_html("augmentedlist.html", index=False)
|
||||||
html_file = "augmentedlist.html"
|
html_file = "augmentedlist.html"
|
||||||
augmented_df = pd.read_html(html_file)
|
augmented_df = pd.read_html(html_file)
|
||||||
combined_df = pd.concat(augmented_df, ignore_index=True)
|
combined_df = pd.concat(augmented_df, ignore_index=True)
|
||||||
|
|
||||||
path_eligible, path_ineligible = utils.pathfunctions.filepathInitialGroup(combined_df)
|
path_eligible, path_ineligible = utils.pathfunctions.filepathInitialGroup(combined_df)
|
||||||
|
path_eligible.to_html("EligblePaths.html", index=False)
|
||||||
|
path_ineligible.to_html("IneligiblePaths.html",index=False)
|
||||||
|
|
||||||
badpublisherlist = []
|
badpublisherlist = []
|
||||||
categorized = utils.hashfunctions.categorizeHashes(augmented, 5, badpublisherlist)
|
categorized = utils.hashfunctions.categorizeHashes(augmented, 5, badpublisherlist)
|
||||||
categorized[0].to_html("needsreview.html", index=False)
|
categorized[0].to_html("needsreview.html", index=False)
|
||||||
categorized[1].to_html("approved.html", index=False)
|
categorized[1].to_html("approved.html", index=False)
|
||||||
categorized[2].to_html("remaining.html", index=False)
|
categorized[2].to_html("remaining.html", index=False)
|
||||||
path_eligible, path_ineligible = utils.pathfunctions.filepathInitialGroup(combined_df)
|
|
||||||
path_eligible.to_html("EligblePaths.html", index=False)
|
|
||||||
path_ineligible.to_html("IneligiblePaths.html",index=False)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user