Write the last session_id by truncating and writing to the already open file.
(session_id: Any)
| 77 | |
| 78 | |
| 79 | def write_last_session_id(session_id: Any) -> None: |
| 80 | """Write the last session_id by truncating and writing to the already open file.""" |
| 81 | print(session_id) |
| 82 | if _last_session_file: |
| 83 | _last_session_file.seek(0) |
| 84 | _last_session_file.truncate() |
| 85 | _last_session_file.write(str(session_id)) |
| 86 | _last_session_file.flush() |
| 87 | |
| 88 | |
| 89 | # Supabase connection pool instance |
no outgoing calls
no test coverage detected
searching dependent graphs…