summaryrefslogtreecommitdiff
path: root/db.py
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-06-20 21:42:41 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-06-20 21:42:41 (GMT)
commit98402d1c8bff854d16a074c0280f7499e624540f (patch)
tree61cad8f6e15484b32b37aa4940de1ff89bca10f9 /db.py
parent13d8fa8f46e644ecc591f09b1a386759fc53d19e (diff)
Added support for Superlikes.
Diffstat (limited to 'db.py')
-rw-r--r--db.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/db.py b/db.py
index 7986156..d6f0aeb 100644
--- a/db.py
+++ b/db.py
@@ -236,6 +236,16 @@ class HumanKind(object):
self._db.commit()
+ def mark_profile_as_superliked(self, profile):
+ """Update information about a Tinder profile in the database."""
+
+ values = (True, profile._id)
+
+ cursor = self._db.cursor()
+ cursor.execute('UPDATE People SET superliked = ? WHERE uid = ?', values)
+ self._db.commit()
+
+
def mark_profile_as_passed(self, profile):
"""Update information about a Tinder profile in the database."""