diff --git a/backend/setup_db.py b/backend/setup_db.py index 6f5590b..e7f857a 100644 --- a/backend/setup_db.py +++ b/backend/setup_db.py @@ -3,17 +3,17 @@ con = sqlite3.connect('links.db') # array of links to store links = [ - ('http://csclub.uwaterloo.ca/','CS Club Website',3,1), - ('https://www.instagram.com/uwcsclub/','Instagram',4,1), - ('https://www.facebook.com/uw.computerscienceclub','Facebook',5,0), - ('http://twitch.tv/uwcsclub','Twitch',6,0), - ('http://bit.ly/uwcsclub-yt','YouTube',7,1), + ('http://csclub.uwaterloo.ca/','CS Club Website',3,1,0), + ('https://www.instagram.com/uwcsclub/','Instagram',4,1,1), + ('https://www.facebook.com/uw.computerscienceclub','Facebook',5,0,2), + ('http://twitch.tv/uwcsclub','Twitch',6,0,3), + ('http://bit.ly/uwcsclub-yt','YouTube',7,1,4), ] # SQLite setup cur = con.cursor() -cur.execute("CREATE TABLE links (url text, name text, clicks int, active int)") -cur.executemany("INSERT INTO links VALUES (?,?,?,?)", links) +cur.execute("CREATE TABLE links (url text, name text, clicks int, active int, position int)") +cur.executemany("INSERT INTO links VALUES (?,?,?,?,?)", links) con.commit() con.close() \ No newline at end of file