Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
surykatka
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
surykatka
Commits
57e4ab2f
Commit
57e4ab2f
authored
Dec 06, 2021
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Warn about not checked URL
parent
49a3a992
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
src/surykatka/bot.py
src/surykatka/bot.py
+4
-5
No files found.
src/surykatka/bot.py
View file @
57e4ab2f
...
@@ -694,16 +694,15 @@ class WebBot:
...
@@ -694,16 +694,15 @@ class WebBot:
# Confirm that redirection url are checked
# Confirm that redirection url are checked
if
network_change
[
"status_code"
]
in
(
301
,
302
,
303
):
if
network_change
[
"status_code"
]
in
(
301
,
302
,
303
):
# XXX check full url
# XXX check full url
redirect_url
=
getRootUrl
(
redirect_url
=
network_change
[
"http_header_dict"
][
"Location"
]
network_change
[
"http_header_dict"
][
"Location"
]
)
if
(
redirect_url
not
in
url_dict
)
and
(
if
(
redirect_url
not
in
url_dict
)
and
(
redirect_url
not
in
missing_url_list
redirect_url
not
in
missing_url_list
):
):
missing_url_list
.
append
(
redirect_url
)
missing_url_list
.
append
(
redirect_url
)
result_dict
[
"
missing_data
"
].
append
(
result_dict
[
"
warning
"
].
append
(
{
{
"text"
:
"(%s ->) %s"
"text"
:
"(
Not checked URL
%s ->) %s"
%
(
network_change
[
"url"
],
redirect_url
),
%
(
network_change
[
"url"
],
redirect_url
),
"date"
:
rfc822
(
network_change
[
"status"
]),
"date"
:
rfc822
(
network_change
[
"status"
]),
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment