python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4302 -v ' -s datou_current_4302 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Namespace(auto=False, cert_args='/home/fotonower/https/cert.pem', contextDataFile='', custom_size=0, database='', datou_id='4302', datou_id_excluded='', fifo=False, host='', is_cpu_mode=False, job='batch_current', json_args='', key_args='/home/fotonower/https/vision.fotonower.com.key', limit=1000, list_photo_ids='', local='', mtr_current_id=0, mtr_portfolio_ids='', nb_thread=1, no_current=False, offset=0, only_client=False, output_file='', password='', port=5100, rand=0, save=2, use_client=False, user_id=440, username='', verbose=True) process id : 1946242 load datou : 4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! Unexpected type seems boolean for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None was removed should we ? donnée sous forme de texte was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? id de la photo (peut être local ou global) was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de nombre was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? load thcls load pdts Running datou job : batch_current 4302 [] TODO datou_current to load to do maybe to take outside batchDatouExec SELECT * from MTRPhoto.mtr_datou_current where state = 0 AND mtr_portfolio_id is not NULL AND mtd_id = 4302 order by created_at desc LIMIT 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4267656) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4267656) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29680333 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4267656'] with mtr_portfolio_ids : ['29680333'] and first list_photo_ids : [] new path : /proc/1946242/ Name: python3 Umask: 0002 State: R (running) Tgid: 1946242 Ngid: 0 Pid: 1946242 PPid: 1946241 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1946242 NSpid: 1946242 NSpgid: 1944684 NSsid: 1944684 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105692 kB VmRSS: 105692 kB RssAnon: 66292 kB RssFile: 39400 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 624 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 49 nonvoluntary_ctxt_switches: 167 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1946242', 'Ngid': '0', 'Pid': '1946242', 'PPid': '1946241', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1946242', 'NSpid': '1946242', 'NSpgid': '1944684', 'NSsid': '1944684', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105692 kB', 'VmRSS': '105692 kB', 'RssAnon': '66292 kB', 'RssFile': '39400 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '624 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '49', 'nonvoluntary_ctxt_switches': '167'} ('datou_batch_current', '1946242', '1113364', '0', '1113364', '872092', '105692', b'', 'marlene', '4267656') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29680333) and hide_status = 0 ) AND ph.photo_id not in (SELECT mtr_photo_id from MTRPhoto.mtr_datou_result_search where mtr_current_id in (4267656 ) ) ORDER BY ph.photo_id DESC LIMIT 0, 200 We have 1 , {} SELECT mtr_photo_id, mtr_portfolio_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29680333) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1400797718, 'portfolio_id': 29680333}, {'photo_id': 1400797691, 'portfolio_id': 29680333}, {'photo_id': 1400797688, 'portfolio_id': 29680333}, {'photo_id': 1400797685, 'portfolio_id': 29680333}, {'photo_id': 1400797672, 'portfolio_id': 29680333}, {'photo_id': 1400797669, 'portfolio_id': 29680333}, {'photo_id': 1400797649, 'portfolio_id': 29680333}, {'photo_id': 1400797647, 'portfolio_id': 29680333}, {'photo_id': 1400797639, 'portfolio_id': 29680333}, {'photo_id': 1400797631, 'portfolio_id': 29680333}, {'photo_id': 1400797626, 'portfolio_id': 29680333}, {'photo_id': 1400797624, 'portfolio_id': 29680333}, {'photo_id': 1400797596, 'portfolio_id': 29680333}, {'photo_id': 1400797593, 'portfolio_id': 29680333}, {'photo_id': 1400797589, 'portfolio_id': 29680333}, {'photo_id': 1400797586, 'portfolio_id': 29680333}, {'photo_id': 1400797583, 'portfolio_id': 29680333}, {'photo_id': 1400797580, 'portfolio_id': 29680333}, {'photo_id': 1400797547, 'portfolio_id': 29680333}, {'photo_id': 1400797545, 'portfolio_id': 29680333}, {'photo_id': 1400797543, 'portfolio_id': 29680333}, {'photo_id': 1400797524, 'portfolio_id': 29680333}, {'photo_id': 1400797521, 'portfolio_id': 29680333}, {'photo_id': 1400797518, 'portfolio_id': 29680333}, {'photo_id': 1400797515, 'portfolio_id': 29680333}, {'photo_id': 1400797512, 'portfolio_id': 29680333}, {'photo_id': 1400797508, 'portfolio_id': 29680333}, {'photo_id': 1400797477, 'portfolio_id': 29680333}, {'photo_id': 1400797473, 'portfolio_id': 29680333}, {'photo_id': 1400797469, 'portfolio_id': 29680333}, {'photo_id': 1400797465, 'portfolio_id': 29680333}, {'photo_id': 1400797453, 'portfolio_id': 29680333}, {'photo_id': 1400797449, 'portfolio_id': 29680333}, {'photo_id': 1400797446, 'portfolio_id': 29680333}, {'photo_id': 1400797442, 'portfolio_id': 29680333}, {'photo_id': 1400797439, 'portfolio_id': 29680333}, {'photo_id': 1400797436, 'portfolio_id': 29680333}, {'photo_id': 1400797420, 'portfolio_id': 29680333}, {'photo_id': 1400797417, 'portfolio_id': 29680333}, {'photo_id': 1400797413, 'portfolio_id': 29680333}, {'photo_id': 1400797410, 'portfolio_id': 29680333}, {'photo_id': 1400797407, 'portfolio_id': 29680333}, {'photo_id': 1400797390, 'portfolio_id': 29680333}, {'photo_id': 1400797387, 'portfolio_id': 29680333}, {'photo_id': 1400797376, 'portfolio_id': 29680333}, {'photo_id': 1400797364, 'portfolio_id': 29680333}, {'photo_id': 1400797348, 'portfolio_id': 29680333}, {'photo_id': 1400797308, 'portfolio_id': 29680333}, {'photo_id': 1400797303, 'portfolio_id': 29680333}, {'photo_id': 1400797299, 'portfolio_id': 29680333}, {'photo_id': 1400797293, 'portfolio_id': 29680333}, {'photo_id': 1400797288, 'portfolio_id': 29680333}, {'photo_id': 1400797277, 'portfolio_id': 29680333}, {'photo_id': 1400797274, 'portfolio_id': 29680333}, {'photo_id': 1400797271, 'portfolio_id': 29680333}, {'photo_id': 1400797268, 'portfolio_id': 29680333}, {'photo_id': 1400797264, 'portfolio_id': 29680333}, {'photo_id': 1400797261, 'portfolio_id': 29680333}, {'photo_id': 1400797257, 'portfolio_id': 29680333}, {'photo_id': 1400797255, 'portfolio_id': 29680333}, {'photo_id': 1400797251, 'portfolio_id': 29680333}, {'photo_id': 1400797247, 'portfolio_id': 29680333}, {'photo_id': 1400797241, 'portfolio_id': 29680333}, {'photo_id': 1400797239, 'portfolio_id': 29680333}, {'photo_id': 1400797237, 'portfolio_id': 29680333}, {'photo_id': 1400797235, 'portfolio_id': 29680333}, {'photo_id': 1400797232, 'portfolio_id': 29680333}, {'photo_id': 1400797229, 'portfolio_id': 29680333}, {'photo_id': 1400797205, 'portfolio_id': 29680333}, {'photo_id': 1400797201, 'portfolio_id': 29680333}, {'photo_id': 1400797196, 'portfolio_id': 29680333}, {'photo_id': 1400797192, 'portfolio_id': 29680333}, {'photo_id': 1400797188, 'portfolio_id': 29680333}, {'photo_id': 1400797185, 'portfolio_id': 29680333}, {'photo_id': 1400797142, 'portfolio_id': 29680333}, {'photo_id': 1400797140, 'portfolio_id': 29680333}, {'photo_id': 1400797137, 'portfolio_id': 29680333}, {'photo_id': 1400797121, 'portfolio_id': 29680333}, {'photo_id': 1400797118, 'portfolio_id': 29680333}, {'photo_id': 1400797116, 'portfolio_id': 29680333}, {'photo_id': 1400797115, 'portfolio_id': 29680333}, {'photo_id': 1400797111, 'portfolio_id': 29680333}, {'photo_id': 1400797073, 'portfolio_id': 29680333}, {'photo_id': 1400797069, 'portfolio_id': 29680333}] map_portfolio_id_photo_id: {29680333: [1400797718, 1400797691, 1400797688, 1400797685, 1400797672, 1400797669, 1400797649, 1400797647, 1400797639, 1400797631, 1400797626, 1400797624, 1400797596, 1400797593, 1400797589, 1400797586, 1400797583, 1400797580, 1400797547, 1400797545, 1400797543, 1400797524, 1400797521, 1400797518, 1400797515, 1400797512, 1400797508, 1400797477, 1400797473, 1400797469, 1400797465, 1400797453, 1400797449, 1400797446, 1400797442, 1400797439, 1400797436, 1400797420, 1400797417, 1400797413, 1400797410, 1400797407, 1400797390, 1400797387, 1400797376, 1400797364, 1400797348, 1400797308, 1400797303, 1400797299, 1400797293, 1400797288, 1400797277, 1400797274, 1400797271, 1400797268, 1400797264, 1400797261, 1400797257, 1400797255, 1400797251, 1400797247, 1400797241, 1400797239, 1400797237, 1400797235, 1400797232, 1400797229, 1400797205, 1400797201, 1400797196, 1400797192, 1400797188, 1400797185, 1400797142, 1400797140, 1400797137, 1400797121, 1400797118, 1400797116, 1400797115, 1400797111, 1400797073, 1400797069]} ##### Call download_photos : nb_thread : 1 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos ##### After load_data_input time to download the photos : 0.01975703239440918 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Dec 24 07:46:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29680333) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} beginning of datou step ventilate_hashtags_in_portfolio : To implement ! To do loadFromThcl(), then load ParamDescType : thcl2725 get_desc_type_from_thcl : type of cat SELECT id, mtr_user_id, name, pb_hashtag_id, hashtag_id_list, button_legend_list, portfolio_id_lists, photo_hashtag_type, photo_desc_type, svm_limit, limit_tagging, is_public, live, created_at, updated_at, type_classification FROM MTRDatou.classification_theme WHERE `id` IN (2725) thcls : [{'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5186 remove imagettes from duplicated photo Iterating over portfolio : 29680333 get user id for portfolio 29680333 get sub ptf for main ptf 29680333, type 3726 and hashtags ['papier', 'flou', 'Carton_brun', 'autre_refus', 'Carton_gris', 'plastique', 'environnement', 'cartonnette', 'Teint_Dans_La_Masse', 'metal', 'kraft', 'mal_croppe'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29680333 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','flou','Carton_brun','autre_refus','Carton_gris','plastique','environnement','cartonnette','Teint_Dans_La_Masse','metal','kraft','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29680333 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','flou','Carton_brun','autre_refus','Carton_gris','plastique','environnement','cartonnette','Teint_Dans_La_Masse','metal','kraft','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29680333, 'sub_port_id': 29680343, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273189, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 27)}, 'environnement': {'main_port_id': 29680333, 'sub_port_id': 29680344, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273190, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 27)}, 'Carton_brun': {'main_port_id': 29680333, 'sub_port_id': 29680345, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273191, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 27)}, 'mal_croppe': {'main_port_id': 29680333, 'sub_port_id': 29680347, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273192, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 27)}, 'cartonnette': {'main_port_id': 29680333, 'sub_port_id': 29680348, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273193, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 29680333, 'sub_port_id': 29680349, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273194, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 27)}, 'plastique': {'main_port_id': 29680333, 'sub_port_id': 29680350, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273195, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 27)}, 'kraft': {'main_port_id': 29680333, 'sub_port_id': 29680351, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273196, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 27)}, 'papier': {'main_port_id': 29680333, 'sub_port_id': 29680352, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273197, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 27)}, 'metal': {'main_port_id': 29680333, 'sub_port_id': 29680353, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273198, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 27)}, 'flou': {'main_port_id': 29680333, 'sub_port_id': 29680354, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273199, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 27)}, 'autre_refus': {'main_port_id': 29680333, 'sub_port_id': 29680355, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273200, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29680343 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29680333 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_gris' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680343) result : ((1400797283,), (1400797315,), (1400797488,), (1400797489,), (1400797500,), (1400797501,), (1400797502,), (1400797612,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680333) result : ((1400797069,), (1400797073,), (1400797111,), (1400797115,), (1400797116,), (1400797118,), (1400797121,), (1400797137,), (1400797140,), (1400797142,), (1400797185,), (1400797188,), (1400797192,), (1400797196,), (1400797201,), (1400797205,), (1400797229,), (1400797232,), (1400797235,), (1400797237,), (1400797239,), (1400797241,), (1400797247,), (1400797251,), (1400797255,), (1400797257,), (1400797261,), (1400797264,), (1400797268,), (1400797271,), (1400797274,), (1400797277,), (1400797288,), (1400797293,), (1400797299,), (1400797303,), (1400797308,), (1400797348,), (1400797364,), (1400797376,), (1400797387,), (1400797390,), (1400797407,), (1400797410,), (1400797413,), (1400797417,), (1400797420,), (1400797436,), (1400797439,), (1400797442,), (1400797446,), (1400797449,), (1400797453,), (1400797465,), (1400797469,), (1400797473,), (1400797477,), (1400797508,), (1400797512,), (1400797515,), (1400797518,), (1400797521,), (1400797524,), (1400797543,), (1400797545,), (1400797547,), (1400797580,), (1400797583,), (1400797586,), (1400797589,), (1400797593,), (1400797596,), (1400797624,), (1400797626,), (1400797631,), (1400797639,), (1400797647,), (1400797649,), (1400797669,), (1400797672,), (1400797685,), (1400797688,), (1400797691,), (1400797718,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29680344 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29680333 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680344) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680333) result : ((1400797069,), (1400797073,), (1400797111,), (1400797115,), (1400797116,), (1400797118,), (1400797121,), (1400797137,), (1400797140,), (1400797142,), (1400797185,), (1400797188,), (1400797192,), (1400797196,), (1400797201,), (1400797205,), (1400797229,), (1400797232,), (1400797235,), (1400797237,), (1400797239,), (1400797241,), (1400797247,), (1400797251,), (1400797255,), (1400797257,), (1400797261,), (1400797264,), (1400797268,), (1400797271,), (1400797274,), (1400797277,), (1400797288,), (1400797293,), (1400797299,), (1400797303,), (1400797308,), (1400797348,), (1400797364,), (1400797376,), (1400797387,), (1400797390,), (1400797407,), (1400797410,), (1400797413,), (1400797417,), (1400797420,), (1400797436,), (1400797439,), (1400797442,), (1400797446,), (1400797449,), (1400797453,), (1400797465,), (1400797469,), (1400797473,), (1400797477,), (1400797508,), (1400797512,), (1400797515,), (1400797518,), (1400797521,), (1400797524,), (1400797543,), (1400797545,), (1400797547,), (1400797580,), (1400797583,), (1400797586,), (1400797589,), (1400797593,), (1400797596,), (1400797624,), (1400797626,), (1400797631,), (1400797639,), (1400797647,), (1400797649,), (1400797669,), (1400797672,), (1400797685,), (1400797688,), (1400797691,), (1400797718,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29680345 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29680333 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680345) result : ((1400797317,), (1400797319,), (1400797490,), (1400797491,), (1400797492,), (1400797614,), (1400797665,), (1400797666,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680333) result : ((1400797069,), (1400797073,), (1400797111,), (1400797115,), (1400797116,), (1400797118,), (1400797121,), (1400797137,), (1400797140,), (1400797142,), (1400797185,), (1400797188,), (1400797192,), (1400797196,), (1400797201,), (1400797205,), (1400797229,), (1400797232,), (1400797235,), (1400797237,), (1400797239,), (1400797241,), (1400797247,), (1400797251,), (1400797255,), (1400797257,), (1400797261,), (1400797264,), (1400797268,), (1400797271,), (1400797274,), (1400797277,), (1400797288,), (1400797293,), (1400797299,), (1400797303,), (1400797308,), (1400797348,), (1400797364,), (1400797376,), (1400797387,), (1400797390,), (1400797407,), (1400797410,), (1400797413,), (1400797417,), (1400797420,), (1400797436,), (1400797439,), (1400797442,), (1400797446,), (1400797449,), (1400797453,), (1400797465,), (1400797469,), (1400797473,), (1400797477,), (1400797508,), (1400797512,), (1400797515,), (1400797518,), (1400797521,), (1400797524,), (1400797543,), (1400797545,), (1400797547,), (1400797580,), (1400797583,), (1400797586,), (1400797589,), (1400797593,), (1400797596,), (1400797624,), (1400797626,), (1400797631,), (1400797639,), (1400797647,), (1400797649,), (1400797669,), (1400797672,), (1400797685,), (1400797688,), (1400797691,), (1400797718,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29680347 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29680333 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='mal_croppe' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680347) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680333) result : ((1400797069,), (1400797073,), (1400797111,), (1400797115,), (1400797116,), (1400797118,), (1400797121,), (1400797137,), (1400797140,), (1400797142,), (1400797185,), (1400797188,), (1400797192,), (1400797196,), (1400797201,), (1400797205,), (1400797229,), (1400797232,), (1400797235,), (1400797237,), (1400797239,), (1400797241,), (1400797247,), (1400797251,), (1400797255,), (1400797257,), (1400797261,), (1400797264,), (1400797268,), (1400797271,), (1400797274,), (1400797277,), (1400797288,), (1400797293,), (1400797299,), (1400797303,), (1400797308,), (1400797348,), (1400797364,), (1400797376,), (1400797387,), (1400797390,), (1400797407,), (1400797410,), (1400797413,), (1400797417,), (1400797420,), (1400797436,), (1400797439,), (1400797442,), (1400797446,), (1400797449,), (1400797453,), (1400797465,), (1400797469,), (1400797473,), (1400797477,), (1400797508,), (1400797512,), (1400797515,), (1400797518,), (1400797521,), (1400797524,), (1400797543,), (1400797545,), (1400797547,), (1400797580,), (1400797583,), (1400797586,), (1400797589,), (1400797593,), (1400797596,), (1400797624,), (1400797626,), (1400797631,), (1400797639,), (1400797647,), (1400797649,), (1400797669,), (1400797672,), (1400797685,), (1400797688,), (1400797691,), (1400797718,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29680348 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29680333 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680348) result : ((1400797316,), (1400797504,), (1400797613,), (1400797662,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680333) result : ((1400797069,), (1400797073,), (1400797111,), (1400797115,), (1400797116,), (1400797118,), (1400797121,), (1400797137,), (1400797140,), (1400797142,), (1400797185,), (1400797188,), (1400797192,), (1400797196,), (1400797201,), (1400797205,), (1400797229,), (1400797232,), (1400797235,), (1400797237,), (1400797239,), (1400797241,), (1400797247,), (1400797251,), (1400797255,), (1400797257,), (1400797261,), (1400797264,), (1400797268,), (1400797271,), (1400797274,), (1400797277,), (1400797288,), (1400797293,), (1400797299,), (1400797303,), (1400797308,), (1400797348,), (1400797364,), (1400797376,), (1400797387,), (1400797390,), (1400797407,), (1400797410,), (1400797413,), (1400797417,), (1400797420,), (1400797436,), (1400797439,), (1400797442,), (1400797446,), (1400797449,), (1400797453,), (1400797465,), (1400797469,), (1400797473,), (1400797477,), (1400797508,), (1400797512,), (1400797515,), (1400797518,), (1400797521,), (1400797524,), (1400797543,), (1400797545,), (1400797547,), (1400797580,), (1400797583,), (1400797586,), (1400797589,), (1400797593,), (1400797596,), (1400797624,), (1400797626,), (1400797631,), (1400797639,), (1400797647,), (1400797649,), (1400797669,), (1400797672,), (1400797685,), (1400797688,), (1400797691,), (1400797718,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29680349 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29680333 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Teint_Dans_La_Masse' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680349) result : ((1400797484,), (1400797485,), (1400797486,), (1400797535,), (1400797536,), (1400797537,), (1400797598,), (1400797599,), (1400797600,), (1400797602,), (1400797610,), (1400797657,), (1400797658,), (1400797659,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680333) result : ((1400797069,), (1400797073,), (1400797111,), (1400797115,), (1400797116,), (1400797118,), (1400797121,), (1400797137,), (1400797140,), (1400797142,), (1400797185,), (1400797188,), (1400797192,), (1400797196,), (1400797201,), (1400797205,), (1400797229,), (1400797232,), (1400797235,), (1400797237,), (1400797239,), (1400797241,), (1400797247,), (1400797251,), (1400797255,), (1400797257,), (1400797261,), (1400797264,), (1400797268,), (1400797271,), (1400797274,), (1400797277,), (1400797288,), (1400797293,), (1400797299,), (1400797303,), (1400797308,), (1400797348,), (1400797364,), (1400797376,), (1400797387,), (1400797390,), (1400797407,), (1400797410,), (1400797413,), (1400797417,), (1400797420,), (1400797436,), (1400797439,), (1400797442,), (1400797446,), (1400797449,), (1400797453,), (1400797465,), (1400797469,), (1400797473,), (1400797477,), (1400797508,), (1400797512,), (1400797515,), (1400797518,), (1400797521,), (1400797524,), (1400797543,), (1400797545,), (1400797547,), (1400797580,), (1400797583,), (1400797586,), (1400797589,), (1400797593,), (1400797596,), (1400797624,), (1400797626,), (1400797631,), (1400797639,), (1400797647,), (1400797649,), (1400797669,), (1400797672,), (1400797685,), (1400797688,), (1400797691,), (1400797718,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29680350 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29680333 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680350) result : ((1400797493,), (1400797604,), (1400797605,), (1400797667,), (1400797668,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680333) result : ((1400797069,), (1400797073,), (1400797111,), (1400797115,), (1400797116,), (1400797118,), (1400797121,), (1400797137,), (1400797140,), (1400797142,), (1400797185,), (1400797188,), (1400797192,), (1400797196,), (1400797201,), (1400797205,), (1400797229,), (1400797232,), (1400797235,), (1400797237,), (1400797239,), (1400797241,), (1400797247,), (1400797251,), (1400797255,), (1400797257,), (1400797261,), (1400797264,), (1400797268,), (1400797271,), (1400797274,), (1400797277,), (1400797288,), (1400797293,), (1400797299,), (1400797303,), (1400797308,), (1400797348,), (1400797364,), (1400797376,), (1400797387,), (1400797390,), (1400797407,), (1400797410,), (1400797413,), (1400797417,), (1400797420,), (1400797436,), (1400797439,), (1400797442,), (1400797446,), (1400797449,), (1400797453,), (1400797465,), (1400797469,), (1400797473,), (1400797477,), (1400797508,), (1400797512,), (1400797515,), (1400797518,), (1400797521,), (1400797524,), (1400797543,), (1400797545,), (1400797547,), (1400797580,), (1400797583,), (1400797586,), (1400797589,), (1400797593,), (1400797596,), (1400797624,), (1400797626,), (1400797631,), (1400797639,), (1400797647,), (1400797649,), (1400797669,), (1400797672,), (1400797685,), (1400797688,), (1400797691,), (1400797718,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29680351 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29680333 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680351) result : ((1400797494,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680333) result : ((1400797069,), (1400797073,), (1400797111,), (1400797115,), (1400797116,), (1400797118,), (1400797121,), (1400797137,), (1400797140,), (1400797142,), (1400797185,), (1400797188,), (1400797192,), (1400797196,), (1400797201,), (1400797205,), (1400797229,), (1400797232,), (1400797235,), (1400797237,), (1400797239,), (1400797241,), (1400797247,), (1400797251,), (1400797255,), (1400797257,), (1400797261,), (1400797264,), (1400797268,), (1400797271,), (1400797274,), (1400797277,), (1400797288,), (1400797293,), (1400797299,), (1400797303,), (1400797308,), (1400797348,), (1400797364,), (1400797376,), (1400797387,), (1400797390,), (1400797407,), (1400797410,), (1400797413,), (1400797417,), (1400797420,), (1400797436,), (1400797439,), (1400797442,), (1400797446,), (1400797449,), (1400797453,), (1400797465,), (1400797469,), (1400797473,), (1400797477,), (1400797508,), (1400797512,), (1400797515,), (1400797518,), (1400797521,), (1400797524,), (1400797543,), (1400797545,), (1400797547,), (1400797580,), (1400797583,), (1400797586,), (1400797589,), (1400797593,), (1400797596,), (1400797624,), (1400797626,), (1400797631,), (1400797639,), (1400797647,), (1400797649,), (1400797669,), (1400797672,), (1400797685,), (1400797688,), (1400797691,), (1400797718,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29680352 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29680333 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='papier' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680352) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680333) result : ((1400797069,), (1400797073,), (1400797111,), (1400797115,), (1400797116,), (1400797118,), (1400797121,), (1400797137,), (1400797140,), (1400797142,), (1400797185,), (1400797188,), (1400797192,), (1400797196,), (1400797201,), (1400797205,), (1400797229,), (1400797232,), (1400797235,), (1400797237,), (1400797239,), (1400797241,), (1400797247,), (1400797251,), (1400797255,), (1400797257,), (1400797261,), (1400797264,), (1400797268,), (1400797271,), (1400797274,), (1400797277,), (1400797288,), (1400797293,), (1400797299,), (1400797303,), (1400797308,), (1400797348,), (1400797364,), (1400797376,), (1400797387,), (1400797390,), (1400797407,), (1400797410,), (1400797413,), (1400797417,), (1400797420,), (1400797436,), (1400797439,), (1400797442,), (1400797446,), (1400797449,), (1400797453,), (1400797465,), (1400797469,), (1400797473,), (1400797477,), (1400797508,), (1400797512,), (1400797515,), (1400797518,), (1400797521,), (1400797524,), (1400797543,), (1400797545,), (1400797547,), (1400797580,), (1400797583,), (1400797586,), (1400797589,), (1400797593,), (1400797596,), (1400797624,), (1400797626,), (1400797631,), (1400797639,), (1400797647,), (1400797649,), (1400797669,), (1400797672,), (1400797685,), (1400797688,), (1400797691,), (1400797718,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29680353 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29680333 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='metal' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680353) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680333) result : ((1400797069,), (1400797073,), (1400797111,), (1400797115,), (1400797116,), (1400797118,), (1400797121,), (1400797137,), (1400797140,), (1400797142,), (1400797185,), (1400797188,), (1400797192,), (1400797196,), (1400797201,), (1400797205,), (1400797229,), (1400797232,), (1400797235,), (1400797237,), (1400797239,), (1400797241,), (1400797247,), (1400797251,), (1400797255,), (1400797257,), (1400797261,), (1400797264,), (1400797268,), (1400797271,), (1400797274,), (1400797277,), (1400797288,), (1400797293,), (1400797299,), (1400797303,), (1400797308,), (1400797348,), (1400797364,), (1400797376,), (1400797387,), (1400797390,), (1400797407,), (1400797410,), (1400797413,), (1400797417,), (1400797420,), (1400797436,), (1400797439,), (1400797442,), (1400797446,), (1400797449,), (1400797453,), (1400797465,), (1400797469,), (1400797473,), (1400797477,), (1400797508,), (1400797512,), (1400797515,), (1400797518,), (1400797521,), (1400797524,), (1400797543,), (1400797545,), (1400797547,), (1400797580,), (1400797583,), (1400797586,), (1400797589,), (1400797593,), (1400797596,), (1400797624,), (1400797626,), (1400797631,), (1400797639,), (1400797647,), (1400797649,), (1400797669,), (1400797672,), (1400797685,), (1400797688,), (1400797691,), (1400797718,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29680354 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29680333 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680354) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680333) result : ((1400797069,), (1400797073,), (1400797111,), (1400797115,), (1400797116,), (1400797118,), (1400797121,), (1400797137,), (1400797140,), (1400797142,), (1400797185,), (1400797188,), (1400797192,), (1400797196,), (1400797201,), (1400797205,), (1400797229,), (1400797232,), (1400797235,), (1400797237,), (1400797239,), (1400797241,), (1400797247,), (1400797251,), (1400797255,), (1400797257,), (1400797261,), (1400797264,), (1400797268,), (1400797271,), (1400797274,), (1400797277,), (1400797288,), (1400797293,), (1400797299,), (1400797303,), (1400797308,), (1400797348,), (1400797364,), (1400797376,), (1400797387,), (1400797390,), (1400797407,), (1400797410,), (1400797413,), (1400797417,), (1400797420,), (1400797436,), (1400797439,), (1400797442,), (1400797446,), (1400797449,), (1400797453,), (1400797465,), (1400797469,), (1400797473,), (1400797477,), (1400797508,), (1400797512,), (1400797515,), (1400797518,), (1400797521,), (1400797524,), (1400797543,), (1400797545,), (1400797547,), (1400797580,), (1400797583,), (1400797586,), (1400797589,), (1400797593,), (1400797596,), (1400797624,), (1400797626,), (1400797631,), (1400797639,), (1400797647,), (1400797649,), (1400797669,), (1400797672,), (1400797685,), (1400797688,), (1400797691,), (1400797718,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29680355 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=29680333 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680355) result : ((1400797313,), (1400797314,), (1400797487,), (1400797539,), (1400797540,), (1400797603,), (1400797661,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29680333) result : ((1400797069,), (1400797073,), (1400797111,), (1400797115,), (1400797116,), (1400797118,), (1400797121,), (1400797137,), (1400797140,), (1400797142,), (1400797185,), (1400797188,), (1400797192,), (1400797196,), (1400797201,), (1400797205,), (1400797229,), (1400797232,), (1400797235,), (1400797237,), (1400797239,), (1400797241,), (1400797247,), (1400797251,), (1400797255,), (1400797257,), (1400797261,), (1400797264,), (1400797268,), (1400797271,), (1400797274,), (1400797277,), (1400797288,), (1400797293,), (1400797299,), (1400797303,), (1400797308,), (1400797348,), (1400797364,), (1400797376,), (1400797387,), (1400797390,), (1400797407,), (1400797410,), (1400797413,), (1400797417,), (1400797420,), (1400797436,), (1400797439,), (1400797442,), (1400797446,), (1400797449,), (1400797453,), (1400797465,), (1400797469,), (1400797473,), (1400797477,), (1400797508,), (1400797512,), (1400797515,), (1400797518,), (1400797521,), (1400797524,), (1400797543,), (1400797545,), (1400797547,), (1400797580,), (1400797583,), (1400797586,), (1400797589,), (1400797593,), (1400797596,), (1400797624,), (1400797626,), (1400797631,), (1400797639,), (1400797647,), (1400797649,), (1400797669,), (1400797672,), (1400797685,), (1400797688,), (1400797691,), (1400797718,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29680333 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','flou','Carton_brun','autre_refus','Carton_gris','plastique','environnement','cartonnette','Teint_Dans_La_Masse','metal','kraft','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29680333 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','flou','Carton_brun','autre_refus','Carton_gris','plastique','environnement','cartonnette','Teint_Dans_La_Masse','metal','kraft','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29680333, 'sub_port_id': 29680356, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273201, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 29)}, 'environnement': {'main_port_id': 29680333, 'sub_port_id': 29680357, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273202, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 29)}, 'Carton_brun': {'main_port_id': 29680333, 'sub_port_id': 29680358, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273203, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 29)}, 'mal_croppe': {'main_port_id': 29680333, 'sub_port_id': 29680359, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273204, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 29)}, 'cartonnette': {'main_port_id': 29680333, 'sub_port_id': 29680360, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273205, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 29680333, 'sub_port_id': 29680361, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273206, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 29)}, 'plastique': {'main_port_id': 29680333, 'sub_port_id': 29680362, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273207, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 29)}, 'kraft': {'main_port_id': 29680333, 'sub_port_id': 29680363, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273208, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 29)}, 'papier': {'main_port_id': 29680333, 'sub_port_id': 29680364, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273209, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 29)}, 'metal': {'main_port_id': 29680333, 'sub_port_id': 29680365, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273210, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 29)}, 'flou': {'main_port_id': 29680333, 'sub_port_id': 29680366, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273211, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 29)}, 'autre_refus': {'main_port_id': 29680333, 'sub_port_id': 29680367, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20273212, 'last_updated_at': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 24, 7, 45, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 24, 7, 33, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29680356,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29680343 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29680357,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29680344 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29680358,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29680345 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29680359,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29680347 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29680360,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29680348 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29680361,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29680349 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29680362,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29680350 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29680363,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29680351 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29680364,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29680352 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29680365,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29680353 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29680366,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29680354 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29680367,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29680355 lien utilise dans velours : https://marlene.fotonower.com/velours/29680356,29680357,29680358,29680359,29680360,29680361,29680362,29680363,29680364,29680365,29680366,29680367?tags=Carton_gris,environnement,Carton_brun,mal_croppe,cartonnette,Teint_Dans_La_Masse,plastique,kraft,papier,metal,flou,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29680333]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1400797718, 1400797691, 1400797688, 1400797685, 1400797672, 1400797669, 1400797649, 1400797647, 1400797639, 1400797631, 1400797626, 1400797624, 1400797596, 1400797593, 1400797589, 1400797586, 1400797583, 1400797580] map_info['map_portfolio_photo'] : {29680333: [1400797718, 1400797691, 1400797688, 1400797685, 1400797672, 1400797669, 1400797649, 1400797647, 1400797639, 1400797631, 1400797626, 1400797624, 1400797596, 1400797593, 1400797589, 1400797586, 1400797583, 1400797580, 1400797547, 1400797545, 1400797543, 1400797524, 1400797521, 1400797518, 1400797515, 1400797512, 1400797508, 1400797477, 1400797473, 1400797469, 1400797465, 1400797453, 1400797449, 1400797446, 1400797442, 1400797439, 1400797436, 1400797420, 1400797417, 1400797413, 1400797410, 1400797407, 1400797390, 1400797387, 1400797376, 1400797364, 1400797348, 1400797308, 1400797303, 1400797299, 1400797293, 1400797288, 1400797277, 1400797274, 1400797271, 1400797268, 1400797264, 1400797261, 1400797257, 1400797255, 1400797251, 1400797247, 1400797241, 1400797239, 1400797237, 1400797235, 1400797232, 1400797229, 1400797205, 1400797201, 1400797196, 1400797192, 1400797188, 1400797185, 1400797142, 1400797140, 1400797137, 1400797121, 1400797118, 1400797116, 1400797115, 1400797111, 1400797073, 1400797069]} final : False mtd_id 4302 list_pids : [1400797718, 1400797691, 1400797688, 1400797685, 1400797672, 1400797669, 1400797649, 1400797647, 1400797639, 1400797631, 1400797626, 1400797624, 1400797596, 1400797593, 1400797589, 1400797586, 1400797583, 1400797580] Looping around the photos to save general results len do output : 1 /29680333. before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797718', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797691', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797688', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797685', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797672', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797669', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797649', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797647', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797639', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797631', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797626', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797624', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797596', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797593', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797589', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797586', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797583', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797580', None, None, None, None, None, '4267656') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29680333', "{'Carton_gris': 29680343, 'environnement': 29680344, 'Carton_brun': 29680345, 'mal_croppe': 29680347, 'cartonnette': 29680348, 'Teint_Dans_La_Masse': 29680349, 'plastique': 29680350, 'kraft': 29680351, 'papier': 29680352, 'metal': 29680353, 'flou': 29680354, 'autre_refus': 29680355}", None, None, None, None, '4267656'), ('4302', '29680333', '1400797718', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797691', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797688', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797685', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797672', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797669', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797649', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797647', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797639', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797631', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797626', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797624', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797596', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797593', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797589', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797586', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797583', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797580', None, None, None, None, None, '4267656')] time used for this insertion : 0.021532297134399414 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7899377346038818 time spend to save output : 0.021915197372436523 total time spend for step 1 : 1.8118529319763184 step2:final Wed Dec 24 07:47:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29680333) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} Beginning of datou step final ! query to retrieve results for portfolio 29680333 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1400797073,1400797069,1400797121,1400797118,1400797116,1400797115,1400797111,1400797142,1400797140,1400797137,1400797257,1400797205,1400797255,1400797201,1400797251,1400797196,1400797247,1400797192,1400797241,1400797188,1400797239,1400797185,1400797237,1400797235,1400797232,1400797229,1400797277,1400797274,1400797271,1400797268,1400797264,1400797261,1400797308,1400797303,1400797299,1400797293,1400797288,1400797390,1400797387,1400797376,1400797364,1400797348,1400797420,1400797417,1400797413,1400797410,1400797407,1400797453,1400797449,1400797446,1400797442,1400797439,1400797436,1400797477,1400797473,1400797469,1400797465,1400797524,1400797521,1400797518,1400797515,1400797512,1400797508,1400797547,1400797545,1400797543,1400797718,1400797596,1400797593,1400797691,1400797589,1400797688,1400797586,1400797685,1400797583,1400797672,1400797669,1400797580,1400797649,1400797647,1400797639,1400797631,1400797626,1400797624); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29680333]) Inside saveOutput : final : False verbose : True original output for save of step final : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ('0.050813541685688975',), 1400797580: ('0.050813541685688975',)} new output for save of step final : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ('0.050813541685688975',), 1400797580: ('0.050813541685688975',)} [1400797718, 1400797691, 1400797688, 1400797685, 1400797672, 1400797669, 1400797649, 1400797647, 1400797639, 1400797631, 1400797626, 1400797624, 1400797596, 1400797593, 1400797589, 1400797586, 1400797583, 1400797580] map_info['map_portfolio_photo'] : {29680333: [1400797718, 1400797691, 1400797688, 1400797685, 1400797672, 1400797669, 1400797649, 1400797647, 1400797639, 1400797631, 1400797626, 1400797624, 1400797596, 1400797593, 1400797589, 1400797586, 1400797583, 1400797580, 1400797547, 1400797545, 1400797543, 1400797524, 1400797521, 1400797518, 1400797515, 1400797512, 1400797508, 1400797477, 1400797473, 1400797469, 1400797465, 1400797453, 1400797449, 1400797446, 1400797442, 1400797439, 1400797436, 1400797420, 1400797417, 1400797413, 1400797410, 1400797407, 1400797390, 1400797387, 1400797376, 1400797364, 1400797348, 1400797308, 1400797303, 1400797299, 1400797293, 1400797288, 1400797277, 1400797274, 1400797271, 1400797268, 1400797264, 1400797261, 1400797257, 1400797255, 1400797251, 1400797247, 1400797241, 1400797239, 1400797237, 1400797235, 1400797232, 1400797229, 1400797205, 1400797201, 1400797196, 1400797192, 1400797188, 1400797185, 1400797142, 1400797140, 1400797137, 1400797121, 1400797118, 1400797116, 1400797115, 1400797111, 1400797073, 1400797069]} final : False mtd_id 4302 list_pids : [1400797718, 1400797691, 1400797688, 1400797685, 1400797672, 1400797669, 1400797649, 1400797647, 1400797639, 1400797631, 1400797626, 1400797624, 1400797596, 1400797593, 1400797589, 1400797586, 1400797583, 1400797580] Looping around the photos to save general results len do output : 18 /1400797718.Didn't retrieve data . /1400797691.Didn't retrieve data . /1400797688.Didn't retrieve data . /1400797685.Didn't retrieve data . /1400797672.Didn't retrieve data . /1400797669.Didn't retrieve data . /1400797649.Didn't retrieve data . /1400797647.Didn't retrieve data . /1400797639.Didn't retrieve data . /1400797631.Didn't retrieve data . /1400797626.Didn't retrieve data . /1400797624.Didn't retrieve data . /1400797596.Didn't retrieve data . /1400797593.Didn't retrieve data . /1400797589.Didn't retrieve data . /1400797586.Didn't retrieve data . /1400797583.Didn't retrieve data . /1400797580.Didn't retrieve data . before output type Used above Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797718', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797691', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797688', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797685', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797672', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797669', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797649', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797647', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797639', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797631', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797626', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797624', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797596', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797593', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797589', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797586', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797583', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797580', None, None, None, None, None, '4267656') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29680333', '1400797718', '0.050813541685688975', None, None, None, None, '4267656'), ('4302', '29680333', '1400797691', '0.050813541685688975', None, None, None, None, '4267656'), ('4302', '29680333', '1400797688', '0.050813541685688975', None, None, None, None, '4267656'), ('4302', '29680333', '1400797685', '0.050813541685688975', None, None, None, None, '4267656'), ('4302', '29680333', '1400797672', '0.050813541685688975', None, None, None, None, '4267656'), ('4302', '29680333', '1400797669', '0.050813541685688975', None, None, None, None, '4267656'), ('4302', '29680333', '1400797649', '0.050813541685688975', None, None, None, None, '4267656'), ('4302', '29680333', '1400797647', '0.050813541685688975', None, None, None, None, '4267656'), ('4302', '29680333', '1400797639', '0.050813541685688975', None, None, None, None, '4267656'), ('4302', '29680333', '1400797631', '0.050813541685688975', None, None, None, None, '4267656'), ('4302', '29680333', '1400797626', '0.050813541685688975', None, None, None, None, '4267656'), ('4302', '29680333', '1400797624', '0.050813541685688975', None, None, None, None, '4267656'), ('4302', '29680333', '1400797596', '0.050813541685688975', None, None, None, None, '4267656'), ('4302', '29680333', '1400797593', '0.050813541685688975', None, None, None, None, '4267656'), ('4302', '29680333', '1400797589', '0.050813541685688975', None, None, None, None, '4267656'), ('4302', '29680333', '1400797586', '0.050813541685688975', None, None, None, None, '4267656'), ('4302', '29680333', '1400797583', '0.050813541685688975', None, None, None, None, '4267656'), ('4302', '29680333', '1400797580', '0.050813541685688975', None, None, None, None, '4267656')] time used for this insertion : 0.01914072036743164 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0870060920715332 time spend to save output : 0.02009415626525879 total time spend for step 2 : 0.10710024833679199 step3:velours_tree Wed Dec 24 07:47:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29680333: [{'Carton_gris': 29680343, 'environnement': 29680344, 'Carton_brun': 29680345, 'mal_croppe': 29680347, 'cartonnette': 29680348, 'Teint_Dans_La_Masse': 29680349, 'plastique': 29680350, 'kraft': 29680351, 'papier': 29680352, 'metal': 29680353, 'flou': 29680354, 'autre_refus': 29680355}]} input_args_next_step : {29680333: ()} output_args : {29680333: [{'Carton_gris': 29680343, 'environnement': 29680344, 'Carton_brun': 29680345, 'mal_croppe': 29680347, 'cartonnette': 29680348, 'Teint_Dans_La_Masse': 29680349, 'plastique': 29680350, 'kraft': 29680351, 'papier': 29680352, 'metal': 29680353, 'flou': 29680354, 'autre_refus': 29680355}]} args : 29680333 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 29680343, 'environnement': 29680344, 'Carton_brun': 29680345, 'mal_croppe': 29680347, 'cartonnette': 29680348, 'Teint_Dans_La_Masse': 29680349, 'plastique': 29680350, 'kraft': 29680351, 'papier': 29680352, 'metal': 29680353, 'flou': 29680354, 'autre_refus': 29680355},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29680333) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} can't find the photo_desc_type After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29680333]) Inside saveOutput : final : False verbose : True ouput is None No outpout to save, returning out of save general time spend for datou_step_exec : 0.3685011863708496 time spend to save output : 8.392333984375e-05 total time spend for step 3 : 0.36858510971069336 step4:send_mail_cod Wed Dec 24 07:47:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ('0.050813541685688975',), 1400797580: ('0.050813541685688975',)} input_args_next_step : {1400797718: ()} output_args : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ('0.050813541685688975',), 1400797580: ('0.050813541685688975',)} args : 1400797718 depend.output_id : 0 input_args_next_step : {1400797718: ('0.050813541685688975',), 1400797691: ()} output_args : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ('0.050813541685688975',), 1400797580: ('0.050813541685688975',)} args : 1400797691 depend.output_id : 0 input_args_next_step : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ()} output_args : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ('0.050813541685688975',), 1400797580: ('0.050813541685688975',)} args : 1400797688 depend.output_id : 0 input_args_next_step : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ()} output_args : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ('0.050813541685688975',), 1400797580: ('0.050813541685688975',)} args : 1400797685 depend.output_id : 0 input_args_next_step : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ()} output_args : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ('0.050813541685688975',), 1400797580: ('0.050813541685688975',)} args : 1400797672 depend.output_id : 0 input_args_next_step : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ()} output_args : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ('0.050813541685688975',), 1400797580: ('0.050813541685688975',)} args : 1400797669 depend.output_id : 0 input_args_next_step : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ()} output_args : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ('0.050813541685688975',), 1400797580: ('0.050813541685688975',)} args : 1400797649 depend.output_id : 0 input_args_next_step : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ()} output_args : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ('0.050813541685688975',), 1400797580: ('0.050813541685688975',)} args : 1400797647 depend.output_id : 0 input_args_next_step : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ()} output_args : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ('0.050813541685688975',), 1400797580: ('0.050813541685688975',)} args : 1400797639 depend.output_id : 0 input_args_next_step : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ()} output_args : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ('0.050813541685688975',), 1400797580: ('0.050813541685688975',)} args : 1400797631 depend.output_id : 0 input_args_next_step : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ()} output_args : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ('0.050813541685688975',), 1400797580: ('0.050813541685688975',)} args : 1400797626 depend.output_id : 0 input_args_next_step : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ()} output_args : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ('0.050813541685688975',), 1400797580: ('0.050813541685688975',)} args : 1400797624 depend.output_id : 0 input_args_next_step : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ()} output_args : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ('0.050813541685688975',), 1400797580: ('0.050813541685688975',)} args : 1400797596 depend.output_id : 0 input_args_next_step : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ()} output_args : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ('0.050813541685688975',), 1400797580: ('0.050813541685688975',)} args : 1400797593 depend.output_id : 0 input_args_next_step : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ()} output_args : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ('0.050813541685688975',), 1400797580: ('0.050813541685688975',)} args : 1400797589 depend.output_id : 0 input_args_next_step : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ()} output_args : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ('0.050813541685688975',), 1400797580: ('0.050813541685688975',)} args : 1400797586 depend.output_id : 0 input_args_next_step : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ()} output_args : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ('0.050813541685688975',), 1400797580: ('0.050813541685688975',)} args : 1400797583 depend.output_id : 0 input_args_next_step : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ('0.050813541685688975',), 1400797580: ()} output_args : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ('0.050813541685688975',), 1400797580: ('0.050813541685688975',)} args : 1400797580 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {29680333: [{'Carton_gris': 29680343, 'environnement': 29680344, 'Carton_brun': 29680345, 'mal_croppe': 29680347, 'cartonnette': 29680348, 'Teint_Dans_La_Masse': 29680349, 'plastique': 29680350, 'kraft': 29680351, 'papier': 29680352, 'metal': 29680353, 'flou': 29680354, 'autre_refus': 29680355}]} input_args_next_step : {1400797718: ('0.050813541685688975',), 1400797691: ('0.050813541685688975',), 1400797688: ('0.050813541685688975',), 1400797685: ('0.050813541685688975',), 1400797672: ('0.050813541685688975',), 1400797669: ('0.050813541685688975',), 1400797649: ('0.050813541685688975',), 1400797647: ('0.050813541685688975',), 1400797639: ('0.050813541685688975',), 1400797631: ('0.050813541685688975',), 1400797626: ('0.050813541685688975',), 1400797624: ('0.050813541685688975',), 1400797596: ('0.050813541685688975',), 1400797593: ('0.050813541685688975',), 1400797589: ('0.050813541685688975',), 1400797586: ('0.050813541685688975',), 1400797583: ('0.050813541685688975',), 1400797580: ('0.050813541685688975',), 29680333: ()} output_args : {29680333: [{'Carton_gris': 29680343, 'environnement': 29680344, 'Carton_brun': 29680345, 'mal_croppe': 29680347, 'cartonnette': 29680348, 'Teint_Dans_La_Masse': 29680349, 'plastique': 29680350, 'kraft': 29680351, 'papier': 29680352, 'metal': 29680353, 'flou': 29680354, 'autre_refus': 29680355}]} args : 29680333 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :19, first value : ('0.050813541685688975',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29680333) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1400797718,1400797691,1400797688,1400797685,1400797672,1400797669,1400797649,1400797647,1400797639,1400797631,1400797626,1400797624,1400797596,1400797593,1400797589,1400797586,1400797583,1400797580) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1400797580 begin to download photo : 1400797593 begin to download photo : 1400797631 begin to download photo : 1400797669 begin to download photo : 1400797691 download finish for photo 1400797631 begin to download photo : 1400797639 download finish for photo 1400797593 begin to download photo : 1400797596 download finish for photo 1400797691 begin to download photo : 1400797718 download finish for photo 1400797580 begin to download photo : 1400797583 download finish for photo 1400797669 begin to download photo : 1400797672 download finish for photo 1400797639 begin to download photo : 1400797647 download finish for photo 1400797596 begin to download photo : 1400797624 download finish for photo 1400797583 begin to download photo : 1400797586 download finish for photo 1400797718 download finish for photo 1400797647 begin to download photo : 1400797649 download finish for photo 1400797624 begin to download photo : 1400797626 download finish for photo 1400797672 begin to download photo : 1400797685 download finish for photo 1400797586 begin to download photo : 1400797589 download finish for photo 1400797649 download finish for photo 1400797685 begin to download photo : 1400797688 download finish for photo 1400797626 download finish for photo 1400797589 download finish for photo 1400797688 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette296803471766558821/ length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P29680333_24-12-2025_07_47_01.pdf 29680347 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29680347 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296803471766558821 29680348 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29680348 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400797316: '1766558228_378384_1400797118_92b7c7e20ae499737ba832b314b91ffb_rle_crop_4079826041_0.png', 1400797504: '1766558486_389008_1400797299_244a160372f535cccf6345fb2b8ae725_rle_crop_4079826774_0.png', 1400797613: '1766558667_395829_1400797465_746f9bb71cff0b65fc6d84cec17b2b1c_rle_crop_4079827975_0.png', 1400797662: '1766558708_398376_1400797436_51b92bbbd58040c12c819bb0276a5a21_rle_crop_4079829629_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/761347547d846c5c29e0e72556d79b2a_17651662.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/ddbd45f093a5afbc3acdaee9afc8f6d9_26871901.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/08019a772c213bc8ec5f9e0ba9858c69_7098629.png change filename to text .imagette296803481766558821/ imagette296803481766558821/1766558486_389008_1400797299_244a160372f535cccf6345fb2b8ae725_rle_crop_4079826774_0.png.png imagette296803481766558821/1766558708_398376_1400797436_51b92bbbd58040c12c819bb0276a5a21_rle_crop_4079829629_0.png.png imagette296803481766558821/1766558228_378384_1400797118_92b7c7e20ae499737ba832b314b91ffb_rle_crop_4079826041_0.png.png imagette296803481766558821/1766558667_395829_1400797465_746f9bb71cff0b65fc6d84cec17b2b1c_rle_crop_4079827975_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/a9fa0087e03f168eb91853d70c6d9233_91311541.png imagette296803481766558821 29680350 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29680350 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400797493: '1766558465_386519_1400797376_86b03756c694a78dc2c5635bf732218e_rle_crop_4079826564_0.png', 1400797604: '1766558586_394769_1400797308_4f14069855f7f02b3b506127e3516848_rle_crop_4079827743_0.png', 1400797605: '1766558586_394769_1400797268_60b053a9d536f1c95c1f219cb61f6917_rle_crop_4079827794_0.png', 1400797667: '1766558708_398376_1400797449_ee4580d3a4f3b450c6966c7e199b45a0_rle_crop_4079829555_0.png', 1400797668: '1766558708_398376_1400797442_e6cd8a867339c65b34ff98e2da750932_rle_crop_4079829595_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/f60c58f1b24e32ab544ebbc75187da49_18295498.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/a1d100db4c49035366f8741f4cf55af2_4863780.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/ef9721ffc20b467cb27539ed18b3359d_4686886.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/c8ce3c170fabdc4536096ebd93d717ee_44145935.png change filename to text .imagette296803501766558821/ imagette296803501766558821/1766558586_394769_1400797268_60b053a9d536f1c95c1f219cb61f6917_rle_crop_4079827794_0.png.png imagette296803501766558821/1766558465_386519_1400797376_86b03756c694a78dc2c5635bf732218e_rle_crop_4079826564_0.png.png imagette296803501766558821/1766558708_398376_1400797442_e6cd8a867339c65b34ff98e2da750932_rle_crop_4079829595_0.png.png imagette296803501766558821/1766558708_398376_1400797449_ee4580d3a4f3b450c6966c7e199b45a0_rle_crop_4079829555_0.png.png imagette296803501766558821/1766558586_394769_1400797308_4f14069855f7f02b3b506127e3516848_rle_crop_4079827743_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/c904eb78264cce04d8abe199a99ff799_44183499.png imagette296803501766558821 29680351 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29680351 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400797494: '1766558465_386519_1400797348_7106ed87582e80435fddb00d39b10442_rle_crop_4079826594_0.png'} change filename to text .imagette296803511766558821/ imagette296803511766558821/1766558465_386519_1400797348_7106ed87582e80435fddb00d39b10442_rle_crop_4079826594_0.png.png imagette296803531766558822/ imagette296803541766558822/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/f5111102447797f14c9748d4a50e04c9_16180166.png imagette296803511766558821 29680353 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29680353 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296803531766558822 29680354 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29680354 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette296803541766558822 29680355 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29680355 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400797313: '1766558228_378384_1400797118_92b7c7e20ae499737ba832b314b91ffb_rle_crop_4079826043_0.png', 1400797314: '1766558228_378384_1400797118_92b7c7e20ae499737ba832b314b91ffb_rle_crop_4079826038_0.png', 1400797487: '1766558465_386519_1400797348_7106ed87582e80435fddb00d39b10442_rle_crop_4079826592_0.png', 1400797539: '1766558545_392483_1400797407_57b0f2aa5cd058e3a9c8ceecbd156428_rle_crop_4079826985_0.png', 1400797540: '1766558545_392483_1400797407_57b0f2aa5cd058e3a9c8ceecbd156428_rle_crop_4079826982_0.png', 1400797603: '1766558586_394769_1400797274_d5669512bf8de4ca7422cf81da16e332_rle_crop_4079827757_0.png', 1400797661: '1766558708_398376_1400797439_c911082957a23cac9c17647b9b75b198_rle_crop_4079829619_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/806a8f4292685c7e7bbe552ff9334354_36781163.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/0ea55e391de20ec05a87c73b7cebd1db_34102551.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/85ace5c068b2e6f8c5bc3579ab6e595a_87961376.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/329e6cbb8d4bedadf244340a56ab74df_54868115.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/6445fd7ed0b7fc5c9349a217061464fc_77444397.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/23a3c9fb43bf616024ef10a87e66d0a7_78554145.png change filename to text .imagette296803551766558822/ imagette296803551766558822/1766558228_378384_1400797118_92b7c7e20ae499737ba832b314b91ffb_rle_crop_4079826038_0.png.png imagette296803551766558822/1766558586_394769_1400797274_d5669512bf8de4ca7422cf81da16e332_rle_crop_4079827757_0.png.png imagette296803551766558822/1766558545_392483_1400797407_57b0f2aa5cd058e3a9c8ceecbd156428_rle_crop_4079826985_0.png.png imagette296803551766558822/1766558545_392483_1400797407_57b0f2aa5cd058e3a9c8ceecbd156428_rle_crop_4079826982_0.png.png imagette296803551766558822/1766558708_398376_1400797439_c911082957a23cac9c17647b9b75b198_rle_crop_4079829619_0.png.png imagette296803551766558822/1766558228_378384_1400797118_92b7c7e20ae499737ba832b314b91ffb_rle_crop_4079826043_0.png.png imagette296803551766558822/1766558465_386519_1400797348_7106ed87582e80435fddb00d39b10442_rle_crop_4079826592_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/78a356c55600c11bb9a6fce22eb58838_94129154.png imagette296803551766558822 29680343 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29680343 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400797283: '1766558185_375790_1400797137_1ab9f72f622bbf39701e5aeb9dc4a09e_rle_crop_4079825656_0.png', 1400797315: '1766558228_378384_1400797116_3227db93a54460a4fa9caa7fccaa7fea_rle_crop_4079826049_0.png', 1400797488: '1766558465_386519_1400797348_7106ed87582e80435fddb00d39b10442_rle_crop_4079826595_0.png', 1400797489: '1766558465_386519_1400797348_7106ed87582e80435fddb00d39b10442_rle_crop_4079826593_0.png', 1400797500: '1766558486_389008_1400797303_cffa01dc34e4f54ed9d55deaea445787_rle_crop_4079826752_0.png', 1400797501: '1766558486_389008_1400797293_8e619159dccb1a4884bb7da6f47ae980_rle_crop_4079826783_0.png', 1400797502: '1766558486_389008_1400797288_da973bcb9b12d1afd19575069e483b54_rle_crop_4079826797_0.png', 1400797612: '1766558667_395829_1400797473_b8291fd86f4c4bac2298670edbe3b50f_rle_crop_4079827902_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/e70e700bd85c60890427cb4d1a71a9a3_6228955.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/de073a089902a4996271a5e0bf64ce08_17105548.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/a4e5986d90ed5592a1659ebe8abca955_56259768.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/ac68b81c62e33b2403d91b525d30dd78_58262382.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/571865260c158dbc13e4e2f6a4a08499_85136191.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/b8760abba285cd49200e4666e783962f_91713039.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/8d0e4f56cc03a73d3fa7c58931e56d49_59868524.png change filename to text .imagette296803431766558822/ imagette296803431766558822/1766558667_395829_1400797473_b8291fd86f4c4bac2298670edbe3b50f_rle_crop_4079827902_0.png.png imagette296803431766558822/1766558486_389008_1400797288_da973bcb9b12d1afd19575069e483b54_rle_crop_4079826797_0.png.png imagette296803431766558822/1766558486_389008_1400797293_8e619159dccb1a4884bb7da6f47ae980_rle_crop_4079826783_0.png.png imagette296803431766558822/1766558486_389008_1400797303_cffa01dc34e4f54ed9d55deaea445787_rle_crop_4079826752_0.png.png imagette296803431766558822/1766558465_386519_1400797348_7106ed87582e80435fddb00d39b10442_rle_crop_4079826593_0.png.png imagette296803431766558822/1766558465_386519_1400797348_7106ed87582e80435fddb00d39b10442_rle_crop_4079826595_0.png.png imagette296803431766558822/1766558228_378384_1400797116_3227db93a54460a4fa9caa7fccaa7fea_rle_crop_4079826049_0.png.png imagette296803431766558822/1766558185_375790_1400797137_1ab9f72f622bbf39701e5aeb9dc4a09e_rle_crop_4079825656_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/7a1fe3328dbce180461fd70525b77798_73891295.png imagette296803431766558822 29680345 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29680345 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400797317: '1766558228_378384_1400797142_246800355fa5a5a372b79365a036a8aa_rle_crop_4079826009_0.png', 1400797319: '1766558228_378384_1400797142_246800355fa5a5a372b79365a036a8aa_rle_crop_4079826006_0.png', 1400797490: '1766558465_386519_1400797364_c86c6abe5ddb6308993ffb2645dd7b58_rle_crop_4079826575_0.png', 1400797491: '1766558465_386519_1400797348_7106ed87582e80435fddb00d39b10442_rle_crop_4079826596_0.png', 1400797492: '1766558465_386519_1400797348_7106ed87582e80435fddb00d39b10442_rle_crop_4079826597_0.png', 1400797614: '1766558667_395829_1400797473_b8291fd86f4c4bac2298670edbe3b50f_rle_crop_4079827903_0.png', 1400797665: '1766558708_398376_1400797477_ae23bd0b73c7da7130c719f780baa9a8_rle_crop_4079829540_0.png', 1400797666: '1766558708_398376_1400797446_07ecef6dfe53ada3937801d9d4c027e8_rle_crop_4079829587_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/17338fb5b8405954d45a92ff6a2ed62d_15048156.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/69583c2120484150121b3c6d5ab33a73_24460057.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/2d494fa0404969bcc7d460e70ac0275c_52144639.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/6905364f1254f2a7250d72cc5bca3552_85840378.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/61fbdca886931a37cb8fba20401d8427_18018916.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/bab084a78706c20fa1c31a935c888a08_14459712.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/994d72c1aebff745ea52bb7ffa5ade4f_96245901.png change filename to text .imagette296803451766558823/ imagette296803451766558823/1766558667_395829_1400797473_b8291fd86f4c4bac2298670edbe3b50f_rle_crop_4079827903_0.png.png imagette296803451766558823/1766558465_386519_1400797348_7106ed87582e80435fddb00d39b10442_rle_crop_4079826597_0.png.png imagette296803451766558823/1766558228_378384_1400797142_246800355fa5a5a372b79365a036a8aa_rle_crop_4079826009_0.png.png imagette296803451766558823/1766558465_386519_1400797348_7106ed87582e80435fddb00d39b10442_rle_crop_4079826596_0.png.png imagette296803451766558823/1766558708_398376_1400797446_07ecef6dfe53ada3937801d9d4c027e8_rle_crop_4079829587_0.png.png imagette296803451766558823/1766558708_398376_1400797477_ae23bd0b73c7da7130c719f780baa9a8_rle_crop_4079829540_0.png.png imagette296803451766558823/1766558228_378384_1400797142_246800355fa5a5a372b79365a036a8aa_rle_crop_4079826006_0.png.png imagette296803451766558823/1766558465_386519_1400797364_c86c6abe5ddb6308993ffb2645dd7b58_rle_crop_4079826575_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/5afed79a79733147fa08d57c6211602f_52168328.png imagette296803451766558823 29680349 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29680349 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1400797484: '1766558465_386519_1400797364_c86c6abe5ddb6308993ffb2645dd7b58_rle_crop_4079826573_0.png', 1400797485: '1766558465_386519_1400797348_7106ed87582e80435fddb00d39b10442_rle_crop_4079826604_0.png', 1400797486: '1766558465_386519_1400797348_7106ed87582e80435fddb00d39b10442_rle_crop_4079826603_0.png', 1400797535: '1766558545_392483_1400797417_c46f24dc7f49dae6b14351010618c420_rle_crop_4079826966_0.png', 1400797536: '1766558545_392483_1400797417_c46f24dc7f49dae6b14351010618c420_rle_crop_4079826962_0.png', 1400797537: '1766558545_392483_1400797410_25b24ac2131ec3600b9f632e3adf7492_rle_crop_4079826977_0.png', 1400797598: '1766558586_394769_1400797271_c5354a65ba8f1240887d39b625ec8627_rle_crop_4079827774_0.png', 1400797599: '1766558586_394769_1400797268_60b053a9d536f1c95c1f219cb61f6917_rle_crop_4079827790_0.png', 1400797600: '1766558586_394769_1400797264_46dbc508f4304347bfcbfee2df907873_rle_crop_4079827801_0.png', 1400797602: '1766558586_394769_1400797261_cbe92d32e23d544205f1fdce041dc4b9_rle_crop_4079827821_0.png', 1400797610: '1766558667_395829_1400797473_b8291fd86f4c4bac2298670edbe3b50f_rle_crop_4079827898_0.png', 1400797657: '1766558708_398376_1400797446_07ecef6dfe53ada3937801d9d4c027e8_rle_crop_4079829588_0.png', 1400797658: '1766558708_398376_1400797439_c911082957a23cac9c17647b9b75b198_rle_crop_4079829617_0.png', 1400797659: '1766558708_398376_1400797436_51b92bbbd58040c12c819bb0276a5a21_rle_crop_4079829637_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/53d7282c0deca83f65ea46bf5c2a4d19_61114916.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/396d33152f3d1c2d649add714496dd9c_9406295.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/d730d6074d8b448a1782d4471d8222f3_66767140.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/5b05a67ae9e42e1b6aa01562db2b0fb7_83511011.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/eab8be66ac5bb43fc833a5399d588dcf_1300869.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/3a12f634617d3ec1fdeef3f74e947bff_18070331.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/77cddff616633097d62a2b6ee832543e_96924480.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/98586a1114f30dfd853fec225e58c717_34939190.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/05e597ac61b45b5b36292dc8a8504296_25806480.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/2bfdba8335caab853832d6e4e9a6e73b_71827143.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/6ed1cb1d0882c57ad5a10dc5b695181b_92195824.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/2d87d02e65138f167541892afcac7c06_95509324.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/2db3f767bc43525279209dff6cedf6fe_48670399.png change filename to text .imagette296803491766558823/ imagette296803491766558823/1766558465_386519_1400797348_7106ed87582e80435fddb00d39b10442_rle_crop_4079826604_0.png.png imagette296803491766558823/1766558586_394769_1400797268_60b053a9d536f1c95c1f219cb61f6917_rle_crop_4079827790_0.png.png imagette296803491766558823/1766558545_392483_1400797417_c46f24dc7f49dae6b14351010618c420_rle_crop_4079826966_0.png.png imagette296803491766558823/1766558708_398376_1400797446_07ecef6dfe53ada3937801d9d4c027e8_rle_crop_4079829588_0.png.png imagette296803491766558823/1766558667_395829_1400797473_b8291fd86f4c4bac2298670edbe3b50f_rle_crop_4079827898_0.png.png imagette296803491766558823/1766558545_392483_1400797410_25b24ac2131ec3600b9f632e3adf7492_rle_crop_4079826977_0.png.png imagette296803491766558823/1766558465_386519_1400797348_7106ed87582e80435fddb00d39b10442_rle_crop_4079826603_0.png.png imagette296803491766558823/1766558465_386519_1400797364_c86c6abe5ddb6308993ffb2645dd7b58_rle_crop_4079826573_0.png.png imagette296803491766558823/1766558708_398376_1400797436_51b92bbbd58040c12c819bb0276a5a21_rle_crop_4079829637_0.png.png imagette296803491766558823/1766558545_392483_1400797417_c46f24dc7f49dae6b14351010618c420_rle_crop_4079826962_0.png.png imagette296803491766558823/1766558586_394769_1400797261_cbe92d32e23d544205f1fdce041dc4b9_rle_crop_4079827821_0.png.png imagette296803491766558823/1766558708_398376_1400797439_c911082957a23cac9c17647b9b75b198_rle_crop_4079829617_0.png.png imagette296803491766558823/1766558586_394769_1400797271_c5354a65ba8f1240887d39b625ec8627_rle_crop_4079827774_0.png.png imagette296803491766558823/1766558586_394769_1400797264_46dbc508f4304347bfcbfee2df907873_rle_crop_4079827801_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/449e76d323d9991131e8e6a8fe03ee99_95575152.png imagette296803491766558823 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29680333 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29680356,29680357,29680358,29680359,29680360,29680361,29680362,29680363,29680364,29680365,29680366,29680367?tags=Carton_gris,environnement,Carton_brun,mal_croppe,cartonnette,Teint_Dans_La_Masse,plastique,kraft,papier,metal,flou,autre_refus your option no_mail is active, we will not send the real mail to your client args[1400797718] : ('0.050813541685688975',) no score found for photo 1400797718 We are sending mail with results at report@fotonower.com args[1400797691] : ('0.050813541685688975',) no score found for photo 1400797691 We are sending mail with results at report@fotonower.com args[1400797688] : ('0.050813541685688975',) no score found for photo 1400797688 We are sending mail with results at report@fotonower.com args[1400797685] : ('0.050813541685688975',) no score found for photo 1400797685 We are sending mail with results at report@fotonower.com args[1400797672] : ('0.050813541685688975',) no score found for photo 1400797672 We are sending mail with results at report@fotonower.com args[1400797669] : ('0.050813541685688975',) no score found for photo 1400797669 We are sending mail with results at report@fotonower.com args[1400797649] : ('0.050813541685688975',) no score found for photo 1400797649 We are sending mail with results at report@fotonower.com args[1400797647] : ('0.050813541685688975',) no score found for photo 1400797647 We are sending mail with results at report@fotonower.com args[1400797639] : ('0.050813541685688975',) no score found for photo 1400797639 We are sending mail with results at report@fotonower.com args[1400797631] : ('0.050813541685688975',) no score found for photo 1400797631 We are sending mail with results at report@fotonower.com args[1400797626] : ('0.050813541685688975',) no score found for photo 1400797626 We are sending mail with results at report@fotonower.com args[1400797624] : ('0.050813541685688975',) no score found for photo 1400797624 We are sending mail with results at report@fotonower.com args[1400797596] : ('0.050813541685688975',) no score found for photo 1400797596 We are sending mail with results at report@fotonower.com args[1400797593] : ('0.050813541685688975',) no score found for photo 1400797593 We are sending mail with results at report@fotonower.com args[1400797589] : ('0.050813541685688975',) no score found for photo 1400797589 We are sending mail with results at report@fotonower.com args[1400797586] : ('0.050813541685688975',) no score found for photo 1400797586 We are sending mail with results at report@fotonower.com args[1400797583] : ('0.050813541685688975',) no score found for photo 1400797583 We are sending mail with results at report@fotonower.com args[1400797580] : ('0.050813541685688975',) no score found for photo 1400797580 We are sending mail with results at report@fotonower.com refus_total : 0.050813541685688975 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29680333 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29680333_24-12-2025_07_47_01.pdf results_Auto_P29680333_24-12-2025_07_47_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29680333_24-12-2025_07_47_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29680333','results_Auto_P29680333_24-12-2025_07_47_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29680333_24-12-2025_07_47_01.pdf','pdf','','0.26','0.050813541685688975') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29680333]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1400797718, 1400797691, 1400797688, 1400797685, 1400797672, 1400797669, 1400797649, 1400797647, 1400797639, 1400797631, 1400797626, 1400797624, 1400797596, 1400797593, 1400797589, 1400797586, 1400797583, 1400797580] map_info['map_portfolio_photo'] : {29680333: [1400797718, 1400797691, 1400797688, 1400797685, 1400797672, 1400797669, 1400797649, 1400797647, 1400797639, 1400797631, 1400797626, 1400797624, 1400797596, 1400797593, 1400797589, 1400797586, 1400797583, 1400797580, 1400797547, 1400797545, 1400797543, 1400797524, 1400797521, 1400797518, 1400797515, 1400797512, 1400797508, 1400797477, 1400797473, 1400797469, 1400797465, 1400797453, 1400797449, 1400797446, 1400797442, 1400797439, 1400797436, 1400797420, 1400797417, 1400797413, 1400797410, 1400797407, 1400797390, 1400797387, 1400797376, 1400797364, 1400797348, 1400797308, 1400797303, 1400797299, 1400797293, 1400797288, 1400797277, 1400797274, 1400797271, 1400797268, 1400797264, 1400797261, 1400797257, 1400797255, 1400797251, 1400797247, 1400797241, 1400797239, 1400797237, 1400797235, 1400797232, 1400797229, 1400797205, 1400797201, 1400797196, 1400797192, 1400797188, 1400797185, 1400797142, 1400797140, 1400797137, 1400797121, 1400797118, 1400797116, 1400797115, 1400797111, 1400797073, 1400797069]} final : False mtd_id 4302 list_pids : [1400797718, 1400797691, 1400797688, 1400797685, 1400797672, 1400797669, 1400797649, 1400797647, 1400797639, 1400797631, 1400797626, 1400797624, 1400797596, 1400797593, 1400797589, 1400797586, 1400797583, 1400797580] Looping around the photos to save general results len do output : 0 before output type Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797718', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797691', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797688', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797685', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797672', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797669', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797649', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797647', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797639', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797631', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797626', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797624', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797596', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797593', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797589', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797586', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797583', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797580', None, None, None, None, None, '4267656') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29680333', '1400797718', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797691', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797688', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797685', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797672', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797669', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797649', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797647', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797639', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797631', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797626', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797624', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797596', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797593', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797589', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797586', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797583', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797580', None, None, None, None, None, '4267656')] time used for this insertion : 0.019243240356445312 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.699498653411865 time spend to save output : 0.019754409790039062 total time spend for step 4 : 5.719253063201904 step5:split_time_score Wed Dec 24 07:47:06 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['29680333'] We expect there is only one output and this part is used while all output are not tuple or array Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 1 : VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : [('29680333',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29680333) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1400797691: {'path': 'temp/1766558820_1946242_1400797691_ef22c96be589b8c784e3e1975611f364.jpg', 'extension': 'jpg'}, 1400797718: {'path': 'temp/1766558820_1946242_1400797718_cb651f7f7a95759f7832ab9769214656.jpg', 'extension': 'jpg'}, 1400797631: {'path': 'temp/1766558820_1946242_1400797631_65a04aad800c70a1ce0799360cd09c75.jpg', 'extension': 'jpg'}, 1400797639: {'path': 'temp/1766558820_1946242_1400797639_7e679a89d7c4a771bcd4a8709de8650e.jpg', 'extension': 'jpg'}, 1400797647: {'path': 'temp/1766558820_1946242_1400797647_d34470797e8d8b3d5edc8c638191d320.jpg', 'extension': 'jpg'}, 1400797649: {'path': 'temp/1766558820_1946242_1400797649_8e1e72dabab7a5cde6182831b4ee1983.jpg', 'extension': 'jpg'}, 1400797593: {'path': 'temp/1766558820_1946242_1400797593_b4adb25e70196dc1f67609c8691f9fd2.jpg', 'extension': 'jpg'}, 1400797596: {'path': 'temp/1766558820_1946242_1400797596_3d40bf293f537c07ceb1e7ac4003e949.jpg', 'extension': 'jpg'}, 1400797624: {'path': 'temp/1766558820_1946242_1400797624_e02e71d1c96aa839ac59ceae11636c6f.jpg', 'extension': 'jpg'}, 1400797626: {'path': 'temp/1766558820_1946242_1400797626_93f8c478b8b487d4f6660e0db64229e3.jpg', 'extension': 'jpg'}, 1400797580: {'path': 'temp/1766558820_1946242_1400797580_ef1ade69dbf107509f0c09d646554e5e.jpg', 'extension': 'jpg'}, 1400797583: {'path': 'temp/1766558820_1946242_1400797583_ca5816fb3dbbdc2e806ecb3d4de8fe30.jpg', 'extension': 'jpg'}, 1400797586: {'path': 'temp/1766558820_1946242_1400797586_c7d49ca8237e43467434102366c07f09.jpg', 'extension': 'jpg'}, 1400797589: {'path': 'temp/1766558820_1946242_1400797589_60a9cbd6ac236252c90b0c00a4de4d46.jpg', 'extension': 'jpg'}, 1400797669: {'path': 'temp/1766558820_1946242_1400797669_17e315b955a4815db5944580b1a11c5a.jpg', 'extension': 'jpg'}, 1400797672: {'path': 'temp/1766558820_1946242_1400797672_056477f888d27734113e075930fbef3d.jpg', 'extension': 'jpg'}, 1400797685: {'path': 'temp/1766558820_1946242_1400797685_9068f7efc8f29b14110bb3994bf30199.jpg', 'extension': 'jpg'}, 1400797688: {'path': 'temp/1766558820_1946242_1400797688_05207cfe8e14f38ebc756dc030857318.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} begin split time score SELECT app_name, token FROM MTRUser.mtr_app_api_token WHERE mtr_user_id=979 AND app_name="token_split_time_score" AND expire_at > NOW() select distinct dp.name from MTRPhoto.dashboard_entry_day ded, MTRPhoto.dashboard_places dp, MTRPhoto.dashboard_results dr where ded.dashboard_place_id = dp.id and ded.last_run_id = dr.dashboard_run_id and dp.id = ded.dashboard_place_id and dr.mtr_portfolio_id = 29680333; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29680333 group by h (('07', 84),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29680333 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (29680333) AND cps.thcl in (861) order by cps.score desc LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (29680333) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24122025 29680333 Nombre de photos uploadées : 84 / 23040 (0%) 24122025 29680333 Nombre de photos taguées (types de déchets): 0 / 84 (0%) 24122025 29680333 Nombre de photos taguées (volume) : 0 / 84 (0%) [{'photo_id': 1400797073, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/95c39687018fabc90825be349fcac7bc.jpg', 'username': None, 'uploaded_at': 1766557867, 'text': 'image_24122025_07_30_14_10141.jpg'}, {'photo_id': 1400797069, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/6a4ed61165babda9dce55bf558d63730.jpg', 'username': None, 'uploaded_at': 1766557867, 'text': 'image_24122025_07_30_23_9126.jpg'}, {'photo_id': 1400797121, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/01128dbee6143e5c7b688449d9bde1f6.jpg', 'username': None, 'uploaded_at': 1766557927, 'text': 'image_24122025_07_30_33_10138.jpg'}, {'photo_id': 1400797118, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/24/92b7c7e20ae499737ba832b314b91ffb.jpg', 'username': None, 'uploaded_at': 1766557927, 'text': 'image_24122025_07_31_04_010144m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 9.298324584960938e-06 ???????????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0028455257415771484 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29680333, '2025-12-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-24' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2781885,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2409381866455078 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 2781885 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29668057, 'dashboard_result_id': 18687964, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668057_24-12-2025_06_15_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668070, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668074, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29668522, 'dashboard_result_id': 18687965, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668522_24-12-2025_06_15_44.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668536, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29668997, 'dashboard_result_id': 18687966, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668997_24-12-2025_06_16_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669015, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29669483, 'dashboard_result_id': 18687967, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29669483_24-12-2025_06_16_14.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669495, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669502, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29670567, 'dashboard_result_id': 18687968, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29670567_24-12-2025_06_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670580, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29670856, 'dashboard_result_id': 18687969, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29670856_24-12-2025_06_17_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670872, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29671273, 'dashboard_result_id': 18687970, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29671273_24-12-2025_06_18_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671357, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29671897, 'dashboard_result_id': 18687971, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29671897_24-12-2025_06_18_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671928, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671932, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671936, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29672417, 'dashboard_result_id': 18687972, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29672417_24-12-2025_06_19_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29672424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672431, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672435, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29672816, 'dashboard_result_id': 18687973, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29672816_24-12-2025_06_20_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29672850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672851, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672852, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29673237, 'dashboard_result_id': 18687974, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29673237_24-12-2025_06_20_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29673238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29673239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29673240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29673241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29673242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29673243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29673244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29673245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29673246, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29673247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29673248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29673249, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29673713, 'dashboard_result_id': 18687975, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29673713_24-12-2025_06_20_40.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29673721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29673722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29673723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29673724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29673725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29673726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29673727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29673728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29673729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29673730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29673731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29673732, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29674114, 'dashboard_result_id': 18687976, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674114_24-12-2025_06_21_10.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674147, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674150, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29674573, 'dashboard_result_id': 18687977, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674573_24-12-2025_06_21_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674609, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29674924, 'dashboard_result_id': 18687978, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674924_24-12-2025_06_22_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674946, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29676059, 'dashboard_result_id': 18687979, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676059_24-12-2025_06_22_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676075, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29676249, 'dashboard_result_id': 18687980, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676249_24-12-2025_06_23_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676255, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676261, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676263, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676265, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29676605, 'dashboard_result_id': 18687981, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676605_24-12-2025_05_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676609, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676620, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29676944, 'dashboard_result_id': 18687982, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676944_24-12-2025_06_03_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676957, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676961, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29677291, 'dashboard_result_id': 18687983, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29677291_24-12-2025_06_19_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29677295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29677296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29677297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29677298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29677299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29677300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29677301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29677302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29677303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29677304, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29677305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29677306, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29677990, 'dashboard_result_id': 18687984, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29677990_24-12-2025_06_33_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29677991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29677992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29677993, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29677994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29677995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29677996, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29677997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29677998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29677999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29678000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29678001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29678002, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29678443, 'dashboard_result_id': 18687985, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29678443_24-12-2025_06_47_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29678447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29678448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29678449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29678450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29678451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29678452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29678453, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29678454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29678455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29678456, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29678457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29678458, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29678824, 'dashboard_result_id': 18687986, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29678824_24-12-2025_07_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29678835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29678836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29678837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29678839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29678840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29678841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29678843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29678844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29678845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29678846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29678847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29678848, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29679327, 'dashboard_result_id': 18687987, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29679327_24-12-2025_07_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29679338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29679339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29679340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29679341, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29679342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29679343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29679344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29679345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29679346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29679347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29679348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29679349, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29679903, 'dashboard_result_id': 18687988, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29679903_24-12-2025_07_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29679951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29679952, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29679953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29679954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29679955, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29679956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29679957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29679958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29679959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29679960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29679961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29679962, 'pht': 3726}}"}, {'dashboat_entry_day': 2781885, 'dashboard_run_id': 2790428, 'mtr_portfolio_id': 29680333, 'dashboard_result_id': 18687989, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29680333_24-12-2025_07_45_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29680343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29680344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29680345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29680347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29680348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29680349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29680350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29680351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29680352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29680353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29680354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29680355, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29668057 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267086, 'mtr_portfolio_id': 29668057, 'created_at': datetime.datetime(2025, 12, 24, 6, 15, 28), 'result': '0.056566105961286396', 'result_long': None, 'result_double': None}] Qualite : 0.056566105961286396 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29668057 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668057_24-12-2025_06_15_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29668057 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668057_24-12-2025_06_15_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668070, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668074, 'pht': 3726}}" where mtr_portfolio_id = 29668057 and dashboard_run_id = 2790428 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29668057 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687964, 0.056566105961286396, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668057_24-12-2025_06_15_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668070, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668074, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29668522 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267087, 'mtr_portfolio_id': 29668522, 'created_at': datetime.datetime(2025, 12, 24, 6, 15, 41), 'result': '0.04826368616370642', 'result_long': None, 'result_double': None}] Qualite : 0.04826368616370642 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29668522 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668522_24-12-2025_06_15_44.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29668522 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668522_24-12-2025_06_15_44.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668536, 'pht': 3726}}" where mtr_portfolio_id = 29668522 and dashboard_run_id = 2790428 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29668522 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687965, 0.04826368616370642, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668522_24-12-2025_06_15_44.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29668525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29668526, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29668527, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29668528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29668529, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29668530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29668531, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29668532, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29668533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29668534, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29668535, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29668536, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29668997 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267088, 'mtr_portfolio_id': 29668997, 'created_at': datetime.datetime(2025, 12, 24, 6, 16, 1), 'result': '0.03287678057346318', 'result_long': None, 'result_double': None}] Qualite : 0.03287678057346318 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29668997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668997_24-12-2025_06_16_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29668997 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668997_24-12-2025_06_16_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669015, 'pht': 3726}}" where mtr_portfolio_id = 29668997 and dashboard_run_id = 2790428 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29668997 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687966, 0.03287678057346318, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29668997_24-12-2025_06_16_04.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669008, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669010, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669015, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29669483 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267089, 'mtr_portfolio_id': 29669483, 'created_at': datetime.datetime(2025, 12, 24, 6, 16, 12), 'result': '0.048925829603087334', 'result_long': None, 'result_double': None}] Qualite : 0.048925829603087334 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29669483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29669483_24-12-2025_06_16_14.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29669483 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29669483_24-12-2025_06_16_14.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669495, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669502, 'pht': 3726}}" where mtr_portfolio_id = 29669483 and dashboard_run_id = 2790428 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29669483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687967, 0.048925829603087334, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29669483_24-12-2025_06_16_14.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29669490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29669491, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29669492, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29669493, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29669494, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29669495, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29669496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29669497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29669498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29669500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29669501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29669502, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29670567 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267090, 'mtr_portfolio_id': 29670567, 'created_at': datetime.datetime(2025, 12, 24, 6, 16, 59), 'result': '0.044259486905506754', 'result_long': None, 'result_double': None}] Qualite : 0.044259486905506754 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29670567 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29670567_24-12-2025_06_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29670567 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29670567_24-12-2025_06_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670580, 'pht': 3726}}" where mtr_portfolio_id = 29670567 and dashboard_run_id = 2790428 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29670567 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687968, 0.044259486905506754, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29670567_24-12-2025_06_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670571, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670580, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29670856 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267091, 'mtr_portfolio_id': 29670856, 'created_at': datetime.datetime(2025, 12, 24, 6, 17, 30), 'result': '0.07258412695769856', 'result_long': None, 'result_double': None}] Qualite : 0.07258412695769856 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29670856 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29670856_24-12-2025_06_17_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29670856 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29670856_24-12-2025_06_17_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670872, 'pht': 3726}}" where mtr_portfolio_id = 29670856 and dashboard_run_id = 2790428 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29670856 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687969, 0.07258412695769856, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29670856_24-12-2025_06_17_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29670861, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29670862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29670863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29670864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29670865, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29670866, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29670867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29670868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29670869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29670870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29670871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29670872, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29671273 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267092, 'mtr_portfolio_id': 29671273, 'created_at': datetime.datetime(2025, 12, 24, 6, 17, 59), 'result': '0.039749051134549546', 'result_long': None, 'result_double': None}] Qualite : 0.039749051134549546 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29671273 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29671273_24-12-2025_06_18_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29671273 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29671273_24-12-2025_06_18_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671357, 'pht': 3726}}" where mtr_portfolio_id = 29671273 and dashboard_run_id = 2790428 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29671273 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687970, 0.039749051134549546, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29671273_24-12-2025_06_18_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671356, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671357, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29671897 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267093, 'mtr_portfolio_id': 29671897, 'created_at': datetime.datetime(2025, 12, 24, 6, 18, 30), 'result': '0.03297138125188313', 'result_long': None, 'result_double': None}] Qualite : 0.03297138125188313 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29671897 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29671897_24-12-2025_06_18_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29671897 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29671897_24-12-2025_06_18_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671928, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671932, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671936, 'pht': 3726}}" where mtr_portfolio_id = 29671897 and dashboard_run_id = 2790428 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29671897 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687971, 0.03297138125188313, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29671897_24-12-2025_06_18_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29671925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29671926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29671927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29671928, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29671929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29671930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29671931, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29671932, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29671933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29671934, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29671935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29671936, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29672417 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267094, 'mtr_portfolio_id': 29672417, 'created_at': datetime.datetime(2025, 12, 24, 6, 19, 28), 'result': '0.04914145883397459', 'result_long': None, 'result_double': None}] Qualite : 0.04914145883397459 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29672417 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29672417_24-12-2025_06_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29672417 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29672417_24-12-2025_06_19_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29672424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672431, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672435, 'pht': 3726}}" where mtr_portfolio_id = 29672417 and dashboard_run_id = 2790428 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29672417 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687972, 0.04914145883397459, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29672417_24-12-2025_06_19_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29672424, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672426, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672431, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672433, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672434, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672435, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29672816 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267095, 'mtr_portfolio_id': 29672816, 'created_at': datetime.datetime(2025, 12, 24, 6, 19, 58), 'result': '0.044191773702888', 'result_long': None, 'result_double': None}] Qualite : 0.044191773702888 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29672816 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29672816_24-12-2025_06_20_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29672816 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29672816_24-12-2025_06_20_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29672850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672851, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672852, 'pht': 3726}}" where mtr_portfolio_id = 29672816 and dashboard_run_id = 2790428 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29672816 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687973, 0.044191773702888, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29672816_24-12-2025_06_20_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29672841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29672842, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29672843, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29672844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29672845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29672846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29672847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29672848, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29672849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29672850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29672851, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29672852, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29673237 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267096, 'mtr_portfolio_id': 29673237, 'created_at': datetime.datetime(2025, 12, 24, 6, 20, 31), 'result': '0.04527201354725659', 'result_long': None, 'result_double': None}] Qualite : 0.04527201354725659 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29673237 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29673237_24-12-2025_06_20_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29673237 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29673237_24-12-2025_06_20_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29673238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29673239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29673240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29673241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29673242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29673243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29673244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29673245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29673246, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29673247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29673248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29673249, 'pht': 3726}}" where mtr_portfolio_id = 29673237 and dashboard_run_id = 2790428 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29673237 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687974, 0.04527201354725659, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29673237_24-12-2025_06_20_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29673238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29673239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29673240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29673241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29673242, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29673243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29673244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29673245, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29673246, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29673247, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29673248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29673249, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29673713 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267097, 'mtr_portfolio_id': 29673713, 'created_at': datetime.datetime(2025, 12, 24, 6, 20, 37), 'result': '0.04661127692634562', 'result_long': None, 'result_double': None}] Qualite : 0.04661127692634562 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29673713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29673713_24-12-2025_06_20_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29673713 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29673713_24-12-2025_06_20_40.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29673721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29673722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29673723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29673724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29673725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29673726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29673727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29673728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29673729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29673730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29673731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29673732, 'pht': 3726}}" where mtr_portfolio_id = 29673713 and dashboard_run_id = 2790428 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29673713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687975, 0.04661127692634562, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29673713_24-12-2025_06_20_40.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29673721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29673722, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29673723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29673724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29673725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29673726, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29673727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29673728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29673729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29673730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29673731, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29673732, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29674114 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267098, 'mtr_portfolio_id': 29674114, 'created_at': datetime.datetime(2025, 12, 24, 6, 21, 8), 'result': '0.06318688977928995', 'result_long': None, 'result_double': None}] Qualite : 0.06318688977928995 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29674114 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674114_24-12-2025_06_21_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29674114 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674114_24-12-2025_06_21_10.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674147, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674150, 'pht': 3726}}" where mtr_portfolio_id = 29674114 and dashboard_run_id = 2790428 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29674114 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687976, 0.06318688977928995, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674114_24-12-2025_06_21_10.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674139, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674140, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674147, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674150, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29674573 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267099, 'mtr_portfolio_id': 29674573, 'created_at': datetime.datetime(2025, 12, 24, 6, 21, 30), 'result': '0.04486034774095136', 'result_long': None, 'result_double': None}] Qualite : 0.04486034774095136 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29674573 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674573_24-12-2025_06_21_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29674573 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674573_24-12-2025_06_21_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674609, 'pht': 3726}}" where mtr_portfolio_id = 29674573 and dashboard_run_id = 2790428 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29674573 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687977, 0.04486034774095136, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674573_24-12-2025_06_21_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674603, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674609, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29674924 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4266755, 'mtr_portfolio_id': 29674924, 'created_at': datetime.datetime(2025, 12, 24, 7, 31, 8), 'result': '0.03948522045733863', 'result_long': None, 'result_double': None}] Qualite : 0.03948522045733863 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29674924 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674924_24-12-2025_07_31_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29674924 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674924_24-12-2025_07_31_08.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674946, 'pht': 3726}}" where mtr_portfolio_id = 29674924 and dashboard_run_id = 2790428 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29674924 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687978, 0.03948522045733863, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29674924_24-12-2025_07_31_08.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29674935, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29674936, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29674937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29674938, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29674939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29674940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29674941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29674942, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29674943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29674944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29674945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29674946, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29676059 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267101, 'mtr_portfolio_id': 29676059, 'created_at': datetime.datetime(2025, 12, 24, 6, 22, 29), 'result': '0.047426909881546776', 'result_long': None, 'result_double': None}] Qualite : 0.047426909881546776 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29676059 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676059_24-12-2025_06_22_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29676059 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676059_24-12-2025_06_22_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676075, 'pht': 3726}}" where mtr_portfolio_id = 29676059 and dashboard_run_id = 2790428 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29676059 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687979, 0.047426909881546776, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676059_24-12-2025_06_22_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676064, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676066, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676071, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676074, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676075, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29676249 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267102, 'mtr_portfolio_id': 29676249, 'created_at': datetime.datetime(2025, 12, 24, 6, 23, 27), 'result': '0.05374626206057579', 'result_long': None, 'result_double': None}] Qualite : 0.05374626206057579 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29676249 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676249_24-12-2025_06_23_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29676249 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676249_24-12-2025_06_23_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676255, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676261, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676263, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676265, 'pht': 3726}}" where mtr_portfolio_id = 29676249 and dashboard_run_id = 2790428 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29676249 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687980, 0.05374626206057579, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676249_24-12-2025_06_23_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676255, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676260, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676261, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676263, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676265, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29676605 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267007, 'mtr_portfolio_id': 29676605, 'created_at': datetime.datetime(2025, 12, 24, 5, 46, 59), 'result': '0.055085492698470476', 'result_long': None, 'result_double': None}] Qualite : 0.055085492698470476 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29676605 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676605_24-12-2025_05_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29676605 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676605_24-12-2025_05_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676609, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676620, 'pht': 3726}}" where mtr_portfolio_id = 29676605 and dashboard_run_id = 2790428 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29676605 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687981, 0.055085492698470476, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676605_24-12-2025_05_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676609, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676612, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676620, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29676944 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267177, 'mtr_portfolio_id': 29676944, 'created_at': datetime.datetime(2025, 12, 24, 6, 3, 31), 'result': '0.05273914721058831', 'result_long': None, 'result_double': None}] Qualite : 0.05273914721058831 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29676944 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676944_24-12-2025_06_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29676944 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676944_24-12-2025_06_03_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676957, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676961, 'pht': 3726}}" where mtr_portfolio_id = 29676944 and dashboard_run_id = 2790428 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29676944 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687982, 0.05273914721058831, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29676944_24-12-2025_06_03_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29676950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29676951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29676952, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29676953, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29676954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29676955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29676956, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29676957, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29676958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29676959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29676960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29676961, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29677291 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267259, 'mtr_portfolio_id': 29677291, 'created_at': datetime.datetime(2025, 12, 24, 6, 19, 28), 'result': '0.04435047120235169', 'result_long': None, 'result_double': None}] Qualite : 0.04435047120235169 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29677291 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29677291_24-12-2025_06_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29677291 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29677291_24-12-2025_06_19_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29677295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29677296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29677297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29677298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29677299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29677300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29677301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29677302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29677303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29677304, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29677305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29677306, 'pht': 3726}}" where mtr_portfolio_id = 29677291 and dashboard_run_id = 2790428 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29677291 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687983, 0.04435047120235169, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29677291_24-12-2025_06_19_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29677295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29677296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29677297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29677298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29677299, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29677300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29677301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29677302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29677303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29677304, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29677305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29677306, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29677990 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267325, 'mtr_portfolio_id': 29677990, 'created_at': datetime.datetime(2025, 12, 24, 6, 33, 33), 'result': '0.05955761834343481', 'result_long': None, 'result_double': None}] Qualite : 0.05955761834343481 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29677990 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29677990_24-12-2025_06_33_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29677990 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29677990_24-12-2025_06_33_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29677991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29677992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29677993, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29677994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29677995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29677996, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29677997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29677998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29677999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29678000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29678001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29678002, 'pht': 3726}}" where mtr_portfolio_id = 29677990 and dashboard_run_id = 2790428 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29677990 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687984, 0.05955761834343481, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29677990_24-12-2025_06_33_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29677991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29677992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29677993, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29677994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29677995, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29677996, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29677997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29677998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29677999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29678000, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29678001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29678002, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29678443 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267384, 'mtr_portfolio_id': 29678443, 'created_at': datetime.datetime(2025, 12, 24, 6, 47, 32), 'result': '0.04582887920520022', 'result_long': None, 'result_double': None}] Qualite : 0.04582887920520022 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29678443 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29678443_24-12-2025_06_47_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29678443 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29678443_24-12-2025_06_47_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29678447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29678448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29678449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29678450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29678451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29678452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29678453, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29678454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29678455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29678456, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29678457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29678458, 'pht': 3726}}" where mtr_portfolio_id = 29678443 and dashboard_run_id = 2790428 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29678443 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687985, 0.04582887920520022, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29678443_24-12-2025_06_47_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29678447, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29678448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29678449, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29678450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29678451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29678452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29678453, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29678454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29678455, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29678456, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29678457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29678458, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29678824 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267441, 'mtr_portfolio_id': 29678824, 'created_at': datetime.datetime(2025, 12, 24, 7, 2, 57), 'result': '0.05828837733641411', 'result_long': None, 'result_double': None}] Qualite : 0.05828837733641411 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29678824 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29678824_24-12-2025_07_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29678824 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29678824_24-12-2025_07_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29678835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29678836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29678837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29678839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29678840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29678841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29678843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29678844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29678845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29678846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29678847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29678848, 'pht': 3726}}" where mtr_portfolio_id = 29678824 and dashboard_run_id = 2790428 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29678824 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687986, 0.05828837733641411, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29678824_24-12-2025_07_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29678835, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29678836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29678837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29678839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29678840, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29678841, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29678843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29678844, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29678845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29678846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29678847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29678848, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29679327 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267516, 'mtr_portfolio_id': 29679327, 'created_at': datetime.datetime(2025, 12, 24, 7, 18, 59), 'result': '0.048469589906602065', 'result_long': None, 'result_double': None}] Qualite : 0.048469589906602065 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29679327 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29679327_24-12-2025_07_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29679327 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29679327_24-12-2025_07_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29679338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29679339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29679340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29679341, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29679342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29679343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29679344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29679345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29679346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29679347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29679348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29679349, 'pht': 3726}}" where mtr_portfolio_id = 29679327 and dashboard_run_id = 2790432 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29679327 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687987, 0.048469589906602065, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29679327_24-12-2025_07_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29679338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29679339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29679340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29679341, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29679342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29679343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29679344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29679345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29679346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29679347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29679348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29679349, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29679903 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267610, 'mtr_portfolio_id': 29679903, 'created_at': datetime.datetime(2025, 12, 24, 7, 32, 59), 'result': '0.045728580291575206', 'result_long': None, 'result_double': None}] Qualite : 0.045728580291575206 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29679903 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29679903_24-12-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29679903 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29679903_24-12-2025_07_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29679951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29679952, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29679953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29679954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29679955, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29679956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29679957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29679958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29679959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29679960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29679961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29679962, 'pht': 3726}}" where mtr_portfolio_id = 29679903 and dashboard_run_id = 2790432 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29679903 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687988, 0.045728580291575206, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29679903_24-12-2025_07_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29679951, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29679952, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29679953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29679954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29679955, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29679956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29679957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29679958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29679959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29679960, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29679961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29679962, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29680333 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4267656, 'mtr_portfolio_id': 29680333, 'created_at': datetime.datetime(2025, 12, 24, 7, 47), 'result': '0.050813541685688975', 'result_long': None, 'result_double': None}] Qualite : 0.050813541685688975 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29680333 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29680333_24-12-2025_07_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29680333 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29680333_24-12-2025_07_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29680343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29680344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29680345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29680347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29680348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29680349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29680350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29680351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29680352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29680353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29680354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29680355, 'pht': 3726}}" where mtr_portfolio_id = 29680333 and dashboard_run_id = 2790432 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29680333 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18687989, 0.050813541685688975, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29680333_24-12-2025_07_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29680343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29680344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29680345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29680347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29680348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29680349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29680350, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29680351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29680352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29680353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29680354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29680355, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29668057,29668522,29668997,29669483,29670567,29670856,29671273,29671897,29672417,29672816,29673237,29673713,29674114,29674573,29674924,29676059,29676249,29676605,29676944,29677291,29677990,29678443,29678824,29679327,29679903,29680333) result : ((1400757182,), (1400757200,), (1400757201,), (1400757219,), (1400757222,), (1400757225,), (1400757229,), (1400757233,), (1400757235,), (1400757291,), (1400757316,), (1400757349,), (1400757377,), (1400757746,), (1400757819,), (1400757890,), (1400757967,), (1400758048,), (1400758117,), (1400758458,), (1400758524,), (1400758596,), (1400758705,), (1400758733,), (1400758760,), (1400758785,), (1400759140,), (1400759145,), (1400759284,), (1400759286,), (1400759288,), (1400759291,), (1400759295,), (1400759299,), (1400759375,), (1400759403,), (1400759434,), (1400759459,), (1400759715,), (1400759753,), (1400759789,), (1400759925,), (1400759927,), (1400759938,), (1400759965,), (1400760110,), (1400760118,), (1400760120,), (1400760144,), (1400760148,), (1400760152,), (1400760155,), (1400760368,), (1400760397,), (1400760424,), (1400760451,), (1400760481,), (1400760511,), (1400760514,), (1400760517,), (1400760521,), (1400760525,), (1400760530,), (1400760537,), (1400760539,), (1400760555,), (1400760546,), (1400760549,), (1400760552,), (1400760570,), (1400760573,), (1400760578,), (1400760581,), (1400760587,), (1400760590,), (1400760617,), (1400760620,), (1400760622,), (1400760668,), (1400760698,), (1400760726,), (1400760758,), (1400760868,), (1400760871,), (1400760873,), (1400760876,), (1400760902,), (1400761049,), (1400761051,), (1400761053,), (1400761055,), (1400761057,), (1400761059,), (1400761079,), (1400761085,), (1400761088,), (1400761091,), (1400761101,), (1400761103,), (1400761105,), (1400761107,), (1400761110,), (1400761116,), (1400761119,), (1400761121,), (1400761136,), (1400761138,), (1400761141,), (1400761143,), (1400761147,), (1400761150,), (1400761161,), (1400761164,), (1400761168,), (1400761172,), (1400761178,), (1400761181,), (1400761197,), (1400761201,), (1400761204,), (1400761213,), (1400761218,), (1400761228,), (1400761254,), (1400761281,), (1400761316,), (1400761624,), (1400761628,), (1400761633,), (1400761676,), (1400761703,), (1400761715,), (1400761917,), (1400761949,), (1400761978,), (1400761984,), (1400761987,), (1400762060,), (1400762070,), (1400762540,), (1400762554,), (1400762557,), (1400762466,), (1400762498,), (1400762529,), (1400762534,), (1400762538,), (1400762570,), (1400762581,), (1400762583,), (1400762585,), (1400762587,), (1400762597,), (1400762598,), (1400762601,), (1400762605,), (1400762621,), (1400762623,), (1400762625,), (1400762654,), (1400762675,), (1400762703,), (1400762731,), (1400762761,), (1400762788,), (1400762795,), (1400762797,), (1400762799,), (1400762812,), (1400762815,), (1400762818,), (1400762820,), (1400762822,), (1400762824,), (1400762835,), (1400762838,), (1400762840,), (1400762842,), (1400762864,), (1400762866,), (1400762869,), (1400762876,), (1400762881,), (1400762957,), (1400762961,), (1400762965,), (1400762969,), (1400762973,), (1400762975,), (1400762988,), (1400762997,), (1400763003,), (1400763005,), (1400763021,), (1400763023,), (1400763025,), (1400763027,), (1400763030,), (1400763033,), (1400763051,), (1400763054,), (1400763057,), (1400763059,), (1400763062,), (1400763085,), (1400763088,), (1400763090,), (1400763092,), (1400763095,), (1400763098,), (1400763113,), (1400763120,), (1400763125,), (1400763147,), (1400763152,), (1400763156,), (1400763160,), (1400763163,), (1400763165,), (1400763198,), (1400763201,), (1400763204,), (1400763222,), (1400763239,), (1400763246,), (1400763248,), (1400763250,), (1400763253,), (1400763281,), (1400763190,), (1400763192,), (1400763195,), (1400763263,), (1400763266,), (1400763268,), (1400763276,), (1400763292,), (1400763341,), (1400763403,), (1400763450,), (1400763453,), (1400763474,), (1400763522,), (1400763528,), (1400763617,), (1400763620,), (1400763622,), (1400763626,), (1400763628,), (1400763631,), (1400763649,), (1400763653,), (1400763657,), (1400763663,), (1400763668,), (1400763670,), (1400763687,), (1400763692,), (1400763697,), (1400763728,), (1400763755,), (1400763758,), (1400763784,), (1400763790,), (1400763794,), (1400763798,), (1400763802,), (1400763804,), (1400763807,), (1400763822,), (1400763845,), (1400763848,), (1400763851,), (1400763870,), (1400763880,), (1400763890,), (1400763918,), (1400763922,), (1400763925,), (1400763930,), (1400763934,), (1400763949,), (1400765913,), (1400765916,), (1400765918,), (1400765937,), (1400765940,), (1400765944,), (1400765948,), (1400765972,), (1400765976,), (1400765995,), (1400765999,), (1400766004,), (1400766009,), (1400766026,), (1400766030,), (1400766034,), (1400766038,), (1400766054,), (1400766058,), (1400766061,), (1400766087,), (1400766089,), (1400766091,), (1400766094,), (1400766098,), (1400766102,), (1400766112,), (1400766115,), (1400766118,), (1400766121,), (1400766150,), (1400766154,), (1400766155,), (1400766158,), (1400766160,), (1400766175,), (1400766177,), (1400766178,), (1400766201,), (1400766210,), (1400766213,), (1400766216,), (1400766218,), (1400766220,), (1400766238,), (1400766241,), (1400766244,), (1400766248,), (1400766252,), (1400766256,), (1400766272,), (1400766274,), (1400766276,), (1400766295,), (1400766298,), (1400766301,), (1400766357,), (1400766340,), (1400766347,), (1400766355,), (1400766373,), (1400766375,), (1400766377,), (1400766381,), (1400766402,), (1400766412,), (1400766415,), (1400766441,), (1400766445,), (1400766449,), (1400766453,), (1400766477,), (1400766479,), (1400766481,), (1400766500,), (1400766504,), (1400766509,), (1400766515,), (1400766519,), (1400766521,), (1400766544,), (1400766548,), (1400766551,), (1400766567,), (1400766569,), (1400766571,), (1400766574,), (1400766601,), (1400766604,), (1400766607,), (1400766610,), (1400766632,), (1400766636,), (1400766640,), (1400766644,), (1400766648,), (1400766651,), (1400766654,), (1400766670,), (1400766673,), (1400766676,), (1400766678,), (1400766681,), (1400766684,), (1400766692,), (1400766695,), (1400766698,), (1400766702,), (1400766738,), (1400766741,), (1400766744,), (1400766748,), (1400766752,), (1400766756,), (1400766923,), (1400766958,), (1400766989,), (1400767018,), (1400767143,), (1400767124,), (1400767136,), (1400767140,), (1400767157,), (1400767184,), (1400767211,), (1400767240,), (1400767268,), (1400767486,), (1400768100,), (1400768152,), (1400768180,), (1400768206,), (1400768228,), (1400768428,), (1400768456,), (1400768482,), (1400768529,), (1400768558,), (1400768594,), (1400768660,), (1400768669,), (1400768679,), (1400768706,), (1400768782,), (1400768830,), (1400768898,), (1400768964,), (1400769266,), (1400769304,), (1400769344,), (1400769385,), (1400769568,), (1400769571,), (1400769574,), (1400769617,), (1400769668,), (1400769709,), (1400769846,), (1400769867,), (1400769871,), (1400769875,), (1400769879,), (1400769892,), (1400769896,), (1400769905,), (1400769915,), (1400769930,), (1400769941,), (1400769948,), (1400769960,), (1400769963,), (1400769966,), (1400769973,), (1400769974,), (1400769979,), (1400769993,), (1400769997,), (1400770000,), (1400770001,), (1400770002,), (1400770004,), (1400770007,), (1400770016,), (1400770019,), (1400770041,), (1400770050,), (1400770055,), (1400770058,), (1400770062,), (1400770066,), (1400770082,), (1400770092,), (1400770095,), (1400770097,), (1400770100,), (1400770104,), (1400770141,), (1400770121,), (1400770128,), (1400770134,), (1400770137,), (1400770155,), (1400770159,), (1400770161,), (1400770165,), (1400770168,), (1400770187,), (1400770190,), (1400770192,), (1400770197,), (1400770207,), (1400770216,), (1400770229,), (1400770237,), (1400770241,), (1400770246,), (1400770250,), (1400770266,), (1400770269,), (1400770272,), (1400770275,), (1400770279,), (1400770283,), (1400770300,), (1400770302,), (1400770304,), (1400770307,), (1400770310,), (1400770312,), (1400770319,), (1400770320,), (1400770321,), (1400770324,), (1400770343,), (1400770347,), (1400770351,), (1400770353,), (1400770366,), (1400770369,), (1400770372,), (1400770375,), (1400770378,), (1400770381,), (1400770407,), (1400770409,), (1400770411,), (1400770431,), (1400770433,), (1400770436,), (1400770440,), (1400770444,), (1400770469,), (1400770472,), (1400770474,), (1400770476,), (1400770479,), (1400770500,), (1400770503,), (1400770507,), (1400770512,), (1400770524,), (1400770549,), (1400770553,), (1400770555,), (1400770557,), (1400770559,), (1400770667,), (1400770660,), (1400770661,), (1400770665,), (1400770709,), (1400770734,), (1400770737,), (1400770776,), (1400770805,), (1400770807,), (1400770809,), (1400770812,), (1400770815,), (1400770833,), (1400770837,), (1400770840,), (1400770843,), (1400770846,), (1400770864,), (1400770869,), (1400770877,), (1400770880,), (1400770896,), (1400770900,), (1400770902,), (1400770904,), (1400770906,), (1400770908,), (1400770921,), (1400770932,), (1400770938,), (1400770946,), (1400770952,), (1400770968,), (1400770972,), (1400770975,), (1400770977,), (1400770979,), (1400771002,), (1400771009,), (1400771010,), (1400771011,), (1400771014,), (1400771017,), (1400771032,), (1400771036,), (1400771040,), (1400771045,), (1400771049,), (1400771052,), (1400771056,), (1400771057,), (1400771058,), (1400771064,), (1400771090,), (1400771081,), (1400771083,), (1400771084,), (1400771085,), (1400771087,), (1400771099,), (1400771103,), (1400771105,), (1400771107,), (1400771109,), (1400771137,), (1400771139,), (1400771141,), (1400771144,), (1400771146,), (1400771148,), (1400771166,), (1400771168,), (1400771170,), (1400771173,), (1400771176,), (1400771188,), (1400771200,), (1400771209,), (1400771219,), (1400771239,), (1400771243,), (1400771245,), (1400771247,), (1400771249,), (1400771251,), (1400771279,), (1400771281,), (1400771283,), (1400771286,), (1400771290,), (1400771309,), (1400771315,), (1400771318,), (1400771345,), (1400771351,), (1400771352,), (1400771353,), (1400771375,), (1400771378,), (1400771382,), (1400771386,), (1400771391,), (1400771393,), (1400771402,), (1400771403,), (1400771404,), (1400771424,), (1400771428,), (1400771432,), (1400771434,), (1400771435,), (1400771436,), (1400771450,), (1400771454,), (1400771481,), (1400771489,), (1400771493,), (1400771496,), (1400771499,), (1400771502,), (1400771517,), (1400771523,), (1400771527,), (1400771532,), (1400771536,), (1400771540,), (1400771563,), (1400771566,), (1400771569,), (1400771577,), (1400771582,), (1400771584,), (1400771585,), (1400771552,), (1400771557,), (1400771560,), (1400771593,), (1400771597,), (1400771601,), (1400771604,), (1400771606,), (1400771622,), (1400771626,), (1400771629,), (1400771633,), (1400771638,), (1400771658,), (1400771662,), (1400771664,), (1400771666,), (1400771668,), (1400771670,), (1400771688,), (1400771691,), (1400771694,), (1400771698,), (1400771719,), (1400771724,), (1400771732,), (1400771736,), (1400771740,), (1400771744,), (1400771769,), (1400771772,), (1400771775,), (1400771778,), (1400771781,), (1400771808,), (1400771809,), (1400771811,), (1400771832,), (1400771836,), (1400771840,), (1400771844,), (1400771848,), (1400771851,), (1400771888,), (1400771904,), (1400771907,), (1400771909,), (1400771911,), (1400771936,), (1400771939,), (1400771941,), (1400771943,), (1400771976,), (1400771986,), (1400771991,), (1400771995,), (1400771999,), (1400772013,), (1400772017,), (1400772020,), (1400772023,), (1400772027,), (1400772029,), (1400772045,), (1400772063,), (1400772064,), (1400772093,), (1400772095,), (1400772098,), (1400772101,), (1400772105,), (1400772110,), (1400772154,), (1400772140,), (1400772145,), (1400772148,), (1400772151,), (1400772168,), (1400772171,), (1400772174,), (1400772177,), (1400772179,), (1400772180,), (1400772205,), (1400772207,), (1400772209,), (1400772212,), (1400772216,), (1400772238,), (1400772242,), (1400772246,), (1400772250,), (1400772280,), (1400772284,), (1400772288,), (1400772291,), (1400772311,), (1400772314,), (1400772317,), (1400772321,), (1400772324,), (1400772327,), (1400772338,), (1400772340,), (1400772344,), (1400772354,), (1400772357,), (1400772360,), (1400772362,), (1400772363,), (1400772367,), (1400772381,), (1400772385,), (1400772387,), (1400772419,), (1400772425,), (1400772427,), (1400772430,), (1400772434,), (1400772456,), (1400772460,), (1400772465,), (1400772470,), (1400772476,), (1400772510,), (1400772513,), (1400772516,), (1400772519,), (1400772539,), (1400772542,), (1400772545,), (1400772580,), (1400772584,), (1400772586,), (1400772590,), (1400772594,), (1400772613,), (1400772616,), (1400772618,), (1400772620,), (1400772622,), (1400772647,), (1400772650,), (1400772654,), (1400772697,), (1400772700,), (1400772709,), (1400772712,), (1400772685,), (1400772689,), (1400772692,), (1400772695,), (1400772719,), (1400772721,), (1400772723,), (1400772726,), (1400772729,), (1400772758,), (1400772761,), (1400772764,), (1400772768,), (1400772771,), (1400772788,), (1400772790,), (1400772794,), (1400772798,), (1400772820,), (1400772822,), (1400772824,), (1400772826,), (1400772829,), (1400772863,), (1400772866,), (1400772868,), (1400772894,), (1400772941,), (1400772947,), (1400772950,), (1400772968,), (1400772970,), (1400772972,), (1400772996,), (1400773000,), (1400773003,), (1400773007,), (1400773033,), (1400773035,), (1400773036,), (1400773126,), (1400773128,), (1400773151,), (1400773154,), (1400773194,), (1400773195,), (1400773197,), (1400773199,), (1400773208,), (1400773190,), (1400773193,), (1400773217,), (1400773219,), (1400773222,), (1400773226,), (1400773252,), (1400773255,), (1400773258,), (1400773261,), (1400773264,), (1400773268,), (1400773290,), (1400773294,), (1400773297,), (1400773325,), (1400773328,), (1400773330,), (1400773332,), (1400773335,), (1400773352,), (1400773355,), (1400773357,), (1400773360,), (1400773363,), (1400773389,), (1400773390,), (1400773393,), (1400773397,), (1400773417,), (1400773420,), (1400773422,), (1400773425,), (1400773430,), (1400773432,), (1400773455,), (1400773458,), (1400773462,), (1400773466,), (1400773470,), (1400773501,), (1400773503,), (1400773505,), (1400773506,), (1400773507,), (1400773510,), (1400773521,), (1400773524,), (1400773527,), (1400773529,), (1400773531,), (1400773535,), (1400773539,), (1400773543,), (1400773556,), (1400773559,), (1400773564,), (1400773599,), (1400773602,), (1400773605,), (1400773608,), (1400773610,), (1400773699,), (1400773735,), (1400773768,), (1400773802,), (1400773946,), (1400773947,), (1400773979,), (1400773986,), (1400774012,), (1400774020,), (1400774048,), (1400774067,), (1400774413,), (1400774291,), (1400774323,), (1400774359,), (1400774395,), (1400774440,), (1400774539,), (1400774651,), (1400774758,), (1400774804,), (1400775609,), (1400775692,), (1400775803,), (1400776544,), (1400776579,), (1400776613,), (1400776946,), (1400776978,), (1400777011,), (1400778135,), (1400778196,), (1400778250,), (1400778830,), (1400778864,), (1400778906,), (1400779000,), (1400779073,), (1400779536,), (1400780050,), (1400780200,), (1400780300,), (1400780879,), (1400780919,), (1400780984,), (1400781053,), (1400781125,), (1400781528,), (1400781562,), (1400783863,), (1400783860,), (1400783999,), (1400784001,), (1400784027,), (1400784030,), (1400784034,), (1400784037,), (1400784040,), (1400784063,), (1400784066,), (1400784069,), (1400784072,), (1400784093,), (1400784095,), (1400784142,), (1400784146,), (1400784150,), (1400784154,), (1400784157,), (1400784161,), (1400784177,), (1400784188,), (1400784191,), (1400784194,), (1400784197,), (1400784219,), (1400784221,), (1400784223,), (1400784245,), (1400784248,), (1400784253,), (1400784258,), (1400784264,), (1400784268,), (1400784279,), (1400784281,), (1400784307,), (1400784288,), (1400784291,), (1400784295,), (1400784301,), (1400784304,), (1400784317,), (1400784321,), (1400784354,), (1400784418,), (1400784443,), (1400784446,), (1400784488,), (1400784495,), (1400784500,), (1400784525,), (1400784592,), (1400784598,), (1400784604,), (1400784610,), (1400784617,), (1400784639,), (1400784642,), (1400784644,), (1400784646,), (1400784649,), (1400784652,), (1400784673,), (1400784676,), (1400784679,), (1400784682,), (1400784704,), (1400784705,), (1400784707,), (1400784710,), (1400784714,), (1400784718,), (1400784746,), (1400784751,), (1400784754,), (1400784758,), (1400784782,), (1400784784,), (1400784786,), (1400784788,), (1400784791,), (1400784794,), (1400784823,), (1400784834,), (1400784840,), (1400784843,), (1400784916,), (1400784868,), (1400784899,), (1400784902,), (1400784906,), (1400784909,), (1400784932,), (1400784935,), (1400784937,), (1400784939,), (1400784960,), (1400784963,), (1400784964,), (1400784965,), (1400784967,), (1400784969,), (1400785005,), (1400785007,), (1400785010,), (1400785014,), (1400785034,), (1400785038,), (1400785042,), (1400785046,), (1400785048,), (1400785051,), (1400785059,), (1400785063,), (1400785067,), (1400785075,), (1400785088,), (1400785089,), (1400785091,), (1400785094,), (1400785113,), (1400785114,), (1400785116,), (1400785119,), (1400785123,), (1400785128,), (1400785154,), (1400785158,), (1400785162,), (1400785166,), (1400785223,), (1400785255,), (1400785257,), (1400785260,), (1400785298,), (1400785300,), (1400785301,), (1400785303,), (1400785306,), (1400785309,), (1400785328,), (1400785331,), (1400785335,), (1400785361,), (1400785365,), (1400785368,), (1400785371,), (1400785374,), (1400785388,), (1400785390,), (1400785393,), (1400785396,), (1400785400,), (1400785445,), (1400785435,), (1400785438,), (1400785442,), (1400785467,), (1400785469,), (1400785473,), (1400785477,), (1400785485,), (1400785489,), (1400785508,), (1400785510,), (1400785511,), (1400785513,), (1400785516,), (1400785534,), (1400785547,), (1400785551,), (1400785555,), (1400785558,), (1400785585,), (1400785588,), (1400785590,), (1400785592,), (1400785595,), (1400785618,), (1400785620,), (1400785622,), (1400785624,), (1400785626,), (1400785628,), (1400785645,), (1400785649,), (1400785654,), (1400785656,), (1400785673,), (1400785675,), (1400785678,), (1400785681,), (1400785684,), (1400785704,), (1400785708,), (1400785711,), (1400785714,), (1400785717,), (1400785719,), (1400785758,), (1400785761,), (1400785762,), (1400785763,), (1400785785,), (1400785787,), (1400785790,), (1400785794,), (1400785798,), (1400785801,), (1400785828,), (1400785831,), (1400785840,), (1400785850,), (1400785883,), (1400785887,), (1400785890,), (1400785893,), (1400785897,), (1400785916,), (1400785924,), (1400785927,), (1400785932,), (1400785935,), (1400785955,), (1400785958,), (1400785961,), (1400785971,), (1400785974,), (1400785976,), (1400785978,), (1400785982,), (1400786154,), (1400785994,), (1400786001,), (1400786038,), (1400786079,), (1400786114,), (1400786434,), (1400786470,), (1400786505,), (1400786544,), (1400786749,), (1400786825,), (1400786890,), (1400786963,), (1400787027,), (1400787072,), (1400787719,), (1400787824,), (1400787926,), (1400789143,), (1400789177,), (1400789215,), (1400789252,), (1400789294,), (1400789884,), (1400790406,), (1400791021,), (1400791246,), (1400791257,), (1400791259,), (1400791281,), (1400791566,), (1400791611,), (1400791650,), (1400791918,), (1400791939,), (1400791946,), (1400791958,), (1400791976,), (1400792032,), (1400792035,), (1400792037,), (1400792039,), (1400792042,), (1400792044,), (1400792058,), (1400792061,), (1400792064,), (1400792100,), (1400792102,), (1400792104,), (1400792107,), (1400792110,), (1400792114,), (1400792134,), (1400792137,), (1400792140,), (1400792143,), (1400792147,), (1400792148,), (1400792159,), (1400792163,), (1400792166,), (1400792169,), (1400792174,), (1400792178,), (1400792190,), (1400792188,), (1400792205,), (1400792207,), (1400792209,), (1400792212,), (1400792240,), (1400792250,), (1400792254,), (1400792258,), (1400792285,), (1400792288,), (1400792290,), (1400792292,), (1400792341,), (1400792344,), (1400792347,), (1400792371,), (1400792375,), (1400792379,), (1400792384,), (1400792387,), (1400792391,), (1400792395,), (1400792399,), (1400792403,), (1400792409,), (1400792411,), (1400792413,), (1400792415,), (1400792417,), (1400792421,), (1400792432,), (1400792434,), (1400792435,), (1400792465,), (1400792470,), (1400792474,), (1400792478,), (1400792481,), (1400792484,), (1400792503,), (1400792507,), (1400792510,), (1400792513,), (1400792516,), (1400792551,), (1400792553,), (1400792555,), (1400792558,), (1400792577,), (1400792580,), (1400792628,), (1400792632,), (1400792635,), (1400792638,), (1400792641,), (1400792643,), (1400792654,), (1400792657,), (1400792660,), (1400792664,), (1400792693,), (1400792698,), (1400792701,), (1400792704,), (1400792708,), (1400792710,), (1400792748,), (1400792730,), (1400792734,), (1400792737,), (1400792740,), (1400792744,), (1400792781,), (1400792786,), (1400792788,), (1400792808,), (1400792813,), (1400792815,), (1400792820,), (1400792823,), (1400792827,), (1400792837,), (1400792841,), (1400792844,), (1400792847,), (1400792869,), (1400792873,), (1400792878,), (1400792884,), (1400792888,), (1400792892,), (1400792914,), (1400792915,), (1400792923,), (1400792932,), (1400792946,), (1400792948,), (1400792949,), (1400792950,), (1400792951,), (1400792953,), (1400792962,), (1400792964,), (1400792967,), (1400792970,), (1400793007,), (1400793011,), (1400793013,), (1400793016,), (1400793020,), (1400793024,), (1400793041,), (1400793053,), (1400793057,), (1400793061,), (1400793096,), (1400793110,), (1400793113,), (1400793116,), (1400793118,), (1400793133,), (1400793136,), (1400793139,), (1400793143,), (1400793149,), (1400793153,), (1400793159,), (1400793161,), (1400793163,), (1400793167,), (1400793178,), (1400793181,), (1400793183,), (1400793206,), (1400793210,), (1400793213,), (1400793216,), (1400793219,), (1400793245,), (1400793253,), (1400793257,), (1400793260,), (1400793264,), (1400793266,), (1400793277,), (1400793280,), (1400793284,), (1400793287,), (1400793291,), (1400793333,), (1400793320,), (1400793324,), (1400793327,), (1400793330,), (1400793351,), (1400793353,), (1400793355,), (1400793358,), (1400793362,), (1400793388,), (1400793391,), (1400793394,), (1400793398,), (1400793421,), (1400793423,), (1400793426,), (1400793429,), (1400793433,), (1400793436,), (1400793458,), (1400793462,), (1400793465,), (1400793468,), (1400793471,), (1400793497,), (1400793498,), (1400793500,), (1400793503,), (1400793534,), (1400793538,), (1400793542,), (1400793546,), (1400793549,), (1400793552,), (1400793568,), (1400793579,), (1400793582,), (1400793586,), (1400793589,), (1400793630,), (1400793632,), (1400793634,), (1400793637,), (1400793641,), (1400793645,), (1400793661,), (1400793665,), (1400793670,), (1400793675,), (1400793679,), (1400793682,), (1400793687,), (1400793688,), (1400793689,), (1400793690,), (1400793698,), (1400793725,), (1400793730,), (1400793732,), (1400793736,), (1400793740,), (1400793742,), (1400793750,), (1400793751,), (1400793754,), (1400793756,), (1400793763,), (1400793774,), (1400793787,), (1400793790,), (1400793793,), (1400793797,), (1400793801,), (1400793805,), (1400793811,), (1400793813,), (1400793828,), (1400793833,), (1400793838,), (1400793843,), (1400793847,), (1400793855,), (1400793856,), (1400793861,), (1400793863,), (1400793865,), (1400793897,), (1400793880,), (1400793884,), (1400793888,), (1400793891,), (1400793894,), (1400793921,), (1400793930,), (1400793934,), (1400793938,), (1400793951,), (1400793956,), (1400793960,), (1400793964,), (1400793968,), (1400793971,), (1400793990,), (1400794004,), (1400794010,), (1400794024,), (1400794043,), (1400794048,), (1400794052,), (1400794058,), (1400794070,), (1400794076,), (1400794138,), (1400794144,), (1400794147,), (1400794150,), (1400794165,), (1400794200,), (1400794233,), (1400794268,), (1400794298,), (1400794302,), (1400794313,), (1400794317,), (1400794321,), (1400794325,), (1400794329,), (1400794333,), (1400794352,), (1400794397,), (1400794400,), (1400794428,), (1400794432,), (1400794436,), (1400794633,), (1400794637,), (1400795022,), (1400795025,), (1400795028,), (1400795031,), (1400795034,), (1400795038,), (1400795069,), (1400795082,), (1400795089,), (1400795112,), (1400795116,), (1400795119,), (1400795123,), (1400795126,), (1400795129,), (1400795137,), (1400795139,), (1400795178,), (1400795181,), (1400795184,), (1400795167,), (1400795169,), (1400795172,), (1400795209,), (1400795213,), (1400795215,), (1400795217,), (1400795220,), (1400795232,), (1400795238,), (1400795242,), (1400795250,), (1400795266,), (1400795481,), (1400795490,), (1400795517,), (1400795540,), (1400795651,), (1400795675,), (1400795678,), (1400795682,), (1400795686,), (1400795690,), (1400795982,), (1400795991,), (1400795997,), (1400796013,), (1400796051,), (1400796054,), (1400796077,), (1400796087,), (1400796091,), (1400796137,), (1400796139,), (1400796142,), (1400796145,), (1400796149,), (1400796171,), (1400796175,), (1400796178,), (1400796181,), (1400796498,), (1400796501,), (1400796505,), (1400796510,), (1400796515,), (1400796518,), (1400796545,), (1400796546,), (1400796547,), (1400796550,), (1400796561,), (1400796566,), (1400796570,), (1400796572,), (1400796747,), (1400796751,), (1400796753,), (1400796756,), (1400796759,), (1400796896,), (1400796899,), (1400797077,), (1400797069,), (1400797073,), (1400797111,), (1400797115,), (1400797116,), (1400797118,), (1400797121,), (1400797137,), (1400797140,), (1400797142,), (1400797185,), (1400797188,), (1400797192,), (1400797196,), (1400797201,), (1400797205,), (1400797229,), (1400797232,), (1400797235,), (1400797237,), (1400797239,), (1400797241,), (1400797247,), (1400797251,), (1400797255,), (1400797257,), (1400797261,), (1400797264,), (1400797268,), (1400797271,), (1400797274,), (1400797277,), (1400797288,), (1400797293,), (1400797299,), (1400797303,), (1400797308,), (1400797348,), (1400797364,), (1400797376,), (1400797387,), (1400797390,), (1400797407,), (1400797410,), (1400797413,), (1400797417,), (1400797420,), (1400797436,), (1400797439,), (1400797442,), (1400797446,), (1400797449,), (1400797453,), (1400797465,), (1400797469,), (1400797473,), (1400797477,), (1400797508,), (1400797512,), (1400797515,), (1400797518,), (1400797521,), (1400797524,), (1400797543,), (1400797545,), (1400797547,), (1400797580,), (1400797583,), (1400797586,), (1400797589,), (1400797593,), (1400797596,), (1400797624,), (1400797626,), (1400797631,), (1400797639,), (1400797647,), (1400797649,), (1400797669,), (1400797672,), (1400797685,), (1400797688,), (1400797691,), (1400797718,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24122025': {'nb_upload': 84, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29680333]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1400797718, 1400797691, 1400797688, 1400797685, 1400797672, 1400797669, 1400797649, 1400797647, 1400797639, 1400797631, 1400797626, 1400797624, 1400797596, 1400797593, 1400797589, 1400797586, 1400797583, 1400797580] map_info['map_portfolio_photo'] : {29680333: [1400797718, 1400797691, 1400797688, 1400797685, 1400797672, 1400797669, 1400797649, 1400797647, 1400797639, 1400797631, 1400797626, 1400797624, 1400797596, 1400797593, 1400797589, 1400797586, 1400797583, 1400797580, 1400797547, 1400797545, 1400797543, 1400797524, 1400797521, 1400797518, 1400797515, 1400797512, 1400797508, 1400797477, 1400797473, 1400797469, 1400797465, 1400797453, 1400797449, 1400797446, 1400797442, 1400797439, 1400797436, 1400797420, 1400797417, 1400797413, 1400797410, 1400797407, 1400797390, 1400797387, 1400797376, 1400797364, 1400797348, 1400797308, 1400797303, 1400797299, 1400797293, 1400797288, 1400797277, 1400797274, 1400797271, 1400797268, 1400797264, 1400797261, 1400797257, 1400797255, 1400797251, 1400797247, 1400797241, 1400797239, 1400797237, 1400797235, 1400797232, 1400797229, 1400797205, 1400797201, 1400797196, 1400797192, 1400797188, 1400797185, 1400797142, 1400797140, 1400797137, 1400797121, 1400797118, 1400797116, 1400797115, 1400797111, 1400797073, 1400797069]} final : True mtd_id 4302 list_pids : [1400797718, 1400797691, 1400797688, 1400797685, 1400797672, 1400797669, 1400797649, 1400797647, 1400797639, 1400797631, 1400797626, 1400797624, 1400797596, 1400797593, 1400797589, 1400797586, 1400797583, 1400797580] Looping around the photos to save general results len do output : 1 /29680333Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797718', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797691', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797688', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797685', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797672', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797669', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797649', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797647', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797639', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797631', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797626', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797624', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797596', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797593', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797589', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797586', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797583', None, None, None, None, None, '4267656') ('4302', None, None, None, None, None, None, None, '4267656') ('4302', '29680333', '1400797580', None, None, None, None, None, '4267656') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29680333', 'None', None, None, None, None, '4267656'), ('4302', '29680333', '1400797718', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797691', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797688', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797685', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797672', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797669', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797649', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797647', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797639', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797631', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797626', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797624', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797596', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797593', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797589', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797586', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797583', None, None, None, None, None, '4267656'), ('4302', '29680333', '1400797580', None, None, None, None, None, '4267656')] time used for this insertion : 0.018456220626831055 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.393108606338501 time spend to save output : 0.01879715919494629 total time spend for step 5 : 3.4119057655334473 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 1 set_done_treatment DELETE from MTRPhoto.mtr_datou_current where id in (4267656) 2.64user 2.65system 0:13.85elapsed 38%CPU (0avgtext+0avgdata 168252maxresident)k 23416inputs+15792outputs (141major+79488minor)pagefaults 0swaps