def get_total_member_repositories(mid, **kwargs): if kwargs['begin'] is None: kwargs['begin'] = 0 if kwargs['end'] is None: kwargs['end'] = calendar.timegm(datetime.utcnow().timetuple()) committer_id = store.get_member_id(mid) if committer_id is None: return [] commits = store.get_commits(kwargs['begin'], kwargs['end'], uid=committer_id) return {}, [len(list(store.get_repo_uris(*store.get_commits_repos(commits))))]
def get_member_repositories(mid, **kwargs): committer_id = store.get_member_id(mid) if committer_id is None: return [] commits = store.get_commits(kwargs['begin'], kwargs['end'], uid=committer_id) return list(store.get_repo_uris(*store.get_commits_repos(commits)))