rohanshaw commited on
Commit
da6396e
·
verified ·
1 Parent(s): ce92098

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -170,7 +170,7 @@ async def get_user_by_username(username: str) -> Optional[dict]:
170
  FCM_SERVER_KEY = os.getenv("FCM_SERVER_KEY")
171
 
172
  def send_push(token: str, title: str, body: str, platform: str = "web"):
173
- if platform="app":
174
  message = firebase_admin.messaging.Message(
175
  notification=firebase_admin.messaging.Notification(
176
  title=title,
 
170
  FCM_SERVER_KEY = os.getenv("FCM_SERVER_KEY")
171
 
172
  def send_push(token: str, title: str, body: str, platform: str = "web"):
173
+ if platform=="app":
174
  message = firebase_admin.messaging.Message(
175
  notification=firebase_admin.messaging.Notification(
176
  title=title,