From b602f3ae13ef8c620c19ea3e56257f0693e0a1b0 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Mon, 12 Apr 2021 23:58:48 +0100 Subject: creating core/utils.py --- utils.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'utils.py') 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) -- cgit v1.2.3