mirror of
https://github.com/sascha-hemi/waste-collection-ammerland.git
synced 2026-03-21 02:04:34 +01:00
added .gitignroe and calender fodler
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
calenders/*
|
||||||
2
main.py
2
main.py
@@ -84,7 +84,7 @@ def display_abfalltermine(collection_days):
|
|||||||
print("No waste collection dates found.")
|
print("No waste collection dates found.")
|
||||||
|
|
||||||
# Function to save waste collection dates to an ICS calendar file
|
# Function to save waste collection dates to an ICS calendar file
|
||||||
def save_abfalltermine_to_ics(collection_days, filename="waste_collection.ics"):
|
def save_abfalltermine_to_ics(collection_days, filename="calenders/waste_collection.ics"):
|
||||||
header = "BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:-//Waste Collection//EN\n"
|
header = "BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:-//Waste Collection//EN\n"
|
||||||
events = []
|
events = []
|
||||||
for abfall_type, date in sorted(collection_days, key=lambda x: x[1]):
|
for abfall_type, date in sorted(collection_days, key=lambda x: x[1]):
|
||||||
|
|||||||
Reference in New Issue
Block a user