From 9913c2c1bd839cc09f052e554f96d717bf1a8306 Mon Sep 17 00:00:00 2001 From: Kevin Owocki Date: Mon, 8 Feb 2021 11:07:34 -0700 Subject: [PATCH 1/6] bad str() , fixeds https://sentry.io/organizations/gitcoin/issues/2206513735/?project=1398424&query=is%3Aunresolved&statsPeriod=14d --- app/dashboard/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dashboard/models.py b/app/dashboard/models.py index f97098e87ee..0364623453c 100644 --- a/app/dashboard/models.py +++ b/app/dashboard/models.py @@ -4932,7 +4932,7 @@ class BlockedIP(SuperModel): def __str__(self): """Return the string representation of a BlockedIP.""" - return f'' + return f'' class Sponsor(SuperModel): From ca8e097d3e7e676cb4060b14aaa5023d1938a084 Mon Sep 17 00:00:00 2001 From: octavioamu Date: Mon, 8 Feb 2021 15:32:08 -0300 Subject: [PATCH 2/6] fix hackathon events to mtc --- app/dashboard/templates/dashboard/hackathon/onboard.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/dashboard/templates/dashboard/hackathon/onboard.html b/app/dashboard/templates/dashboard/hackathon/onboard.html index f603479b6d7..7e1ceb2bdb8 100644 --- a/app/dashboard/templates/dashboard/hackathon/onboard.html +++ b/app/dashboard/templates/dashboard/hackathon/onboard.html @@ -510,9 +510,9 @@

