Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7fce8f4

Browse files
committed
group list of latest datasets by name and creator
1 parent 3454678 commit 7fce8f4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/js/models.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,11 @@ function DatasetList() {
191191
latest.length = 0;
192192

193193
for (i in content) {
194-
if (!known[content[i].name]) {
195-
known[content[i].name] = true;
194+
var creator = content[i].getCreator();
195+
var key = [content[i].name, creator].join(':');
196+
197+
if (!known[key]) {
198+
known[key] = true;
196199

197200
latest.push(content[i]);
198201
}

0 commit comments

Comments
 (0)