team

Contains classes pertaining to teams.

class eldonationtracker.team.Team(team_id, folder, currency_symbol)

Bases: object

Hold Team Data.

get_participants()

Get team participants.

get_team_json()

Get team info from JSON api.

get_top_5_participants()

Get team participants.

participant_run()

Get and calculate team partipant info.

team_run()

Get team info from API.

write_text_files(dictionary)

Write info to text files.

class eldonationtracker.team.TeamParticipant(json)

Bases: eldonationtracker.donor.Donor

Participant Attributes.

Inherits from the donor class, but over-rides the json_to_attributes function.

API variables: name: participant’s name or Anonymous amount: the sum of all donations by this participant number_of_donations: number of all donations by this participant image_url: the url of the participant’s avatar image (not used)

json_to_attributes(json)

Convert JSON to Team Participant attributes.