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

migrates all quest rewards over to the xdai network #7852

Merged
merged 2 commits into from
Nov 11, 2020

Conversation

owocki
Copy link
Contributor

@owocki owocki commented Nov 9, 2020

Description

migrates all quest rewards over to the xdai network

Refers/Fixes

Justin <> Kevin convo for upcoming blog post about kudos migration to xdai

Testing

tested locally

this script must be run in prod when this is merged, to migrate them all over

from quests.models import *
for quest in Quest.objects.filter(visible=True):
    if quest.kudos_reward.on_xdai:
        quest.kudos_reward = quest.kudos_reward.on_xdai
        quest.save()
        print(f'migrated {quest.pk}');
    else:
        print(f'could not migrate {quest.pk}');
        quest.visible=False
        quest.save()

@thelostone-mc thelostone-mc merged commit ae378de into master Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants