]> rtime.felk.cvut.cz Git - hubacji1/coffee-getter.git/commitdiff
Send only if more than 3 people in stats
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Tue, 21 Jan 2020 15:45:30 +0000 (16:45 +0100)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Tue, 21 Jan 2020 15:45:32 +0000 (16:45 +0100)
run/top5_mate_stats.py

index ac9f0bb021c7970355c82ec4139ada428751a56d..2cb6503373dcd5bf3ad34caef05a155f12c83212 100755 (executable)
@@ -6,6 +6,8 @@ from cbgetter import CoffeebotGetter
 if __name__ == "__main__":
     g = CoffeebotGetter()
     g.loadTopMateDrinkers()
-    g.sendMsgToSlack()
+    if len(g.top) > 3:
+        g.sendMsgToSlack()
     g.load_top_tea_drinkers()
-    g.sendMsgToSlack()
+    if len(g.top) > 3:
+        g.sendMsgToSlack()