(self, store)
return content
Return data from a store.
Return data from a store.
Return data from a store .
def read(self, store):
        """Return data from a store."""
        path = f"{self.system.config_path}/.storage/{STORES[store]}"
        content = None
        if os.path.exists(path):
            with open(path, "r", encoding="utf-8") as storefile:
                content = storefile.read()
                content = json.loads(content)
        return content
def read ( self , store ) : path = f"{self.system.config_path}/.storage/{STORES[store]}" content = None if os . path . exists ( path ) : with open ( path , "r" , encoding = "utf-8" ) as storefile : content = storefile . read ( ) content = json . loads ( content ) return content