summaryrefslogtreecommitdiffstats
path: root/expo/randSent.py
diff options
context:
space:
mode:
authorsubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:35:59 +0100
committersubstantialnoninfringinguser <substantialnoninfringinguser@gmail.com>2009-05-13 05:35:59 +0100
commitf229ff35f909d7afea62ba2e1021a12cb0e16b22 (patch)
tree2169346dc516829de73d643251746bf262123936 /expo/randSent.py
parentb950ee70f77892463fac87fba2dd9d5ce964accf (diff)
downloadtroggle-f229ff35f909d7afea62ba2e1021a12cb0e16b22.tar.gz
troggle-f229ff35f909d7afea62ba2e1021a12cb0e16b22.tar.bz2
troggle-f229ff35f909d7afea62ba2e1021a12cb0e16b22.zip
[svn] Julian playing with the logbooks and expoyears
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8180 by julian @ 1/18/2009 3:59 PM
Diffstat (limited to 'expo/randSent.py')
-rw-r--r--expo/randSent.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/expo/randSent.py b/expo/randSent.py
index 71be068..a99b974 100644
--- a/expo/randSent.py
+++ b/expo/randSent.py
@@ -15,6 +15,8 @@ def weighted_choice(lst):
def randomLogbookSentence():
randSent={}
+ # needs to handle empty logbooks without crashing
+
#Choose a random logbook entry
randSent['entry']=LogbookEntry.objects.order_by('?')[0]