ohwowmarketing / acmx-sgg

Full Repository of Staging Site
0 stars 0 forks source link

Image not displayed when news does not have a team id #5

Closed moseley closed 3 years ago

moseley commented 3 years ago

Set a fallback image on the NFL, NBA, and MLB news pages if the news does not include a team id.

moseley commented 3 years ago

The latest news items from NBA currently has this issue with a null value for TeamID.

{
    "NewsID": 71819,
    "Source": "RotoBaller",
    "Updated": "2020-11-23T02:44:38",
    "TimeAgo": "12 hours ago",
    "Title": "Aron Baynes Signing With Raptors",
    "Content": "The Toronto Raptors are signing center Aron Baynes to a two-year, $14.3 million contract. Baynes will replace Marc Gasol, who departs for the Lakers. In Phoenix last season, the 6'10'' big man averaged 11.5 points and 5.6 rebounds per contest. He took a career-high four three-pointers per game, shooting 35.1 percent on them. He should be a key piece of what Toronto does this season and should be considered a late-round sleeper option.",
    "Url": "https://www.rotoballer.com/player-news/aron-baynes-signing-with-raptors/806970",
    "TermsOfUse": "RotoBaller Premium News feed is provided for unlimited commercial use by a single brand. Attribution and/or Hyperlink are appreciated, but not required, in connection with your use of the feeds. Please contact sales@fantasydata.com with any questions.",
    "Author": "Staff",
    "Categories": "Transactions",
    "PlayerID": null,
    "TeamID": null,
    "Team": null,
    "PlayerID2": null,
    "TeamID2": null,
    "Team2": null,
    "OriginalSource": "Shams Charania",
    "OriginalSourceUrl": "https://twitter.com/ShamsCharania/status/1330674168346644481"
}