(plugin: RNPlugin)
| 15 | }; |
| 16 | |
| 17 | export 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 | |
| 26 | export type CardsPerRem = 'no-rem' | 'no-cards' | number; |
| 27 |
no outgoing calls
no test coverage detected