mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Gold reversal: remove unnecessary logic to find secret
This commit is contained in:
@@ -1375,11 +1375,7 @@ def reverse_gold_purchase(transaction_id):
|
||||
goldtype = 'autorenew'
|
||||
else:
|
||||
secret = transaction.secret
|
||||
if '{' in secret:
|
||||
secret.strip('{}') # I goofed
|
||||
pieces = secret.split(',')
|
||||
else:
|
||||
pieces = secret.split('-')
|
||||
pieces = secret.split('-')
|
||||
goldtype = pieces[0]
|
||||
|
||||
if goldtype == 'gift':
|
||||
|
||||
Reference in New Issue
Block a user