MCPcopy Create free account
hub / github.com/bjsi/incremental-everything / getSortingRandomness

Function getSortingRandomness

src/lib/sorting.ts:17–24  ·  view source on GitHub ↗
(plugin: RNPlugin)

Source from the content-addressed store, hash-verified

15};
16
17export const getSortingRandomness = async (plugin: RNPlugin) => {
18 const kbId = (await plugin.kb.getCurrentKnowledgeBaseData())._id;
19 let val = (await plugin.storage.getSynced(`randomness_${kbId}`)) as number;
20 if (val == null) {
21 val = (await plugin.storage.getSynced('randomness')) as number;
22 }
23 return val == null ? DEFAULT_RANDOMNESS : val;
24};
25
26export type CardsPerRem = 'no-rem' | 'no-cards' | number;
27

Callers 6

registerCallbacksFunction · 0.90
IncRemMainViewFunction · 0.90
IncRemListFunction · 0.90
ReviewDocumentCreatorFunction · 0.90
SortingCriteriaFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected