Fix typos

This commit is contained in:
Kian-Meng Ang
2022-07-01 21:26:06 +08:00
parent 07c67b09db
commit c4104ddaf4
7 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -437,7 +437,7 @@ def render_discover_books(book_id):
def render_hot_books(page, order):
if current_user.check_visibility(constants.SIDEBAR_HOT):
if order[1] not in ['hotasc', 'hotdesc']:
# Unary expression comparsion only working (for this expression) in sqlalchemy 1.4+
# Unary expression comparison only working (for this expression) in sqlalchemy 1.4+
# if not (order[0][0].compare(func.count(ub.Downloads.book_id).desc()) or
# order[0][0].compare(func.count(ub.Downloads.book_id).asc())):
order = [func.count(ub.Downloads.book_id).desc()], 'hotdesc'