Commit e69104cf authored by Cody Zacharias's avatar Cody Zacharias Committed by GitHub

Add User_id & Location

parent f3a4e630
...@@ -9,9 +9,11 @@ def init(db): ...@@ -9,9 +9,11 @@ def init(db):
CREATE TABLE IF NOT EXISTS CREATE TABLE IF NOT EXISTS
tweets ( tweets (
id integer primary key, id integer primary key,
user_id integer,
date text not null, date text not null,
time text not null, time text not null,
timezone text not null, timezone text not null,
location text not null,
user text not null, user text not null,
tweet text not null, tweet text not null,
replies integer, replies integer,
...@@ -89,10 +91,12 @@ def followers(conn, user, follow): ...@@ -89,10 +91,12 @@ def followers(conn, user, follow):
def tweets(conn, Tweet): def tweets(conn, Tweet):
try: try:
cursor = conn.cursor() cursor = conn.cursor()
entry = (Tweet.id, entry = (Tweet.id,
Tweet.user_id,
Tweet.datestamp, Tweet.datestamp,
Tweet.timestamp, Tweet.timestamp,
Tweet.timezone, Tweet.timezone,
Tweet.location,
Tweet.username, Tweet.username,
Tweet.tweet, Tweet.tweet,
Tweet.replies, Tweet.replies,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment