From 0ab9366c0caaf3eacaffa8044dc4b77e2d5381a0 Mon Sep 17 00:00:00 2001 From: scammo Date: Wed, 3 Apr 2024 14:36:27 +0200 Subject: [PATCH] [bug] Format Minutes correclty --- frontend/src/views/orga/ProposalsTrack.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/orga/ProposalsTrack.vue b/frontend/src/views/orga/ProposalsTrack.vue index 207ff2a..5753574 100644 --- a/frontend/src/views/orga/ProposalsTrack.vue +++ b/frontend/src/views/orga/ProposalsTrack.vue @@ -43,7 +43,7 @@ const loadPoposals = async () => { data = data.map((proposal) => { proposal.created_at = dayjs(proposal.created_at).format( - "DD.MM.YYYY HH:MM" + "DD.MM.YYYY HH:mm" ); const vote_average = proposal.opinions.reduce( (accumulator, currentValue) => (parseFloat(accumulator) + parseFloat(currentValue.vote)).toFixed(2), @@ -114,6 +114,8 @@ const exportContentData = async () => { const { data } = await getProposalById(proposal.id) const { title, short_description, description, why, type } = data proposolsContent.push({ title, short_description, description, why, type }) + await new Promise(r => setTimeout(r, 1200)); // current api rate limit is 60 requests per Minute + } const name = `${+new Date()}-${route.params.slug}.json` downLoadJson(proposolsContent, name) @@ -178,6 +180,7 @@ const rowClass = (data) => {