MCPcopy Index your code
hub / github.com/OpenSIST/OpenSIST.github.io / setPrograms

Function setPrograms

src/Data/ProgramData.js:208–217  ·  view source on GitHub ↗
(programs)

Source from the content-addressed store, hash-verified

206}
207
208export async function setPrograms(programs) {
209 /*
210 * Set the list of programs (without description) to the local storage (i.e. localforage.getItem('programs'))
211 * @param programs [Array]: list of programs (without description)
212 */
213 if (!programs) {
214 return;
215 }
216 await writeCacheValue("programs", programs);
217}
218
219export async function setProgram(program) {
220 /*

Callers 1

setProgramFunction · 0.85

Calls 1

writeCacheValueFunction · 0.90

Tested by

no test coverage detected