Skip to content

Commit

Permalink
FIX validation + props type
Browse files Browse the repository at this point in the history
  • Loading branch information
eboileau committed Sep 11, 2024
1 parent 47dc97e commit 966a381
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup>
const props = defineProps({
name: { type: String },
referenceId: { type: String }
referenceId: { type: Number }
})
const link = `https://www.genesilico.pl/modomics/modifications/${props.referenceId}`
</script>
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/search/SearchResults.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ function onOverlay(record) {
}
function loadData() {
console.log(`XXX ${JSON.stringify(props)}`)
if (props.disabled) {
return
}
Expand Down Expand Up @@ -163,6 +162,7 @@ function getExportLink() {
severity="secondary"
raised
label="Export"
v-tooltip.top="'Export full table'"
/>
</a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions server/src/scimodom/api/modification.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ def _get_gene_filters():
return raw


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

0 comments on commit 966a381

Please sign in to comment.