From 27d5a79efb35de79e1dc98fa6b2c7e0d8bd4a608 Mon Sep 17 00:00:00 2001 From: Cervinko Cera Date: Wed, 20 Apr 2016 19:42:24 +0200 Subject: [PATCH] remove some commented code and debug prints --- cps/helper.py | 5 ----- cps/web.py | 8 -------- 2 files changed, 13 deletions(-) diff --git a/cps/helper.py b/cps/helper.py index 4bd9d952..a101778f 100755 --- a/cps/helper.py +++ b/cps/helper.py @@ -200,8 +200,3 @@ def update_dir_stucture(book_id): book.path = new_authordir + "/" + book.path.split("/")[1] db.session.commit() -#def get_custom_columns(id): -# cc = db.session.query(db.Custom_Columns).all() -# for c in cc: -# print c.name - diff --git a/cps/web.py b/cps/web.py index eb855ae4..b355441d 100755 --- a/cps/web.py +++ b/cps/web.py @@ -317,10 +317,6 @@ def discover(page): def show_book(id): entries = db.session.query(db.Books).filter(db.Books.id == id).first() cc = db.session.query(db.Custom_Columns).filter(db.Custom_Columns.datatype.notin_(db.cc_exceptions)).all() - for c in cc: - print c.name - #print entries.custom_column_1 - #helper.get_custom_columns(entries.id) book_in_shelfs = [] shelfs = ub.session.query(ub.BookShelf).filter(ub.BookShelf.book_id == id).all() for entry in shelfs: @@ -700,8 +696,6 @@ def edit_book(book_id): ## create the function for sorting... db.session.connection().connection.connection.create_function("title_sort",1,db.title_sort) cc = db.session.query(db.Custom_Columns).filter(db.Custom_Columns.datatype.notin_(db.cc_exceptions)).all() - for c in cc: - print c.name book = db.session.query(db.Books).filter(db.Books.id == book_id).first() author_names = [] for author in book.authors: @@ -923,9 +917,7 @@ def upload(): img.save(filename=os.path.join(filepath, "cover.jpg")) has_cover = 1 is_author = db.session.query(db.Authors).filter(db.Authors.name == author).first() - print is_author if is_author: - print 'Unknown is known Author' db_author = is_author else: db_author = db.Authors(author, "", "")