aboutsummaryrefslogtreecommitdiffstats
path: root/database.py
diff options
context:
space:
mode:
Diffstat (limited to 'database.py')
-rw-r--r--database.py6
1 files changed, 6 insertions, 0 deletions
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
+
+