From 7446b0326945e899940d477a864ac01e74944eff Mon Sep 17 00:00:00 2001
From: AndCycle <andcycle@andcycle.idv.tw>
Date: Mon, 8 Jun 2020 21:22:11 +0800
Subject: [PATCH] Add status event attribute

---
 icalevents/icalparser.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/icalevents/icalparser.py b/icalevents/icalparser.py
index 950528d..3d383d0 100644
--- a/icalevents/icalparser.py
+++ b/icalevents/icalparser.py
@@ -50,6 +50,7 @@ class Event:
         self.attendee = None
         self.organizer = None
         self.categories = None
+        self.status = None
 
     def time_left(self, time=None):
         """
@@ -227,6 +228,9 @@ def create_event(component, tz=UTC):
             encoded_categories.append(encode(category))
         event.categories = encoded_categories
 
+    if component.get("status"):
+        event.status = component.get("status")
+
     return event