[0KRunning with gitlab-runner 17.6.0 (374d34fd)[0;m [0K on hamster-docker-indiscale xmEUxNs3, system ID: r_1yzoErM4OeFG[0;m [0K[36;1mResolving secrets[0;m[0;m section_start:1742389999:prepare_executor [0K[0K[36;1mPreparing the "docker" executor[0;m[0;m [0KUsing Docker executor with image gitlab.indiscale.com:5050/caosdb/src/linkahead-loan/testenv:main ...[0;m [0KAuthenticating with credentials from job payload (GitLab Registry)[0;m [0KPulling docker image gitlab.indiscale.com:5050/caosdb/src/linkahead-loan/testenv:main ...[0;m [0KUsing docker image sha256:7584fe83a9e74f44476413cfe14d4dc40d83f0c3cd41a4353c873aa8efd6feba for gitlab.indiscale.com:5050/caosdb/src/linkahead-loan/testenv:main with digest gitlab.indiscale.com:5050/caosdb/src/linkahead-loan/testenv@sha256:88d1cdaa0fb5beb3a023c8c65673f750b417d4d62aed3085f107ce638a686ca2 ...[0;m section_end:1742390001:prepare_executor [0Ksection_start:1742390001:prepare_script [0K[0K[36;1mPreparing environment[0;m[0;m Running on runner-xmeuxns3-project-259-concurrent-1 via 25e63d4dbc9e... section_end:1742390003:prepare_script [0Ksection_start:1742390003:get_sources [0K[0K[36;1mGetting source from Git repository[0;m[0;m [32;1mFetching changes with git depth set to 20...[0;m Reinitialized existing Git repository in /builds/xmEUxNs3/1/caosdb/src/linkahead-loan/.git/ [32;1mChecking out 8cc1c7d1 as detached HEAD (ref is main)...[0;m [32;1mSkipping Git submodules setup[0;m section_end:1742390005:get_sources [0Ksection_start:1742390005:step_script [0K[0K[36;1mExecuting "step_script" stage of the job script[0;m[0;m [0KUsing docker image sha256:7584fe83a9e74f44476413cfe14d4dc40d83f0c3cd41a4353c873aa8efd6feba for gitlab.indiscale.com:5050/caosdb/src/linkahead-loan/testenv:main with digest gitlab.indiscale.com:5050/caosdb/src/linkahead-loan/testenv@sha256:88d1cdaa0fb5beb3a023c8c65673f750b417d4d62aed3085f107ce638a686ca2 ...[0;m [32;1m$ autopep8 -r --diff --exit-code --max-line-length=100 .[0;m --- original/./loanpy/src/loan/request_loan.py +++ fixed/./loanpy/src/loan/request_loan.py @@ -35,6 +35,7 @@ LOGGER_NAME = "box_loan" LOGGER = logging.getLogger(LOGGER_NAME) + def create_loan(box, borrower, expected_return, exhaust_contents, comment, destination): """ Create a new loan record. """ @@ -104,12 +105,11 @@ if db.execute_query(f"COUNT {BOX.name} WITH ID='{item}'") != 1: bad_type_ids.append(item) - if len(bad_type_ids)>0: + if len(bad_type_ids) > 0: LOGGER.error(f"The entities with the following IDs do not have the appropriate RecordType " f"in order to create a loan:<br>{', '.join(bad_type_ids)}<br>") return False return True - def _issue_loan_request(data): section_end:1742390006:step_script [0Ksection_start:1742390006:cleanup_file_variables [0K[0K[36;1mCleaning up project directory and file based variables[0;m[0;m section_end:1742390007:cleanup_file_variables [0K[31;1mERROR: Job failed: exit code 1 [0;m