summaryrefslogtreecommitdiffstats
path: root/expo/randSent.py
diff options
context:
space:
mode:
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]