diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-06-20 21:42:41 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-06-20 21:42:41 (GMT) |
commit | 98402d1c8bff854d16a074c0280f7499e624540f (patch) | |
tree | 61cad8f6e15484b32b37aa4940de1ff89bca10f9 /db.py | |
parent | 13d8fa8f46e644ecc591f09b1a386759fc53d19e (diff) |
Added support for Superlikes.
Diffstat (limited to 'db.py')
-rw-r--r-- | db.py | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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.""" |