I made some of the changes that were discussed here.
Summary:
Source argument added to draft_data_search method. The app will only call the endpoint if the source is REFRESH. This is verified in test_log_scanner.py.
The app will NOT perform the endpoint call if P1P1 has already been identified or if the dataset is unavailable, or if the current pack pick is beyond 1,1.
The app will overwrite the endpoint pack with the pack from the log entry. This behavior is verified in test_otj_premier_p1p1_ocr.
Endpoint code was moved to a new OCR class in ocr.py. This was done to make the code easier to mock.
This is a pull request for 0319, not the main.
I made some of the changes that were discussed here.
Summary: