added a comment + changed a print to print_colors

This commit is contained in:
doctor_dev 2025-05-25 11:49:09 +00:00
parent 600dbf5f4c
commit 4b33e51d11
No known key found for this signature in database
GPG key ID: F12F7F71CB84AEAA

View file

@ -234,7 +234,7 @@ Maintenance:
# Checks if new input is in verified.csv and prevents if exist # Checks if new input is in verified.csv and prevents if exist
if (vdf['URL'] == url).any() or (vdf['Name'] == name).any(): if (vdf['URL'] == url).any() or (vdf['Name'] == name).any():
print("Name or url already exist in verified.csv") print_colors("Name or url already exist in verified.csv")
else: else:
# Delete existing entries from unverified.csv # Delete existing entries from unverified.csv
@ -252,6 +252,7 @@ Maintenance:
vdf = vdf.sort_values(by=["Category","Score"], ascending=[True,False]) # sorting categories vdf = vdf.sort_values(by=["Category","Score"], ascending=[True,False]) # sorting categories
print_colors("[+] New row added! now writing the csv file") print_colors("[+] New row added! now writing the csv file")
# saving both csv's data
uvdf.to_csv(unverifiedcsvfile, index=False) uvdf.to_csv(unverifiedcsvfile, index=False)
vdf.to_csv(verifiedcsvfile, index=False) vdf.to_csv(verifiedcsvfile, index=False)