Commit 92f5edcc authored by mitshel's avatar mitshel
Browse files

Исправлена ошибка выдачи последник добавленных книг

parent 55dd23a4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -441,7 +441,7 @@ class opdsDatabase:
       limitstr=""
    else:
       limitstr="limit "+str(limit)
    sql="select book_id,filename,path,registerdate,title from "+TBL_BOOKS+" and avail!=0 order by registerdate desc "+limitstr
    sql="select book_id,filename,path,registerdate,title from "+TBL_BOOKS+" where avail!=0 order by registerdate desc "+limitstr
    cursor=self.cnx.cursor()
    cursor.execute(sql)
    rows=cursor.fetchall()