mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-08 07:38:11 +08:00
Updated README
This commit is contained in:
+12
-1
@@ -9,5 +9,16 @@ def countdown(n):
|
||||
return stop_time - start_time
|
||||
|
||||
|
||||
def count_letters(tup):
|
||||
total = 0
|
||||
for word in tup:
|
||||
total += len(word)
|
||||
return total
|
||||
|
||||
def count_letters2(obj):
|
||||
return count_letters(obj.get_words())
|
||||
|
||||
def result(obj):
|
||||
print('RESULT HOOK: {}'.format(obj.result))
|
||||
print('RESULT HOOK {} : {}'.format(obj.name, obj.result))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user