django-restit 4.2.101__py3-none-any.whl → 4.2.102__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.
account/fcm/v1.py CHANGED
@@ -110,13 +110,13 @@ class FirebaseNotifier:
110
110
  message["notification"] = dict(title=title, body=body)
111
111
  if data:
112
112
  priority = kwargs.get("priority", None)
113
- message["data"] = data
114
- if priority == "high":
115
- message["android"] = dict(priority="high")
116
- message["apns"] = dict(headers={"apns-priority": "10"})
117
- else:
118
- message["android"] = dict(priority="normal")
119
- message["apns"] = dict(headers={"apns-priority": "5"})
113
+ message["data"] = {k:str(v) for k,v in data.items()}
114
+ # if priority == "high":
115
+ # message["android"] = dict(priority="high")
116
+ # message["apns"] = dict(headers={"apns-priority": "10"})
117
+ # else:
118
+ # message["android"] = dict(priority="normal")
119
+ # message["apns"] = dict(headers={"apns-priority": "5"})
120
120
  payload = dict(message=message)
121
121
  if DEBUG_FCM:
122
122
  logger.info("request", payload)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: django-restit
3
- Version: 4.2.101
3
+ Version: 4.2.102
4
4
  Summary: A Rest Framework for DJANGO
5
5
  License: MIT
6
6
  Author: Ian Starnes
@@ -2,7 +2,7 @@ account/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  account/admin.py,sha256=8MQ1gAgjpPUC_SGCVMwd7I8fqLetqcutLiasjssEPRY,1839
3
3
  account/fcm/__init__.py,sha256=lXuz5z0bL5TXqVdaXxiVr-4zF_Q1IZ8kPEkuYGb5eB0,17
4
4
  account/fcm/legacy.py,sha256=5WM5HAnjVPweT0oe3rBN9tBGHfC-DPa-e9luH3baT8Y,959
5
- account/fcm/v1.py,sha256=dHoa7vBv-VAqP41DisJgFzvaYsCYmXpqBxftcfUAox8,4339
5
+ account/fcm/v1.py,sha256=BTM8T-3fsSm6QrmnDUW94_zl6FIZw1a2Ky2T799JHk8,4381
6
6
  account/migrations/0001_initial.py,sha256=PhYNDTiwjyUplErBmYc34ecynLIEJL2JuC02o8GCXes,15894
7
7
  account/migrations/0003_member_phone_number.py,sha256=auAJCfxsK-y3Veo0vwZfrIZxvwHYBjg5CpYRgCWghCQ,738
8
8
  account/migrations/0004_group_modified_alter_group_created.py,sha256=20iNFlUGtRCWUsxEqTJFRQKQ73z4REhfo-hGam8IHXY,551
@@ -507,7 +507,7 @@ ws4redis/servers/uwsgi.py,sha256=VyhoCI1DnVFqBiJYHoxqn5Idlf6uJPHvfBKgkjs34mo,172
507
507
  ws4redis/settings.py,sha256=K0yBiLUuY81iDM4Yr-k8hbvjn5VVHu5zQhmMK8Dtz0s,1536
508
508
  ws4redis/utf8validator.py,sha256=S0OlfjeGRP75aO6CzZsF4oTjRQAgR17OWE9rgZdMBZA,5122
509
509
  ws4redis/websocket.py,sha256=R0TUyPsoVRD7Y_oU7w2I6NL4fPwiz5Vl94-fUkZgLHA,14848
510
- django_restit-4.2.101.dist-info/LICENSE.md,sha256=VHN4hhEeVOoFjtG-5fVv4jesA4SWi0Z-KgOzzN6a1ps,1068
511
- django_restit-4.2.101.dist-info/METADATA,sha256=8k0GzJ6-pWg5Cjzo8JkcK7mHswnujmGX5zPpDaSjS58,7663
512
- django_restit-4.2.101.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
513
- django_restit-4.2.101.dist-info/RECORD,,
510
+ django_restit-4.2.102.dist-info/LICENSE.md,sha256=VHN4hhEeVOoFjtG-5fVv4jesA4SWi0Z-KgOzzN6a1ps,1068
511
+ django_restit-4.2.102.dist-info/METADATA,sha256=XAlBU_rG-nUShVMEQRbDr1YUXqziHC7YmRYTsotPZ1c,7663
512
+ django_restit-4.2.102.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
513
+ django_restit-4.2.102.dist-info/RECORD,,