Skip to content

Commit

Permalink
[bug] Format Minutes correclty
Browse files Browse the repository at this point in the history
  • Loading branch information
scammo committed Apr 3, 2024
1 parent fc0422d commit 0ab9366
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/views/orga/ProposalsTrack.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -178,6 +180,7 @@ const rowClass = (data) => {
<ProgressSpinner />
</template>
<template v-else>
<pre>{{ proposals.value }}</pre>
<DataTable :value="proposals" :rowClass="rowClass" striped-rows show-gridlines selection-mode="single" data-key="id"
table-style="min-width: 50rem" @rowSelect="onRowSelect">
<template #empty> Keine Bewerbungen mit diesem Filter gefunden. </template>
Expand Down

0 comments on commit 0ab9366

Please sign in to comment.