def set_time_sub(self, user_id, time_sub):
with self.connection:
return self.cursor.execute("UPDATE `users` SET `time_sub` = ? WHERE `user_id` = ?", (time_sub, user_id,))
time_sub = int(time.time()) + days_to_seconds(30)
db.set_time_sub(message.from_user.id, time_sub)