Skip to content

Commit

Permalink
Merge branch 'kudos-v1' of github.com:mbeacom/kudos into kudos-v1
Browse files Browse the repository at this point in the history
  • Loading branch information
octavioamu committed Sep 19, 2018
2 parents 69f035e + b7360c9 commit 3e70c46
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/kudos/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,13 @@ def receive(request, key, txid, network):
record_user_action(kudos_transfer.from_username, 'receive_kudos', kudos_transfer)
record_kudos_email_activity(kudos_transfer, kudos_transfer.username, 'receive_kudos')
messages.success(request, 'This kudos has been received')
# Update kudos.models.Token to reflect the newly cloned Kudos
if kudos_transfer.network == 'custom network':
network = 'localhost'
else:
network = kudos_transfer.network
kudos_contract = KudosContract(network)
kudos_contract.sync_db()
except Exception as e:
messages.error(request, str(e))
logger.exception(e)
Expand Down

0 comments on commit 3e70c46

Please sign in to comment.