Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Commit

Permalink
Update not_found.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rly0nheart authored Jan 19, 2022
1 parent 482c7d7 commit f26f549
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .lib/not_found.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import os
import sys
sys.path.append(os.getcwd()+"/.lib/")
from colors import red,white,green,reset
sys.path.append(f'{os.getcwd()}/.lib/')
from colors import red,white,reset

# The notfound function returns not found results only
# And it can be called by specifying the -n/--not-found flags
def not_found(args,response,site_name,site_url,data):
def not_found(args,response,site_name,site_url):
if response.status_code != 200:
print(f'\n{white}{site_name}{reset}')
for key,value in data.items():
print(f'{white}├─ {key}: {red}{value}{reset}')
print(f'{white}[{red}-{white}] {site_name}: {red}Not Found{reset}')

0 comments on commit f26f549

Please sign in to comment.