From 388d15fe0640bb50438fa2d3640b2f29bc07ada7 Mon Sep 17 00:00:00 2001 From: jwansek <eddie.atten@yahoo.co.uk> Date: Mon, 31 Dec 2018 23:27:11 +0000 Subject: removed posts with insufficient lambda, etc. --- database.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'database.py') diff --git a/database.py b/database.py index 0048296..26b8e43 100644 --- a/database.py +++ b/database.py @@ -87,3 +87,9 @@ class Database: def get_stats(self): self.cursor.execute("SELECT * FROM stats;") return self.cursor.fetchall() + + def user_given_lambda(self, user, permalink): + links = self.get_lambda(user)[1] + return permalink in links or permalink.replace("https://www.reddit.com", "") in links + + -- cgit v1.2.3