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

Prevent duplicate events from displaying #32

Merged
merged 2 commits into from
Apr 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MMM-GoogleCalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ Module.register("MMM-GoogleCalendar", {
for (const evt of eventList) {
if (
evt.summary === event.summary &&
parseInt(evt.start) === parseInt(event.start)
parseInt(evt.startDate) === parseInt(event.startDate)
) {
return true;
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mmm-googlecalendar",
"version": "2.0.0",
"version": "1.1.0",
"displayName": "MMM-GoogleCalendar",
"description": "Display your Google calendars in MagicMirror (including google's family calendar) without using iCals nor any public calendar. ",
"main": "MMM-GoogleCalendar.js",
Expand Down