diff options
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.""" |