static L<SnippetVersion> getVersionsOfSnippet(S snippetID) { snippetID = fsI(snippetID); S html = loadPage(tb_mainServer() + "/tb/versions.php?id=" + psI(snippetID) + standardCredentials()); LL<S> rows = new TableFinder(html).rows(); L<S> header = first(rows); new L<SnippetVersion> versions; for (L<S> row : dropFirst(rows)) { SS data = toMapAccordingToHeader(row, header); printStruct(data); versions.add(nu(SnippetVersion, +snippetID, versionID := parseLongOpt(getParamFromURL(html_firstLinkURL(data.get("Previous value")), "v_id")), previousMD5 := data.get("Previous MD5"), change := data.get("Change"), date := data.get("Date")); } ret versions; }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1012244 |
Snippet name: | getVersionsOfSnippet - lists in reverse order |
Eternal ID of this version: | #1012244/9 |
Text MD5: | 034bec7e8dc6b21fa98eb30772b89e99 |
Author: | stefan |
Category: | javax / snippets |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-03 15:34:02 |
Source code size: | 727 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 446 / 675 |
Version history: | 8 change(s) |
Referenced in: | [show references] |