mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-03-31 13:46:03 +01:00
a few missing 'pass' statements
This commit is contained in:
@@ -105,11 +105,11 @@ def fix(request, areacode="1626"):
|
|||||||
# # print(f"NO {c.unofficial_number}")
|
# # print(f"NO {c.unofficial_number}")
|
||||||
# caves_nodir.append(c.unofficial_number)
|
# caves_nodir.append(c.unofficial_number)
|
||||||
|
|
||||||
for key, dir, cave_id, filename, target in to_move:
|
# for key, dir, cave_id, filename, target in to_move:
|
||||||
# if key == "c":
|
# if key == "c":
|
||||||
# print((key, dir, cave_id, filename, target))
|
# print((key, dir, cave_id, filename, target))
|
||||||
# print("")
|
# print("")
|
||||||
for key, dir, cave_id, filename, target in to_move:
|
# for key, dir, cave_id, filename, target in to_move:
|
||||||
# if key == "e":
|
# if key == "e":
|
||||||
# print((key, dir, cave_id, filename, target))
|
# print((key, dir, cave_id, filename, target))
|
||||||
|
|
||||||
|
|||||||
@@ -912,7 +912,8 @@ def edit_entrance(request, path="", caveslug=None, entslug=None):
|
|||||||
# print(f"ENTRANCE from file: entranceletter = '{ce.entranceletter}'")
|
# print(f"ENTRANCE from file: entranceletter = '{ce.entranceletter}'")
|
||||||
except:
|
except:
|
||||||
# ent only in db not on file. Interesting, let's run with it using whatever we have in the db
|
# ent only in db not on file. Interesting, let's run with it using whatever we have in the db
|
||||||
# print(f"ENTRANCE NOT read from file: entranceletter = '{ce.entranceletter}'")
|
pass
|
||||||
|
# print(f"ENTRANCE NOT read from file: entranceletter = '{ce.entranceletter}'")
|
||||||
|
|
||||||
entform = EntranceForm(instance=entrance, initial={"identified_login": identified_login, "who_are_you":editor})
|
entform = EntranceForm(instance=entrance, initial={"identified_login": identified_login, "who_are_you":editor})
|
||||||
if entslug is None:
|
if entslug is None:
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ def signup(request):
|
|||||||
return HttpResponseRedirect("/signupok")
|
return HttpResponseRedirect("/signupok")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
pass
|
||||||
# print(f" # Signup form INVALID\n{pageform.errors} ")
|
# print(f" # Signup form INVALID\n{pageform.errors} ")
|
||||||
return render(
|
return render(
|
||||||
request, "login/signup.html",
|
request, "login/signup.html",
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ class SvxForm(forms.Form):
|
|||||||
DataIssue.objects.create(parser='survex', message=message)
|
DataIssue.objects.create(parser='survex', message=message)
|
||||||
# print(message)
|
# print(message)
|
||||||
# print(f"sp = subprocess.run([{settings.CAVERN} --log {froox}], cwd={froogdir}"
|
# print(f"sp = subprocess.run([{settings.CAVERN} --log {froox}], cwd={froogdir}"
|
||||||
f"\n\nstderr:\n\n{str(sp.stderr)}\n\nstdout:{str(sp.stdout)}\n\nreturn code: {str(sp.returncode)}")
|
# f"\n\nstderr:\n\n{str(sp.stderr)}\n\nstdout:{str(sp.stdout)}\n\nreturn code: {str(sp.returncode)}")
|
||||||
|
|
||||||
os.chdir(cwd) # Restore working directory
|
os.chdir(cwd) # Restore working directory
|
||||||
|
|
||||||
|
|||||||
@@ -490,6 +490,7 @@ def walletedit(request, path=None):
|
|||||||
for bsf in b:
|
for bsf in b:
|
||||||
waldata["survex file"].append(bsf.survexfile.path)
|
waldata["survex file"].append(bsf.survexfile.path)
|
||||||
except:
|
except:
|
||||||
|
pass
|
||||||
# print(f"--- No wallet {wallet} exists in database")
|
# print(f"--- No wallet {wallet} exists in database")
|
||||||
return waldata
|
return waldata
|
||||||
|
|
||||||
@@ -648,8 +649,8 @@ def walletedit(request, path=None):
|
|||||||
elif len(caves) > 1:
|
elif len(caves) > 1:
|
||||||
pass
|
pass
|
||||||
# print(
|
# print(
|
||||||
f" - More than one Cave {caves} in this wallet {wallet}. Not managed in this troggle release."
|
# f" - More than one Cave {caves} in this wallet {wallet}. Not managed in this troggle release."
|
||||||
)
|
# )
|
||||||
|
|
||||||
if len(names) == 1:
|
if len(names) == 1:
|
||||||
names = names[0]
|
names = names[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user