updated models in multiple packages, gitignore, and added lolapi methods.

This commit includes some updates I did to the model as well as the summoners/lolapi.py which includes:
* get_summoner_by_name
* get_stats_summary_by_id

This does not include anything around ranked stat data just yet.

My local git status said there were changes to the .gitignore, possibly just between my github loldash-andy branch and the local git.

Update: looked at gitignore and it looks like I accidentally saved something to it (url's I was testing with), need to change that back and re-commit.
Yes I think so based on what I can remember of the Json.
Best,
Andy Delso
Sent using CloudMagic
On Thu, Oct 23, 2014 at 5:52 PM, Matthew Seman <notifications@github.com> wrote:In loldash/games/lolapi.py:
> +from helpers.lolapi import make_request
> +from games.models import Game, GamePlayer, GameStat
> +
> +
> +def get_games_by_summoner_id(summoner_id, region='na', version='v1.3'):
> +    # compile endpoint from arguments
> +    endpoint = 'game/by-summoner/' + str(summoner_id) + '/recent'
> +
> +    # send request to the api
> +    api_request_json = make_request(endpoint, version, region)
> +
> +    # create a list for the games in the json
> +    games_list = []
> +
> +    #top level of json is games[list], summonerId
> +    for each_game in api_request_json:

Also, should this be

for each_game in api_request_json['games']


or something similar? The comment seems like it indicates as much.

—Reply to this email directly or view it on GitHub.