2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-16 10:07:25 +00:00

Module documentation docstrings

This commit is contained in:
Philip Sargent
2020-07-18 16:23:54 +01:00
parent 90dfa516da
commit edd5a3efd9
10 changed files with 100 additions and 17 deletions

View File

@@ -6,6 +6,18 @@ import logging
from django.conf import settings
from django.shortcuts import render
from troggle.core.models_caves import CaveDescription
"""Oddball mixture of critical, superfluous and useful functions which should
be re-located more sensibly to other modules:
ChaosMonkey(n) - used by survex import to regenerate some .3d files
save_carefully() - core function that saves troggle objects in the database
various HTML/wiki functions presumably for logbooks?
Use unknown:
weighted_choice(lst)
randomLogbookSentence()
"""
def ChaosMonkey(n):
# returns True once every n calls - randomly