From 8d820744aee2e622b895e863a97d96ec9b521eac Mon Sep 17 00:00:00 2001 From: khansadaoudi Date: Wed, 15 Jan 2025 09:41:18 +0100 Subject: [PATCH] minor fix for github diff --- app/github/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/github/service.py b/app/github/service.py index 4b4b1be..a139333 100644 --- a/app/github/service.py +++ b/app/github/service.py @@ -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