MCPcopy Create free account
hub / github.com/RASAAS/docmcp-knowledge / save

Method save

scripts/fetch_updates.py:424–428  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

422 return {"documents": {}, "last_updated": None}
423
424 def save(self):
425 self.path.parent.mkdir(parents=True, exist_ok=True)
426 self.data["last_updated"] = datetime.now().isoformat()
427 with open(self.path, "w", encoding="utf-8") as f:
428 json.dump(self.data, f, indent=2, ensure_ascii=False)
429
430 def get(self, doc_id: str) -> Optional[dict]:
431 return self.data["documents"].get(doc_id)

Callers 4

convert_pdf_to_markdownFunction · 0.80
mainFunction · 0.80
process_docFunction · 0.80
_compress_imageFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected