profiler_decrypt_optional. Internal helper function. This docstring was added automatically to improve maintainability. Args: optional_enc: Parameter. Returns: Varies.
(optional_enc: Optional[str])
| 15185 | # Groups (chat + admins) |
| 15186 | # --------------------------- |
| 15187 | |
| 15188 | def all_usernames() -> List[str]: |
| 15189 | """all_usernames. |
| 15190 | |
| 15191 | Internal helper function. |
| 15192 | |
| 15193 | This docstring was added automatically to improve maintainability. |
| 15194 | |
| 15195 | Returns: |
| 15196 | Varies. |
| 15197 | """ |
| 15198 | conn = db_connect() |
| 15199 | rows = conn.execute("SELECT username FROM users ORDER BY username COLLATE NOCASE").fetchall() |
| 15200 | conn.close() |
| 15201 | return [r["username"] for r in rows] |
| 15202 | |
| 15203 | def group_role(gid: int, username: str) -> Optional[str]: |
| 15204 | """group_role. |
| 15205 | |
| 15206 | Internal helper function. |
| 15207 | |
| 15208 | This docstring was added automatically to improve maintainability. |
| 15209 | |
| 15210 | Args: |
| 15211 | gid: Parameter. |
| 15212 | username: Parameter. |
| 15213 |
no test coverage detected