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

9987 kill quadratic lands w migrations #10137

Merged
merged 8 commits into from
Feb 17, 2022
Merged
Show file tree
Hide file tree
Changes from 5 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
7 changes: 4 additions & 3 deletions app/app/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
from kudos.router import router as kdrouter

from .sitemaps import sitemaps
from .views import redirect_view

urlpatterns = [

Expand Down Expand Up @@ -770,9 +771,9 @@
url(r'^blocknative', perftools.views.blocknative, name='blocknative'),

# quadratic lands
path('quadraticlands/', include('quadraticlands.urls', namespace='quadraticlands')),
re_path(r'^quadraticlands/?', include('quadraticlands.urls', namespace='ql_catchall_')),
re_path(r'^quadraticland/?', include('quadraticlands.urls', namespace='ql_catchall')),
path('quadraticlands/', redirect_view),
re_path(r'^quadraticlands/?', redirect_view),
re_path(r'^quadraticland/?', redirect_view),

# for robots
url(r'^robots.txt/?', retail.views.robotstxt, name='robotstxt'),
Expand Down
5 changes: 5 additions & 0 deletions app/app/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.shortcuts import redirect

def redirect_view(request):
response = redirect('http://decentralized.quadraticlands.com/')
return response
thelostone-mc marked this conversation as resolved.
Show resolved Hide resolved
6 changes: 0 additions & 6 deletions app/dashboard/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,6 @@ def update_trust_bonus(self, pk):
tb += 0.15
# if profile.is_duniter_verified:
# tb *= 1.001
qd_tb = 0
thelostone-mc marked this conversation as resolved.
Show resolved Hide resolved
for player in profile.players.all():
new_score = 0
if player.tokens_in:
new_score = min(player.tokens_in / 100, 0.20)
qd_tb = max(qd_tb, new_score)

# cap the trust_bonus score at 1.5
tb = min(1.5, tb)
Expand Down
13 changes: 0 additions & 13 deletions app/dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2912,19 +2912,6 @@ def get_profile_tab(request, profile, tab, prev_context):
'desc': 'Through PoH, upload a a video of yourself and get vouched for by a member of their community.',
'match_percent': 50,
'is_verified': profile.is_poh_verified
}, {
'ref': 'qd',
'name': 'Quadratic Diplomacy',
'icon_path': static('v2/images/quadraticlands/mission/diplomacy.svg'),
'desc': 'Stake your GTC on your frens, and earn sybil resistence by doing so!',
'match_percent': 20,
'is_verified': profile.players.exists(),
'disable_disconnect': True,
'alt_is_verified_btn': {
'text': 'Explore',
'type': 'btn-outline-primary',
'location': reverse('quadraticlands:mission_diplomacy')
}
}, {
'ref': 'brightid',
'name': 'BrightID',
Expand Down
60 changes: 0 additions & 60 deletions app/quadraticlands/admin.py

This file was deleted.

5 changes: 0 additions & 5 deletions app/quadraticlands/apps.py

This file was deleted.

1 change: 0 additions & 1 deletion app/quadraticlands/forms.py

This file was deleted.

Loading