Skip to content

Commit

Permalink
Removed prints on every server path.
Browse files Browse the repository at this point in the history
  • Loading branch information
joelgibson committed Jan 14, 2018
1 parent 509a77e commit 2703aaa
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions db.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ def __init__(self, ID = None, image = None, caption = None, latitude = None, lon
self.userid = userid
self.timestamp = timestamp
self.catid = catid
print("USERID WE GET", userid)
self.user = Person.get_user_by_id(userid)

@staticmethod
Expand Down Expand Up @@ -156,7 +155,6 @@ def create_user(password, name, bio, image):
return lastid

def get_upvote_count(self):
print(Upvote.get_upvotes_for_memes(self.ID))
return str(len(Upvote.get_upvotes_for_memes(self.ID)))

class Upvote:
Expand All @@ -168,7 +166,6 @@ def __init__(self, ID = None, userid = None, timestamp = None, memeid = None):

@staticmethod
def create_upvote(userid, timestamp, memeid):
print(memeid)
conn = sqlite3.connect('db/main.db')
cur = conn.cursor()
cur.execute('''
Expand Down
2 changes: 0 additions & 2 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def handler_(response, *args, **kwargs):
cookie = cookie.decode('UTF-8')
cookie_split = str(cookie).split(',')
if cookie_split[0] == 'True':
print('Added a print')
handler(response, *args, **kwargs)
else:
response.redirect('/login')
Expand Down Expand Up @@ -176,7 +175,6 @@ def check_upvote(response, memeid):
upvote_data = Upvote.get_upvotes_for_memes(memeid)
response.write("Yay!!")
response.write(str(len(upvote_data)))
print(upvote_data)

def check_upvote_l(memeid):
upvote_data = Upvote.get_upvotes_for_memes(memeid)
Expand Down
2 changes: 0 additions & 2 deletions user.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ def login_handler(response):
global username, password
username = response.get_field('username')
password = response.get_field('password')
print(username, password)
if username:
if database_login_handler(username, password, response):
cookie = 'True,'+username
Expand All @@ -23,7 +22,6 @@ def login_handler(response):


def database_login_handler(username, password, response):
print("Details Accepted")
person = Person.get_user_by_username(username)
if person:
if person.password == password:
Expand Down

0 comments on commit 2703aaa

Please sign in to comment.