summaryrefslogtreecommitdiffstats
path: root/utils.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2021-04-12 23:58:48 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2021-04-12 23:58:48 +0100
commitb602f3ae13ef8c620c19ea3e56257f0693e0a1b0 (patch)
tree771b59a99e37501c0dae2d6edfd0624b07e149be /utils.py
parent5024abc812b20dfcf16823dcc20992763afb6681 (diff)
downloadtroggle-b602f3ae13ef8c620c19ea3e56257f0693e0a1b0.tar.gz
troggle-b602f3ae13ef8c620c19ea3e56257f0693e0a1b0.tar.bz2
troggle-b602f3ae13ef8c620c19ea3e56257f0693e0a1b0.zip
creating core/utils.py
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/utils.py b/utils.py
index 9d41fdb..b667e09 100644
--- a/utils.py
+++ b/utils.py
@@ -9,8 +9,6 @@ from django.shortcuts import render
"""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?
@@ -19,12 +17,6 @@ weighted_choice(lst)
randomLogbookSentence()
"""
-def ChaosMonkey(n):
- # returns True once every n calls - randomly
- if random.randrange(0,n) != 0:
- return False
- # print("CHAOS strikes !", file=sys.stderr)
- return True
def weighted_choice(lst):
n = random.uniform(0,1)