Skip to content

Commit

Permalink
6.4 rename and edit url_utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Boison88 committed Aug 26, 2023
1 parent f4ae332 commit 25d050d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion page_analyzer/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import requests

from page_analyzer.page_parser import get_page_data
from page_analyzer.url_utilities import validate, normalize
from page_analyzer.urls import validate, normalize
from page_analyzer.db import UrlCheckDatabase, UrlDatabase

from dotenv import load_dotenv
Expand Down
5 changes: 1 addition & 4 deletions page_analyzer/url_utilities.py → page_analyzer/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,4 @@ def validate(url):

def normalize(url):
parsed_url = urlparse(url)
return '{scheme}://{netloc}'.format(
scheme=parsed_url.scheme,
netloc=parsed_url.netloc,
)
return f'{parsed_url.scheme}://{parsed_url.netloc}'

0 comments on commit 25d050d

Please sign in to comment.