Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

24
LINES

< > BotCompany Repo | #1015905 // lastRunTable_addProgramTitles

JavaX fragment (include)

1  
svoid lastRunTable_addProgramTitles(L<SS> l) {
2  
  new HashSet<S> needed;
3  
  for (Map m : l) {
4  
    if (eq(m.get("Title"), "?")) {
5  
      S id = getString(m, "Program ID");
6  
      S title = getSnippetTitle_cached_probe(id);
7  
      if (title != null)
8  
        m.put("Title", title);
9  
      else
10  
        needed.add(id);
11  
    }
12  
  }
13  
  if (empty(needed)) ret;
14  
  getSnippetTitles_verbose = true;
15  
  SS titles = getSnippetTitles(needed);
16  
  for (Map m : l) {
17  
    S id = getString(m, "Program ID");
18  
    if (eq(m.get("Title"), "?") && titles.containsKey(id)) {
19  
      S title = titles.get(id);
20  
      getSnippetTitle_cached_put(id, title);
21  
      m.put("Title", title);
22  
    }
23  
  }
24  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1015905
Snippet name: lastRunTable_addProgramTitles
Eternal ID of this version: #1015905/4
Text MD5: 64e91b4155e03e4f93daa9664043842d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-30 13:56:30
Source code size: 680 bytes / 24 lines
Pitched / IR pitched: No / No
Views / Downloads: 338 / 362
Version history: 3 change(s)
Referenced in: [show references]