diff options
| author | 2019-02-10 00:04:00 +0000 | |
|---|---|---|
| committer | 2019-02-10 00:04:00 +0000 | |
| commit | 1d807fefe0fbb46a6936884524ed470462576b8a (patch) | |
| tree | 7392913bd924f2b9f666af8d73c0b091b835ed45 /src/Database.py | |
| parent | Send request to RESUME a session AFTER we have a new token (resume.py) (diff) | |
| signature | ||
Old copypaste fail - we were returning the most recent user id when creating channels
(Database.py)
Diffstat (limited to 'src/Database.py')
| -rw-r--r-- | src/Database.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Database.py b/src/Database.py index dd063226..1ba9bac3 100644 --- a/src/Database.py +++ b/src/Database.py @@ -39,7 +39,7 @@ class Channels(Table): (server_id, name) VALUES (?, ?)""", [server_id, name.lower()]) return self.database.execute_fetchone( - "SELECT user_id FROM users ORDER BY user_id DESC LIMIT 1")[0] + "SELECT channel_id FROM channels ORDER BY channel_id DESC LIMIT 1")[0] def delete(self, channel_id: int): self.database.execute("DELETE FROM channels WHERE channel_id=?", [channel_id]) |
