Skip to content

Commit

Permalink
7.1 refactoring #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Boison88 committed Sep 13, 2023
1 parent 6a16c06 commit dccafb7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions page_analyzer/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ def check_url(record_id):
url_name = url_record.get('name')
if not url_record:
return abort(404)
save_check(record_id, get_page(url_name))
flash('Страница успешно проверена', 'success')
else:
save_check(record_id, get_page(url_name))
flash('Страница успешно проверена', 'success')
return redirect(url_for('show_url', record_id=record_id))


Expand Down

0 comments on commit dccafb7

Please sign in to comment.