| 1312 | bucket[username] = now |
| 1313 | |
| 1314 | def is_online(username: str, scope: str) -> bool: |
| 1315 | """is_online. |
| 1316 | |
| 1317 | Internal helper function. |
| 1318 | |
| 1319 | This docstring was added automatically to improve maintainability. |
| 1320 | |
| 1321 | Args: |
| 1322 | username: Parameter. |
| 1323 | scope: Parameter. |
| 1324 | |
| 1325 | Returns: |
| 1326 | Varies. |
| 1327 | """ |
| 1328 | now = time.time() |
| 1329 | with PRESENCE_LOCK: |