mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-14 21:47:12 +00:00
all working, queries improved, date-ordered.
This commit is contained in:
@@ -828,8 +828,6 @@ def walletedit(request, path=None):
|
||||
if 'notes not required' not in waldata: # cope with schema change
|
||||
waldata['notes not required'] = False
|
||||
|
||||
# for a in waldata:
|
||||
# print(f"'{waldata[a]}' {a}")
|
||||
# find trips and survex files of the same date
|
||||
walletobject = make_wallet(wallet)
|
||||
if waldata["date"]:
|
||||
@@ -845,7 +843,7 @@ def walletedit(request, path=None):
|
||||
print(message)
|
||||
return render(request, "errors/generic.html", {"message": message})
|
||||
if samedate:
|
||||
svxothers = SurvexBlock.objects.filter(date=samedate)
|
||||
svxothers = SurvexFile.objects.filter(survexblock__date=samedate).distinct()
|
||||
trips = LogbookEntry.objects.filter(date=samedate)
|
||||
else:
|
||||
svxothers = None
|
||||
|
||||
Reference in New Issue
Block a user