From 51b138dd881f20af0422c9e4b5a49dee71179e97 Mon Sep 17 00:00:00 2001 From: mac12m99 <10120390+mac12m99@users.noreply.github.com> Date: Mon, 25 Jan 2021 14:45:36 +0100 Subject: [PATCH] fix tests --- .github/workflows/tests.yml | 12 ++++++------ core/httptools.py | 2 +- tests/template.html | 5 ----- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2c5bd758..b3dfb284 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,12 +22,12 @@ jobs: ./tests/run.sh - name: Commit & Push changes - uses: cpina/github-action-push-to-another-repository@cp_instead_of_deleting + uses: dmnemec/copy_file_to_another_repo_action@v1.0.4 env: API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} with: - source-directory: "reports" - destination-github-username: "kodiondemand" - destination-repository-name: "kodiondemand.github.io" - user-email: "tests@kod.bot" - commit-message: "Test suite" \ No newline at end of file + source_file: 'reports' + destination_repo: 'kodiondemand/kodiondemand.github.io' + user_email: 'tests@kod.bot' + user_name: 'bot' + commit_message: 'Test suite' \ No newline at end of file diff --git a/core/httptools.py b/core/httptools.py index bfa8c3d9..59f71d54 100755 --- a/core/httptools.py +++ b/core/httptools.py @@ -418,7 +418,7 @@ def downloadpage(url, **opt): response['data'] = response['data'].decode('ISO-8859-1') if req.headers.get('Server', '').startswith('cloudflare') and response_code in [429, 503, 403]\ - and not opt.get('CF', False) and 'Cloudflare Ray ID' in response['data']: + and not opt.get('CF', False) and 'Ray ID' in response['data']: logger.debug("CF retry... for domain: %s" % domain) from lib import proxytranslate gResp = proxytranslate.process_request_proxy(url) diff --git a/tests/template.html b/tests/template.html index 4d3e8ab2..ea6098dd 100644 --- a/tests/template.html +++ b/tests/template.html @@ -126,11 +126,6 @@ {%- endif %} {%- endif %} {%- endfor %} - - - - -