forked from expo/troggle
removing cruft, renaming badly named things
This commit is contained in:
@@ -33,10 +33,6 @@ todo = '''
|
||||
When we have done all the old logbooks, delete this function and the two templates.
|
||||
|
||||
- But how does this interact with troggle/logbooksdump.py ?
|
||||
|
||||
- deleted newfile() - check on deleted UploadFileForm using the editfile.html template which is about re-submitting
|
||||
a LBE aka TripReport
|
||||
|
||||
'''
|
||||
|
||||
def todos(request, module):
|
||||
@@ -214,7 +210,7 @@ def scanupload(request, wallet=None):
|
||||
'''
|
||||
filesaved = False
|
||||
actual_saved = []
|
||||
print(f'! - FORM scanupload - start {wallet}')
|
||||
# print(f'! - FORM scanupload - start {wallet}')
|
||||
if wallet is None:
|
||||
wallet = "2021#01" # improve this later
|
||||
if not re.match('(19|20)\d\d:\d\d', wallet):
|
||||
@@ -248,12 +244,12 @@ def scanupload(request, wallet=None):
|
||||
if multiple:
|
||||
for f in multiple:
|
||||
actual_saved.append( fs.save(f.name, content=f) )
|
||||
print(f'! - FORM scanupload multiple {actual_saved}')
|
||||
# print(f'! - FORM scanupload multiple {actual_saved}')
|
||||
filesaved = True
|
||||
|
||||
files = []
|
||||
dirs = []
|
||||
print(f'! - FORM scanupload - start {wallet} {dirpath}')
|
||||
# print(f'! - FORM scanupload - start {wallet} {dirpath}')
|
||||
try:
|
||||
for f in dirpath.iterdir():
|
||||
if f.is_dir():
|
||||
|
||||
Reference in New Issue
Block a user