1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-22 02:57:39 +00:00

Code improvement

This commit is contained in:
Ozzieisaacs
2019-03-24 15:58:43 +01:00
parent 07649d04a3
commit 6940bb9b88
7 changed files with 22 additions and 31 deletions

View File

@@ -67,6 +67,11 @@ try:
except ImportError:
use_levenshtein = False
try:
from functools import reduce
except ImportError:
pass # We're not using Python 3
def update_download(book_id, user_id):
check = ub.session.query(ub.Downloads).filter(ub.Downloads.user_id == user_id).filter(ub.Downloads.book_id ==