user_root. Internal helper function. This docstring was added automatically to improve maintainability. Args: username: Parameter. Returns: Varies.
(username: str)
| 3440 | except Exception: |
| 3441 | pass |
| 3442 | |
| 3443 | try: |
| 3444 | prof["has_pic"] = bool(row["pic_path"] and os.path.exists(row["pic_path"])) |
| 3445 | except Exception: |
| 3446 | prof["has_pic"] = False |
| 3447 | try: |
| 3448 | prof["pic_mime"] = row["pic_mime"] |
| 3449 | except Exception: |
| 3450 | prof["pic_mime"] = None |
| 3451 | return prof |
| 3452 | |
| 3453 | |
| 3454 | def set_profile(username: str, nickname: str, bio: str, links: List[str], extras: Optional[Dict[str, str]] = None): |
| 3455 | """set_profile. |
| 3456 | |
| 3457 | Route handler or application helper. |
| 3458 | |
| 3459 | This docstring was expanded to make future maintenance easier. |
| 3460 |
no outgoing calls
no test coverage detected