Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change handling of duplicates more generally. #8

Merged
merged 1 commit into from
Feb 9, 2024
Merged

Change handling of duplicates more generally. #8

merged 1 commit into from
Feb 9, 2024

Conversation

xamanu
Copy link
Contributor

@xamanu xamanu commented Feb 7, 2024

No description provided.

@xamanu xamanu changed the title Changed handling duplicates more generally. Change handling of duplicates more generally. Feb 7, 2024
// check for doubles via uid
if _, ok := all_events[uid]; ok {

createdProp := all_events[uid].Props.Get(ical.PropCreated)
Copy link
Owner

Choose a reason for hiding this comment

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

The naming of these variables is not completely clear to me. If I understand correctly these could be named exisitingProp and existingOccurance as well as currentProp and currentOccurance maybe?

@@ -48,10 +48,44 @@ func NewCalendar(url string, l *log.Logger) (Calendar, error) {
}

func (cal Calendar) GetEventsOn(date time.Time) ([]EventData, error) {
events := make([]ical.Event, 0)
all_events := make(map[string]ical.Event)
Copy link
Owner

Choose a reason for hiding this comment

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

Use camel case to align to existing code style.

Copy link
Owner

@gueldenstone gueldenstone left a comment

Choose a reason for hiding this comment

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

All nice fix later.

@gueldenstone gueldenstone merged commit 297a378 into gueldenstone:main Feb 9, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants