File size: 483 Bytes
c6907ac
5a9839d
 
 
 
 
 
 
c6907ac
 
5a9839d
 
 
 
8aeabcb
c6907ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import pprint
class AppState:
    def __init__(self):
        self.debug = False
        self.document_urls = []
        self.download_folder = "data/"
        self.documents = []

    def display(self):
        pprint.pprint(self.__dict__)
    def set_document_urls(self, document_urls):
        self.document_urls = document_urls
    def add_document(self, document):
        self.documents.append(document)
    def set_debug(self, debug):
        self.debug = debug