MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / getProgramContent

Function getProgramContent

src/Data/ProgramData.js:196–206  ·  view source on GitHub ↗
(programId, isRefresh = false)

Source from the content-addressed store, hash-verified

194}
195
196export async function getProgramContent(programId, isRefresh = false) {
197 /*
198 * Get the program (with description) from the server or local storage by programId
199 * @param programId [String]: programId
200 * @param isRefresh [Boolean]: whether to refresh the data
201 * @return: program (with description)
202 */
203 const program = await getProgram(programId, isRefresh);
204 const programDesc = await getProgramDesc(programId, isRefresh);
205 return {...program, 'description': programDesc};
206}
207
208export async function setPrograms(programs) {
209 /*

Callers 1

loaderFunction · 0.90

Calls 2

getProgramFunction · 0.85
getProgramDescFunction · 0.85

Tested by

no test coverage detected