Skip to content

Commit

Permalink
do not include version in rss (#2229)
Browse files Browse the repository at this point in the history
  • Loading branch information
agduncan94 committed Mar 15, 2019
1 parent 3d3ed0e commit eb04213
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,15 @@ public String rssFeed() {
Workflow workflow = (Workflow)dbEntry;
Optional<WorkflowVersion> max = workflow.getWorkflowVersions().stream().filter(v -> v.getDbUpdateDate() != null)
.max(Comparator.comparing(Version::getDbUpdateDate));
entry.setTitle(workflow.getWorkflowPath() + (max.map(workflowVersion -> ":" + workflowVersion.getName()).orElse("")));
entry.setTitle(workflow.getWorkflowPath());
String workflowURL = createWorkflowURL(workflow);
entry.setGuid(workflowURL);
entry.setLink(workflowURL);
} else if (dbEntry instanceof Tool) {
Tool tool = (Tool)dbEntry;
Optional<Tag> max = tool.getTags().stream().filter(v -> v.getDbUpdateDate() != null)
.max(Comparator.comparing(Version::getDbUpdateDate));
entry.setTitle(tool.getPath() + (max.map(tag -> ":" + tag.getName()).orElse("")));
entry.setTitle(tool.getPath());
String toolURL = createToolURL(tool);
entry.setGuid(toolURL);
entry.setLink(toolURL);
Expand Down

0 comments on commit eb04213

Please sign in to comment.