Skip to content

Commit

Permalink
actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias Asberg committed Mar 30, 2023
1 parent 076bb73 commit 392d7aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/scripts/plagiarism_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ def check_plagiarism(file_path, api_key):
'base64': content.encode('utf-8').decode('utf-8')
}

print('this should print data', data)


response = requests.post('https://api.copyleaks.com/v3/businesses/submit/url',
headers=headers, data=json.dumps(data))

if response.status_code != 200:
print(f'Error checking plagiarism for {file_path}: {response.text}')
print('this should print data', data)
return False

result = response.json()
Expand Down

0 comments on commit 392d7aa

Please sign in to comment.