chenwardT / lol_stats2

Website to perform match aggregation and analysis for Riot Games' League of Legends.
2 stars 0 forks source link

Summoner records are written to each time a match is stored #20

Closed chenwardT closed 8 years ago

chenwardT commented 8 years ago

In the MatchDetail creation flow, ParticipantIdentityManager.create_participant_identity calls Summoner.objects.create_or_update_summoner_from_match, passing it the (incomplete) summoner data that is included in the response for match data.

This doesn't need to occur each time a match is saved and instead could be limited in frequency by checking the last time the summoner was updated.

chenwardT commented 8 years ago

Summoner's last_update is checked and compared to a timedelta before proceeding with update of summoner data now. See https://github.com/chenwardT/lol_stats2/commit/0cfe757a0df5856c4c7ae281128c42ee3c94cdce