Skip to content

Commit

Permalink
minor fix for github diff
Browse files Browse the repository at this point in the history
  • Loading branch information
khansadaoudi committed Jan 15, 2025
1 parent 7cfce3d commit 8d82074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/github/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def compare_changes_sample(project_name, sample_name):
sample_content_github = requests.get(download_url).text
sample_content_ag = GrewService.get_samples_with_string_contents_as_dict(project_name, [sample_name], 'validated')[sample_name]

diff = unified_diff(sample_content_ag.split('\n'), sample_content_github.split('\n'), lineterm='\n')
diff = unified_diff(sample_content_github.split('\n'), sample_content_ag.split('\n'), lineterm='\n')
diff_string = '\n'.join(list(diff))

return diff_string
Expand Down

0 comments on commit 8d82074

Please sign in to comment.