Libraryless. Click here for Pure Java version (12594L/86K).
1 | svoid dm_deleteZeroIDModules() { |
2 | for (virtual Module m : filterByField(dm_listStems(), id := 0L)) { |
3 | print("Have 0-id module: " + m); |
4 | print("_concepts: " + rget _concepts(m)); |
5 | O concepts = dm_callOS db_mainConcepts(); |
6 | Long actualID = cast keyForValue(m, (Map) get(concepts, 'concepts)); |
7 | print("Actual ID: " + actualID); |
8 | if (actualID != null) { |
9 | print("Trying to delete."); |
10 | setAll(m, id := actualID, _concepts := concepts); |
11 | call(m, 'delete); |
12 | } |
13 | } |
14 | } |
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: | 188 / 276 |
Version history: | 2 change(s) |
Referenced in: | [show references] |