]> rtime.felk.cvut.cz Git - coffee/coffee-flask.git/commitdiff
Add doc string
authorMichal Sojka <michal.sojka@cvut.cz>
Mon, 13 Jan 2020 22:41:50 +0000 (23:41 +0100)
committerMichal Sojka <michal.sojka@cvut.cz>
Mon, 13 Jan 2020 22:41:50 +0000 (23:41 +0100)
coffee_db.py

index c7dbdcca22574f60ce134e2a450a88eea438f691..25551f90fed08e2a54dd1ef53f62c50fabbd2f99 100644 (file)
@@ -168,6 +168,11 @@ def coffee_history(uid=None):
     return res
 
 def drink_count(uid=None, start=None, stop=None):
+    """Return a list of tuples ('<drink type>', <count>).
+
+    >>> drink_count(stop=0)
+    [('coffee', 7066), ('Club-Mate', 497), ('tea', 1)]
+    """
     conn, c = open_db()
 
     args = []