Update functions.py
Browse files- functions.py +1 -1
functions.py
CHANGED
@@ -225,7 +225,7 @@ def commit(repo, pr_number=None, message=default_pull_request_title, oauth_token
|
|
225 |
|
226 |
try:
|
227 |
try: # check if there is a readme already
|
228 |
-
readme_text = get_edited_yaml_readme(repo, token=token) + '\n' + get_eval_results(repo)
|
229 |
except Exception as e:
|
230 |
if "Repo card metadata block was not found." in str(e): # There is no readme
|
231 |
readme_text = get_edited_yaml_readme(repo, token=token)
|
|
|
225 |
|
226 |
try:
|
227 |
try: # check if there is a readme already
|
228 |
+
readme_text = get_edited_yaml_readme(repo, token=token).rstrip() + '\n\n' + get_eval_results(repo)
|
229 |
except Exception as e:
|
230 |
if "Repo card metadata block was not found." in str(e): # There is no readme
|
231 |
readme_text = get_edited_yaml_readme(repo, token=token)
|