starting work on option 10

This commit is contained in:
doctor_dev 2025-05-30 18:20:52 +00:00
parent c4ebef10a4
commit 1b67f7a218
No known key found for this signature in database
GPG key ID: F12F7F71CB84AEAA
3 changed files with 33 additions and 21 deletions

View file

@ -583,10 +583,11 @@ Maintenance:
print_colors('[+] Saving local verified and unverified')
save_local_verified_and_unverified(local_verified_df, local_unverified_df)
break
except Exception:
except Exception as err:
print_colors("[-] Option 4 failed suddently, please try again", is_error=True)
raise err
break
case 5:
print_colors("[+] Add a new webring participant (and download their files into their directory (without trusting them yet!))")
@ -1005,18 +1006,27 @@ Maintenance:
try:
verified_df, unverified_df = utils.get_local_verified_and_unverified()
verified_df, unverified_df = get_local_verified_and_unverified()
verified_df, unverified_df = remove_cross_dataframe_replications(verified_df, unverified_df)
save_local_verified_and_unverified(verified_df, unverified_df)
except Exception:
except Exception as err:
print_colors("[-] Option 9 failed suddently, please try again", is_error=True)
break
case 10:
print_colors("[+] 10) perform sanity checks on all csv files (to mark them as sensitive / or remove the ones that are blacklisted)")
print_colors('[+] Reading local blacklist and sensitive words')
local_blacklist, local_sensitive = get_local_blacklist_and_sensitive()
participantspath = rootpath+'www/participants/'
for participant in os.listdir(participantspath):
print_colors(f"Participant: {participant}")