(_pid, _sid)
| 899 | |
| 900 | @staticmethod |
| 901 | def update_server_id(_pid, _sid): |
| 902 | p = Process.for_user(pid=_pid).first() |
| 903 | |
| 904 | if p is None: |
| 905 | raise LookupError(PROCESS_NOT_FOUND) |
| 906 | |
| 907 | # Update the cloud server id |
| 908 | p.server_id = _sid |
| 909 | db.session.commit() |
no test coverage detected