File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments