2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 13:37:05 +00:00

remove redundant code

This commit is contained in:
Philip Sargent
2022-09-12 22:46:45 +03:00
parent 182df351b9
commit beecb4b0ac
2 changed files with 10 additions and 41 deletions

View File

@@ -199,16 +199,16 @@ 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(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 (wallet) 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(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 (wallet) 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