Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Fixed issue #456" #467

Merged
merged 1 commit into from
Jul 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tle/util/db/user_db_conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,11 +475,11 @@ def add_starboard_message(self, original_msg_id, starboard_msg_id, guild_id):
self.conn.commit()

def check_exists_starboard_message(self, original_msg_id):
query = ('SELECT COUNT(*) AS cnt '
query = ('SELECT 1 '
'FROM starboard_message '
'WHERE original_msg_id = ?')
res = self.conn.execute(query, (original_msg_id,)).fetchone()
return res.cnt != 0
return res is not None

def remove_starboard_message(self, *, original_msg_id=None, starboard_msg_id=None):
assert (original_msg_id is None) ^ (starboard_msg_id is None)
Expand Down