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

24
LINES

< > BotCompany Repo | #1015905 // lastRunTable_addProgramTitles

JavaX fragment (include)

svoid lastRunTable_addProgramTitles(L<SS> l) {
  new HashSet<S> needed;
  for (Map m : l) {
    if (eq(m.get("Title"), "?")) {
      S id = getString(m, "Program ID");
      S title = getSnippetTitle_cached_probe(id);
      if (title != null)
        m.put("Title", title);
      else
        needed.add(id);
    }
  }
  if (empty(needed)) ret;
  getSnippetTitles_verbose = true;
  SS titles = getSnippetTitles(needed);
  for (Map m : l) {
    S id = getString(m, "Program ID");
    if (eq(m.get("Title"), "?") && titles.containsKey(id)) {
      S title = titles.get(id);
      getSnippetTitle_cached_put(id, title);
      m.put("Title", title);
    }
  }
}

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: 407 / 426
Version history: 3 change(s)
Referenced in: [show references]