forked from expo/troggle
use new upload page for most wallets
This commit is contained in:
@@ -20,11 +20,14 @@ need to check if inavlid query string is invalid, or produces multiple replies
|
||||
and render a user-friendly error page.
|
||||
'''
|
||||
|
||||
def singlewallet(request, path):
|
||||
#print [ s.walletname for s in Wallet.objects.all() ]
|
||||
def oldwallet(request, path):
|
||||
'''Now called only for non-standard wallet structures for pre-2000 wallets
|
||||
'''
|
||||
# print([ s.walletname for s in Wallet.objects.all() ])
|
||||
print(f'! - oldwallet path:{path}')
|
||||
try:
|
||||
wallet = Wallet.objects.get(walletname=urlunquote(path))
|
||||
return render(request, 'wallet.html', { 'wallet':wallet, 'settings': settings })
|
||||
return render(request, 'wallet_old.html', { 'wallet':wallet, 'settings': settings })
|
||||
except:
|
||||
message = f'Scan folder error or not found \'{path}\' .'
|
||||
return render(request, 'errors/generic.html', {'message': message})
|
||||
|
||||
Reference in New Issue
Block a user