diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2021-04-12 23:58:48 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2021-04-12 23:58:48 +0100 |
commit | b602f3ae13ef8c620c19ea3e56257f0693e0a1b0 (patch) | |
tree | 771b59a99e37501c0dae2d6edfd0624b07e149be /utils.py | |
parent | 5024abc812b20dfcf16823dcc20992763afb6681 (diff) | |
download | troggle-b602f3ae13ef8c620c19ea3e56257f0693e0a1b0.tar.gz troggle-b602f3ae13ef8c620c19ea3e56257f0693e0a1b0.tar.bz2 troggle-b602f3ae13ef8c620c19ea3e56257f0693e0a1b0.zip |
creating core/utils.py
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -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) |