Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sentry fixes: #7293

Merged
merged 4 commits into from
Aug 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/assets/v2/js/pages/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,9 @@ var refreshBounties = function(event, offset, append) {
explorer.bounties_request = $.get(bountiesURI, function(results, x) {

// Filter results by open bounties created more than 3 days ago
if ($('input[name="bounty_filter"]:checked').val().toString() === 'stale') {
const filter_checked = $('input[name="bounty_filter"]:checked').val();

if (filter_checked && filter_checked.toString() === 'stale') {
results = results.filter(bounty => {
const now = new Date();
const created = new Date(bounty.web3_created);
Expand Down
2 changes: 1 addition & 1 deletion app/grants/management/commands/subminer.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def handle(self, *args, **options):
num_tx_processed__lt=F('num_tx_approved')
)

is_clr_active = active_clr_rounds.filter(grant_type=grant.grant_type)
is_clr_active = active_clr_rounds.filter(grant_type=grant.grant_type__name)
if not is_clr_active:
subs = subs.exclude(frequency_unit='roundup') #dont process grant subscriptions until next round

Expand Down
9 changes: 5 additions & 4 deletions app/marketing/management/commands/hypercharge_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,13 @@ def handle(self, *args, **options):
bounties = bounties.exclude(bounty_state__in=['done', 'cancelled'])
bounties = bounties.order_by('metadata__hyper_tweet_counter')

bounty = bounties.first()

offer_title = f'Work on "{bounty.title}" and receive {floatformat(bounty.value_true)} {bounty.token_name}'
offer_desc = ''
if bounties:
bounty = bounties.first()

offer_title = f'Work on "{bounty.title}" and receive {floatformat(bounty.value_true)} {bounty.token_name}'
offer_desc = ''

if bounty:
event_name = ''
counter = bounty.metadata['hyper_tweet_counter']
if counter == 0:
Expand Down
3 changes: 2 additions & 1 deletion app/townsquare/management/commands/create_rankings.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ class Command(BaseCommand):

def handle(self, *args, **options):
mr = MatchRound.objects.current().first()
mr.process()
if mr:
mr.process()