{{ question.text }}{{ questio const sendRegister = fetchData(url, 'POST', data, {'X-CSRFToken': csrftoken}); $('[data-registration]').attr('disabled', true); - $.when(sendRegister).then((response) => { + $.when(sendRegister).then(async(response) => { - sendMtcEvent(name) + await sendMtcEvent(name) _alert('You have now registered for this hackathon.', 'success'); document.location.href = response.redirect; }) From 799398b0af9ca27e869eecb9b0c3bd2f872799d5 Mon Sep 17 00:00:00 2001 From: octavioamu Date: Mon, 8 Feb 2021 16:03:56 -0300 Subject: [PATCH 3/6] missing await --- app/dashboard/templates/dashboard/hackathon/onboard.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/dashboard/templates/dashboard/hackathon/onboard.html b/app/dashboard/templates/dashboard/hackathon/onboard.html index 7e1ceb2bdb8..947eb409920 100644 --- a/app/dashboard/templates/dashboard/hackathon/onboard.html +++ b/app/dashboard/templates/dashboard/hackathon/onboard.html @@ -532,8 +532,8 @@

{{ question.text }}{{ questio const sendRegister = fetchData(url, 'POST', data, {'X-CSRFToken': csrftoken}); $('#poll-submit').attr('disabled', true); - $.when(sendRegister).then((response) => { - sendMtcEvent(name) + $.when(sendRegister).then(async(response) => { + await sendMtcEvent(name) _alert('You have now registered for this hackathon.', 'success'); console.log(response) document.location.href = response.redirect; From 41cfb5fe71aceb8f9053b1e8999e1f4f41434dde Mon Sep 17 00:00:00 2001 From: octavioamu Date: Mon, 8 Feb 2021 20:18:19 -0300 Subject: [PATCH 4/6] remove crossorigin --- app/app/templates/shared/sentry.html | 2 +- app/dashboard/templates/ftux/avatar.html | 10 +++++----- app/grants/templates/grants/faq.html | 2 +- app/grants/templates/grants/index.html | 2 +- app/inbox/templates/inbox.html | 2 +- .../templates/shared/ptokens_buy_faq.html | 6 +++--- app/ptokens/templates/shared/ptokens_faq.html | 6 +++--- .../templates/shared/ptokens_make_faq.html | 2 +- app/retail/templates/email_unsubscribed.html | 4 ++-- .../emails/recap/weekly_founder_recap.html | 16 ++++++++-------- app/retail/templates/shared/footer_scripts.html | 2 +- .../templates/shared/footer_scripts_lite.html | 2 +- app/retail/templates/shared/head.html | 6 +++--- 13 files changed, 31 insertions(+), 31 deletions(-) diff --git a/app/app/templates/shared/sentry.html b/app/app/templates/shared/sentry.html index 7efab7eee9c..dbf37d44faf 100644 --- a/app/app/templates/shared/sentry.html +++ b/app/app/templates/shared/sentry.html @@ -15,7 +15,7 @@ along with this program. If not, see . {% endcomment %} {% if raven_js_dsn %} - + - + + diff --git a/app/grants/templates/grants/index.html b/app/grants/templates/grants/index.html index 22dc2df78be..5d561cc9446 100644 --- a/app/grants/templates/grants/index.html +++ b/app/grants/templates/grants/index.html @@ -202,7 +202,7 @@ - + diff --git a/app/inbox/templates/inbox.html b/app/inbox/templates/inbox.html index 1cb3f9001a5..20299895dc4 100644 --- a/app/inbox/templates/inbox.html +++ b/app/inbox/templates/inbox.html @@ -88,6 +88,6 @@ {% include 'shared/analytics.html' %} {% include 'shared/footer_scripts.html' with slim=1 %} - + diff --git a/app/ptokens/templates/shared/ptokens_buy_faq.html b/app/ptokens/templates/shared/ptokens_buy_faq.html index 60b587fa44a..fa6f6b37047 100644 --- a/app/ptokens/templates/shared/ptokens_buy_faq.html +++ b/app/ptokens/templates/shared/ptokens_buy_faq.html @@ -36,8 +36,8 @@
Where do I see a user’s time token?
How do I use a time token?
-

Once you’ve acquired a time token, you’ll need to submit a redemption request. - This request can be used on any of the Creators listed uses, and only for those uses. +

Once you’ve acquired a time token, you’ll need to submit a redemption request. + This request can be used on any of the Creators listed uses, and only for those uses. Please note that it’s up to the creator to determine whether or not your request is appropriate, so please give them 24-48 hours to respond to your request.

@@ -56,4 +56,4 @@
A Creator accepted my request and did not meet my expectat - + diff --git a/app/ptokens/templates/shared/ptokens_faq.html b/app/ptokens/templates/shared/ptokens_faq.html index eca7a71be6c..92a7127557a 100644 --- a/app/ptokens/templates/shared/ptokens_faq.html +++ b/app/ptokens/templates/shared/ptokens_faq.html @@ -37,8 +37,8 @@
Where do I see a user’s time token?
How do I use a time token?
-

Once you’ve acquired a time token, you’ll need to submit a redemption request. - This request can be used on any of the Creators listed uses, and only for those uses. +

Once you’ve acquired a time token, you’ll need to submit a redemption request. + This request can be used on any of the Creators listed uses, and only for those uses. Please note that it’s up to the creator to determine whether or not your request is appropriate, so please give them 24-48 hours to respond to your request.

@@ -57,4 +57,4 @@
A Creator accepted my request and did not meet my expectat - + diff --git a/app/ptokens/templates/shared/ptokens_make_faq.html b/app/ptokens/templates/shared/ptokens_make_faq.html index f4a1ebf9936..0a96d5a2bb8 100644 --- a/app/ptokens/templates/shared/ptokens_make_faq.html +++ b/app/ptokens/templates/shared/ptokens_make_faq.html @@ -61,4 +61,4 @@
What happens when I accept a request?
- + diff --git a/app/retail/templates/email_unsubscribed.html b/app/retail/templates/email_unsubscribed.html index 964f1616889..5cae518d0a9 100644 --- a/app/retail/templates/email_unsubscribed.html +++ b/app/retail/templates/email_unsubscribed.html @@ -48,5 +48,5 @@
{% trans 'Unsubscribe Successful' %}
- - \ No newline at end of file + + diff --git a/app/retail/templates/emails/recap/weekly_founder_recap.html b/app/retail/templates/emails/recap/weekly_founder_recap.html index f024b634ec6..6539d17fcb1 100644 --- a/app/retail/templates/emails/recap/weekly_founder_recap.html +++ b/app/retail/templates/emails/recap/weekly_founder_recap.html @@ -18,7 +18,7 @@ {% load i18n humanize %} {% load static %} {% block content %} - +