Skip to content

Commit 28fd78d

Browse files
authored
Merge pull request #181 from BCSDLab/fix/convert_content_cursor_error
fix: 배치 단위 에러 수정
2 parents 839bba8 + 0f2f0e2 commit 28fd78d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

crawling/koreatech_article/convert_content.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ def convert_content_to_url(connection):
5656

5757
total_articles += 1
5858

59-
last_id = articles[-1]['id']
60-
59+
last_id = articles[-1][0]
6160
connection.commit()
6261

6362
except Exception as error:

0 commit comments

Comments
 (0)