(username: str)
| 85 | |
| 86 | @staticmethod |
| 87 | def db_get_sessid(username: str) -> Optional[str]: |
| 88 | ret = db.cursor.execute("SELECT ID FROM SESSIONS WHERE USERNAME = ?", (username,)).fetchone() |
| 89 | if ret: |
| 90 | ret = ret[0] |
| 91 | return ret |
| 92 | |
| 93 | def db_add_to_group(self, group_name: str, username: str): |
| 94 | if username in self.db_users_in_group(group_name) or not self.db_session_exists(username): |
no outgoing calls
no test coverage detected