Skip to content

Commit 966a381

Browse files
committed
FIX validation + props type
1 parent 47dc97e commit 966a381

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

client/src/components/search/GenesilicoModificationLink.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup>
22
const props = defineProps({
33
name: { type: String },
4-
referenceId: { type: String }
4+
referenceId: { type: Number }
55
})
66
const link = `https://www.genesilico.pl/modomics/modifications/${props.referenceId}`
77
</script>

client/src/components/search/SearchResults.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ function onOverlay(record) {
6666
}
6767
6868
function loadData() {
69-
console.log(`XXX ${JSON.stringify(props)}`)
7069
if (props.disabled) {
7170
return
7271
}
@@ -163,6 +162,7 @@ function getExportLink() {
163162
severity="secondary"
164163
raised
165164
label="Export"
165+
v-tooltip.top="'Export full table'"
166166
/>
167167
</a>
168168
</div>

server/src/scimodom/api/modification.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ def _get_gene_filters():
112112
return raw
113113

114114

115-
def _get_multi_sort():
115+
def _get_multi_sort(url_split: str = "%2B"):
116116
raw = request.args.getlist("multiSort", type=str)
117117
if raw is None or (len(raw) == 1 and raw[0] == ""):
118118
return []
119119
for i in raw:
120-
field, direction = i.split("+")
120+
field, direction = i.split(url_split)
121121
if field not in ["chrom", "score", "start", "coverage", "frequency"]:
122122
raise ClientResponseException(400, "Bad multiSort field")
123123
if direction not in ["desc", "asc"]:

0 commit comments

Comments
 (0)