예제 #1
0
파일: tasks.py 프로젝트: maria/cub
def get_contributions(account):
    get_repos(account.github_token, account.username)
    account.synced = int(time.time())
    account.save()

    delete_repos(account.github_token, account.username)
    account.synced = int(time.time())
    account.save()

    get_pulls(account.github_token, account.username)
    account.synced = int(time.time())
    account.save()

    get_score(account.username)
    account.synced = int(time.time())
    account.save()

    return account
예제 #2
0
파일: api.py 프로젝트: maria/cub
 def obj_create(self, bundle, request = None, **kwargs):
     get_repos(bundle.obj.github_token, bundle.obj.username)
     bundle.obj.data = {}
     return bundle