diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2022-10-15 17:26:09 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2022-10-15 17:26:09 +0300 |
commit | 2fa298cae9db9fb5bfc0884c3e2c360c33860a72 (patch) | |
tree | f7a08c37ecbf15e30412d58f8e4361665bc8edf9 /core/views/uploads.py | |
parent | 3b106a380356f1bb0c03d899c8a41d90d148ca9e (diff) | |
download | troggle-2fa298cae9db9fb5bfc0884c3e2c360c33860a72.tar.gz troggle-2fa298cae9db9fb5bfc0884c3e2c360c33860a72.tar.bz2 troggle-2fa298cae9db9fb5bfc0884c3e2c360c33860a72.zip |
cures weird bug
Diffstat (limited to 'core/views/uploads.py')
-rw-r--r-- | core/views/uploads.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/views/uploads.py b/core/views/uploads.py index 7c5406f..356158e 100644 --- a/core/views/uploads.py +++ b/core/views/uploads.py @@ -173,10 +173,10 @@ def get_complaints(complaints, waldata, svxfiles, files, wallet, wurl): svxfile = SurvexFile.objects.get(path=sxpath) except MultipleObjectsReturned: # can happen if connecting a wallet to a survex file.. i think.. - svxfiles = SurvexFile.objects.filter(path=sxpath) - for s in svxfiles: + QSsvxfiles = SurvexFile.objects.filter(path=sxpath) + for s in QSsvxfiles: print(s.path, s.cave, s.survexdirectory) - svxfile = svxfiles[0] # dont' know how this happened, fix later.. + svxfile = QSsvxfiles[0] # dont' know how this happened, fix later.. except: file_complaint = f"{wallet} Survex file {sx} exists, but is not registered in the database {sxpath}. How?.." complaints.append(file_complaint) |