mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 19:55:54 +00:00
adds new logic to categorize dates function to help with filters
This commit is contained in:
@@ -87,7 +87,7 @@
|
||||
{% set events = [
|
||||
{ "name": "Hackathon: 2021",
|
||||
"description": "Explore the exciting project submissions from the fall 2021 XRPL Hackathon that focused on the NFT and Hooks smart contract functionalities on the ledger.",
|
||||
"type": "hackathon-past",
|
||||
"type": "hackathon",
|
||||
"link": "https://xrpl-hackathon-2021.devpost.com/project-gallery",
|
||||
"location": "Virtual",
|
||||
"date": "September 13-October 6, 2021",
|
||||
@@ -97,7 +97,7 @@
|
||||
|
||||
{ "name": "XRPL Community Meetup: San Diego",
|
||||
"description": "The first official Meetup hosted by the XRPL Community. Community members in Southern California gathered around a firepit and shared their experiences with the XRPL.",
|
||||
"type": "meetup-past",
|
||||
"type": "meetup",
|
||||
"link": "https://www.meetup.com/xrpl-community/events/281806645/",
|
||||
"location": "San Diego, CA",
|
||||
"date": "Saturday, November 20, 2021",
|
||||
@@ -107,7 +107,7 @@
|
||||
|
||||
{ "name": "XRPL Community Meetup: Atlanta",
|
||||
"description": "The inaugural Meetup in the Southeast region of the United States got community members excited to meet like-minded individuals in their area.",
|
||||
"type": "meetup-past",
|
||||
"type": "meetup",
|
||||
"link": "https://www.meetup.com/xrpl-community/events/281980446/",
|
||||
"location": "Atlanta, GA",
|
||||
"date": "Saturday, November 27, 2021",
|
||||
@@ -117,7 +117,7 @@
|
||||
|
||||
{ "name": "XRPL Community Meetup: San Francisco",
|
||||
"description": "Community members in the Bay Area with diverse backgrounds in technology and beyond met in downtown San Francisco.",
|
||||
"type": "meetup-past",
|
||||
"type": "meetup",
|
||||
"link": "https://www.meetup.com/xrpl-community/events/281806676/",
|
||||
"location": "San Francisco, CA",
|
||||
"date": "Monday, November 29, 2021",
|
||||
@@ -127,7 +127,7 @@
|
||||
|
||||
{ "name": "XRPL Community Meetup: Miami",
|
||||
"description": "One of the biggest Meetups held so far, this was the first of an ongoing series of local XRPL Community Meetup events in Miami. ",
|
||||
"type": "meetup-past",
|
||||
"type": "meetup",
|
||||
"link": "https://www.meetup.com/xrpl-community/events/281829463/",
|
||||
"location": "Miami, FL ",
|
||||
"date": "Thursday, December 9, 2021",
|
||||
@@ -137,7 +137,7 @@
|
||||
|
||||
{ "name": "XRPL Community Meetup: Nashville",
|
||||
"description": "Nashville-based members of the XRPL Community came together to network, learn, share ideas, and form new partnerships. ",
|
||||
"type": "meetup-past",
|
||||
"type": "meetup",
|
||||
"link": "https://www.meetup.com/xrp-ledger-nashville-community/events/282538189/",
|
||||
"location": "Nashville, TN",
|
||||
"date": "Saturday, December 18, 2021",
|
||||
@@ -149,7 +149,7 @@
|
||||
{ "name": "NYC Meetup/Hackathon XRPL Celebration",
|
||||
"id": "upcoming-xrpl-new-york",
|
||||
"description": "The NYC/XRP community and Dev Null Productions cordially invites you to attend our 10th meetup, being held in celebration of the on-going XRPL Hackathon, at the unique and artistic TALS studio in Midtown Manhattan.",
|
||||
"type": "meetup-past",
|
||||
"type": "meetup",
|
||||
"link": "https://www.meetup.com/NYC-XRP/events/284485901/",
|
||||
"location": "NYC, NY",
|
||||
"date": "March 30, 2022",
|
||||
@@ -160,7 +160,7 @@
|
||||
{ "name": "XRPL Community Meetup: London",
|
||||
"id": "upcoming-xrpl-london",
|
||||
"description": "Join for an evening of programming and networking with members of the XRPL Community in London, co-organised by Peerkat - the NFT platform for creators on the XRPL.",
|
||||
"type": "meetup-past",
|
||||
"type": "meetup",
|
||||
"link": "https://www.meetup.com/xrp-ledger-london-community/events/283536458/",
|
||||
"location": "IDEALondon",
|
||||
"date": "March 31, 2022",
|
||||
@@ -171,7 +171,7 @@
|
||||
{ "name": "XRPL Community Meetup: Toronto",
|
||||
"id": "upcoming-xrpl-toronto",
|
||||
"description": "Join us for our first Toronto meetup with an evening of programming and networking with other members of the XRP Ledger Community with special guests from the XUMM Wallet and ARK PLATES teams!",
|
||||
"type": "meetup-past",
|
||||
"type": "meetup",
|
||||
"link": "https://www.meetup.com/xrpl-toronto-community-meetup/events/284177188/",
|
||||
"location": "Toronto",
|
||||
"date": "March 31, 2022",
|
||||
@@ -182,7 +182,7 @@
|
||||
{ "name": "XRPL Community Meetup: San Diego",
|
||||
"id": "upcoming-xrpl-san-diego",
|
||||
"description": "Get together with other San Diego-based members of the XRP Ledger Community to network and discuss all things XRPL! Join us for our second San Diego XRPL Meetup.",
|
||||
"type": "meetup-past",
|
||||
"type": "meetup",
|
||||
"link": "https://www.meetup.com/xrp-ledger-san-diego-community/events/284663355/",
|
||||
"location": "San Diego, CA",
|
||||
"date": "April 1st 2022",
|
||||
@@ -193,7 +193,7 @@
|
||||
{ "name": "XRPL Community Meetup: Irvine LA",
|
||||
"id": "upcoming-xrpl-irvine",
|
||||
"description": "Get together with other LA-based members of the XRP Ledger Community to network and discuss all things XRPL.",
|
||||
"type": "meetup-past",
|
||||
"type": "meetup",
|
||||
"link": "https://www.meetup.com/xrp-ledger-la-community-meetup/events/284824635/",
|
||||
"location": "UC Irvine, CA",
|
||||
"date": "April 3rd 2022",
|
||||
@@ -204,7 +204,7 @@
|
||||
{ "name": "XRPL Community Meetup: Miami #2",
|
||||
"id": "upcoming-xrpl-miami-2",
|
||||
"description": "We're excited to host our second Miami meetup for XRP Ledger community members on April 6th from 6-8pm, featuring Marco Neri, Developer Advocate at Ripple, who will join us to give a presentation on the XRP Ledger.",
|
||||
"type": "meetup-past",
|
||||
"type": "meetup",
|
||||
"link": "https://www.meetup.com/xrp-ledger-miami-community/events/284463736/",
|
||||
"location": "The LAB Miami, FL",
|
||||
"date": "April 6th 2022",
|
||||
@@ -215,7 +215,7 @@
|
||||
{ "name": "Hackathon:<br />New Year, New NFT",
|
||||
"id": "upcoming-xrpl-hackathon-new-year",
|
||||
"description": "Build Functional NFTs that span across a full range of use cases.",
|
||||
"type": "hackathon-past",
|
||||
"type": "hackathon",
|
||||
"link": "https://xrplnft2022.devpost.com/",
|
||||
"location": "Virtual",
|
||||
"date": "January 31 - March 14, 2022",
|
||||
@@ -226,7 +226,7 @@
|
||||
|
||||
{ "name": "Hackathon: Creating Real World Impact",
|
||||
"description": "Build apps to improve lives in the real world using any of the SDKs and APIs for the XRP Ledger.",
|
||||
"type": "hackathon-past",
|
||||
"type": "hackathon",
|
||||
"link": "https://xrplimpact.devpost.com/",
|
||||
"location": "Virtual",
|
||||
"date": "May 26 - Jul 11, 2022",
|
||||
@@ -236,7 +236,7 @@
|
||||
|
||||
{ "name": "Conference:<br />Apex 2021",
|
||||
"description": "View sessions from the Apex 2021 stages in Las Vegas and Tallinn.",
|
||||
"type": "conference-past",
|
||||
"type": "conference",
|
||||
"link": "https://www.youtube.com/playlist?list=PLJQ55Tj1hIVZgnreb8ODgxJW032M9Z2XZ",
|
||||
"location": "Las Vegas, Tallinn",
|
||||
"date": "September 29-30, 2021",
|
||||
@@ -246,7 +246,7 @@
|
||||
|
||||
{ "name": "Hackathon:<br />NFT Launch Party",
|
||||
"description": "Build Functional NFTs that span across a full range of use cases.",
|
||||
"type": "hackathon-past",
|
||||
"type": "hackathon",
|
||||
"link": "https://xrplnft.devpost.com/",
|
||||
"location": "Virtual",
|
||||
"date": "Oct 31 - Dec 12, 2022",
|
||||
@@ -255,7 +255,7 @@
|
||||
},
|
||||
{ "name": "XRPL Zone @ Consensus",
|
||||
"description": "XRPL Zone: your all-in-one location for creating and collaborating on XRP Ledger (XRPL) projects.",
|
||||
"type": "conference-upcoming",
|
||||
"type": "zone",
|
||||
"link": "https://xrplzone-consensus.splashthat.com/",
|
||||
"location": "Austin, Texas",
|
||||
"date": "April 27, 2023",
|
||||
@@ -264,7 +264,7 @@
|
||||
},
|
||||
{ "name": "XRPL Developer AMAs",
|
||||
"description": "A chat with Crossmark about wallet development on the XRP Ledger!",
|
||||
"type": "conference-upcoming",
|
||||
"type": "ama",
|
||||
"link": "https://discord.com/invite/xrpl",
|
||||
"location": "XRPL Developers Discord",
|
||||
"date": "April 14, 2023",
|
||||
@@ -273,7 +273,7 @@
|
||||
},
|
||||
{ "name": "NFTs with xrp.cafe",
|
||||
"description": "A cozy discussion with xrp.cafe about NFTs and the future of NFT infrastructure on the XRP Ledger.",
|
||||
"type": "conference-past",
|
||||
"type": "ama",
|
||||
"link": "https://dev.to/ripplexdev/xrpcafe-ama-on-xrpl-developers-discord-36gp",
|
||||
"location": "XRPL Developers Discord",
|
||||
"date": "January 1, 2023",
|
||||
@@ -282,7 +282,7 @@
|
||||
},
|
||||
{ "name": "Community Calls #2",
|
||||
"description": "A community call about XRPL amendments with Chris McKay.",
|
||||
"type": "conference-past",
|
||||
"type": "cc",
|
||||
"link": "https://youtu.be/oNJ1Qqns2Gw",
|
||||
"location": "XRPL Developers Discord",
|
||||
"date": "August 8, 2022",
|
||||
@@ -291,7 +291,7 @@
|
||||
},
|
||||
{ "name": "Community Calls #1",
|
||||
"description": "An open discussion about the development of XLS-20 and NFTs on the XRP Ledger.",
|
||||
"type": "conference-past",
|
||||
"type": "cc",
|
||||
"link": "https://youtu.be/KpSt0PFT2QM",
|
||||
"location": "XRPL Developers Discord",
|
||||
"date": "June 02, 2022",
|
||||
@@ -300,7 +300,7 @@
|
||||
},
|
||||
{ "name": "AMAs: POS and Crypto Payments with FriiPay",
|
||||
"description": "A discussion with FriiPay about payment rails and POS integrations through the XRP Ledger",
|
||||
"type": "conference-past",
|
||||
"type": "ama",
|
||||
"link": "https://dev.to/ripplexdev/xrpl-developer-ama-pos-and-crypto-payments-with-friipay-13hm",
|
||||
"location": "XRPL Developers Discord",
|
||||
"date": "February 15, 2023",
|
||||
@@ -309,7 +309,7 @@
|
||||
},
|
||||
{ "name": "AMAs: On-chain Data with Bithomp",
|
||||
"description": "A discuss with Bithomp about data infrastructure and their NFT integrations in one of the most popular explorers on the XRP Ledger.",
|
||||
"type": "conference-past",
|
||||
"type": "ama",
|
||||
"link": "https://dev.to/ripplexdev/xrpl-developer-ama-bithomp-4a8d",
|
||||
"location": "XRPL Developers Discord",
|
||||
"date": "March 15, 2023",
|
||||
@@ -319,6 +319,8 @@
|
||||
]
|
||||
%}
|
||||
|
||||
{# Available Types - conference, hackathon, ama, cc, zone, meetup #}
|
||||
|
||||
{% set results = categorize_dates(events) %}
|
||||
{% set upcoming = results.upcoming %}
|
||||
{% set past = results.past %}
|
||||
|
||||
@@ -8,10 +8,11 @@ def categorize_dates(arr):
|
||||
for obj in arr:
|
||||
end_date = datetime.strptime(obj['end_date'], '%B %d, %Y')
|
||||
if end_date < today:
|
||||
obj['type'] = obj['type'] + '-past'
|
||||
past.append(obj)
|
||||
else:
|
||||
obj['type'] = obj['type'] + '-upcoming'
|
||||
upcoming.append(obj)
|
||||
|
||||
return {'past': past, 'upcoming': upcoming}
|
||||
|
||||
export = {
|
||||
|
||||
Reference in New Issue
Block a user