Skip to content

Commit

Permalink
Fixed Team.total_teams
Browse files Browse the repository at this point in the history
  • Loading branch information
benjhar committed Jul 14, 2019
1 parent f3b81d4 commit d89ed81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions foldingathome/Team.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import requests


def total_teams():
r = requests.get(f'https://stats.foldingathome.org/api/team/0')
team = r.json()
return team["total_teams"]



class Team:
Expand All @@ -13,6 +10,9 @@ def __init__(self, team=0):
self.team = r.json()
self.donors = r.json()["donors"]

def total_teams():
return self.team["total_teams"]

def highest_scorer(self):
donors = self.donors
users_and_scores = {}
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
setup(
name='foldingathome',
packages=['foldingathome'],
version='0.11',
version='0.1.2',
license='GNU GENERAL PUBLIC LICENSE VERSION 3',
description='A Python wrapper for the Folding@Home API.',
author='leet_hakker',
author_email='[email protected]',
url='https://github.com/thenamesweretakenalready/foldingathome/',
download_url=
'https://github.com/thenamesweretakenalready/foldingathome/archive/v0.11.tar.gz',
'https://github.com/thenamesweretakenalready/foldingathome/archive/v0.1.2.tar.gz',
keywords=['API', 'Python', 'Folding@Home'],
install_requires=[
'requests',
Expand Down

0 comments on commit d89ed81

Please sign in to comment.