Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Add autoannounce-feature to dates-plugin #180

Merged
merged 4 commits into from
Mar 26, 2017
Merged

Add autoannounce-feature to dates-plugin #180

merged 4 commits into from
Mar 26, 2017

Conversation

mape2k
Copy link
Contributor

@mape2k mape2k commented Mar 4, 2017

Also fixes:

  • found-variable now calculated correctly
  • use UTC in "now" because python-ical use UTC for calculation

# timedelta = 21
# announce_minutes = 60,1440
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not instantly clear what this will do - so it either would need a comment or better a simple array so it's clear those are multiple times like so:

announce_minutes = 60
announce_minutes = 1440
# announce_minutes = [time]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

multiple values are not possible, you can just add something like
announce_minutes =
60
1440

Added some documentation to configuration...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realized just now my example was missing the square brackets after the variable name m( Should've been:

announce_minutes[] = 60
announce_minutes[] = 1440
# announce_minutes[] = [time]

Copy link
Contributor Author

@mape2k mape2k Mar 19, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# Minutes in the future to show event announcement (list of multiple values)
announce_minutes[] = 60
announce_minutes[] = 1440

results in

configparser.DuplicateOptionError: While reading from 'config.ini' [line 99]: option 'announce_minutes[]' in section 'plugins.dates' already exists

@mape2k mape2k merged commit 9fc8a0c into Bytespeicher:master Mar 26, 2017
@mape2k mape2k deleted the dates-announce branch March 26, 2017 10:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants