Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/app/models/event.rb b/app/models/event.rb
- index d8172e2..bbe8053 100644
- --- a/app/models/event.rb
- +++ b/app/models/event.rb
- @@ -714,8 +714,8 @@ class Event < ActiveRecord::Base
- score = 0
- ## TODO: should datetimes that are further apart add more to the distance? spiros says yes
- - score += 25 if starts_at != other_event.starts_at
- - score += 5 if ends_at != other_event.ends_at
- + score += 25 if starts_at.as_utc != other_event.starts_at.as_utc
- + score += 5 if ends_at.as_utc != other_event.ends_at.as_utc
- score += 5 if location != other_event.location
- ## I used to ignore changes to the summary since the harvester might change it, but with ical obviously i have to consider it
Add Comment
Please, Sign In to add comment