Skip to content

Commit

Permalink
Fix line display incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
Chulong-Li committed Aug 10, 2019
1 parent e330d02 commit d6e7c7f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@
" # Store all data in MySQL\n",
" if mydb.is_connected():\n",
" mycursor = mydb.cursor()\n",
" sql = \"INSERT INTO {} (id_str, created_at, text, polarity, subjectivity, user_created_at, user_location, \\\n",
" user_description, user_followers_count, longitude, latitude, retweet_count, favorite_count) \\\n",
" VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)\".format(settings.TABLE_NAME)\n",
" sql = \"INSERT INTO {} (id_str, created_at, text, polarity, subjectivity, user_created_at, user_location, user_description, user_followers_count, longitude, latitude, retweet_count, favorite_count) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)\".format(settings.TABLE_NAME)\n",
" val = (id_str, created_at, text, polarity, subjectivity, user_created_at, user_location, \\\n",
" user_description, user_followers_count, longitude, latitude, retweet_count, favorite_count)\n",
" mycursor.execute(sql, val)\n",
Expand Down

0 comments on commit d6e7c7f

Please sign in to comment.