Skip to content

Commit

Permalink
Fix typo and format
Browse files Browse the repository at this point in the history
  • Loading branch information
Dilshan-H committed Dec 4, 2024
1 parent 7ed28ff commit 02f7323
Show file tree
Hide file tree
Showing 16 changed files with 119 additions and 454 deletions.
4 changes: 2 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ics:
- ics/*

# Add 'csv' to any data upgrades or changes within CSV files
ics:
csv:
- csv/*

# Add 'xml' to any data upgrades or changes within XML files
Expand Down Expand Up @@ -41,4 +41,4 @@ docs:
"LICENSE",
"CONTRIBUTING.md",
"CODE_OF_CONDUCT.md",
]
]
4 changes: 2 additions & 2 deletions converters/icalendar_to_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def ics_to_csv(file_path):
fieldnames = [
"UID",
"Summary",
"Catagories",
"Categories",
"Start",
"End",
]
Expand All @@ -57,7 +57,7 @@ def ics_to_csv(file_path):
{
"UID": component.get("uid"),
"Summary": component.get("summary"),
"Catagories": component.get("description"),
"Categories": component.get("description"),
"Start": component.decoded("dtstart"),
"End": component.decoded("dtend"),
}
Expand Down
2 changes: 1 addition & 1 deletion converters/icalendar_to_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def ics_to_json(file_path):
event = {
"uid": component.get("uid"),
"summary": component.get("summary"),
"catagories": component.get("description").split(","),
"categories": component.get("description").split(","),
"start": component.decoded("dtstart").isoformat(),
"end": component.decoded("dtend").isoformat(),
}
Expand Down
2 changes: 1 addition & 1 deletion converters/icalendar_to_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def ics_to_xml(file_path):
event = ET.SubElement(root, "Event")
summary = ET.SubElement(event, "Summary")
summary.text = str(component.get("summary"))
description = ET.SubElement(event, "Catagories")
description = ET.SubElement(event, "Categories")
description.text = str(component.get("description"))
start = ET.SubElement(event, "Start")
start.text = str(component.decoded("dtstart"))
Expand Down
2 changes: 1 addition & 1 deletion csv/2021.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
UID,Summary,Catagories,Start,End
UID,Summary,Categories,Start,End
sl_1,Tamil Thai Pongal Day,"Public,Bank,Mercantile",2021-01-14,2021-01-15
sl_2,Duruthu Full Moon Poya Day,"Public,Bank",2021-01-28,2021-01-29
sl_3,Independence Day,"Public,Bank,Mercantile",2021-02-04,2021-02-05
Expand Down
2 changes: 1 addition & 1 deletion csv/2022.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
UID,Summary,Catagories,Start,End
UID,Summary,Categories,Start,End
sl_26,Tamil Thai Pongal Day,"Public,Bank,Mercantile",2022-01-14,2022-01-15
sl_27,Duruthu Full Moon Poya Day,"Public,Bank",2022-01-17,2022-01-18
sl_28,Independence Day,"Public,Bank,Mercantile",2022-02-04,2022-02-05
Expand Down
2 changes: 1 addition & 1 deletion csv/2023.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
UID,Summary,Catagories,Start,End
UID,Summary,Categories,Start,End
sl_51,Duruthu Full Moon Poya Day,"Public,Bank",2023-01-06,2023-01-07
sl_52,Tamil Thai Pongal Day,"Public,Bank,Mercantile",2023-01-15,2023-01-16
sl_53,Independence Day,"Public,Bank,Mercantile",2023-02-04,2023-02-05
Expand Down
2 changes: 1 addition & 1 deletion csv/2024.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
UID,Summary,Catagories,Start,End
UID,Summary,Categories,Start,End
sl_77,Tamil Thai Pongal Day,"Public,Bank,Mercantile",2024-01-15,2024-01-16
sl_78,Duruthu Full Moon Poya Day,"Public,Bank",2024-01-25,2024-01-26
sl_79,Independence Day,"Public,Bank,Mercantile",2024-02-04,2024-02-05
Expand Down
135 changes: 26 additions & 109 deletions json/2021.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,259 +2,176 @@
{
"uid": "sl_1",
"summary": "Tamil Thai Pongal Day",
"catagories": [
"Public",
"Bank",
"Mercantile"
],
"categories": ["Public", "Bank", "Mercantile"],
"start": "2021-01-14",
"end": "2021-01-15"
},
{
"uid": "sl_2",
"summary": "Duruthu Full Moon Poya Day",
"catagories": [
"Public",
"Bank"
],
"categories": ["Public", "Bank"],
"start": "2021-01-28",
"end": "2021-01-29"
},
{
"uid": "sl_3",
"summary": "Independence Day",
"catagories": [
"Public",
"Bank",
"Mercantile"
],
"categories": ["Public", "Bank", "Mercantile"],
"start": "2021-02-04",
"end": "2021-02-05"
},
{
"uid": "sl_4",
"summary": "Nawam Full Moon Poya Day",
"catagories": [
"Public",
"Bank"
],
"categories": ["Public", "Bank"],
"start": "2021-02-26",
"end": "2021-02-27"
},
{
"uid": "sl_5",
"summary": "Maha sivarathri Day",
"catagories": [
"Public",
"Bank"
],
"categories": ["Public", "Bank"],
"start": "2021-03-11",
"end": "2021-03-12"
},
{
"uid": "sl_6",
"summary": "Madin Full Moon Poya Day",
"catagories": [
"Public",
"Bank"
],
"categories": ["Public", "Bank"],
"start": "2021-03-28",
"end": "2021-03-29"
},
{
"uid": "sl_7",
"summary": "Good Friday",
"catagories": [
"Public",
"Bank"
],
"categories": ["Public", "Bank"],
"start": "2021-04-02",
"end": "2021-04-03"
},
{
"uid": "sl_8",
"summary": "Day prior to Sinhala & Tamil New Year Day",
"catagories": [
"Public",
"Bank",
"Mercantile"
],
"categories": ["Public", "Bank", "Mercantile"],
"start": "2021-04-13",
"end": "2021-04-14"
},
{
"uid": "sl_9",
"summary": "Sinhala & Tamil New Year Day",
"catagories": [
"Public",
"Bank",
"Mercantile"
],
"categories": ["Public", "Bank", "Mercantile"],
"start": "2021-04-14",
"end": "2021-04-15"
},
{
"uid": "sl_10",
"summary": "Bak Full Moon Poya Day",
"catagories": [
"Public",
"Bank"
],
"categories": ["Public", "Bank"],
"start": "2021-04-26",
"end": "2021-04-27"
},
{
"uid": "sl_11",
"summary": "May Day",
"catagories": [
"Public",
"Bank",
"Mercantile"
],
"categories": ["Public", "Bank", "Mercantile"],
"start": "2021-05-01",
"end": "2021-05-02"
},
{
"uid": "sl_12",
"summary": "Id-Ul-Fitr (Ramazan Festival Day)",
"catagories": [
"Public",
"Bank"
],
"categories": ["Public", "Bank"],
"start": "2021-05-14",
"end": "2021-05-15"
},
{
"uid": "sl_13",
"summary": "Vesak Full Moon Poya Day",
"catagories": [
"Public",
"Bank"
],
"categories": ["Public", "Bank"],
"start": "2021-05-26",
"end": "2021-05-27"
},
{
"uid": "sl_14",
"summary": "Day following Vesak Full Moon Poya Day",
"catagories": [
"Public",
"Bank",
"Mercantile"
],
"categories": ["Public", "Bank", "Mercantile"],
"start": "2021-05-27",
"end": "2021-05-28"
},
{
"uid": "sl_15",
"summary": "Poson Full Moon Poya Day",
"catagories": [
"Public",
"Bank"
],
"categories": ["Public", "Bank"],
"start": "2021-06-24",
"end": "2021-06-25"
},
{
"uid": "sl_16",
"summary": "Id-Ul-Alha (Hadji Festival Day)",
"catagories": [
"Public",
"Bank"
],
"categories": ["Public", "Bank"],
"start": "2021-07-21",
"end": "2021-07-22"
},
{
"uid": "sl_17",
"summary": "Esala Full Moon Poya Day",
"catagories": [
"Public",
"Bank"
],
"categories": ["Public", "Bank"],
"start": "2021-07-23",
"end": "2021-07-24"
},
{
"uid": "sl_18",
"summary": "Nikini Full Moon Poya Day",
"catagories": [
"Public",
"Bank"
],
"categories": ["Public", "Bank"],
"start": "2021-08-22",
"end": "2021-08-23"
},
{
"uid": "sl_19",
"summary": "Binara Full Moon Poya Day",
"catagories": [
"Public",
"Bank"
],
"categories": ["Public", "Bank"],
"start": "2021-09-20",
"end": "2021-09-21"
},
{
"uid": "sl_20",
"summary": "Milad-Un-Nabi (Holy Prophet\u2019s Birthday)",
"catagories": [
"Public",
"Bank",
"Mercantile"
],
"categories": ["Public", "Bank", "Mercantile"],
"start": "2021-10-19",
"end": "2021-10-20"
},
{
"uid": "sl_21",
"summary": "Vap Full Moon Poya Day",
"catagories": [
"Public",
"Bank"
],
"categories": ["Public", "Bank"],
"start": "2021-10-20",
"end": "2021-10-21"
},
{
"uid": "sl_22",
"summary": "Deepavali Festival Day",
"catagories": [
"Public",
"Bank"
],
"categories": ["Public", "Bank"],
"start": "2021-11-04",
"end": "2021-11-05"
},
{
"uid": "sl_23",
"summary": "Il Full Moon Poya Day",
"catagories": [
"Public",
"Bank"
],
"categories": ["Public", "Bank"],
"start": "2021-11-18",
"end": "2021-11-19"
},
{
"uid": "sl_24",
"summary": "Unduvap Full Moon Poya Day",
"catagories": [
"Public",
"Bank"
],
"categories": ["Public", "Bank"],
"start": "2021-12-18",
"end": "2021-12-19"
},
{
"uid": "sl_25",
"summary": "Christmas Day",
"catagories": [
"Public",
"Bank",
"Mercantile"
],
"categories": ["Public", "Bank", "Mercantile"],
"start": "2021-12-25",
"end": "2021-12-26"
}
]
]
Loading

0 comments on commit 02f7323

Please sign in to comment.