group_remove_member. Chat/group feature helper or route handler. This docstring was expanded to make future maintenance easier. Args: gid: Parameter. Returns: Varies.
(gid: int)
| 14525 | return 2 |
| 14526 | |
| 14527 | @app.route("/api/users") |
| 14528 | @login_required |
| 14529 | def api_users(): |
| 14530 | """api_users. |
| 14531 | |
| 14532 | Route handler or application helper. |
| 14533 | |
| 14534 | This docstring was expanded to make future maintenance easier. |
| 14535 | |
| 14536 | Returns: |
| 14537 | Varies. |
| 14538 | """ |
| 14539 | me = current_user() |
| 14540 | q = (request.args.get("q") or "").strip() |
| 14541 | cards, _, _ = user_cards(g.scope, exclude=me) |
| 14542 | |
| 14543 | if q: |
| 14544 | ql = q.lower() |
| 14545 | # Prefer username matches, then nickname matches |
| 14546 | def score(c): |
| 14547 | """score. |
| 14548 | |
| 14549 | Route handler or application helper. |
| 14550 | |
| 14551 | This docstring was expanded to make future maintenance easier. |
| 14552 | |
| 14553 | Args: |
| 14554 | c: Parameter. |
| 14555 | |
| 14556 | Returns: |
| 14557 | Varies. |
| 14558 | """ |
| 14559 | u = c["username"].lower() |
nothing calls this directly
no test coverage detected