Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Counter #26

Closed
wants to merge 3 commits into from
Closed

Fixed Counter #26

wants to merge 3 commits into from

Conversation

Kannampuzha
Copy link

Fixed Counter

phishing_sites = int(i[1])
safe_sites = int(i[2])
reported_sites = int(i[3])
# for i in counter_data(total=total,phishing=phishing,safe_site=safe_site,reported=reported):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the commented piece of code.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignore

@@ -95,10 +99,12 @@ def check():
if output is True:
mysqldata_insert(seurl,inurl) # For appending data if it is a phising site
phishing += 1
counter_data(total,phishing,safe_site,'w')
counter_data(total,phishing,safe_site,reported,'w')
print('Updated')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the print statement.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignore

with open('counter_data.txt') as file:
total_scanned, phishing_sites, safe_sites, reported_sites = (file.read()).split()

counter = [['Sites Scanned', total_scanned], ['Safe Sites', safe_sites], ['Phishing Sites', phishing_sites],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra line

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignore

app.py Show resolved Hide resolved
Copy link
Collaborator

@VFXGamer VFXGamer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To change:

  • Remove the extra lines and commented code.
  • Make changes so the reported variable is not saved as 0 every time the data will be written.

@VFXGamer VFXGamer linked an issue Oct 20, 2021 that may be closed by this pull request
@VFXGamer VFXGamer reopened this Oct 20, 2021
@VFXGamer VFXGamer added invalid This doesn't seem right and removed invalid This doesn't seem right labels Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Broken Counter
2 participants