TaskBridgeApp 0.1.3b4__py3-none-any.whl → 0.1.3b5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -270,10 +270,15 @@ class Reminder:
270
270
 
271
271
  """
272
272
  tasks_in_caldav = container.remote_calendar.cal_obj.search(todo=True, uid=self.uuid)
273
+
274
+ # Remote task using __TB__
275
+ if len(tasks_in_caldav) == 0:
276
+ tasks_in_caldav = container.remote_calendar.cal_obj.search(todo=True, uid=self.uuid.replace("x-apple-reminder://", "__TB__"))
277
+
273
278
  if len(tasks_in_caldav) > 0:
274
279
  remote = tasks_in_caldav[0]
275
280
  self.uuid = new_uuid
276
- remote.icalendar_component["uid"] = self.uuid
281
+ remote.icalendar_component["uid"] = self.uuid.replace("x-apple-reminder://", "__TB__")
277
282
  remote.save()
278
283
  return True, 'Remote reminder UID updated'
279
284
  return False, 'Could not find remote reminder to update UUID: {} ({})'.format(self.uuid, self.name)
@@ -568,7 +568,7 @@ class ReminderContainer:
568
568
  if r.uuid == deleted['local_uuid'] or r.name == deleted['local_name']), None)
569
569
  if remote_reminder is not None:
570
570
  if helpers.confirm("Delete remote reminder {}".format(remote_reminder.name)):
571
- to_delete = container.remote_calendar.cal_obj.search(todo=True, uid=remote_reminder.uuid)
571
+ to_delete = container.remote_calendar.cal_obj.search(todo=True, uid=remote_reminder.uuid.replace("x-apple-reminder://", "__TB__"))
572
572
  if len(to_delete) > 0:
573
573
  to_delete[0].delete()
574
574
  container.remote_reminders.remove(remote_reminder)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: TaskBridgeApp
3
- Version: 0.1.3b4
3
+ Version: 0.1.3b5
4
4
  Summary: Export your Apple Reminders & Notes to NextCloud, a local folder, or CalDav - and keep them in sync!
5
5
  Home-page: https://taskbridge.app/
6
6
  License: GPL-3.0-or-later
@@ -26,7 +26,7 @@ Requires-Dist: caldav (>=1.4.0,<2.0.0)
26
26
  Requires-Dist: darkdetect (>=0.8.0,<0.9.0)
27
27
  Requires-Dist: keyring (>=25.3.0,<26.0.0)
28
28
  Requires-Dist: markdown2 (>=2.5.3,<3.0.0)
29
- Requires-Dist: markdownify (>=1.0.0,<2.0.0)
29
+ Requires-Dist: markdownify (>=1.1.0,<2.0.0)
30
30
  Requires-Dist: schedule (>=1.2.1,<2.0.0)
31
31
  Project-URL: Repository, https://github.com/keithvassallomt/taskbridge
32
32
  Description-Content-Type: text/markdown
@@ -105,11 +105,11 @@ taskbridgeapp/notes/model/notescript.py,sha256=WKIXWlTserRL1aSTEDAwUnNB5-rPxut_P
105
105
  taskbridgeapp/reminders/__init__.py,sha256=PNWE6moen7lfkqfcOKQ56r8Z-UJ0lskRs2lA6lvxVsA,651
106
106
  taskbridgeapp/reminders/controller.py,sha256=_QSk1woHhi-x_doZ3dmpknmhQ7DZ40Mtu5jiU9x2YtM,10534
107
107
  taskbridgeapp/reminders/model/__init__.py,sha256=1wTNnNMQPrg3Wo0r0H0BaWP9StXaMP_9BQNtsSTyLek,755
108
- taskbridgeapp/reminders/model/reminder.py,sha256=SEw6CL-buldUKng9HVWNGjvqU0nfcRjHlaXe0Vx6wQM,16435
109
- taskbridgeapp/reminders/model/remindercontainer.py,sha256=rFhDX3E2NoI7D39Z_HpvUkQUweL-zkLW1KKUjPuhA9I,47775
108
+ taskbridgeapp/reminders/model/reminder.py,sha256=tkHWm9wcBU_8viFAeNmvgn_GlHge4OgXga4ve-rIjyM,16689
109
+ taskbridgeapp/reminders/model/remindercontainer.py,sha256=V3BCbdibeH6rHWhBeNcBA1mv7M_DeCKfeMis49Ns56s,47816
110
110
  taskbridgeapp/reminders/model/reminderscript.py,sha256=y057L1jiduDi4479mHq1JO_NDZCVrOZIiYYgL3n4gSw,4942
111
- taskbridgeapp-0.1.3b4.dist-info/LICENSE,sha256=N0P3pKtRMvfb64jmgJdlerg3TnS0a2QC776AzPsbZIg,35128
112
- taskbridgeapp-0.1.3b4.dist-info/METADATA,sha256=smKR7ZPE0bcclF-1mxSzVe6cHVacy_W8exjyHoNqkrU,9205
113
- taskbridgeapp-0.1.3b4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
114
- taskbridgeapp-0.1.3b4.dist-info/entry_points.txt,sha256=GlvC_18Fob4uHnwWumwzO0h5v_P7xz_-y5IiyWl704Y,51
115
- taskbridgeapp-0.1.3b4.dist-info/RECORD,,
111
+ taskbridgeapp-0.1.3b5.dist-info/LICENSE,sha256=N0P3pKtRMvfb64jmgJdlerg3TnS0a2QC776AzPsbZIg,35128
112
+ taskbridgeapp-0.1.3b5.dist-info/METADATA,sha256=fXpNOS9M36S_VgZO3Uk8YRxzwHuXHcvEU2HoamN_UNM,9205
113
+ taskbridgeapp-0.1.3b5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
114
+ taskbridgeapp-0.1.3b5.dist-info/entry_points.txt,sha256=GlvC_18Fob4uHnwWumwzO0h5v_P7xz_-y5IiyWl704Y,51
115
+ taskbridgeapp-0.1.3b5.dist-info/RECORD,,