mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Finalized filter_books. dumps to shelf.json
This commit is contained in:
10
main.py
10
main.py
@@ -3,9 +3,13 @@
|
||||
from pyShelf import InitFiles
|
||||
from config import Config
|
||||
from library import Catalogue
|
||||
|
||||
# Get configuration settings
|
||||
config = Config()
|
||||
|
||||
# Initialize file system
|
||||
InitFiles(config.file_array)
|
||||
# Open the Catalogue
|
||||
Catalogue = Catalogue()
|
||||
book_list = Catalogue.filter_books(1)
|
||||
# Filter Your books
|
||||
# This only needs to be run on first run, & when new books are added
|
||||
book_list = Catalogue.filter_books(0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user