From ff1ec85d6efd102d0d72f31d682ae16e6ca60157 Mon Sep 17 00:00:00 2001 From: Alexandre Strube Date: Wed, 10 Oct 2018 23:23:34 +0200 Subject: [PATCH] closing issues #9 and #11 --- Calendar/settings.py | 6 ++++++ Calendar/stable.py | 9 +++------ 2 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 Calendar/settings.py diff --git a/Calendar/settings.py b/Calendar/settings.py new file mode 100644 index 0000000..f2ccf91 --- /dev/null +++ b/Calendar/settings.py @@ -0,0 +1,6 @@ +""" To quickly get started, fill in the following details:""" + +url = "https://calendar.google.com/calendar/ical/en.usa%23holiday%40group.v.calendar.google.com/public/basic.ics" +api_key = "api-key" +location = "Julich, DE" +week_starts_on = "Monday" diff --git a/Calendar/stable.py b/Calendar/stable.py index 2bb3116..bc6fbac 100644 --- a/Calendar/stable.py +++ b/Calendar/stable.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # -*- coding: utf-8 -*- """ @@ -21,12 +21,9 @@ Copyright by Ace-Laboratory # week_starts_on refers to the day on which the week starts on in your country. # Choose between Monday and Sunday. -""" To quickly get started, fill in the following details:""" +""" To quickly get started, go to the settings.py file and fill in the necessary fields there""" -url = "https://calendar.google.com/calendar/ical/en.usa%23holiday%40group.v.calendar.google.com/public/basic.ics" -api_key = "" -location = "California, US" -week_starts_on = "Monday" +from settings import * """That's all. The software will do the rest. You don't need to modify anything below this."""