Skip to content

Commit 22d5a46

Browse files
committed
fix param name
1 parent ee8f24f commit 22d5a46

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

code_graph/app.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,14 @@ def process_repo():
132132
"""
133133

134134
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}')
135+
url = data.get('repo_url')
136+
if url is None:
137+
return jsonify({'status': f'Missing mandatory parameter "url"'}), 400
138+
logger.debug(f'Received repo_url: {url}')
139139

140140
ignore = data.get('ignore', [])
141141

142-
proj = Project(url)
142+
proj = Project.from_git_repository(url)
143143
proj.analyze_sources(ignore)
144144
proj.process_git_history(ignore)
145145

0 commit comments

Comments
 (0)