Skip to content

Commit

Permalink
Pass schema validation
Browse files Browse the repository at this point in the history
  • Loading branch information
KochTobi committed Nov 6, 2024
1 parent 57029c3 commit bc1f9df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ public class ProjectOverview {
private String projectResponsibleName;

@Column(name = "amountNgsMeasurements")
private String ngsMeasurementCount;
private long ngsMeasurementCount;

@Column(name = "amountPxpMeasurements")
private String pxpMeasurementCount;
private long pxpMeasurementCount;


@Convert(converter = CollaboratorUserInfosConverter.class)
Expand Down Expand Up @@ -89,11 +89,11 @@ public String projectResponsibleName() {
return projectResponsibleName;
}

public String ngsMeasurementCount() {
public long ngsMeasurementCount() {
return ngsMeasurementCount;
}

public String pxpMeasurementCount() {
public long pxpMeasurementCount() {
return pxpMeasurementCount;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,10 @@ private Span createHeader(String projectCode, String projectTitle) {
public void setMeasurementDependentTags() {
tags.removeAll();
Collection<MeasurementType> measurementTypes = new ArrayList<>();
if (projectOverview.pxpMeasurementCount() != null) {
if (projectOverview.pxpMeasurementCount() > 0) {
measurementTypes.add(MeasurementType.PROTEOMICS);
}
if (projectOverview.ngsMeasurementCount() != null) {
if (projectOverview.ngsMeasurementCount() > 0) {
measurementTypes.add(MeasurementType.GENOMICS);
}
measurementTypes.forEach(measurementType -> {
Expand Down

0 comments on commit bc1f9df

Please sign in to comment.