mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-15 07:57:09 +00:00
Fix scanned walletindex pages
This commit is contained in:
@@ -32,6 +32,18 @@ def oldwallet(request, path):
|
||||
message = f'Scan folder error or not found \'{path}\' .'
|
||||
return render(request, 'errors/generic.html', {'message': message})
|
||||
|
||||
def walletindex(request, path):
|
||||
'''All years: special 'wallet' for scanned index pages
|
||||
'''
|
||||
# print([ s.walletname for s in Wallet.objects.all() ])
|
||||
print(f'! - walletindex path:{path}')
|
||||
try:
|
||||
wallet = Wallet.objects.get(walletname=urlunquote(path))
|
||||
return render(request, 'walletindex.html', { 'wallet':wallet, 'settings': settings })
|
||||
except:
|
||||
message = f'Scan folder error or not found \'{path}\' .'
|
||||
return render(request, 'errors/generic.html', {'message': message})
|
||||
|
||||
def scansingle(request, path, file):
|
||||
'''sends a single binary file to the user for display - browser decides how using mimetype
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user