From c15d6b6ab6b972167175f5543f30a3b3941b017e Mon Sep 17 00:00:00 2001 From: Cherie Williams Date: Thu, 25 Aug 2016 14:04:45 -0700 Subject: [PATCH] Insert pin before notifs/reminders --- pypkjs/timeline/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypkjs/timeline/__init__.py b/pypkjs/timeline/__init__.py index c77ea42..e4495a5 100644 --- a/pypkjs/timeline/__init__.py +++ b/pypkjs/timeline/__init__.py @@ -124,6 +124,7 @@ def handle_pin_create(self, pin, manual=False): pin_item.save(force_insert=not pin_item.exists()) pin_item.update_topics(pin['topicKeys']) self.logger.debug("saved pin") + self._send(pin_item) if next_notification is not None: if is_updating: TimelineItem.delete().where((TimelineItem.type == 'notification') & @@ -133,7 +134,6 @@ def handle_pin_create(self, pin, manual=False): for reminder in reminders: reminder.save(force_insert=True) self._send(reminder) - self._send(pin_item) def handle_pin_delete(self, pin): types = {