We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee8f24f commit 22d5a46Copy full SHA for 22d5a46
code_graph/app.py
@@ -132,14 +132,14 @@ def process_repo():
132
"""
133
134
data = request.get_json()
135
- repo_url = data.get('repo_url')
136
- if repo_url is None:
137
- return jsonify({'status': f'Missing mandatory parameter "repo_url"'}), 400
138
- logger.debug(f'Received repo_url: {repo_url}')
+ url = data.get('repo_url')
+ if url is None:
+ return jsonify({'status': f'Missing mandatory parameter "url"'}), 400
+ logger.debug(f'Received repo_url: {url}')
139
140
ignore = data.get('ignore', [])
141
142
- proj = Project(url)
+ proj = Project.from_git_repository(url)
143
proj.analyze_sources(ignore)
144
proj.process_git_history(ignore)
145
0 commit comments