habulaj commited on
Commit
3b8883b
·
verified ·
1 Parent(s): 9faf9b1

Update routes/sendnotifications.py

Browse files
Files changed (1) hide show
  1. routes/sendnotifications.py +1 -1
routes/sendnotifications.py CHANGED
@@ -69,7 +69,7 @@ async def get_post_info(feed_id: str):
69
 
70
  feed = feeds[0]
71
  description = feed.get("description", "")
72
- portfolio_ids = eval(feed.get("portfolios", "[]"))
73
 
74
  image_url = None
75
  if portfolio_ids:
 
69
 
70
  feed = feeds[0]
71
  description = feed.get("description", "")
72
+ portfolio_ids = feed.get("portfolios") or []
73
 
74
  image_url = None
75
  if portfolio_ids: