[stickynotes-antispam] Add "porn" to blacklist



commit 7be3458aeb8c58e475ed0eca38779d2bcef21c03
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Sun Apr 5 18:42:25 2020 +0200

    Add "porn" to blacklist

 stickynotes-antispam.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/stickynotes-antispam.py b/stickynotes-antispam.py
index be390b6..5a67de9 100755
--- a/stickynotes-antispam.py
+++ b/stickynotes-antispam.py
@@ -9,13 +9,15 @@ import MySQLdb
 BLACKLIST = [
     "bitcoin",
     "loan",
+    "movie",
     "paypal",
+    "porn",
+    "support",
     "western union",
     "westernunion",
-    "movie",
-    "support",
 ]
 
+
 def check_if_spam(data):
     mark_for_deletion = False
 
@@ -60,5 +62,6 @@ def main():
     db.commit()
     db.close()
 
+
 if __name__ == "__main__":
     main()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]