Skip to content

Commit 6a265a0

Browse files
committed
fix ruff check
1 parent 5fee187 commit 6a265a0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

page_analyzer/app.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,12 @@ def create_url():
5959

6060
if base_input_domain == base_existing_domain:
6161
flash('Страница уже существует', 'error')
62-
return redirect(url_for('url_detail', url_id=existing_url[0]))
62+
return redirect(url_for('url_detail',
63+
url_id=existing_url[0]))
6364

64-
cur.execute('INSERT INTO urls (name) VALUES (%s) RETURNING id', (normalized_url,))
65+
cur.execute('INSERT INTO urls (name) '
66+
'VALUES (%s) RETURNING id',
67+
(normalized_url,))
6568
url_id = cur.fetchone()[0]
6669
conn.commit()
6770
flash('Страница успешно добавлена', 'success')
@@ -143,8 +146,6 @@ def add_check(url_id):
143146
title_content = title_tag.text if title_tag else None
144147
description_content = description_tag['content'] \
145148
if description_tag else None
146-
147-
148149
cur.execute(
149150
'''
150151
INSERT INTO url_checks

0 commit comments

Comments
 (0)