Skip to content

Commit

Permalink
Removed CFP's for those who applications has been closed.
Browse files Browse the repository at this point in the history
  • Loading branch information
priyaljain919 committed Nov 28, 2023
1 parent 2c8625f commit b571d92
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/views/CFPPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
mobile-breakpoint="0"
:loading="loader"
>
<template v-slot:[`item.CommunityName`]="{ item }">
<template v-slot:[`item.CommunityName`]="{ item }" >
<a :href="item.CommunityPage" target="_black">{{
item.CommunityName
}}</a>
Expand Down Expand Up @@ -96,7 +96,7 @@ export default {
loader: true,
}),
created() {
document.title = "Call for Presentations | DevFest Jalandhar 2023";
document.title = "Call for Presentations | DevFest India 2023";
this.getData();
},
methods: {
Expand All @@ -108,7 +108,9 @@ export default {
"https://raw.githubusercontent.com/devfestindia/devfest-india-data-2023/main/data/events.json"
);
res = await res.json();
this.data = res.filter((e) => e.CFP.Status == 1);
this.data = res.filter((e) => e.CFP.Status == 1 && new Date(e.CFP.LastDate) >=
new Date().setHours(0, 0, 0, 0));
console.log(this.data, 'data');
this.loader = false;
} catch (error) {
console.log(error);
Expand Down

0 comments on commit b571d92

Please sign in to comment.