Commit 09ed7301 authored by mitshel's avatar mitshel
Browse files

Из таблицы books удалено неиспользуемое поле cat_tree и индекс к нему

parent 64cbae70
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -9,8 +9,8 @@ db_pass = sopds
db_host	   = localhost
db_charset = utf8
;
root_lib   = /mnt/SATA1TB-2/КНИГИ/BOOKS
#root_lib   = /mnt/SATA1TB-2/КНИГИ/TEST
#root_lib   = /mnt/SATA1TB-2/КНИГИ/BOOKS
root_lib   = /mnt/SATA1TB-2/КНИГИ/TEST
formats    = .pdf .djvu .fb2 .txt

# Количество выдаваемых строк на одну страницу
+0 −14
Original line number Diff line number Diff line
@@ -13,7 +13,6 @@ filesize INT not null DEFAULT 0,
format VARCHAR(8),
cat_id INT not null,
cat_type INT not null DEFAULT 0,
cat_tree VARCHAR(512),
registerdate TIMESTAMP not null DEFAULT CURRENT_TIMESTAMP,
favorite INT not null DEFAULT 0,
genre VARCHAR(32),
@@ -24,7 +23,6 @@ cover_type VARCHAR(32),
doublicat INT not null DEFAULT 0,
PRIMARY KEY(book_id),
KEY(filename),
KEY(cat_tree),
KEY(genre),
KEY(title));

@@ -37,18 +35,6 @@ cat_type INT not null DEFAULT 0,
PRIMARY KEY(cat_id),
KEY(cat_name));

create table tags (
tag_id INT not null AUTO_INCREMENT,
tag_type INT not null DEFAULT 0,
tag VARCHAR(64),
PRIMARY KEY(tag_id),
KEY(tag));

create table btags (
tag_id INT not null,
book_id INT not null,
PRIMARY KEY(book_id,tag_id));

create table authors (
author_id INT not null AUTO_INCREMENT,
first_name VARCHAR(64),
−566 B (19.8 KiB)

File changed.

No diff preview for this file type.

+2 −2
Original line number Diff line number Diff line
@@ -4,10 +4,10 @@
import sopdsparse
import base64

f=open('book2.fb2','rb')
f=open('book1.fb2','rb')
parser=sopdsparse.fb2parser(True)
parser.parse(f)
#print(parser.author_first.getvalue(), parser.author_last.getvalue(), parser.genre.getvalue(), parser.lang.getvalue(), parser.book_title.getvalue())
print(parser.author_first.getvalue(), parser.author_last.getvalue(), parser.genre.getvalue(), parser.lang.getvalue(), parser.book_title.getvalue())
i=0
print(parser.cover_image.cover_data)
jpg=open('image.jpg','wb')

py/profile1.log

0 → 100644
+782 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading