Libraryless. Click here for Pure Java version (12594L/86K).
svoid dm_deleteZeroIDModules() { for (virtual Module m : filterByField(dm_listStems(), id := 0L)) { print("Have 0-id module: " + m); print("_concepts: " + rget _concepts(m)); O concepts = dm_callOS db_mainConcepts(); Long actualID = cast keyForValue(m, (Map) get(concepts, 'concepts)); print("Actual ID: " + actualID); if (actualID != null) { print("Trying to delete."); setAll(m, id := actualID, _concepts := concepts); call(m, 'delete); } } }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025953 |
Snippet name: | dm_deleteZeroIDModules [delete weird zombie modules with ID 0, seems to work] |
Eternal ID of this version: | #1025953/3 |
Text MD5: | 5d7ba98e944975e6c9c97856355dbb45 |
Transpilation MD5: | e39d0e9f1fed4b53be24c612bfbbe735 |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-11-02 12:47:08 |
Source code size: | 507 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 189 / 276 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |