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 : 3962357 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 (4236201) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4236201) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29477548 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4236201'] with mtr_portfolio_ids : ['29477548'] and first list_photo_ids : [] new path : /proc/3962357/ Name: python3 Umask: 0002 State: R (running) Tgid: 3962357 Ngid: 0 Pid: 3962357 PPid: 3962341 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3962357 NSpid: 3962357 NSpgid: 3961827 NSsid: 3961827 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104856 kB VmRSS: 104856 kB RssAnon: 66296 kB RssFile: 38560 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 544 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: 37 nonvoluntary_ctxt_switches: 128 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3962357', 'Ngid': '0', 'Pid': '3962357', 'PPid': '3962341', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3962357', 'NSpid': '3962357', 'NSpgid': '3961827', 'NSsid': '3961827', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104856 kB', 'VmRSS': '104856 kB', 'RssAnon': '66296 kB', 'RssFile': '38560 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '544 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': '37', 'nonvoluntary_ctxt_switches': '128'} ('datou_batch_current', '3962357', '1113364', '0', '1113364', '872092', '104856', b'', 'marlene', '4236201') 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 (29477548) 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 (4236201 ) ) 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 (29477548) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1399685452, 'portfolio_id': 29477548}, {'photo_id': 1399685450, 'portfolio_id': 29477548}, {'photo_id': 1399685429, 'portfolio_id': 29477548}, {'photo_id': 1399685425, 'portfolio_id': 29477548}, {'photo_id': 1399685421, 'portfolio_id': 29477548}, {'photo_id': 1399685417, 'portfolio_id': 29477548}, {'photo_id': 1399685415, 'portfolio_id': 29477548}, {'photo_id': 1399685413, 'portfolio_id': 29477548}, {'photo_id': 1399685401, 'portfolio_id': 29477548}, {'photo_id': 1399685398, 'portfolio_id': 29477548}, {'photo_id': 1399685397, 'portfolio_id': 29477548}, {'photo_id': 1399685396, 'portfolio_id': 29477548}, {'photo_id': 1399685395, 'portfolio_id': 29477548}, {'photo_id': 1399685365, 'portfolio_id': 29477548}, {'photo_id': 1399685364, 'portfolio_id': 29477548}, {'photo_id': 1399685363, 'portfolio_id': 29477548}, {'photo_id': 1399685361, 'portfolio_id': 29477548}, {'photo_id': 1399685360, 'portfolio_id': 29477548}, {'photo_id': 1399685359, 'portfolio_id': 29477548}, {'photo_id': 1399685358, 'portfolio_id': 29477548}, {'photo_id': 1399685350, 'portfolio_id': 29477548}, {'photo_id': 1399685347, 'portfolio_id': 29477548}, {'photo_id': 1399685344, 'portfolio_id': 29477548}, {'photo_id': 1399685341, 'portfolio_id': 29477548}, {'photo_id': 1399685340, 'portfolio_id': 29477548}, {'photo_id': 1399685339, 'portfolio_id': 29477548}, {'photo_id': 1399685316, 'portfolio_id': 29477548}, {'photo_id': 1399685315, 'portfolio_id': 29477548}, {'photo_id': 1399685314, 'portfolio_id': 29477548}, {'photo_id': 1399685313, 'portfolio_id': 29477548}, {'photo_id': 1399685310, 'portfolio_id': 29477548}, {'photo_id': 1399685301, 'portfolio_id': 29477548}, {'photo_id': 1399685298, 'portfolio_id': 29477548}, {'photo_id': 1399685295, 'portfolio_id': 29477548}, {'photo_id': 1399685294, 'portfolio_id': 29477548}, {'photo_id': 1399685293, 'portfolio_id': 29477548}, {'photo_id': 1399685292, 'portfolio_id': 29477548}, {'photo_id': 1399685272, 'portfolio_id': 29477548}, {'photo_id': 1399685270, 'portfolio_id': 29477548}, {'photo_id': 1399685268, 'portfolio_id': 29477548}, {'photo_id': 1399685261, 'portfolio_id': 29477548}, {'photo_id': 1399685258, 'portfolio_id': 29477548}, {'photo_id': 1399685257, 'portfolio_id': 29477548}, {'photo_id': 1399685256, 'portfolio_id': 29477548}, {'photo_id': 1399685253, 'portfolio_id': 29477548}, {'photo_id': 1399685224, 'portfolio_id': 29477548}, {'photo_id': 1399685223, 'portfolio_id': 29477548}, {'photo_id': 1399685222, 'portfolio_id': 29477548}, {'photo_id': 1399685221, 'portfolio_id': 29477548}, {'photo_id': 1399685212, 'portfolio_id': 29477548}, {'photo_id': 1399685209, 'portfolio_id': 29477548}, {'photo_id': 1399685206, 'portfolio_id': 29477548}, {'photo_id': 1399685205, 'portfolio_id': 29477548}, {'photo_id': 1399685195, 'portfolio_id': 29477548}, {'photo_id': 1399685189, 'portfolio_id': 29477548}, {'photo_id': 1399685156, 'portfolio_id': 29477548}] map_portfolio_id_photo_id: {29477548: [1399685452, 1399685450, 1399685429, 1399685425, 1399685421, 1399685417, 1399685415, 1399685413, 1399685401, 1399685398, 1399685397, 1399685396, 1399685395, 1399685365, 1399685364, 1399685363, 1399685361, 1399685360, 1399685359, 1399685358, 1399685350, 1399685347, 1399685344, 1399685341, 1399685340, 1399685339, 1399685316, 1399685315, 1399685314, 1399685313, 1399685310, 1399685301, 1399685298, 1399685295, 1399685294, 1399685293, 1399685292, 1399685272, 1399685270, 1399685268, 1399685261, 1399685258, 1399685257, 1399685256, 1399685253, 1399685224, 1399685223, 1399685222, 1399685221, 1399685212, 1399685209, 1399685206, 1399685205, 1399685195, 1399685189, 1399685156]} ##### 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.021341323852539062 #### 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 Tue Dec 16 18:42:30 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 (29477548) 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 : 29477548 get user id for portfolio 29477548 get sub ptf for main ptf 29477548, type 3726 and hashtags ['kraft', 'autre_refus', 'environnement', 'plastique', 'mal_croppe', 'flou', 'metal', 'Carton_brun', 'cartonnette', 'Teint_Dans_La_Masse', 'papier', 'Carton_gris'] 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`=29477548 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','autre_refus','environnement','plastique','mal_croppe','flou','metal','Carton_brun','cartonnette','Teint_Dans_La_Masse','papier','Carton_gris')) 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`=29477548 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','autre_refus','environnement','plastique','mal_croppe','flou','metal','Carton_brun','cartonnette','Teint_Dans_La_Masse','papier','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 29477548, 'sub_port_id': 29477552, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096781, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 57)}, 'Carton_gris': {'main_port_id': 29477548, 'sub_port_id': 29477553, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096782, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 29477548, 'sub_port_id': 29477554, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096783, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 57)}, 'papier': {'main_port_id': 29477548, 'sub_port_id': 29477555, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096784, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 57)}, 'kraft': {'main_port_id': 29477548, 'sub_port_id': 29477557, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096785, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 57)}, 'Carton_brun': {'main_port_id': 29477548, 'sub_port_id': 29477558, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096786, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 57)}, 'mal_croppe': {'main_port_id': 29477548, 'sub_port_id': 29477559, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096787, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 57)}, 'plastique': {'main_port_id': 29477548, 'sub_port_id': 29477560, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096788, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 57)}, 'autre_refus': {'main_port_id': 29477548, 'sub_port_id': 29477561, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096789, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 57)}, 'flou': {'main_port_id': 29477548, 'sub_port_id': 29477562, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096790, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 57)}, 'environnement': {'main_port_id': 29477548, 'sub_port_id': 29477563, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096791, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 57)}, 'cartonnette': {'main_port_id': 29477548, 'sub_port_id': 29477564, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096792, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29477552 , 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=29477548 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 (29477552) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29477548) result : ((1399685156,), (1399685189,), (1399685195,), (1399685205,), (1399685206,), (1399685209,), (1399685212,), (1399685221,), (1399685222,), (1399685223,), (1399685224,), (1399685253,), (1399685256,), (1399685257,), (1399685258,), (1399685261,), (1399685268,), (1399685270,), (1399685272,), (1399685292,), (1399685293,), (1399685294,), (1399685295,), (1399685298,), (1399685301,), (1399685310,), (1399685313,), (1399685314,), (1399685315,), (1399685316,), (1399685339,), (1399685340,), (1399685341,), (1399685344,), (1399685347,), (1399685350,), (1399685358,), (1399685359,), (1399685360,), (1399685361,), (1399685363,), (1399685364,), (1399685365,), (1399685395,), (1399685396,), (1399685397,), (1399685398,), (1399685401,), (1399685413,), (1399685415,), (1399685417,), (1399685421,), (1399685425,), (1399685429,), (1399685450,), (1399685452,)) 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 29477553 , 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=29477548 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 (29477553) result : ((1399685333,), (1399685379,), (1399685380,), (1399685381,), (1399685447,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29477548) result : ((1399685156,), (1399685189,), (1399685195,), (1399685205,), (1399685206,), (1399685209,), (1399685212,), (1399685221,), (1399685222,), (1399685223,), (1399685224,), (1399685253,), (1399685256,), (1399685257,), (1399685258,), (1399685261,), (1399685268,), (1399685270,), (1399685272,), (1399685292,), (1399685293,), (1399685294,), (1399685295,), (1399685298,), (1399685301,), (1399685310,), (1399685313,), (1399685314,), (1399685315,), (1399685316,), (1399685339,), (1399685340,), (1399685341,), (1399685344,), (1399685347,), (1399685350,), (1399685358,), (1399685359,), (1399685360,), (1399685361,), (1399685363,), (1399685364,), (1399685365,), (1399685395,), (1399685396,), (1399685397,), (1399685398,), (1399685401,), (1399685413,), (1399685415,), (1399685417,), (1399685421,), (1399685425,), (1399685429,), (1399685450,), (1399685452,)) 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 29477554 , 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=29477548 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 (29477554) result : ((1399685290,), (1399685291,), (1399685324,), (1399685325,), (1399685326,), (1399685374,), (1399685389,), (1399685390,), (1399685391,), (1399685431,), (1399685432,), (1399685433,), (1399685434,), (1399685435,), (1399685436,), (1399685442,), (1399685443,), (1399685444,), (1399685445,), (1399685446,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29477548) result : ((1399685156,), (1399685189,), (1399685195,), (1399685205,), (1399685206,), (1399685209,), (1399685212,), (1399685221,), (1399685222,), (1399685223,), (1399685224,), (1399685253,), (1399685256,), (1399685257,), (1399685258,), (1399685261,), (1399685268,), (1399685270,), (1399685272,), (1399685292,), (1399685293,), (1399685294,), (1399685295,), (1399685298,), (1399685301,), (1399685310,), (1399685313,), (1399685314,), (1399685315,), (1399685316,), (1399685339,), (1399685340,), (1399685341,), (1399685344,), (1399685347,), (1399685350,), (1399685358,), (1399685359,), (1399685360,), (1399685361,), (1399685363,), (1399685364,), (1399685365,), (1399685395,), (1399685396,), (1399685397,), (1399685398,), (1399685401,), (1399685413,), (1399685415,), (1399685417,), (1399685421,), (1399685425,), (1399685429,), (1399685450,), (1399685452,)) 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 29477555 , 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=29477548 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 (29477555) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29477548) result : ((1399685156,), (1399685189,), (1399685195,), (1399685205,), (1399685206,), (1399685209,), (1399685212,), (1399685221,), (1399685222,), (1399685223,), (1399685224,), (1399685253,), (1399685256,), (1399685257,), (1399685258,), (1399685261,), (1399685268,), (1399685270,), (1399685272,), (1399685292,), (1399685293,), (1399685294,), (1399685295,), (1399685298,), (1399685301,), (1399685310,), (1399685313,), (1399685314,), (1399685315,), (1399685316,), (1399685339,), (1399685340,), (1399685341,), (1399685344,), (1399685347,), (1399685350,), (1399685358,), (1399685359,), (1399685360,), (1399685361,), (1399685363,), (1399685364,), (1399685365,), (1399685395,), (1399685396,), (1399685397,), (1399685398,), (1399685401,), (1399685413,), (1399685415,), (1399685417,), (1399685421,), (1399685425,), (1399685429,), (1399685450,), (1399685452,)) 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 29477557 , 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=29477548 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 (29477557) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29477548) result : ((1399685156,), (1399685189,), (1399685195,), (1399685205,), (1399685206,), (1399685209,), (1399685212,), (1399685221,), (1399685222,), (1399685223,), (1399685224,), (1399685253,), (1399685256,), (1399685257,), (1399685258,), (1399685261,), (1399685268,), (1399685270,), (1399685272,), (1399685292,), (1399685293,), (1399685294,), (1399685295,), (1399685298,), (1399685301,), (1399685310,), (1399685313,), (1399685314,), (1399685315,), (1399685316,), (1399685339,), (1399685340,), (1399685341,), (1399685344,), (1399685347,), (1399685350,), (1399685358,), (1399685359,), (1399685360,), (1399685361,), (1399685363,), (1399685364,), (1399685365,), (1399685395,), (1399685396,), (1399685397,), (1399685398,), (1399685401,), (1399685413,), (1399685415,), (1399685417,), (1399685421,), (1399685425,), (1399685429,), (1399685450,), (1399685452,)) 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 29477558 , 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=29477548 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 (29477558) result : ((1399685329,), (1399685335,), (1399685382,), (1399685383,), (1399685437,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29477548) result : ((1399685156,), (1399685189,), (1399685195,), (1399685205,), (1399685206,), (1399685209,), (1399685212,), (1399685221,), (1399685222,), (1399685223,), (1399685224,), (1399685253,), (1399685256,), (1399685257,), (1399685258,), (1399685261,), (1399685268,), (1399685270,), (1399685272,), (1399685292,), (1399685293,), (1399685294,), (1399685295,), (1399685298,), (1399685301,), (1399685310,), (1399685313,), (1399685314,), (1399685315,), (1399685316,), (1399685339,), (1399685340,), (1399685341,), (1399685344,), (1399685347,), (1399685350,), (1399685358,), (1399685359,), (1399685360,), (1399685361,), (1399685363,), (1399685364,), (1399685365,), (1399685395,), (1399685396,), (1399685397,), (1399685398,), (1399685401,), (1399685413,), (1399685415,), (1399685417,), (1399685421,), (1399685425,), (1399685429,), (1399685450,), (1399685452,)) 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 29477559 , 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=29477548 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 (29477559) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29477548) result : ((1399685156,), (1399685189,), (1399685195,), (1399685205,), (1399685206,), (1399685209,), (1399685212,), (1399685221,), (1399685222,), (1399685223,), (1399685224,), (1399685253,), (1399685256,), (1399685257,), (1399685258,), (1399685261,), (1399685268,), (1399685270,), (1399685272,), (1399685292,), (1399685293,), (1399685294,), (1399685295,), (1399685298,), (1399685301,), (1399685310,), (1399685313,), (1399685314,), (1399685315,), (1399685316,), (1399685339,), (1399685340,), (1399685341,), (1399685344,), (1399685347,), (1399685350,), (1399685358,), (1399685359,), (1399685360,), (1399685361,), (1399685363,), (1399685364,), (1399685365,), (1399685395,), (1399685396,), (1399685397,), (1399685398,), (1399685401,), (1399685413,), (1399685415,), (1399685417,), (1399685421,), (1399685425,), (1399685429,), (1399685450,), (1399685452,)) 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 29477560 , 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=29477548 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 (29477560) result : ((1399685385,), (1399685386,), (1399685393,), (1399685394,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29477548) result : ((1399685156,), (1399685189,), (1399685195,), (1399685205,), (1399685206,), (1399685209,), (1399685212,), (1399685221,), (1399685222,), (1399685223,), (1399685224,), (1399685253,), (1399685256,), (1399685257,), (1399685258,), (1399685261,), (1399685268,), (1399685270,), (1399685272,), (1399685292,), (1399685293,), (1399685294,), (1399685295,), (1399685298,), (1399685301,), (1399685310,), (1399685313,), (1399685314,), (1399685315,), (1399685316,), (1399685339,), (1399685340,), (1399685341,), (1399685344,), (1399685347,), (1399685350,), (1399685358,), (1399685359,), (1399685360,), (1399685361,), (1399685363,), (1399685364,), (1399685365,), (1399685395,), (1399685396,), (1399685397,), (1399685398,), (1399685401,), (1399685413,), (1399685415,), (1399685417,), (1399685421,), (1399685425,), (1399685429,), (1399685450,), (1399685452,)) 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 29477561 , 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=29477548 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 (29477561) result : ((1399685327,), (1399685375,), (1399685376,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29477548) result : ((1399685156,), (1399685189,), (1399685195,), (1399685205,), (1399685206,), (1399685209,), (1399685212,), (1399685221,), (1399685222,), (1399685223,), (1399685224,), (1399685253,), (1399685256,), (1399685257,), (1399685258,), (1399685261,), (1399685268,), (1399685270,), (1399685272,), (1399685292,), (1399685293,), (1399685294,), (1399685295,), (1399685298,), (1399685301,), (1399685310,), (1399685313,), (1399685314,), (1399685315,), (1399685316,), (1399685339,), (1399685340,), (1399685341,), (1399685344,), (1399685347,), (1399685350,), (1399685358,), (1399685359,), (1399685360,), (1399685361,), (1399685363,), (1399685364,), (1399685365,), (1399685395,), (1399685396,), (1399685397,), (1399685398,), (1399685401,), (1399685413,), (1399685415,), (1399685417,), (1399685421,), (1399685425,), (1399685429,), (1399685450,), (1399685452,)) 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 29477562 , 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=29477548 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 (29477562) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29477548) result : ((1399685156,), (1399685189,), (1399685195,), (1399685205,), (1399685206,), (1399685209,), (1399685212,), (1399685221,), (1399685222,), (1399685223,), (1399685224,), (1399685253,), (1399685256,), (1399685257,), (1399685258,), (1399685261,), (1399685268,), (1399685270,), (1399685272,), (1399685292,), (1399685293,), (1399685294,), (1399685295,), (1399685298,), (1399685301,), (1399685310,), (1399685313,), (1399685314,), (1399685315,), (1399685316,), (1399685339,), (1399685340,), (1399685341,), (1399685344,), (1399685347,), (1399685350,), (1399685358,), (1399685359,), (1399685360,), (1399685361,), (1399685363,), (1399685364,), (1399685365,), (1399685395,), (1399685396,), (1399685397,), (1399685398,), (1399685401,), (1399685413,), (1399685415,), (1399685417,), (1399685421,), (1399685425,), (1399685429,), (1399685450,), (1399685452,)) 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 29477563 , 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=29477548 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 (29477563) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29477548) result : ((1399685156,), (1399685189,), (1399685195,), (1399685205,), (1399685206,), (1399685209,), (1399685212,), (1399685221,), (1399685222,), (1399685223,), (1399685224,), (1399685253,), (1399685256,), (1399685257,), (1399685258,), (1399685261,), (1399685268,), (1399685270,), (1399685272,), (1399685292,), (1399685293,), (1399685294,), (1399685295,), (1399685298,), (1399685301,), (1399685310,), (1399685313,), (1399685314,), (1399685315,), (1399685316,), (1399685339,), (1399685340,), (1399685341,), (1399685344,), (1399685347,), (1399685350,), (1399685358,), (1399685359,), (1399685360,), (1399685361,), (1399685363,), (1399685364,), (1399685365,), (1399685395,), (1399685396,), (1399685397,), (1399685398,), (1399685401,), (1399685413,), (1399685415,), (1399685417,), (1399685421,), (1399685425,), (1399685429,), (1399685450,), (1399685452,)) 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 29477564 , 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=29477548 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 (29477564) result : ((1399685328,), (1399685392,), (1399685448,), (1399685449,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29477548) result : ((1399685156,), (1399685189,), (1399685195,), (1399685205,), (1399685206,), (1399685209,), (1399685212,), (1399685221,), (1399685222,), (1399685223,), (1399685224,), (1399685253,), (1399685256,), (1399685257,), (1399685258,), (1399685261,), (1399685268,), (1399685270,), (1399685272,), (1399685292,), (1399685293,), (1399685294,), (1399685295,), (1399685298,), (1399685301,), (1399685310,), (1399685313,), (1399685314,), (1399685315,), (1399685316,), (1399685339,), (1399685340,), (1399685341,), (1399685344,), (1399685347,), (1399685350,), (1399685358,), (1399685359,), (1399685360,), (1399685361,), (1399685363,), (1399685364,), (1399685365,), (1399685395,), (1399685396,), (1399685397,), (1399685398,), (1399685401,), (1399685413,), (1399685415,), (1399685417,), (1399685421,), (1399685425,), (1399685429,), (1399685450,), (1399685452,)) 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`=29477548 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','autre_refus','environnement','plastique','mal_croppe','flou','metal','Carton_brun','cartonnette','Teint_Dans_La_Masse','papier','Carton_gris')) 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`=29477548 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','autre_refus','environnement','plastique','mal_croppe','flou','metal','Carton_brun','cartonnette','Teint_Dans_La_Masse','papier','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 29477548, 'sub_port_id': 29477565, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096793, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 59)}, 'Carton_gris': {'main_port_id': 29477548, 'sub_port_id': 29477566, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096794, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 29477548, 'sub_port_id': 29477567, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096795, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 59)}, 'papier': {'main_port_id': 29477548, 'sub_port_id': 29477568, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096796, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 59)}, 'kraft': {'main_port_id': 29477548, 'sub_port_id': 29477569, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096797, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 59)}, 'Carton_brun': {'main_port_id': 29477548, 'sub_port_id': 29477570, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096798, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 59)}, 'mal_croppe': {'main_port_id': 29477548, 'sub_port_id': 29477571, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096799, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 59)}, 'plastique': {'main_port_id': 29477548, 'sub_port_id': 29477572, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096800, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 59)}, 'autre_refus': {'main_port_id': 29477548, 'sub_port_id': 29477573, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096801, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 59)}, 'flou': {'main_port_id': 29477548, 'sub_port_id': 29477574, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096802, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 59)}, 'environnement': {'main_port_id': 29477548, 'sub_port_id': 29477575, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096803, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 59)}, 'cartonnette': {'main_port_id': 29477548, 'sub_port_id': 29477576, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20096804, 'last_updated_at': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 16, 18, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 16, 18, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29477565,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29477552 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29477566,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29477553 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29477567,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29477554 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29477568,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29477555 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29477569,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29477557 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29477570,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29477558 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29477571,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29477559 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29477572,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29477560 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29477573,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29477561 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29477574,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29477562 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29477575,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29477563 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29477576,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29477564 lien utilise dans velours : https://marlene.fotonower.com/velours/29477565,29477566,29477567,29477568,29477569,29477570,29477571,29477572,29477573,29477574,29477575,29477576?tags=metal,Carton_gris,Teint_Dans_La_Masse,papier,kraft,Carton_brun,mal_croppe,plastique,autre_refus,flou,environnement,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29477548]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1399685452, 1399685450, 1399685429, 1399685425, 1399685421, 1399685417, 1399685415, 1399685413, 1399685401, 1399685398, 1399685397, 1399685396, 1399685395] map_info['map_portfolio_photo'] : {29477548: [1399685452, 1399685450, 1399685429, 1399685425, 1399685421, 1399685417, 1399685415, 1399685413, 1399685401, 1399685398, 1399685397, 1399685396, 1399685395, 1399685365, 1399685364, 1399685363, 1399685361, 1399685360, 1399685359, 1399685358, 1399685350, 1399685347, 1399685344, 1399685341, 1399685340, 1399685339, 1399685316, 1399685315, 1399685314, 1399685313, 1399685310, 1399685301, 1399685298, 1399685295, 1399685294, 1399685293, 1399685292, 1399685272, 1399685270, 1399685268, 1399685261, 1399685258, 1399685257, 1399685256, 1399685253, 1399685224, 1399685223, 1399685222, 1399685221, 1399685212, 1399685209, 1399685206, 1399685205, 1399685195, 1399685189, 1399685156]} final : False mtd_id 4302 list_pids : [1399685452, 1399685450, 1399685429, 1399685425, 1399685421, 1399685417, 1399685415, 1399685413, 1399685401, 1399685398, 1399685397, 1399685396, 1399685395] Looping around the photos to save general results len do output : 1 /29477548. 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, '4236201') ('4302', '29477548', '1399685452', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685450', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685429', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685425', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685421', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685417', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685415', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685413', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685401', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685398', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685397', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685396', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685395', None, None, None, None, None, '4236201') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '29477548', "{'metal': 29477552, 'Carton_gris': 29477553, 'Teint_Dans_La_Masse': 29477554, 'papier': 29477555, 'kraft': 29477557, 'Carton_brun': 29477558, 'mal_croppe': 29477559, 'plastique': 29477560, 'autre_refus': 29477561, 'flou': 29477562, 'environnement': 29477563, 'cartonnette': 29477564}", None, None, None, None, '4236201'), ('4302', '29477548', '1399685452', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685450', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685429', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685425', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685421', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685417', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685415', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685413', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685401', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685398', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685397', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685396', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685395', None, None, None, None, None, '4236201')] time used for this insertion : 0.01722574234008789 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8245997428894043 time spend to save output : 0.017535686492919922 total time spend for step 1 : 1.8421354293823242 step2:final Tue Dec 16 18:42:32 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 (29477548) 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 29477548 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1399685156,1399685212,1399685209,1399685206,1399685205,1399685195,1399685189,1399685224,1399685223,1399685222,1399685221,1399685261,1399685258,1399685257,1399685256,1399685253,1399685272,1399685270,1399685268,1399685310,1399685301,1399685298,1399685295,1399685294,1399685293,1399685292,1399685361,1399685316,1399685360,1399685315,1399685359,1399685314,1399685313,1399685358,1399685350,1399685347,1399685344,1399685341,1399685340,1399685339,1399685365,1399685364,1399685363,1399685401,1399685398,1399685397,1399685396,1399685395,1399685429,1399685425,1399685421,1399685417,1399685415,1399685413,1399685452,1399685450); 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([29477548]) Inside saveOutput : final : False verbose : True original output for save of step final : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ('0.04653573341392172',), 1399685413: ('0.04653573341392172',), 1399685401: ('0.04653573341392172',), 1399685398: ('0.04653573341392172',), 1399685397: ('0.04653573341392172',), 1399685396: ('0.04653573341392172',), 1399685395: ('0.04653573341392172',)} new output for save of step final : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ('0.04653573341392172',), 1399685413: ('0.04653573341392172',), 1399685401: ('0.04653573341392172',), 1399685398: ('0.04653573341392172',), 1399685397: ('0.04653573341392172',), 1399685396: ('0.04653573341392172',), 1399685395: ('0.04653573341392172',)} [1399685452, 1399685450, 1399685429, 1399685425, 1399685421, 1399685417, 1399685415, 1399685413, 1399685401, 1399685398, 1399685397, 1399685396, 1399685395] map_info['map_portfolio_photo'] : {29477548: [1399685452, 1399685450, 1399685429, 1399685425, 1399685421, 1399685417, 1399685415, 1399685413, 1399685401, 1399685398, 1399685397, 1399685396, 1399685395, 1399685365, 1399685364, 1399685363, 1399685361, 1399685360, 1399685359, 1399685358, 1399685350, 1399685347, 1399685344, 1399685341, 1399685340, 1399685339, 1399685316, 1399685315, 1399685314, 1399685313, 1399685310, 1399685301, 1399685298, 1399685295, 1399685294, 1399685293, 1399685292, 1399685272, 1399685270, 1399685268, 1399685261, 1399685258, 1399685257, 1399685256, 1399685253, 1399685224, 1399685223, 1399685222, 1399685221, 1399685212, 1399685209, 1399685206, 1399685205, 1399685195, 1399685189, 1399685156]} final : False mtd_id 4302 list_pids : [1399685452, 1399685450, 1399685429, 1399685425, 1399685421, 1399685417, 1399685415, 1399685413, 1399685401, 1399685398, 1399685397, 1399685396, 1399685395] Looping around the photos to save general results len do output : 13 /1399685452.Didn't retrieve data . /1399685450.Didn't retrieve data . /1399685429.Didn't retrieve data . /1399685425.Didn't retrieve data . /1399685421.Didn't retrieve data . /1399685417.Didn't retrieve data . /1399685415.Didn't retrieve data . /1399685413.Didn't retrieve data . /1399685401.Didn't retrieve data . /1399685398.Didn't retrieve data . /1399685397.Didn't retrieve data . /1399685396.Didn't retrieve data . /1399685395.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, '4236201') ('4302', '29477548', '1399685452', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685450', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685429', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685425', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685421', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685417', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685415', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685413', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685401', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685398', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685397', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685396', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685395', None, None, None, None, None, '4236201') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '29477548', '1399685452', '0.04653573341392172', None, None, None, None, '4236201'), ('4302', '29477548', '1399685450', '0.04653573341392172', None, None, None, None, '4236201'), ('4302', '29477548', '1399685429', '0.04653573341392172', None, None, None, None, '4236201'), ('4302', '29477548', '1399685425', '0.04653573341392172', None, None, None, None, '4236201'), ('4302', '29477548', '1399685421', '0.04653573341392172', None, None, None, None, '4236201'), ('4302', '29477548', '1399685417', '0.04653573341392172', None, None, None, None, '4236201'), ('4302', '29477548', '1399685415', '0.04653573341392172', None, None, None, None, '4236201'), ('4302', '29477548', '1399685413', '0.04653573341392172', None, None, None, None, '4236201'), ('4302', '29477548', '1399685401', '0.04653573341392172', None, None, None, None, '4236201'), ('4302', '29477548', '1399685398', '0.04653573341392172', None, None, None, None, '4236201'), ('4302', '29477548', '1399685397', '0.04653573341392172', None, None, None, None, '4236201'), ('4302', '29477548', '1399685396', '0.04653573341392172', None, None, None, None, '4236201'), ('4302', '29477548', '1399685395', '0.04653573341392172', None, None, None, None, '4236201')] time used for this insertion : 0.015856266021728516 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08210468292236328 time spend to save output : 0.01646280288696289 total time spend for step 2 : 0.09856748580932617 step3:velours_tree Tue Dec 16 18:42:32 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 : {29477548: [{'metal': 29477552, 'Carton_gris': 29477553, 'Teint_Dans_La_Masse': 29477554, 'papier': 29477555, 'kraft': 29477557, 'Carton_brun': 29477558, 'mal_croppe': 29477559, 'plastique': 29477560, 'autre_refus': 29477561, 'flou': 29477562, 'environnement': 29477563, 'cartonnette': 29477564}]} input_args_next_step : {29477548: ()} output_args : {29477548: [{'metal': 29477552, 'Carton_gris': 29477553, 'Teint_Dans_La_Masse': 29477554, 'papier': 29477555, 'kraft': 29477557, 'Carton_brun': 29477558, 'mal_croppe': 29477559, 'plastique': 29477560, 'autre_refus': 29477561, 'flou': 29477562, 'environnement': 29477563, 'cartonnette': 29477564}]} args : 29477548 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 : ({'metal': 29477552, 'Carton_gris': 29477553, 'Teint_Dans_La_Masse': 29477554, 'papier': 29477555, 'kraft': 29477557, 'Carton_brun': 29477558, 'mal_croppe': 29477559, 'plastique': 29477560, 'autre_refus': 29477561, 'flou': 29477562, 'environnement': 29477563, 'cartonnette': 29477564},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29477548) 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([29477548]) 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.25083112716674805 time spend to save output : 5.793571472167969e-05 total time spend for step 3 : 0.2508890628814697 step4:send_mail_cod Tue Dec 16 18:42:32 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 : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ('0.04653573341392172',), 1399685413: ('0.04653573341392172',), 1399685401: ('0.04653573341392172',), 1399685398: ('0.04653573341392172',), 1399685397: ('0.04653573341392172',), 1399685396: ('0.04653573341392172',), 1399685395: ('0.04653573341392172',)} input_args_next_step : {1399685452: ()} output_args : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ('0.04653573341392172',), 1399685413: ('0.04653573341392172',), 1399685401: ('0.04653573341392172',), 1399685398: ('0.04653573341392172',), 1399685397: ('0.04653573341392172',), 1399685396: ('0.04653573341392172',), 1399685395: ('0.04653573341392172',)} args : 1399685452 depend.output_id : 0 input_args_next_step : {1399685452: ('0.04653573341392172',), 1399685450: ()} output_args : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ('0.04653573341392172',), 1399685413: ('0.04653573341392172',), 1399685401: ('0.04653573341392172',), 1399685398: ('0.04653573341392172',), 1399685397: ('0.04653573341392172',), 1399685396: ('0.04653573341392172',), 1399685395: ('0.04653573341392172',)} args : 1399685450 depend.output_id : 0 input_args_next_step : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ()} output_args : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ('0.04653573341392172',), 1399685413: ('0.04653573341392172',), 1399685401: ('0.04653573341392172',), 1399685398: ('0.04653573341392172',), 1399685397: ('0.04653573341392172',), 1399685396: ('0.04653573341392172',), 1399685395: ('0.04653573341392172',)} args : 1399685429 depend.output_id : 0 input_args_next_step : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ()} output_args : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ('0.04653573341392172',), 1399685413: ('0.04653573341392172',), 1399685401: ('0.04653573341392172',), 1399685398: ('0.04653573341392172',), 1399685397: ('0.04653573341392172',), 1399685396: ('0.04653573341392172',), 1399685395: ('0.04653573341392172',)} args : 1399685425 depend.output_id : 0 input_args_next_step : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ()} output_args : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ('0.04653573341392172',), 1399685413: ('0.04653573341392172',), 1399685401: ('0.04653573341392172',), 1399685398: ('0.04653573341392172',), 1399685397: ('0.04653573341392172',), 1399685396: ('0.04653573341392172',), 1399685395: ('0.04653573341392172',)} args : 1399685421 depend.output_id : 0 input_args_next_step : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ()} output_args : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ('0.04653573341392172',), 1399685413: ('0.04653573341392172',), 1399685401: ('0.04653573341392172',), 1399685398: ('0.04653573341392172',), 1399685397: ('0.04653573341392172',), 1399685396: ('0.04653573341392172',), 1399685395: ('0.04653573341392172',)} args : 1399685417 depend.output_id : 0 input_args_next_step : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ()} output_args : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ('0.04653573341392172',), 1399685413: ('0.04653573341392172',), 1399685401: ('0.04653573341392172',), 1399685398: ('0.04653573341392172',), 1399685397: ('0.04653573341392172',), 1399685396: ('0.04653573341392172',), 1399685395: ('0.04653573341392172',)} args : 1399685415 depend.output_id : 0 input_args_next_step : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ('0.04653573341392172',), 1399685413: ()} output_args : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ('0.04653573341392172',), 1399685413: ('0.04653573341392172',), 1399685401: ('0.04653573341392172',), 1399685398: ('0.04653573341392172',), 1399685397: ('0.04653573341392172',), 1399685396: ('0.04653573341392172',), 1399685395: ('0.04653573341392172',)} args : 1399685413 depend.output_id : 0 input_args_next_step : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ('0.04653573341392172',), 1399685413: ('0.04653573341392172',), 1399685401: ()} output_args : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ('0.04653573341392172',), 1399685413: ('0.04653573341392172',), 1399685401: ('0.04653573341392172',), 1399685398: ('0.04653573341392172',), 1399685397: ('0.04653573341392172',), 1399685396: ('0.04653573341392172',), 1399685395: ('0.04653573341392172',)} args : 1399685401 depend.output_id : 0 input_args_next_step : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ('0.04653573341392172',), 1399685413: ('0.04653573341392172',), 1399685401: ('0.04653573341392172',), 1399685398: ()} output_args : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ('0.04653573341392172',), 1399685413: ('0.04653573341392172',), 1399685401: ('0.04653573341392172',), 1399685398: ('0.04653573341392172',), 1399685397: ('0.04653573341392172',), 1399685396: ('0.04653573341392172',), 1399685395: ('0.04653573341392172',)} args : 1399685398 depend.output_id : 0 input_args_next_step : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ('0.04653573341392172',), 1399685413: ('0.04653573341392172',), 1399685401: ('0.04653573341392172',), 1399685398: ('0.04653573341392172',), 1399685397: ()} output_args : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ('0.04653573341392172',), 1399685413: ('0.04653573341392172',), 1399685401: ('0.04653573341392172',), 1399685398: ('0.04653573341392172',), 1399685397: ('0.04653573341392172',), 1399685396: ('0.04653573341392172',), 1399685395: ('0.04653573341392172',)} args : 1399685397 depend.output_id : 0 input_args_next_step : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ('0.04653573341392172',), 1399685413: ('0.04653573341392172',), 1399685401: ('0.04653573341392172',), 1399685398: ('0.04653573341392172',), 1399685397: ('0.04653573341392172',), 1399685396: ()} output_args : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ('0.04653573341392172',), 1399685413: ('0.04653573341392172',), 1399685401: ('0.04653573341392172',), 1399685398: ('0.04653573341392172',), 1399685397: ('0.04653573341392172',), 1399685396: ('0.04653573341392172',), 1399685395: ('0.04653573341392172',)} args : 1399685396 depend.output_id : 0 input_args_next_step : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ('0.04653573341392172',), 1399685413: ('0.04653573341392172',), 1399685401: ('0.04653573341392172',), 1399685398: ('0.04653573341392172',), 1399685397: ('0.04653573341392172',), 1399685396: ('0.04653573341392172',), 1399685395: ()} output_args : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ('0.04653573341392172',), 1399685413: ('0.04653573341392172',), 1399685401: ('0.04653573341392172',), 1399685398: ('0.04653573341392172',), 1399685397: ('0.04653573341392172',), 1399685396: ('0.04653573341392172',), 1399685395: ('0.04653573341392172',)} args : 1399685395 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 : {29477548: [{'metal': 29477552, 'Carton_gris': 29477553, 'Teint_Dans_La_Masse': 29477554, 'papier': 29477555, 'kraft': 29477557, 'Carton_brun': 29477558, 'mal_croppe': 29477559, 'plastique': 29477560, 'autre_refus': 29477561, 'flou': 29477562, 'environnement': 29477563, 'cartonnette': 29477564}]} input_args_next_step : {1399685452: ('0.04653573341392172',), 1399685450: ('0.04653573341392172',), 1399685429: ('0.04653573341392172',), 1399685425: ('0.04653573341392172',), 1399685421: ('0.04653573341392172',), 1399685417: ('0.04653573341392172',), 1399685415: ('0.04653573341392172',), 1399685413: ('0.04653573341392172',), 1399685401: ('0.04653573341392172',), 1399685398: ('0.04653573341392172',), 1399685397: ('0.04653573341392172',), 1399685396: ('0.04653573341392172',), 1399685395: ('0.04653573341392172',), 29477548: ()} output_args : {29477548: [{'metal': 29477552, 'Carton_gris': 29477553, 'Teint_Dans_La_Masse': 29477554, 'papier': 29477555, 'kraft': 29477557, 'Carton_brun': 29477558, 'mal_croppe': 29477559, 'plastique': 29477560, 'autre_refus': 29477561, 'flou': 29477562, 'environnement': 29477563, 'cartonnette': 29477564}]} args : 29477548 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 :14, first value : ('0.04653573341392172',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29477548) 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 (1399685452,1399685450,1399685429,1399685425,1399685421,1399685417,1399685415,1399685413,1399685401,1399685398,1399685397,1399685396,1399685395) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1399685395 begin to download photo : 1399685398 begin to download photo : 1399685415 begin to download photo : 1399685425 begin to download photo : 1399685452 download finish for photo 1399685398 begin to download photo : 1399685401 download finish for photo 1399685425 begin to download photo : 1399685429 download finish for photo 1399685452 download finish for photo 1399685415 begin to download photo : 1399685417 download finish for photo 1399685395 begin to download photo : 1399685396 download finish for photo 1399685401 begin to download photo : 1399685413 download finish for photo 1399685429 begin to download photo : 1399685450 download finish for photo 1399685417 begin to download photo : 1399685421 download finish for photo 1399685396 begin to download photo : 1399685397 download finish for photo 1399685413 download finish for photo 1399685450 download finish for photo 1399685421 download finish for photo 1399685397 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette294775521765906953/ imagette294775571765906953/ imagette294775591765906953/ length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P29477548_16-12-2025_18_42_33.pdf 29477552 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=29477552 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294775521765906953 29477557 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=29477557 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294775571765906953 29477559 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=29477559 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294775591765906953 29477560 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=29477560 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399685385: '1765906747_1586398_1399685256_d63dc7f4a4012df00e056a99f838ddd1_rle_crop_4072111792_0.png', 1399685386: '1765906747_1586398_1399685253_5d93667947b0c5fdb52ed9ce2b900d36_rle_crop_4072111813_0.png', 1399685393: '1765906767_1586776_1399685315_9aced9962623c968eae5a3ac0a925347_rle_crop_4072111928_0.png', 1399685394: '1765906767_1586776_1399685315_9aced9962623c968eae5a3ac0a925347_rle_crop_4072111924_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/0094eaec6f8495010d956a4563490ee9_86305734.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/3025e4bea1c5602770250feb30e0ec58_81753667.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/c5fff0a9f1dd791d7fc4a9fbb1c8fb87_85927609.png change filename to text .imagette294775601765906953/ imagette294775601765906953/1765906767_1586776_1399685315_9aced9962623c968eae5a3ac0a925347_rle_crop_4072111928_0.png.png imagette294775601765906953/1765906747_1586398_1399685256_d63dc7f4a4012df00e056a99f838ddd1_rle_crop_4072111792_0.png.png imagette294775601765906953/1765906767_1586776_1399685315_9aced9962623c968eae5a3ac0a925347_rle_crop_4072111924_0.png.png imagette294775601765906953/1765906747_1586398_1399685253_5d93667947b0c5fdb52ed9ce2b900d36_rle_crop_4072111813_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/0c810d66db8767bfb087e9c533d83ced_86674082.png imagette294775601765906953 29477561 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=29477561 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399685327: '1765906626_1580349_1399685205_2d27b344a04f589b23576f8c54649bb9_rle_crop_4072111538_0.png', 1399685375: '1765906747_1586398_1399685257_119dd997226e6828e7bdf592f65207e5_rle_crop_4072111784_0.png', 1399685376: '1765906747_1586398_1399685257_119dd997226e6828e7bdf592f65207e5_rle_crop_4072111776_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/383dc1c1e70301a889bc4697cd49921f_47719097.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/b839887fae304d9bc3f5eb3a8432b3cd_22502378.png change filename to text .imagette294775611765906953/ imagette294775611765906953/1765906626_1580349_1399685205_2d27b344a04f589b23576f8c54649bb9_rle_crop_4072111538_0.png.png imagette294775611765906953/1765906747_1586398_1399685257_119dd997226e6828e7bdf592f65207e5_rle_crop_4072111784_0.png.png imagette294775611765906953/1765906747_1586398_1399685257_119dd997226e6828e7bdf592f65207e5_rle_crop_4072111776_0.png.png imagette294775621765906953/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/2234a97afd74b037f9dbe2d4a9a19a63_87824310.png imagette294775611765906953 29477562 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=29477562 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294775621765906953 29477564 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=29477564 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399685328: '1765906626_1580349_1399685205_2d27b344a04f589b23576f8c54649bb9_rle_crop_4072111537_0.png', 1399685392: '1765906767_1586776_1399685316_879d6a180763ed964ed1a5b34322d6ba_rle_crop_4072111913_0.png', 1399685448: '1765906886_1593308_1399685397_b022d02b72eb82ef82d63e25666d4d73_rle_crop_4072112244_0.png', 1399685449: '1765906886_1593308_1399685395_0ae11eebdf7095b28d74bfcd22caccbf_rle_crop_4072112272_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/b3cbfdce09e6545f36bc3d5f9a002258_45242550.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/f703ba076e0ad8a8ef8958107c083612_90662427.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/f2cf45d8fd163bac8aebe490f4a72bd7_12413387.png change filename to text .imagette294775641765906953/ imagette294775641765906953/1765906886_1593308_1399685397_b022d02b72eb82ef82d63e25666d4d73_rle_crop_4072112244_0.png.png imagette294775641765906953/1765906767_1586776_1399685316_879d6a180763ed964ed1a5b34322d6ba_rle_crop_4072111913_0.png.png imagette294775641765906953/1765906886_1593308_1399685395_0ae11eebdf7095b28d74bfcd22caccbf_rle_crop_4072112272_0.png.png imagette294775641765906953/1765906626_1580349_1399685205_2d27b344a04f589b23576f8c54649bb9_rle_crop_4072111537_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/b63705ce3da9c7170a80b20db6e2581b_33641361.png imagette294775641765906953 29477553 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=29477553 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399685333: '1765906646_1580758_1399685270_97b2e71b7d146c42d1a1daa569368323_rle_crop_4072111589_0.png', 1399685379: '1765906747_1586398_1399685258_68b4a3929be4d5fbbe38933cccf562db_rle_crop_4072111766_0.png', 1399685380: '1765906747_1586398_1399685257_119dd997226e6828e7bdf592f65207e5_rle_crop_4072111778_0.png', 1399685381: '1765906747_1586398_1399685257_119dd997226e6828e7bdf592f65207e5_rle_crop_4072111774_0.png', 1399685447: '1765906886_1593308_1399685396_a255ad784be65f2fe431a202f8dd2997_rle_crop_4072112254_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/16a6f8b035b716dc432dec5f6fe275f2_52676798.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/d7b4b68ef9d0407606c2091fa660d90b_751750.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/504bf3fd17e81268d538d46f25d381cf_62288412.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/f01d1a6bd398a5aadeb02441c2fd1b67_57490540.png change filename to text .imagette294775531765906954/ imagette294775531765906954/1765906747_1586398_1399685258_68b4a3929be4d5fbbe38933cccf562db_rle_crop_4072111766_0.png.png imagette294775531765906954/1765906646_1580758_1399685270_97b2e71b7d146c42d1a1daa569368323_rle_crop_4072111589_0.png.png imagette294775531765906954/1765906747_1586398_1399685257_119dd997226e6828e7bdf592f65207e5_rle_crop_4072111774_0.png.png imagette294775531765906954/1765906747_1586398_1399685257_119dd997226e6828e7bdf592f65207e5_rle_crop_4072111778_0.png.png imagette294775531765906954/1765906886_1593308_1399685396_a255ad784be65f2fe431a202f8dd2997_rle_crop_4072112254_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/0d7bd57d4aefce07bf2639e8ca8c5d2d_90248913.png imagette294775531765906954 29477554 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=29477554 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399685432: '1765906864_1592089_1399685293_7fcf1300b211800ef27f41e0e960326b_rle_crop_4072112118_0.png', 1399685446: '1765906886_1593308_1399685395_0ae11eebdf7095b28d74bfcd22caccbf_rle_crop_4072112284_0.png', 1399685445: '1765906886_1593308_1399685395_0ae11eebdf7095b28d74bfcd22caccbf_rle_crop_4072112282_0.png', 1399685444: '1765906886_1593308_1399685396_a255ad784be65f2fe431a202f8dd2997_rle_crop_4072112265_0.png', 1399685443: '1765906886_1593308_1399685396_a255ad784be65f2fe431a202f8dd2997_rle_crop_4072112266_0.png', 1399685442: '1765906886_1593308_1399685397_b022d02b72eb82ef82d63e25666d4d73_rle_crop_4072112249_0.png', 1399685436: '1765906864_1592089_1399685292_607e7e0a2a40d53f355312fad782dca5_rle_crop_4072112123_0.png', 1399685435: '1765906864_1592089_1399685292_607e7e0a2a40d53f355312fad782dca5_rle_crop_4072112132_0.png', 1399685434: '1765906864_1592089_1399685292_607e7e0a2a40d53f355312fad782dca5_rle_crop_4072112129_0.png', 1399685433: '1765906864_1592089_1399685292_607e7e0a2a40d53f355312fad782dca5_rle_crop_4072112134_0.png', 1399685290: '1765906526_1574233_1399685223_efa550b57b96c30cce82f9051f508caa_rle_crop_4072111270_0.png', 1399685431: '1765906864_1592089_1399685295_7a781b7ca46b3ed0f7d6a385c1a29326_rle_crop_4072112086_0.png', 1399685391: '1765906767_1586776_1399685315_9aced9962623c968eae5a3ac0a925347_rle_crop_4072111926_0.png', 1399685390: '1765906767_1586776_1399685316_879d6a180763ed964ed1a5b34322d6ba_rle_crop_4072111917_0.png', 1399685389: '1765906767_1586776_1399685316_879d6a180763ed964ed1a5b34322d6ba_rle_crop_4072111919_0.png', 1399685374: '1765906747_1586398_1399685257_119dd997226e6828e7bdf592f65207e5_rle_crop_4072111779_0.png', 1399685326: '1765906626_1580349_1399685189_f2c3b9c50d4a65c8472992b3c7069563_rle_crop_4072111576_0.png', 1399685325: '1765906626_1580349_1399685195_29b8696bfd9f3fc63bce89a9f4945c4f_rle_crop_4072111553_0.png', 1399685324: '1765906626_1580349_1399685205_2d27b344a04f589b23576f8c54649bb9_rle_crop_4072111541_0.png', 1399685291: '1765906526_1574233_1399685223_efa550b57b96c30cce82f9051f508caa_rle_crop_4072111265_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/b57ab70df63c29716f6ad7973a16f67c_22832762.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/20dc4d389b6fea3bdfe3ff5663184730_87116565.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/85e570e5656eb6e265e839c3c8155f62_49548647.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/efe86c3bf0672945341c73bba1b88802_33148824.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/fda47de51f3218293fd037aa2bcd76ef_57114684.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/fb499aa4648779413a66a6ec2fcc22a0_47905507.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/2edfa7756b0522f926eb0669cef42c4f_19117307.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/9ded595a6ead08526e8faca0373e3508_16956377.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/5a8f712e565d7d785d03d8dd86fa8c94_79965809.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/3f6bcb927a7c580e29b87914bef92138_24428433.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/d8a3cbf5a11976e3e5699b2e1389c362_41540707.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/4ab156798b4022b4714c420b8dc84ffa_33460391.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/b5e21a4a6a74d91b8d9d80d9f6d89581_66779700.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/76d20dcdea3f2b7059d99c3dc536e6b6_11676907.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/ed78b9ad5f986416e223983c46b4af30_90481653.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/c0ce15fedefda14140c76c020ba965f2_90943025.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/b0d68ee6084397a5c9b8af4c5c1f16b1_19131408.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/51b59a645e0822c31c6052f18fdef6f3_71519906.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/65b1a75edbada285d1e4da15976c5bc5_76788797.png change filename to text .imagette294775541765906954/ imagette294775541765906954/1765906886_1593308_1399685396_a255ad784be65f2fe431a202f8dd2997_rle_crop_4072112265_0.png.png imagette294775541765906954/1765906864_1592089_1399685293_7fcf1300b211800ef27f41e0e960326b_rle_crop_4072112118_0.png.png imagette294775541765906954/1765906864_1592089_1399685295_7a781b7ca46b3ed0f7d6a385c1a29326_rle_crop_4072112086_0.png.png imagette294775541765906954/1765906767_1586776_1399685316_879d6a180763ed964ed1a5b34322d6ba_rle_crop_4072111919_0.png.png imagette294775541765906954/1765906886_1593308_1399685396_a255ad784be65f2fe431a202f8dd2997_rle_crop_4072112266_0.png.png imagette294775541765906954/1765906886_1593308_1399685395_0ae11eebdf7095b28d74bfcd22caccbf_rle_crop_4072112282_0.png.png imagette294775541765906954/1765906526_1574233_1399685223_efa550b57b96c30cce82f9051f508caa_rle_crop_4072111270_0.png.png imagette294775541765906954/1765906626_1580349_1399685195_29b8696bfd9f3fc63bce89a9f4945c4f_rle_crop_4072111553_0.png.png imagette294775541765906954/1765906747_1586398_1399685257_119dd997226e6828e7bdf592f65207e5_rle_crop_4072111779_0.png.png imagette294775541765906954/1765906886_1593308_1399685395_0ae11eebdf7095b28d74bfcd22caccbf_rle_crop_4072112284_0.png.png imagette294775541765906954/1765906864_1592089_1399685292_607e7e0a2a40d53f355312fad782dca5_rle_crop_4072112132_0.png.png imagette294775541765906954/1765906864_1592089_1399685292_607e7e0a2a40d53f355312fad782dca5_rle_crop_4072112134_0.png.png imagette294775541765906954/1765906767_1586776_1399685316_879d6a180763ed964ed1a5b34322d6ba_rle_crop_4072111917_0.png.png imagette294775541765906954/1765906626_1580349_1399685189_f2c3b9c50d4a65c8472992b3c7069563_rle_crop_4072111576_0.png.png imagette294775541765906954/1765906886_1593308_1399685397_b022d02b72eb82ef82d63e25666d4d73_rle_crop_4072112249_0.png.png imagette294775541765906954/1765906626_1580349_1399685205_2d27b344a04f589b23576f8c54649bb9_rle_crop_4072111541_0.png.png imagette294775541765906954/1765906526_1574233_1399685223_efa550b57b96c30cce82f9051f508caa_rle_crop_4072111265_0.png.png imagette294775541765906954/1765906864_1592089_1399685292_607e7e0a2a40d53f355312fad782dca5_rle_crop_4072112129_0.png.png imagette294775541765906954/1765906864_1592089_1399685292_607e7e0a2a40d53f355312fad782dca5_rle_crop_4072112123_0.png.png imagette294775541765906954/1765906767_1586776_1399685315_9aced9962623c968eae5a3ac0a925347_rle_crop_4072111926_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/a1fbaa21d724cb30d4403ba18fef0cf0_88705231.png imagette294775541765906954 29477558 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=29477558 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399685329: '1765906626_1580349_1399685205_2d27b344a04f589b23576f8c54649bb9_rle_crop_4072111540_0.png', 1399685335: '1765906646_1580758_1399685270_97b2e71b7d146c42d1a1daa569368323_rle_crop_4072111587_0.png', 1399685382: '1765906747_1586398_1399685272_3e1b5d8595e716010f62314cccc3720b_rle_crop_4072111752_0.png', 1399685383: '1765906747_1586398_1399685272_3e1b5d8595e716010f62314cccc3720b_rle_crop_4072111753_0.png', 1399685437: '1765906864_1592089_1399685292_607e7e0a2a40d53f355312fad782dca5_rle_crop_4072112122_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/ce47b5d0fafdec3b264df5fdeb61c1a2_98182050.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/67b63b5ef808ab5ff768c26b7eaa99cc_67636447.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/028165f951d475fce3e485e36c0cae8c_13944653.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/ac7ea19042c1398c7089efd9876e9c7f_68326750.png change filename to text .imagette294775581765906955/ imagette294775581765906955/1765906864_1592089_1399685292_607e7e0a2a40d53f355312fad782dca5_rle_crop_4072112122_0.png.png imagette294775581765906955/1765906646_1580758_1399685270_97b2e71b7d146c42d1a1daa569368323_rle_crop_4072111587_0.png.png imagette294775581765906955/1765906747_1586398_1399685272_3e1b5d8595e716010f62314cccc3720b_rle_crop_4072111753_0.png.png imagette294775581765906955/1765906747_1586398_1399685272_3e1b5d8595e716010f62314cccc3720b_rle_crop_4072111752_0.png.png imagette294775581765906955/1765906626_1580349_1399685205_2d27b344a04f589b23576f8c54649bb9_rle_crop_4072111540_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/ce4ef2d3db2279b9e66746e6210d71a4_79250224.png imagette294775581765906955 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29477548 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29477565,29477566,29477567,29477568,29477569,29477570,29477571,29477572,29477573,29477574,29477575,29477576?tags=metal,Carton_gris,Teint_Dans_La_Masse,papier,kraft,Carton_brun,mal_croppe,plastique,autre_refus,flou,environnement,cartonnette your option no_mail is active, we will not send the real mail to your client args[1399685452] : ('0.04653573341392172',) no score found for photo 1399685452 We are sending mail with results at report@fotonower.com args[1399685450] : ('0.04653573341392172',) no score found for photo 1399685450 We are sending mail with results at report@fotonower.com args[1399685429] : ('0.04653573341392172',) no score found for photo 1399685429 We are sending mail with results at report@fotonower.com args[1399685425] : ('0.04653573341392172',) no score found for photo 1399685425 We are sending mail with results at report@fotonower.com args[1399685421] : ('0.04653573341392172',) no score found for photo 1399685421 We are sending mail with results at report@fotonower.com args[1399685417] : ('0.04653573341392172',) no score found for photo 1399685417 We are sending mail with results at report@fotonower.com args[1399685415] : ('0.04653573341392172',) no score found for photo 1399685415 We are sending mail with results at report@fotonower.com args[1399685413] : ('0.04653573341392172',) no score found for photo 1399685413 We are sending mail with results at report@fotonower.com args[1399685401] : ('0.04653573341392172',) no score found for photo 1399685401 We are sending mail with results at report@fotonower.com args[1399685398] : ('0.04653573341392172',) no score found for photo 1399685398 We are sending mail with results at report@fotonower.com args[1399685397] : ('0.04653573341392172',) no score found for photo 1399685397 We are sending mail with results at report@fotonower.com args[1399685396] : ('0.04653573341392172',) no score found for photo 1399685396 We are sending mail with results at report@fotonower.com args[1399685395] : ('0.04653573341392172',) no score found for photo 1399685395 We are sending mail with results at report@fotonower.com refus_total : 0.04653573341392172 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=29477548 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_P29477548_16-12-2025_18_42_33.pdf results_Auto_P29477548_16-12-2025_18_42_33.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29477548_16-12-2025_18_42_33.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','29477548','results_Auto_P29477548_16-12-2025_18_42_33.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29477548_16-12-2025_18_42_33.pdf','pdf','','0.22','0.04653573341392172') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29477548]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1399685452, 1399685450, 1399685429, 1399685425, 1399685421, 1399685417, 1399685415, 1399685413, 1399685401, 1399685398, 1399685397, 1399685396, 1399685395] map_info['map_portfolio_photo'] : {29477548: [1399685452, 1399685450, 1399685429, 1399685425, 1399685421, 1399685417, 1399685415, 1399685413, 1399685401, 1399685398, 1399685397, 1399685396, 1399685395, 1399685365, 1399685364, 1399685363, 1399685361, 1399685360, 1399685359, 1399685358, 1399685350, 1399685347, 1399685344, 1399685341, 1399685340, 1399685339, 1399685316, 1399685315, 1399685314, 1399685313, 1399685310, 1399685301, 1399685298, 1399685295, 1399685294, 1399685293, 1399685292, 1399685272, 1399685270, 1399685268, 1399685261, 1399685258, 1399685257, 1399685256, 1399685253, 1399685224, 1399685223, 1399685222, 1399685221, 1399685212, 1399685209, 1399685206, 1399685205, 1399685195, 1399685189, 1399685156]} final : False mtd_id 4302 list_pids : [1399685452, 1399685450, 1399685429, 1399685425, 1399685421, 1399685417, 1399685415, 1399685413, 1399685401, 1399685398, 1399685397, 1399685396, 1399685395] 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, '4236201') ('4302', '29477548', '1399685452', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685450', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685429', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685425', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685421', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685417', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685415', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685413', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685401', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685398', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685397', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685396', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685395', None, None, None, None, None, '4236201') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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', '29477548', '1399685452', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685450', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685429', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685425', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685421', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685417', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685415', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685413', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685401', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685398', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685397', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685396', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685395', None, None, None, None, None, '4236201')] time used for this insertion : 0.025267362594604492 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.876081943511963 time spend to save output : 0.025578022003173828 total time spend for step 4 : 4.901659965515137 step5:split_time_score Tue Dec 16 18:42:37 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 : ['29477548'] 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 : [('29477548',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29477548) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1399685452: {'path': 'temp/1765906952_3962357_1399685452_5fd0d2323c02a662a67f3d0635114698.jpg', 'extension': 'jpg'}, 1399685398: {'path': 'temp/1765906952_3962357_1399685398_a375e5b4d13d7bd5763d017c463c2290.jpg', 'extension': 'jpg'}, 1399685401: {'path': 'temp/1765906952_3962357_1399685401_bc974c5ae15b1aa1bc16068fec90556e.jpg', 'extension': 'jpg'}, 1399685413: {'path': 'temp/1765906952_3962357_1399685413_50291eedc4445ab857b6eda28be5a89d.jpg', 'extension': 'jpg'}, 1399685425: {'path': 'temp/1765906952_3962357_1399685425_92d9933f4e6a0c594d6fc55d6f361126.jpg', 'extension': 'jpg'}, 1399685429: {'path': 'temp/1765906952_3962357_1399685429_e58078bb95a4e4ef6169f12455af9bee.jpg', 'extension': 'jpg'}, 1399685450: {'path': 'temp/1765906952_3962357_1399685450_9f195bd9596ed5b2d1f9434498cc76c6.jpg', 'extension': 'jpg'}, 1399685415: {'path': 'temp/1765906952_3962357_1399685415_fec043a6776612c78a8ee35697b53ef3.jpg', 'extension': 'jpg'}, 1399685417: {'path': 'temp/1765906952_3962357_1399685417_67de602942cbb8b3577dcbbd4ed303be.jpg', 'extension': 'jpg'}, 1399685421: {'path': 'temp/1765906952_3962357_1399685421_a0750a78b61b885cd0686845dde7aad9.jpg', 'extension': 'jpg'}, 1399685395: {'path': 'temp/1765906952_3962357_1399685395_0ae11eebdf7095b28d74bfcd22caccbf.jpg', 'extension': 'jpg'}, 1399685396: {'path': 'temp/1765906952_3962357_1399685396_a255ad784be65f2fe431a202f8dd2997.jpg', 'extension': 'jpg'}, 1399685397: {'path': 'temp/1765906952_3962357_1399685397_b022d02b72eb82ef82d63e25666d4d73.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 = 29477548; (('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 = 29477548 group by h (('18', 56),) 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=29477548 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 (29477548) 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 (29477548) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16122025 29477548 Nombre de photos uploadées : 56 / 23040 (0%) 16122025 29477548 Nombre de photos taguées (types de déchets): 0 / 56 (0%) 16122025 29477548 Nombre de photos taguées (volume) : 0 / 56 (0%) [{'photo_id': 1399685156, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/648ad4417fee1e28ab29ccab832be7ad.jpg', 'username': None, 'uploaded_at': 1765906268, 'text': 'image_16122025_18_30_24_10137.jpg'}, {'photo_id': 1399685212, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/5ab9b944945a6a53fa21c1f6305d64a6.jpg', 'username': None, 'uploaded_at': 1765906328, 'text': 'image_16122025_18_30_34_10138.jpg'}, {'photo_id': 1399685209, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/119abc427403571c437d989a7540265c.jpg', 'username': None, 'uploaded_at': 1765906328, 'text': 'image_16122025_18_31_05_010166m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399685206, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/16/8854d08f63d41892839e6a8cdb4167b8.jpg', 'username': None, 'uploaded_at': 1765906328, 'text': 'image_16122025_18_31_14_009126m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ???????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0026645660400390625 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29477548, '2025-12-16' ) 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-16' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2742047,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2665121555328369 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= 2742047 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29450388, 'dashboard_result_id': 18433694, '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_P29450388_16-12-2025_06_10_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29450390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29450391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29450392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29450393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29450394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29450395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29450396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29450397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29450398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29450399, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29450400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29450401, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29450996, 'dashboard_result_id': 18433695, '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_P29450996_16-12-2025_06_10_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451049, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29451566, 'dashboard_result_id': 18433696, '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_P29451566_16-12-2025_00_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451585, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29452103, 'dashboard_result_id': 18433697, '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_P29452103_16-12-2025_06_11_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29452135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29452136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29452137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29452138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29452139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29452140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29452141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29452142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29452143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29452144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29452146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29452149, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29453332, 'dashboard_result_id': 18433698, '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_P29453332_16-12-2025_06_12_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29453334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29453335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29453336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29453337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29453338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29453339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29453340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29453341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29453342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29453343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29453344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29453345, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29453728, 'dashboard_result_id': 18433699, '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_P29453728_16-12-2025_06_12_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29453735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29453736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29453737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29453738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29453739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29453740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29453741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29453742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29453743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29453744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29453745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29453746, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29454116, 'dashboard_result_id': 18433700, '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_P29454116_16-12-2025_06_13_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29454123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29454124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29454125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29454126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29454127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29454128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29454129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29454130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29454131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29454132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29454133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29454134, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29454690, 'dashboard_result_id': 18433701, '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_P29454690_16-12-2025_06_13_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29454698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29454699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29454700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29454701, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29454702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29454703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29454704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29454705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29454706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29454707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29454708, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29454709, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29455111, 'dashboard_result_id': 18433702, '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_P29455111_16-12-2025_06_14_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29455144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29455145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29455148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29455149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29455151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29455152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29455153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29455154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455155, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29455589, 'dashboard_result_id': 18433703, '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_P29455589_16-12-2025_06_15_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455597, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29455598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29455599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29455601, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29455602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29455603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29455605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29455606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455607, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29455608, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29455995, 'dashboard_result_id': 18433704, '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_P29455995_16-12-2025_06_16_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455997, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456007, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29456570, 'dashboard_result_id': 18433705, '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_P29456570_16-12-2025_03_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29456579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29456582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29456584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29456588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456590, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29456741, 'dashboard_result_id': 18433706, '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_P29456741_16-12-2025_06_16_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29456757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29456760, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29456762, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29456765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456767, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29457104, 'dashboard_result_id': 18433707, '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_P29457104_16-12-2025_06_17_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29457144, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29457145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29457146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29457147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29457148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29457149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29457150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29457151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29457152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29457153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29457155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29457156, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29457750, 'dashboard_result_id': 18433708, '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_P29457750_16-12-2025_06_18_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29457784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29457785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29457786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29457787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29457788, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29457789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29457790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29457791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29457792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29457793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29457794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29457795, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29459040, 'dashboard_result_id': 18433709, '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_P29459040_16-12-2025_06_18_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29459042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459043, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459052, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459053, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29459313, 'dashboard_result_id': 18433710, '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_P29459313_16-12-2025_06_19_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29459323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459327, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459328, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29459681, 'dashboard_result_id': 18433711, '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_P29459681_16-12-2025_05_49_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29459684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459695, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29460076, 'dashboard_result_id': 18433712, '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_P29460076_16-12-2025_06_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29460079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29460080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29460081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29460082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29460083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29460084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29460085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29460086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29460087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29460088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29460089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29460090, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29460421, 'dashboard_result_id': 18433713, '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_P29460421_16-12-2025_06_19_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29460425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29460426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29460427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29460428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29460429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29460430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29460431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29460432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29460433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29460434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29460435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29460436, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29460888, 'dashboard_result_id': 18433714, '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_P29460888_16-12-2025_06_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29460913, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29460914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29460915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29460916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29460917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29460918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29460919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29460920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29460921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29460922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29460923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29460924, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29461351, 'dashboard_result_id': 18433715, '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_P29461351_16-12-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29461383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29461384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29461385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29461386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29461387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29461388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29461389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29461390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29461391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29461392, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29461393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29461394, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29461970, 'dashboard_result_id': 18433716, '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_P29461970_16-12-2025_07_05_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29461977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29461978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29461979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29461980, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29461981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29461982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29461983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29461984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29461985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29461986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29461987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29461988, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29462429, 'dashboard_result_id': 18433717, '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_P29462429_16-12-2025_07_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29462442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29462443, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29462444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29462445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29462446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29462447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29462448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29462449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29462450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29462451, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29462452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29462453, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29462984, 'dashboard_result_id': 18433718, '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_P29462984_16-12-2025_07_33_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29462992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29462993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29462994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29462995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29462996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29462997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29462998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29462999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29463000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29463001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29463002, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29463003, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29463487, 'dashboard_result_id': 18433719, '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_P29463487_16-12-2025_07_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29463500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29463501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29463502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29463503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29463504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29463505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29463507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29463508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29463509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29463511, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29463512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29463514, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29464019, 'dashboard_result_id': 18433720, '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_P29464019_16-12-2025_08_03_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29464027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29464028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29464029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29464030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29464031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29464032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29464033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29464034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29464035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29464036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29464037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29464038, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29464427, 'dashboard_result_id': 18433721, '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_P29464427_16-12-2025_08_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29464449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29464450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29464451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29464452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29464453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29464454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29464455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29464456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29464457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29464458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29464459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29464460, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29464951, 'dashboard_result_id': 18433722, '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_P29464951_16-12-2025_08_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29464977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29464978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29464979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29464980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29464981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29464982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29464983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29464984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29464985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29464986, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29464987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29464988, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29465543, 'dashboard_result_id': 18433723, '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_P29465543_16-12-2025_08_46_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29465573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29465574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29465575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29465576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29465577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29465578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29465579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29465580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29465581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29465582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29465583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29465584, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29466080, 'dashboard_result_id': 18433724, '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_P29466080_16-12-2025_15_00_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29466084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29466085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29466086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29466087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29466088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29466089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29466090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29466091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29466092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29466093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29466094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29466095, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29470041, 'dashboard_result_id': 18433725, '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_P29470041_16-12-2025_14_36_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29470042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29470043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29470044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29470045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29470046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29470047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29470048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29470049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29470050, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29470051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29470052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29470053, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29470258, 'dashboard_result_id': 18433726, '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_P29470258_16-12-2025_14_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29470261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29470262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29470263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29470264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29470265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29470266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29470267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29470268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29470269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29470270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29470271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29470272, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29470785, 'dashboard_result_id': 18433727, '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_P29470785_16-12-2025_15_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29470787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29470788, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29470789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29470791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29470792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29470793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29470794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29470795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29470796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29470797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29470798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29470799, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29471232, 'dashboard_result_id': 18433728, '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_P29471232_16-12-2025_15_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29471239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29471240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29471241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29471242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29471243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29471244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29471245, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29471246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29471247, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29471248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29471249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29471250, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29471637, 'dashboard_result_id': 18433729, '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_P29471637_16-12-2025_15_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29471645, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29471646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29471647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29471648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29471649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29471650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29471651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29471652, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29471653, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29471654, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29471655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29471656, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29472066, 'dashboard_result_id': 18433730, '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_P29472066_16-12-2025_15_49_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29472101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29472102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29472103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29472104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29472105, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29472106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29472107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29472108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29472109, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29472110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29472111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29472113, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29472602, 'dashboard_result_id': 18433731, '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_P29472602_16-12-2025_16_03_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29472628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29472629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29472630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29472631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29472632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29472633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29472634, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29472635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29472636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29472637, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29472638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29472639, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29472983, 'dashboard_result_id': 18433732, '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_P29472983_16-12-2025_16_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29473003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29473004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29473005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29473006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29473007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29473008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29473009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29473010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29473011, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29473012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29473013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29473014, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29473851, 'dashboard_result_id': 18433733, '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_P29473851_16-12-2025_16_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29473858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29473859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29473860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29473862, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29473863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29473864, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29473865, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29473866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29473867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29473868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29473869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29473870, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29474246, 'dashboard_result_id': 18433734, '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_P29474246_16-12-2025_16_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29474289, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29474290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29474291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29474292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29474293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29474294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29474295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29474296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29474297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29474298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29474299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29474300, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29474708, 'dashboard_result_id': 18433735, '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_P29474708_16-12-2025_17_03_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29474716, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29474717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29474718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29474719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29474720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29474721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29474722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29474723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29474724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29474725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29474726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29474727, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29475156, 'dashboard_result_id': 18433736, '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_P29475156_16-12-2025_17_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29475164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29475165, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29475166, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29475167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29475168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29475169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29475170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29475171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29475172, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29475173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29475174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29475175, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29475766, 'dashboard_result_id': 18433737, '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_P29475766_16-12-2025_17_30_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29475774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29475775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29475776, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29475777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29475778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29475779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29475780, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29475781, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29475782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29475783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29475784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29475785, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29476819, 'dashboard_result_id': 18433738, '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_P29476819_16-12-2025_18_19_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29476823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29476824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29476825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29476826, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29476827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29476828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29476829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29476830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29476831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29476832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29476833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29476834, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29477167, 'dashboard_result_id': 18433739, '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_P29477167_16-12-2025_18_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29477173, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29477174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29477175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29477176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29477177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29477178, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29477179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29477180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29477181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29477182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29477183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29477184, 'pht': 3726}}"}, {'dashboat_entry_day': 2742047, 'dashboard_run_id': 2753596, 'mtr_portfolio_id': 29477548, 'dashboard_result_id': 18433740, '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_P29477548_16-12-2025_18_41_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29477552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29477553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29477554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29477555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29477557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29477558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29477559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29477560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29477561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29477562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29477563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29477564, '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 = 29450388 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': 4233576, 'mtr_portfolio_id': 29450388, 'created_at': datetime.datetime(2025, 12, 16, 6, 9, 59), 'result': '0.05352721734894388', 'result_long': None, 'result_double': None}] Qualite : 0.05352721734894388 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29450388 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29450388_16-12-2025_06_10_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29450388 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_P29450388_16-12-2025_06_10_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29450390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29450391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29450392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29450393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29450394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29450395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29450396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29450397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29450398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29450399, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29450400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29450401, 'pht': 3726}}" where mtr_portfolio_id = 29450388 and dashboard_run_id = 2753596 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`=29450388 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433694, 0.05352721734894388, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29450388_16-12-2025_06_10_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29450390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29450391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29450392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29450393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29450394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29450395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29450396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29450397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29450398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29450399, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29450400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29450401, '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 = 29450996 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': 4233577, 'mtr_portfolio_id': 29450996, 'created_at': datetime.datetime(2025, 12, 16, 6, 10, 29), 'result': '0.05662294738168372', 'result_long': None, 'result_double': None}] Qualite : 0.05662294738168372 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29450996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29450996_16-12-2025_06_10_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29450996 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_P29450996_16-12-2025_06_10_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451049, 'pht': 3726}}" where mtr_portfolio_id = 29450996 and dashboard_run_id = 2753596 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`=29450996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433695, 0.05662294738168372, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29450996_16-12-2025_06_10_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451049, '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 = 29451566 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': 4233578, 'mtr_portfolio_id': 29451566, 'created_at': datetime.datetime(2025, 12, 16, 6, 11, 9), 'result': '0.0515832125030124', 'result_long': None, 'result_double': None}] Qualite : 0.0515832125030124 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29451566 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29451566_16-12-2025_00_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29451566 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_P29451566_16-12-2025_00_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451585, 'pht': 3726}}" where mtr_portfolio_id = 29451566 and dashboard_run_id = 2753596 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`=29451566 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433696, 0.0515832125030124, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29451566_16-12-2025_00_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29451574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29451575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29451576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29451577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29451578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29451579, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29451580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29451581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29451582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29451583, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29451584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29451585, '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 = 29452103 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': 4233579, 'mtr_portfolio_id': 29452103, 'created_at': datetime.datetime(2025, 12, 16, 6, 11, 30), 'result': '0.043638697663322325', 'result_long': None, 'result_double': None}] Qualite : 0.043638697663322325 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29452103 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29452103_16-12-2025_06_11_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29452103 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_P29452103_16-12-2025_06_11_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29452135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29452136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29452137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29452138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29452139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29452140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29452141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29452142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29452143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29452144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29452146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29452149, 'pht': 3726}}" where mtr_portfolio_id = 29452103 and dashboard_run_id = 2753596 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`=29452103 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433697, 0.043638697663322325, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29452103_16-12-2025_06_11_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29452135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29452136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29452137, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29452138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29452139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29452140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29452141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29452142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29452143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29452144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29452146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29452149, '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 = 29453332 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': 4233580, 'mtr_portfolio_id': 29453332, 'created_at': datetime.datetime(2025, 12, 16, 6, 12, 1), 'result': '0.03181138666987177', 'result_long': None, 'result_double': None}] Qualite : 0.03181138666987177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29453332 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29453332_16-12-2025_06_12_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29453332 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_P29453332_16-12-2025_06_12_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29453334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29453335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29453336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29453337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29453338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29453339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29453340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29453341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29453342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29453343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29453344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29453345, 'pht': 3726}}" where mtr_portfolio_id = 29453332 and dashboard_run_id = 2753596 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`=29453332 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433698, 0.03181138666987177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29453332_16-12-2025_06_12_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29453334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29453335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29453336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29453337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29453338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29453339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29453340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29453341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29453342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29453343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29453344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29453345, '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 = 29453728 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': 4233581, 'mtr_portfolio_id': 29453728, 'created_at': datetime.datetime(2025, 12, 16, 6, 12, 32), 'result': '0.049330479444664566', 'result_long': None, 'result_double': None}] Qualite : 0.049330479444664566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29453728 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29453728_16-12-2025_06_12_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29453728 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_P29453728_16-12-2025_06_12_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29453735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29453736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29453737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29453738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29453739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29453740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29453741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29453742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29453743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29453744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29453745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29453746, 'pht': 3726}}" where mtr_portfolio_id = 29453728 and dashboard_run_id = 2753596 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`=29453728 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433699, 0.049330479444664566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29453728_16-12-2025_06_12_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29453735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29453736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29453737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29453738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29453739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29453740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29453741, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29453742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29453743, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29453744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29453745, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29453746, '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 = 29454116 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': 4233582, 'mtr_portfolio_id': 29454116, 'created_at': datetime.datetime(2025, 12, 16, 6, 13, 30), 'result': '0.052327176590350855', 'result_long': None, 'result_double': None}] Qualite : 0.052327176590350855 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29454116 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29454116_16-12-2025_06_13_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29454116 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_P29454116_16-12-2025_06_13_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29454123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29454124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29454125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29454126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29454127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29454128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29454129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29454130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29454131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29454132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29454133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29454134, 'pht': 3726}}" where mtr_portfolio_id = 29454116 and dashboard_run_id = 2753596 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`=29454116 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433700, 0.052327176590350855, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29454116_16-12-2025_06_13_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29454123, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29454124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29454125, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29454126, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29454127, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29454128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29454129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29454130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29454131, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29454132, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29454133, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29454134, '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 = 29454690 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': 4233583, 'mtr_portfolio_id': 29454690, 'created_at': datetime.datetime(2025, 12, 16, 6, 13, 57), 'result': '0.045000515561407765', 'result_long': None, 'result_double': None}] Qualite : 0.045000515561407765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29454690 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29454690_16-12-2025_06_13_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29454690 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_P29454690_16-12-2025_06_13_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29454698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29454699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29454700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29454701, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29454702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29454703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29454704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29454705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29454706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29454707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29454708, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29454709, 'pht': 3726}}" where mtr_portfolio_id = 29454690 and dashboard_run_id = 2753596 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`=29454690 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433701, 0.045000515561407765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29454690_16-12-2025_06_13_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29454698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29454699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29454700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29454701, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29454702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29454703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29454704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29454705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29454706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29454707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29454708, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29454709, '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 = 29455111 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': 4233584, 'mtr_portfolio_id': 29455111, 'created_at': datetime.datetime(2025, 12, 16, 6, 14, 57), 'result': '0.050983437450019924', 'result_long': None, 'result_double': None}] Qualite : 0.050983437450019924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29455111 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29455111_16-12-2025_06_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29455111 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_P29455111_16-12-2025_06_14_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29455144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29455145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29455148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29455149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29455151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29455152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29455153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29455154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455155, 'pht': 3726}}" where mtr_portfolio_id = 29455111 and dashboard_run_id = 2753596 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`=29455111 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433702, 0.050983437450019924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29455111_16-12-2025_06_14_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29455144, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29455145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29455148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29455149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29455151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29455152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29455153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29455154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455155, '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 = 29455589 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': 4233585, 'mtr_portfolio_id': 29455589, 'created_at': datetime.datetime(2025, 12, 16, 6, 15, 31), 'result': '0.04823967860108579', 'result_long': None, 'result_double': None}] Qualite : 0.04823967860108579 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29455589 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29455589_16-12-2025_06_15_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29455589 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_P29455589_16-12-2025_06_15_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455597, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29455598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29455599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29455601, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29455602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29455603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29455605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29455606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455607, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29455608, 'pht': 3726}}" where mtr_portfolio_id = 29455589 and dashboard_run_id = 2753596 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`=29455589 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433703, 0.04823967860108579, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29455589_16-12-2025_06_15_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455597, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29455598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29455599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29455601, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29455602, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29455603, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455604, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29455605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29455606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455607, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29455608, '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 = 29455995 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': 4233586, 'mtr_portfolio_id': 29455995, 'created_at': datetime.datetime(2025, 12, 16, 6, 16, 1), 'result': '0.03987484468013755', 'result_long': None, 'result_double': None}] Qualite : 0.03987484468013755 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29455995 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29455995_16-12-2025_06_16_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29455995 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_P29455995_16-12-2025_06_16_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455997, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456007, 'pht': 3726}}" where mtr_portfolio_id = 29455995 and dashboard_run_id = 2753596 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`=29455995 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433704, 0.03987484468013755, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29455995_16-12-2025_06_16_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29455996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29455997, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29455998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29455999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456005, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456007, '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 = 29456570 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': 4233587, 'mtr_portfolio_id': 29456570, 'created_at': datetime.datetime(2025, 12, 16, 6, 16, 9), 'result': '0.06229824789838939', 'result_long': None, 'result_double': None}] Qualite : 0.06229824789838939 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29456570 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29456570_16-12-2025_03_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29456570 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_P29456570_16-12-2025_03_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29456579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29456582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29456584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29456588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456590, 'pht': 3726}}" where mtr_portfolio_id = 29456570 and dashboard_run_id = 2753596 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`=29456570 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433705, 0.06229824789838939, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29456570_16-12-2025_03_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456578, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29456579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29456582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29456584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456586, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29456588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456590, '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 = 29456741 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': 4233588, 'mtr_portfolio_id': 29456741, 'created_at': datetime.datetime(2025, 12, 16, 6, 16, 30), 'result': '0.03812794991804252', 'result_long': None, 'result_double': None}] Qualite : 0.03812794991804252 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29456741 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29456741_16-12-2025_06_16_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29456741 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_P29456741_16-12-2025_06_16_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29456757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29456760, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29456762, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29456765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456767, 'pht': 3726}}" where mtr_portfolio_id = 29456741 and dashboard_run_id = 2753596 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`=29456741 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433706, 0.03812794991804252, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29456741_16-12-2025_06_16_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29456756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29456757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29456758, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29456759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29456760, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29456761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29456762, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29456763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29456764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29456765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29456766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29456767, '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 = 29457104 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': 4233589, 'mtr_portfolio_id': 29457104, 'created_at': datetime.datetime(2025, 12, 16, 6, 17, 31), 'result': '0.03516507863229614', 'result_long': None, 'result_double': None}] Qualite : 0.03516507863229614 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29457104 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29457104_16-12-2025_06_17_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29457104 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_P29457104_16-12-2025_06_17_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29457144, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29457145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29457146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29457147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29457148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29457149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29457150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29457151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29457152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29457153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29457155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29457156, 'pht': 3726}}" where mtr_portfolio_id = 29457104 and dashboard_run_id = 2753596 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`=29457104 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433707, 0.03516507863229614, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29457104_16-12-2025_06_17_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29457144, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29457145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29457146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29457147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29457148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29457149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29457150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29457151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29457152, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29457153, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29457155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29457156, '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 = 29457750 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': 4233590, 'mtr_portfolio_id': 29457750, 'created_at': datetime.datetime(2025, 12, 16, 6, 18), 'result': '0.05781912331212533', 'result_long': None, 'result_double': None}] Qualite : 0.05781912331212533 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29457750 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29457750_16-12-2025_06_18_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29457750 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_P29457750_16-12-2025_06_18_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29457784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29457785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29457786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29457787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29457788, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29457789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29457790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29457791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29457792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29457793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29457794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29457795, 'pht': 3726}}" where mtr_portfolio_id = 29457750 and dashboard_run_id = 2753596 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`=29457750 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433708, 0.05781912331212533, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29457750_16-12-2025_06_18_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29457784, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29457785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29457786, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29457787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29457788, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29457789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29457790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29457791, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29457792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29457793, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29457794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29457795, '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 = 29459040 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': 4233591, 'mtr_portfolio_id': 29459040, 'created_at': datetime.datetime(2025, 12, 16, 6, 18, 27), 'result': '0.052621194332741525', 'result_long': None, 'result_double': None}] Qualite : 0.052621194332741525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29459040 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29459040_16-12-2025_06_18_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29459040 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_P29459040_16-12-2025_06_18_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29459042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459043, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459052, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459053, 'pht': 3726}}" where mtr_portfolio_id = 29459040 and dashboard_run_id = 2753596 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`=29459040 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433709, 0.052621194332741525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29459040_16-12-2025_06_18_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29459042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459043, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459052, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459053, '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 = 29459313 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': 4233592, 'mtr_portfolio_id': 29459313, 'created_at': datetime.datetime(2025, 12, 16, 6, 19, 29), 'result': '0.055558643199874046', 'result_long': None, 'result_double': None}] Qualite : 0.055558643199874046 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29459313 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29459313_16-12-2025_06_19_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29459313 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_P29459313_16-12-2025_06_19_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29459323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459327, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459328, 'pht': 3726}}" where mtr_portfolio_id = 29459313 and dashboard_run_id = 2753596 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`=29459313 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433710, 0.055558643199874046, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29459313_16-12-2025_06_19_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459318, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29459323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459326, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459327, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459328, '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 = 29459681 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': 4233512, 'mtr_portfolio_id': 29459681, 'created_at': datetime.datetime(2025, 12, 16, 5, 49, 30), 'result': '0.049235597093003', 'result_long': None, 'result_double': None}] Qualite : 0.049235597093003 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29459681 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29459681_16-12-2025_05_49_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29459681 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_P29459681_16-12-2025_05_49_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29459684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459695, 'pht': 3726}}" where mtr_portfolio_id = 29459681 and dashboard_run_id = 2753596 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`=29459681 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433711, 0.049235597093003, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29459681_16-12-2025_05_49_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29459684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29459685, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29459686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29459687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29459688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29459689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29459690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29459691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29459692, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29459693, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29459694, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29459695, '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 = 29460076 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': 4233689, 'mtr_portfolio_id': 29460076, 'created_at': datetime.datetime(2025, 12, 16, 6, 3, 29), 'result': '0.05960082337941962', 'result_long': None, 'result_double': None}] Qualite : 0.05960082337941962 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29460076 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29460076_16-12-2025_06_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29460076 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_P29460076_16-12-2025_06_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29460079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29460080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29460081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29460082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29460083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29460084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29460085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29460086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29460087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29460088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29460089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29460090, 'pht': 3726}}" where mtr_portfolio_id = 29460076 and dashboard_run_id = 2753596 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`=29460076 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433712, 0.05960082337941962, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29460076_16-12-2025_06_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29460079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29460080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29460081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29460082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29460083, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29460084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29460085, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29460086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29460087, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29460088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29460089, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29460090, '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 = 29460421 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': 4233751, 'mtr_portfolio_id': 29460421, 'created_at': datetime.datetime(2025, 12, 16, 6, 19, 27), 'result': '0.07299457359816738', 'result_long': None, 'result_double': None}] Qualite : 0.07299457359816738 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29460421 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29460421_16-12-2025_06_19_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29460421 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_P29460421_16-12-2025_06_19_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29460425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29460426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29460427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29460428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29460429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29460430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29460431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29460432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29460433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29460434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29460435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29460436, 'pht': 3726}}" where mtr_portfolio_id = 29460421 and dashboard_run_id = 2753596 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`=29460421 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433713, 0.07299457359816738, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29460421_16-12-2025_06_19_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29460425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29460426, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29460427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29460428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29460429, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29460430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29460431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29460432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29460433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29460434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29460435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29460436, '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 = 29460888 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': 4233834, 'mtr_portfolio_id': 29460888, 'created_at': datetime.datetime(2025, 12, 16, 6, 33), 'result': '0.05773347832716938', 'result_long': None, 'result_double': None}] Qualite : 0.05773347832716938 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29460888 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29460888_16-12-2025_06_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29460888 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_P29460888_16-12-2025_06_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29460913, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29460914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29460915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29460916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29460917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29460918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29460919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29460920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29460921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29460922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29460923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29460924, 'pht': 3726}}" where mtr_portfolio_id = 29460888 and dashboard_run_id = 2753596 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`=29460888 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433714, 0.05773347832716938, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29460888_16-12-2025_06_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29460913, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29460914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29460915, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29460916, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29460917, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29460918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29460919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29460920, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29460921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29460922, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29460923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29460924, '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 = 29461351 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': 4233917, 'mtr_portfolio_id': 29461351, 'created_at': datetime.datetime(2025, 12, 16, 6, 48, 58), 'result': '0.07161656644445627', 'result_long': None, 'result_double': None}] Qualite : 0.07161656644445627 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29461351 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29461351_16-12-2025_06_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29461351 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_P29461351_16-12-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29461383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29461384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29461385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29461386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29461387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29461388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29461389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29461390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29461391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29461392, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29461393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29461394, 'pht': 3726}}" where mtr_portfolio_id = 29461351 and dashboard_run_id = 2753596 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`=29461351 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433715, 0.07161656644445627, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29461351_16-12-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29461383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29461384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29461385, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29461386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29461387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29461388, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29461389, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29461390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29461391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29461392, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29461393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29461394, '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 = 29461970 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': 4234000, 'mtr_portfolio_id': 29461970, 'created_at': datetime.datetime(2025, 12, 16, 7, 5), 'result': '0.04957080176986008', 'result_long': None, 'result_double': None}] Qualite : 0.04957080176986008 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29461970 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29461970_16-12-2025_07_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29461970 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_P29461970_16-12-2025_07_05_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29461977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29461978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29461979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29461980, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29461981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29461982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29461983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29461984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29461985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29461986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29461987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29461988, 'pht': 3726}}" where mtr_portfolio_id = 29461970 and dashboard_run_id = 2753596 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`=29461970 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433716, 0.04957080176986008, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29461970_16-12-2025_07_05_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29461977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29461978, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29461979, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29461980, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29461981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29461982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29461983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29461984, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29461985, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29461986, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29461987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29461988, '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 = 29462429 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': 4234079, 'mtr_portfolio_id': 29462429, 'created_at': datetime.datetime(2025, 12, 16, 7, 18, 57), 'result': '0.061044049128407336', 'result_long': None, 'result_double': None}] Qualite : 0.061044049128407336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29462429 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29462429_16-12-2025_07_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29462429 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_P29462429_16-12-2025_07_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29462442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29462443, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29462444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29462445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29462446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29462447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29462448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29462449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29462450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29462451, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29462452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29462453, 'pht': 3726}}" where mtr_portfolio_id = 29462429 and dashboard_run_id = 2753596 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`=29462429 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433717, 0.061044049128407336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29462429_16-12-2025_07_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29462442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29462443, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29462444, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29462445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29462446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29462447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29462448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29462449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29462450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29462451, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29462452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29462453, '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 = 29462984 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': 4234142, 'mtr_portfolio_id': 29462984, 'created_at': datetime.datetime(2025, 12, 16, 7, 33, 29), 'result': '0.05587924139226646', 'result_long': None, 'result_double': None}] Qualite : 0.05587924139226646 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29462984 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29462984_16-12-2025_07_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29462984 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_P29462984_16-12-2025_07_33_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29462992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29462993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29462994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29462995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29462996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29462997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29462998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29462999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29463000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29463001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29463002, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29463003, 'pht': 3726}}" where mtr_portfolio_id = 29462984 and dashboard_run_id = 2753596 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`=29462984 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433718, 0.05587924139226646, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29462984_16-12-2025_07_33_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29462992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29462993, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29462994, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29462995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29462996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29462997, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29462998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29462999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29463000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29463001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29463002, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29463003, '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 = 29463487 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': 4234198, 'mtr_portfolio_id': 29463487, 'created_at': datetime.datetime(2025, 12, 16, 7, 48, 59), 'result': '0.036952601507341136', 'result_long': None, 'result_double': None}] Qualite : 0.036952601507341136 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29463487 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29463487_16-12-2025_07_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29463487 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_P29463487_16-12-2025_07_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29463500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29463501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29463502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29463503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29463504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29463505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29463507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29463508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29463509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29463511, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29463512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29463514, 'pht': 3726}}" where mtr_portfolio_id = 29463487 and dashboard_run_id = 2753596 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`=29463487 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433719, 0.036952601507341136, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29463487_16-12-2025_07_48_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29463500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29463501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29463502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29463503, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29463504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29463505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29463507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29463508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29463509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29463511, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29463512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29463514, '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 = 29464019 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': 4234256, 'mtr_portfolio_id': 29464019, 'created_at': datetime.datetime(2025, 12, 16, 8, 3, 29), 'result': '0.04712234716675099', 'result_long': None, 'result_double': None}] Qualite : 0.04712234716675099 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29464019 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29464019_16-12-2025_08_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29464019 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_P29464019_16-12-2025_08_03_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29464027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29464028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29464029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29464030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29464031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29464032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29464033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29464034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29464035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29464036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29464037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29464038, 'pht': 3726}}" where mtr_portfolio_id = 29464019 and dashboard_run_id = 2753596 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`=29464019 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433720, 0.04712234716675099, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29464019_16-12-2025_08_03_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29464027, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29464028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29464029, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29464030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29464031, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29464032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29464033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29464034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29464035, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29464036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29464037, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29464038, '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 = 29464427 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': 4234316, 'mtr_portfolio_id': 29464427, 'created_at': datetime.datetime(2025, 12, 16, 8, 16, 59), 'result': '0.037517306858330234', 'result_long': None, 'result_double': None}] Qualite : 0.037517306858330234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29464427 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29464427_16-12-2025_08_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29464427 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_P29464427_16-12-2025_08_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29464449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29464450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29464451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29464452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29464453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29464454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29464455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29464456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29464457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29464458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29464459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29464460, 'pht': 3726}}" where mtr_portfolio_id = 29464427 and dashboard_run_id = 2753596 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`=29464427 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433721, 0.037517306858330234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29464427_16-12-2025_08_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29464449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29464450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29464451, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29464452, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29464453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29464454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29464455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29464456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29464457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29464458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29464459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29464460, '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 = 29464951 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': 4234377, 'mtr_portfolio_id': 29464951, 'created_at': datetime.datetime(2025, 12, 16, 8, 33), 'result': '0.05789469809338633', 'result_long': None, 'result_double': None}] Qualite : 0.05789469809338633 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29464951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29464951_16-12-2025_08_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29464951 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_P29464951_16-12-2025_08_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29464977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29464978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29464979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29464980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29464981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29464982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29464983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29464984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29464985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29464986, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29464987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29464988, 'pht': 3726}}" where mtr_portfolio_id = 29464951 and dashboard_run_id = 2753596 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`=29464951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433722, 0.05789469809338633, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29464951_16-12-2025_08_33_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29464977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29464978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29464979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29464980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29464981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29464982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29464983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29464984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29464985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29464986, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29464987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29464988, '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 = 29465543 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': 4234456, 'mtr_portfolio_id': 29465543, 'created_at': datetime.datetime(2025, 12, 16, 8, 46, 30), 'result': '0.07784109613843306', 'result_long': None, 'result_double': None}] Qualite : 0.07784109613843306 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29465543 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29465543_16-12-2025_08_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29465543 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_P29465543_16-12-2025_08_46_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29465573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29465574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29465575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29465576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29465577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29465578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29465579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29465580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29465581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29465582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29465583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29465584, 'pht': 3726}}" where mtr_portfolio_id = 29465543 and dashboard_run_id = 2753596 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`=29465543 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433723, 0.07784109613843306, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29465543_16-12-2025_08_46_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29465573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29465574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29465575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29465576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29465577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29465578, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29465579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29465580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29465581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29465582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29465583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29465584, '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 = 29466080 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': 4234518, 'mtr_portfolio_id': 29466080, 'created_at': datetime.datetime(2025, 12, 16, 15, 0, 59), 'result': '0.06759115814493749', 'result_long': None, 'result_double': None}] Qualite : 0.06759115814493749 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29466080 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29466080_16-12-2025_15_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29466080 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_P29466080_16-12-2025_15_00_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29466084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29466085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29466086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29466087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29466088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29466089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29466090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29466091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29466092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29466093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29466094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29466095, 'pht': 3726}}" where mtr_portfolio_id = 29466080 and dashboard_run_id = 2753596 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`=29466080 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433724, 0.06759115814493749, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29466080_16-12-2025_15_00_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29466084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29466085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29466086, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29466087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29466088, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29466089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29466090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29466091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29466092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29466093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29466094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29466095, '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 = 29470041 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': 4235227, 'mtr_portfolio_id': 29470041, 'created_at': datetime.datetime(2025, 12, 16, 14, 36, 59), 'result': '0.022454741465041957', 'result_long': None, 'result_double': None}] Qualite : 0.022454741465041957 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29470041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29470041_16-12-2025_14_36_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29470041 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_P29470041_16-12-2025_14_36_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29470042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29470043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29470044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29470045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29470046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29470047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29470048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29470049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29470050, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29470051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29470052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29470053, 'pht': 3726}}" where mtr_portfolio_id = 29470041 and dashboard_run_id = 2753596 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`=29470041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433725, 0.022454741465041957, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29470041_16-12-2025_14_36_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29470042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29470043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29470044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29470045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29470046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29470047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29470048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29470049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29470050, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29470051, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29470052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29470053, '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 = 29470258 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': 4235276, 'mtr_portfolio_id': 29470258, 'created_at': datetime.datetime(2025, 12, 16, 14, 48, 57), 'result': '0.05433634818256105', 'result_long': None, 'result_double': None}] Qualite : 0.05433634818256105 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29470258 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29470258_16-12-2025_14_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29470258 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_P29470258_16-12-2025_14_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29470261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29470262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29470263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29470264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29470265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29470266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29470267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29470268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29470269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29470270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29470271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29470272, 'pht': 3726}}" where mtr_portfolio_id = 29470258 and dashboard_run_id = 2753596 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`=29470258 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433726, 0.05433634818256105, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29470258_16-12-2025_14_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29470261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29470262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29470263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29470264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29470265, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29470266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29470267, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29470268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29470269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29470270, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29470271, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29470272, '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 = 29470785 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': 4235310, 'mtr_portfolio_id': 29470785, 'created_at': datetime.datetime(2025, 12, 16, 15, 3, 30), 'result': '0.05749847750807046', 'result_long': None, 'result_double': None}] Qualite : 0.05749847750807046 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29470785 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29470785_16-12-2025_15_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29470785 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_P29470785_16-12-2025_15_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29470787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29470788, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29470789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29470791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29470792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29470793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29470794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29470795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29470796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29470797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29470798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29470799, 'pht': 3726}}" where mtr_portfolio_id = 29470785 and dashboard_run_id = 2753596 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`=29470785 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433727, 0.05749847750807046, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29470785_16-12-2025_15_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29470787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29470788, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29470789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29470791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29470792, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29470793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29470794, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29470795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29470796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29470797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29470798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29470799, '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 = 29471232 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': 4235363, 'mtr_portfolio_id': 29471232, 'created_at': datetime.datetime(2025, 12, 16, 15, 17), 'result': '0.053062620065214436', 'result_long': None, 'result_double': None}] Qualite : 0.053062620065214436 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29471232 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29471232_16-12-2025_15_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29471232 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_P29471232_16-12-2025_15_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29471239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29471240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29471241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29471242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29471243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29471244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29471245, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29471246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29471247, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29471248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29471249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29471250, 'pht': 3726}}" where mtr_portfolio_id = 29471232 and dashboard_run_id = 2753596 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`=29471232 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433728, 0.053062620065214436, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29471232_16-12-2025_15_17_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29471239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29471240, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29471241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29471242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29471243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29471244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29471245, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29471246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29471247, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29471248, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29471249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29471250, '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 = 29471637 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': 4235412, 'mtr_portfolio_id': 29471637, 'created_at': datetime.datetime(2025, 12, 16, 15, 32, 59), 'result': '0.053312480759833476', 'result_long': None, 'result_double': None}] Qualite : 0.053312480759833476 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29471637 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29471637_16-12-2025_15_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29471637 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_P29471637_16-12-2025_15_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29471645, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29471646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29471647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29471648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29471649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29471650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29471651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29471652, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29471653, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29471654, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29471655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29471656, 'pht': 3726}}" where mtr_portfolio_id = 29471637 and dashboard_run_id = 2753596 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`=29471637 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433729, 0.053312480759833476, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29471637_16-12-2025_15_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29471645, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29471646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29471647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29471648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29471649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29471650, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29471651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29471652, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29471653, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29471654, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29471655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29471656, '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 = 29472066 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': 4235496, 'mtr_portfolio_id': 29472066, 'created_at': datetime.datetime(2025, 12, 16, 15, 49, 1), 'result': '0.04305150003899472', 'result_long': None, 'result_double': None}] Qualite : 0.04305150003899472 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29472066 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29472066_16-12-2025_15_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29472066 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_P29472066_16-12-2025_15_49_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29472101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29472102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29472103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29472104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29472105, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29472106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29472107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29472108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29472109, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29472110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29472111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29472113, 'pht': 3726}}" where mtr_portfolio_id = 29472066 and dashboard_run_id = 2753596 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`=29472066 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433730, 0.04305150003899472, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29472066_16-12-2025_15_49_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29472101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29472102, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29472103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29472104, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29472105, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29472106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29472107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29472108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29472109, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29472110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29472111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29472113, '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 = 29472602 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': 4235561, 'mtr_portfolio_id': 29472602, 'created_at': datetime.datetime(2025, 12, 16, 16, 3, 31), 'result': '0.036248044614315814', 'result_long': None, 'result_double': None}] Qualite : 0.036248044614315814 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29472602 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29472602_16-12-2025_16_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29472602 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_P29472602_16-12-2025_16_03_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29472628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29472629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29472630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29472631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29472632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29472633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29472634, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29472635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29472636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29472637, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29472638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29472639, 'pht': 3726}}" where mtr_portfolio_id = 29472602 and dashboard_run_id = 2753596 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`=29472602 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433731, 0.036248044614315814, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29472602_16-12-2025_16_03_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29472628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29472629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29472630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29472631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29472632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29472633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29472634, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29472635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29472636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29472637, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29472638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29472639, '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 = 29472983 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': 4235638, 'mtr_portfolio_id': 29472983, 'created_at': datetime.datetime(2025, 12, 16, 16, 18, 59), 'result': '0.03206336594021065', 'result_long': None, 'result_double': None}] Qualite : 0.03206336594021065 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29472983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29472983_16-12-2025_16_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29472983 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_P29472983_16-12-2025_16_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29473003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29473004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29473005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29473006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29473007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29473008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29473009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29473010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29473011, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29473012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29473013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29473014, 'pht': 3726}}" where mtr_portfolio_id = 29472983 and dashboard_run_id = 2753596 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`=29472983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433732, 0.03206336594021065, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29472983_16-12-2025_16_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29473003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29473004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29473005, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29473006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29473007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29473008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29473009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29473010, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29473011, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29473012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29473013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29473014, '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 = 29473851 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': 4235703, 'mtr_portfolio_id': 29473851, 'created_at': datetime.datetime(2025, 12, 16, 16, 32, 58), 'result': '0.03280438524477682', 'result_long': None, 'result_double': None}] Qualite : 0.03280438524477682 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29473851 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29473851_16-12-2025_16_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29473851 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_P29473851_16-12-2025_16_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29473858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29473859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29473860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29473862, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29473863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29473864, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29473865, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29473866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29473867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29473868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29473869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29473870, 'pht': 3726}}" where mtr_portfolio_id = 29473851 and dashboard_run_id = 2753596 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`=29473851 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433733, 0.03280438524477682, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29473851_16-12-2025_16_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29473858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29473859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29473860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29473862, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29473863, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29473864, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29473865, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29473866, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29473867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29473868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29473869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29473870, '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 = 29474246 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': 4235748, 'mtr_portfolio_id': 29474246, 'created_at': datetime.datetime(2025, 12, 16, 16, 46, 58), 'result': '0.07453358928794718', 'result_long': None, 'result_double': None}] Qualite : 0.07453358928794718 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29474246 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29474246_16-12-2025_16_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29474246 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_P29474246_16-12-2025_16_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29474289, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29474290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29474291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29474292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29474293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29474294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29474295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29474296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29474297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29474298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29474299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29474300, 'pht': 3726}}" where mtr_portfolio_id = 29474246 and dashboard_run_id = 2753596 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`=29474246 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433734, 0.07453358928794718, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29474246_16-12-2025_16_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29474289, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29474290, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29474291, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29474292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29474293, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29474294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29474295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29474296, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29474297, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29474298, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29474299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29474300, '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 = 29474708 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': 4235806, 'mtr_portfolio_id': 29474708, 'created_at': datetime.datetime(2025, 12, 16, 17, 3, 30), 'result': '0.040255735072873576', 'result_long': None, 'result_double': None}] Qualite : 0.040255735072873576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29474708 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29474708_16-12-2025_17_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29474708 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_P29474708_16-12-2025_17_03_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29474716, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29474717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29474718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29474719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29474720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29474721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29474722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29474723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29474724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29474725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29474726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29474727, 'pht': 3726}}" where mtr_portfolio_id = 29474708 and dashboard_run_id = 2753596 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`=29474708 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433735, 0.040255735072873576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29474708_16-12-2025_17_03_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29474716, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29474717, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29474718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29474719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29474720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29474721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29474722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29474723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29474724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29474725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29474726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29474727, '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 = 29475156 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': 4235878, 'mtr_portfolio_id': 29475156, 'created_at': datetime.datetime(2025, 12, 16, 17, 16, 58), 'result': '0.06067973932101885', 'result_long': None, 'result_double': None}] Qualite : 0.06067973932101885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29475156 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29475156_16-12-2025_17_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29475156 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_P29475156_16-12-2025_17_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29475164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29475165, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29475166, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29475167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29475168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29475169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29475170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29475171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29475172, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29475173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29475174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29475175, 'pht': 3726}}" where mtr_portfolio_id = 29475156 and dashboard_run_id = 2753596 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`=29475156 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433736, 0.06067973932101885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29475156_16-12-2025_17_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29475164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29475165, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29475166, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29475167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29475168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29475169, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29475170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29475171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29475172, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29475173, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29475174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29475175, '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 = 29475766 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': 4235942, 'mtr_portfolio_id': 29475766, 'created_at': datetime.datetime(2025, 12, 16, 18, 2, 59), 'result': '0.04881012727136885', 'result_long': None, 'result_double': None}] Qualite : 0.04881012727136885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29475766 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29475766_16-12-2025_18_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29475766 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_P29475766_16-12-2025_18_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29475774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29475775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29475776, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29475777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29475778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29475779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29475780, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29475781, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29475782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29475783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29475784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29475785, 'pht': 3726}}" where mtr_portfolio_id = 29475766 and dashboard_run_id = 2753596 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`=29475766 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433737, 0.04881012727136885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29475766_16-12-2025_18_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29475774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29475775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29475776, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29475777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29475778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29475779, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29475780, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29475781, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29475782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29475783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29475784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29475785, '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 = 29476819 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': 4236086, 'mtr_portfolio_id': 29476819, 'created_at': datetime.datetime(2025, 12, 16, 18, 19, 1), 'result': '0.030937937333665327', 'result_long': None, 'result_double': None}] Qualite : 0.030937937333665327 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29476819 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29476819_16-12-2025_18_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29476819 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_P29476819_16-12-2025_18_19_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29476823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29476824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29476825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29476826, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29476827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29476828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29476829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29476830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29476831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29476832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29476833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29476834, 'pht': 3726}}" where mtr_portfolio_id = 29476819 and dashboard_run_id = 2753596 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`=29476819 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433738, 0.030937937333665327, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29476819_16-12-2025_18_19_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29476823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29476824, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29476825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29476826, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29476827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29476828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29476829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29476830, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29476831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29476832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29476833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29476834, '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 = 29477167 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': 4236134, 'mtr_portfolio_id': 29477167, 'created_at': datetime.datetime(2025, 12, 16, 18, 33), 'result': '0.04437525538116638', 'result_long': None, 'result_double': None}] Qualite : 0.04437525538116638 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29477167 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29477167_16-12-2025_18_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29477167 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_P29477167_16-12-2025_18_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29477173, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29477174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29477175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29477176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29477177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29477178, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29477179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29477180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29477181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29477182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29477183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29477184, 'pht': 3726}}" where mtr_portfolio_id = 29477167 and dashboard_run_id = 2753596 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`=29477167 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433739, 0.04437525538116638, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29477167_16-12-2025_18_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29477173, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29477174, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29477175, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29477176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29477177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29477178, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29477179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29477180, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29477181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29477182, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29477183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29477184, '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 = 29477548 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': 4236201, 'mtr_portfolio_id': 29477548, 'created_at': datetime.datetime(2025, 12, 16, 18, 42, 32), 'result': '0.04653573341392172', 'result_long': None, 'result_double': None}] Qualite : 0.04653573341392172 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29477548 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29477548_16-12-2025_18_42_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29477548 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_P29477548_16-12-2025_18_42_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29477552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29477553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29477554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29477555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29477557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29477558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29477559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29477560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29477561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29477562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29477563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29477564, 'pht': 3726}}" where mtr_portfolio_id = 29477548 and dashboard_run_id = 2753596 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`=29477548 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18433740, 0.04653573341392172, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29477548_16-12-2025_18_42_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29477552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29477553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29477554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29477555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29477557, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29477558, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29477559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29477560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29477561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29477562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29477563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29477564, '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 (29450388,29450996,29451566,29452103,29453332,29453728,29454116,29454690,29455111,29455589,29455995,29456570,29456741,29457104,29457750,29459040,29459313,29459681,29460076,29460421,29460888,29461351,29461970,29462429,29462984,29463487,29464019,29464427,29464951,29465543,29466080,29470041,29470258,29470785,29471232,29471637,29472066,29472602,29472983,29473851,29474246,29474708,29475156,29475766,29476819,29477167,29477548) result : ((1399569775,), (1399569840,), (1399569914,), (1399569963,), (1399570004,), (1399570079,), (1399570082,), (1399570115,), (1399570158,), (1399570440,), (1399570473,), (1399570509,), (1399570540,), (1399570781,), (1399570794,), (1399570799,), (1399570816,), (1399570840,), (1399570850,), (1399570857,), (1399570858,), (1399570859,), (1399570860,), (1399570863,), (1399570873,), (1399570874,), (1399570875,), (1399570876,), (1399570879,), (1399571005,), (1399571039,), (1399571074,), (1399571109,), (1399571144,), (1399571180,), (1399571473,), (1399571474,), (1399571475,), (1399571476,), (1399571629,), (1399571630,), (1399571631,), (1399571632,), (1399571634,), (1399571636,), (1399571669,), (1399571670,), (1399571671,), (1399571701,), (1399571758,), (1399571822,), (1399571881,), (1399571945,), (1399572326,), (1399572363,), (1399572393,), (1399572424,), (1399572457,), (1399572701,), (1399572702,), (1399572703,), (1399572792,), (1399572827,), (1399572856,), (1399572888,), (1399572921,), (1399573118,), (1399573152,), (1399573155,), (1399573156,), (1399573186,), (1399573180,), (1399573181,), (1399573182,), (1399573183,), (1399573195,), (1399573196,), (1399573197,), (1399573198,), (1399573234,), (1399573235,), (1399573236,), (1399573237,), (1399573239,), (1399573242,), (1399573262,), (1399573263,), (1399573264,), (1399573265,), (1399573268,), (1399573286,), (1399573288,), (1399573289,), (1399573290,), (1399573292,), (1399573304,), (1399573305,), (1399573306,), (1399573307,), (1399573310,), (1399573313,), (1399573339,), (1399573340,), (1399573341,), (1399573355,), (1399573356,), (1399573357,), (1399573358,), (1399573389,), (1399573390,), (1399573393,), (1399573394,), (1399573396,), (1399573398,), (1399573411,), (1399573412,), (1399573413,), (1399573445,), (1399573446,), (1399573447,), (1399573448,), (1399573451,), (1399573460,), (1399573461,), (1399573462,), (1399573463,), (1399573487,), (1399573488,), (1399573489,), (1399573490,), (1399573492,), (1399573494,), (1399573505,), (1399573507,), (1399573509,), (1399573510,), (1399573512,), (1399573514,), (1399573528,), (1399573530,), (1399573531,), (1399573532,), (1399573558,), (1399573560,), (1399573571,), (1399573572,), (1399573576,), (1399573550,), (1399573551,), (1399573552,), (1399573555,), (1399573580,), (1399573582,), (1399573583,), (1399573585,), (1399573834,), (1399573858,), (1399573860,), (1399573873,), (1399573929,), (1399573930,), (1399573931,), (1399573932,), (1399573935,), (1399573938,), (1399573952,), (1399573953,), (1399573954,), (1399573978,), (1399573979,), (1399573980,), (1399573981,), (1399573984,), (1399573987,), (1399573997,), (1399573998,), (1399573999,), (1399574000,), (1399574022,), (1399574023,), (1399574024,), (1399574025,), (1399574028,), (1399574031,), (1399574044,), (1399574045,), (1399574046,), (1399574047,), (1399574049,), (1399574091,), (1399574095,), (1399574125,), (1399574156,), (1399574535,), (1399574565,), (1399574597,), (1399574839,), (1399574840,), (1399574841,), (1399574842,), (1399574949,), (1399574950,), (1399574951,), (1399574953,), (1399574956,), (1399574958,), (1399574967,), (1399574969,), (1399574983,), (1399574984,), (1399574985,), (1399574986,), (1399575012,), (1399575013,), (1399575015,), (1399575037,), (1399575450,), (1399575433,), (1399575444,), (1399575446,), (1399575447,), (1399575608,), (1399575643,), (1399575646,), (1399575649,), (1399575652,), (1399575655,), (1399575677,), (1399575679,), (1399575681,), (1399575695,), (1399575696,), (1399575697,), (1399575698,), (1399575701,), (1399575728,), (1399575729,), (1399575757,), (1399575788,), (1399575827,), (1399576183,), (1399576216,), (1399576249,), (1399576628,), (1399576629,), (1399576630,), (1399576631,), (1399576634,), (1399576637,), (1399576852,), (1399576860,), (1399576861,), (1399576983,), (1399576984,), (1399577593,), (1399579074,), (1399579221,), (1399579223,), (1399579264,), (1399581480,), (1399581479,), (1399581490,), (1399581491,), (1399581492,), (1399581493,), (1399581504,), (1399581505,), (1399581506,), (1399581509,), (1399581514,), (1399581528,), (1399581543,), (1399581544,), (1399581545,), (1399581559,), (1399581560,), (1399581561,), (1399581562,), (1399581578,), (1399581579,), (1399581580,), (1399581581,), (1399581584,), (1399581596,), (1399581597,), (1399581598,), (1399581599,), (1399581619,), (1399581620,), (1399581621,), (1399581622,), (1399581625,), (1399581633,), (1399581634,), (1399581635,), (1399581636,), (1399581638,), (1399581670,), (1399581671,), (1399581672,), (1399581673,), (1399581691,), (1399581692,), (1399581693,), (1399581694,), (1399581695,), (1399581714,), (1399581715,), (1399581716,), (1399581727,), (1399581728,), (1399581729,), (1399581730,), (1399581733,), (1399581735,), (1399581748,), (1399581749,), (1399581750,), (1399581751,), (1399581753,), (1399581756,), (1399581766,), (1399581767,), (1399581768,), (1399581807,), (1399581801,), (1399581802,), (1399581803,), (1399581804,), (1399581818,), (1399581819,), (1399581820,), (1399581821,), (1399581844,), (1399581845,), (1399581846,), (1399581847,), (1399581860,), (1399581862,), (1399581864,), (1399581868,), (1399581890,), (1399581891,), (1399581892,), (1399581893,), (1399581903,), (1399581904,), (1399581905,), (1399581906,), (1399581930,), (1399581931,), (1399581932,), (1399581933,), (1399581935,), (1399581953,), (1399581954,), (1399581955,), (1399581956,), (1399581958,), (1399581961,), (1399581971,), (1399581972,), (1399581973,), (1399581974,), (1399581987,), (1399581989,), (1399581991,), (1399581996,), (1399581999,), (1399582008,), (1399582009,), (1399582010,), (1399582011,), (1399582014,), (1399582029,), (1399582034,), (1399582035,), (1399582036,), (1399582095,), (1399582126,), (1399582160,), (1399582825,), (1399582829,), (1399582832,), (1399582835,), (1399582838,), (1399582861,), (1399582860,), (1399582882,), (1399582906,), (1399582938,), (1399582971,), (1399583005,), (1399583041,), (1399583356,), (1399583390,), (1399583423,), (1399583457,), (1399583492,), (1399583527,), (1399583718,), (1399583719,), (1399583949,), (1399583950,), (1399583964,), (1399583997,), (1399584007,), (1399584020,), (1399584075,), (1399584076,), (1399584077,), (1399584078,), (1399584081,), (1399584365,), (1399584399,), (1399584433,), (1399584466,), (1399584504,), (1399584541,), (1399584677,), (1399584714,), (1399584874,), (1399584907,), (1399584947,), (1399584985,), (1399585026,), (1399585184,), (1399585200,), (1399585214,), (1399585229,), (1399585235,), (1399585238,), (1399585245,), (1399585246,), (1399585247,), (1399585267,), (1399585277,), (1399585278,), (1399585279,), (1399585282,), (1399585306,), (1399585308,), (1399585309,), (1399585310,), (1399585334,), (1399585335,), (1399585336,), (1399585337,), (1399585351,), (1399585353,), (1399585355,), (1399585359,), (1399585397,), (1399585388,), (1399585390,), (1399585392,), (1399585394,), (1399585413,), (1399585414,), (1399585415,), (1399585416,), (1399585418,), (1399585451,), (1399585452,), (1399585453,), (1399585454,), (1399585473,), (1399585474,), (1399585475,), (1399585505,), (1399585506,), (1399585507,), (1399585526,), (1399585527,), (1399585528,), (1399585529,), (1399585532,), (1399585567,), (1399585568,), (1399585569,), (1399585570,), (1399585572,), (1399585585,), (1399585700,), (1399585701,), (1399585702,), (1399585703,), (1399585738,), (1399585739,), (1399585756,), (1399585758,), (1399585786,), (1399585787,), (1399585789,), (1399585790,), (1399585817,), (1399585813,), (1399585815,), (1399585816,), (1399585846,), (1399585847,), (1399585848,), (1399585849,), (1399585868,), (1399585869,), (1399585870,), (1399585899,), (1399585900,), (1399585901,), (1399585902,), (1399585905,), (1399585918,), (1399585919,), (1399585920,), (1399585921,), (1399585953,), (1399585954,), (1399585955,), (1399585956,), (1399585971,), (1399585972,), (1399585976,), (1399585980,), (1399585990,), (1399585991,), (1399586011,), (1399586012,), (1399586013,), (1399586036,), (1399586037,), (1399586038,), (1399586039,), (1399586042,), (1399586061,), (1399586063,), (1399586065,), (1399586069,), (1399586073,), (1399586095,), (1399586096,), (1399586097,), (1399586113,), (1399586114,), (1399586115,), (1399586116,), (1399586137,), (1399586138,), (1399586139,), (1399586140,), (1399586142,), (1399586144,), (1399586160,), (1399586163,), (1399586165,), (1399586202,), (1399586198,), (1399586199,), (1399586200,), (1399586201,), (1399586214,), (1399586216,), (1399586218,), (1399586222,), (1399586226,), (1399586229,), (1399586237,), (1399586238,), (1399586239,), (1399586240,), (1399586243,), (1399586246,), (1399586264,), (1399586265,), (1399586266,), (1399586300,), (1399586301,), (1399586302,), (1399586303,), (1399586305,), (1399586307,), (1399586324,), (1399586325,), (1399586326,), (1399586327,), (1399586329,), (1399586330,), (1399586350,), (1399586353,), (1399586354,), (1399586367,), (1399586368,), (1399586369,), (1399586370,), (1399586373,), (1399586392,), (1399586393,), (1399586394,), (1399586395,), (1399586398,), (1399586411,), (1399586412,), (1399586413,), (1399586430,), (1399586432,), (1399586433,), (1399586434,), (1399586437,), (1399586453,), (1399586454,), (1399586455,), (1399586456,), (1399586459,), (1399586484,), (1399586486,), (1399586487,), (1399586504,), (1399586537,), (1399586575,), (1399586933,), (1399586968,), (1399587094,), (1399587133,), (1399587171,), (1399587718,), (1399587614,), (1399587648,), (1399587683,), (1399588157,), (1399588176,), (1399588178,), (1399588203,), (1399588246,), (1399588325,), (1399588327,), (1399588329,), (1399588331,), (1399588360,), (1399588362,), (1399588363,), (1399588364,), (1399588366,), (1399588367,), (1399588379,), (1399588380,), (1399588381,), (1399588382,), (1399588385,), (1399588388,), (1399588406,), (1399588408,), (1399588409,), (1399588436,), (1399588437,), (1399588438,), (1399588439,), (1399588442,), (1399588444,), (1399588464,), (1399588466,), (1399588467,), (1399588468,), (1399588471,), (1399588480,), (1399588482,), (1399588484,), (1399588488,), (1399588509,), (1399588510,), (1399588511,), (1399588512,), (1399588515,), (1399588518,), (1399588532,), (1399588533,), (1399588534,), (1399588554,), (1399588555,), (1399588556,), (1399588557,), (1399588560,), (1399588578,), (1399588579,), (1399588580,), (1399588581,), (1399588583,), (1399588585,), (1399588610,), (1399588614,), (1399588615,), (1399588616,), (1399588636,), (1399588638,), (1399588640,), (1399588643,), (1399588681,), (1399588676,), (1399588679,), (1399588680,), (1399588695,), (1399588697,), (1399588699,), (1399588701,), (1399588704,), (1399588716,), (1399588717,), (1399588718,), (1399588719,), (1399588735,), (1399588736,), (1399588737,), (1399588738,), (1399588741,), (1399588744,), (1399588754,), (1399588755,), (1399588756,), (1399588757,), (1399588771,), (1399588773,), (1399588775,), (1399588779,), (1399588791,), (1399588792,), (1399588793,), (1399588794,), (1399588796,), (1399588808,), (1399588809,), (1399588810,), (1399588811,), (1399588823,), (1399588824,), (1399588825,), (1399588826,), (1399588828,), (1399588842,), (1399588843,), (1399588844,), (1399588845,), (1399588848,), (1399588851,), (1399588862,), (1399588863,), (1399588864,), (1399588865,), (1399588878,), (1399588879,), (1399588880,), (1399588881,), (1399588894,), (1399588895,), (1399588896,), (1399588897,), (1399588900,), (1399588910,), (1399588911,), (1399588912,), (1399588913,), (1399588925,), (1399588926,), (1399588927,), (1399588930,), (1399588933,), (1399588936,), (1399588940,), (1399588941,), (1399588950,), (1399588942,), (1399588943,), (1399588944,), (1399588947,), (1399588961,), (1399588962,), (1399588963,), (1399588964,), (1399588975,), (1399588976,), (1399588977,), (1399588978,), (1399588981,), (1399588983,), (1399588991,), (1399588992,), (1399588993,), (1399588994,), (1399588997,), (1399589009,), (1399589010,), (1399589011,), (1399589012,), (1399589022,), (1399589023,), (1399589024,), (1399589025,), (1399589028,), (1399589041,), (1399589042,), (1399589043,), (1399589044,), (1399589047,), (1399589059,), (1399589060,), (1399589061,), (1399589062,), (1399589064,), (1399589076,), (1399589077,), (1399589078,), (1399589079,), (1399589082,), (1399589085,), (1399589092,), (1399589093,), (1399589104,), (1399589105,), (1399589106,), (1399589107,), (1399589124,), (1399589126,), (1399589127,), (1399589128,), (1399589131,), (1399589167,), (1399589171,), (1399589172,), (1399589173,), (1399589199,), (1399589200,), (1399589201,), (1399589202,), (1399589205,), (1399589218,), (1399589223,), (1399589225,), (1399589226,), (1399589229,), (1399589271,), (1399589269,), (1399589270,), (1399589288,), (1399589289,), (1399589291,), (1399589292,), (1399589295,), (1399589298,), (1399589315,), (1399589316,), (1399589317,), (1399589318,), (1399589321,), (1399589324,), (1399589345,), (1399589346,), (1399589347,), (1399589365,), (1399589366,), (1399589367,), (1399589368,), (1399589371,), (1399589374,), (1399589386,), (1399589387,), (1399589388,), (1399589389,), (1399589392,), (1399589417,), (1399589418,), (1399589419,), (1399589420,), (1399589449,), (1399589450,), (1399589451,), (1399589452,), (1399589455,), (1399589473,), (1399589474,), (1399589475,), (1399589476,), (1399589502,), (1399589503,), (1399589504,), (1399589505,), (1399589522,), (1399589523,), (1399589524,), (1399589525,), (1399589528,), (1399589538,), (1399589540,), (1399589542,), (1399589546,), (1399589550,), (1399589583,), (1399589584,), (1399589585,), (1399589586,), (1399589589,), (1399589592,), (1399589813,), (1399589815,), (1399589818,), (1399589822,), (1399589824,), (1399589829,), (1399589831,), (1399589839,), (1399589842,), (1399589875,), (1399589856,), (1399589860,), (1399589864,), (1399589868,), (1399589872,), (1399589889,), (1399589895,), (1399589897,), (1399589923,), (1399589924,), (1399589925,), (1399589926,), (1399589960,), (1399589961,), (1399589962,), (1399589963,), (1399589979,), (1399590005,), (1399590031,), (1399590062,), (1399590093,), (1399590415,), (1399590443,), (1399590468,), (1399590496,), (1399590758,), (1399590788,), (1399590809,), (1399590829,), (1399590860,), (1399591336,), (1399591365,), (1399591368,), (1399591369,), (1399591390,), (1399591458,), (1399591622,), (1399591623,), (1399591624,), (1399591625,), (1399591628,), (1399591630,), (1399591660,), (1399591663,), (1399591664,), (1399591686,), (1399593533,), (1399593851,), (1399594824,), (1399594825,), (1399594826,), (1399594840,), (1399594841,), (1399594843,), (1399594845,), (1399594848,), (1399594850,), (1399594863,), (1399594865,), (1399594867,), (1399594871,), (1399594874,), (1399594877,), (1399594894,), (1399594896,), (1399594898,), (1399594909,), (1399594910,), (1399594911,), (1399594912,), (1399594914,), (1399594944,), (1399594945,), (1399594946,), (1399594947,), (1399594950,), (1399594953,), (1399594971,), (1399594972,), (1399594973,), (1399594974,), (1399594997,), (1399594998,), (1399594999,), (1399595000,), (1399595003,), (1399595006,), (1399595016,), (1399595017,), (1399595018,), (1399595019,), (1399595022,), (1399595025,), (1399595049,), (1399595043,), (1399595044,), (1399595045,), (1399595046,), (1399595059,), (1399595060,), (1399595061,), (1399595062,), (1399595064,), (1399595066,), (1399595100,), (1399595106,), (1399595108,), (1399595109,), (1399595130,), (1399595131,), (1399595132,), (1399595133,), (1399595136,), (1399595139,), (1399595170,), (1399595183,), (1399595186,), (1399595198,), (1399595199,), (1399595200,), (1399595227,), (1399595228,), (1399595246,), (1399595305,), (1399595315,), (1399595339,), (1399595340,), (1399595342,), (1399595344,), (1399595375,), (1399595377,), (1399595379,), (1399595393,), (1399595395,), (1399595420,), (1399595421,), (1399595423,), (1399595450,), (1399595446,), (1399595448,), (1399595483,), (1399595484,), (1399595496,), (1399595497,), (1399595498,), (1399595499,), (1399595502,), (1399595526,), (1399595527,), (1399595528,), (1399595529,), (1399595532,), (1399595540,), (1399595541,), (1399595542,), (1399595543,), (1399595545,), (1399595574,), (1399595576,), (1399595577,), (1399595578,), (1399595580,), (1399595598,), (1399595599,), (1399595600,), (1399595601,), (1399595604,), (1399595622,), (1399595624,), (1399595626,), (1399595642,), (1399595643,), (1399595644,), (1399595645,), (1399595683,), (1399595684,), (1399595685,), (1399595686,), (1399595689,), (1399595704,), (1399595705,), (1399595706,), (1399595707,), (1399595733,), (1399595734,), (1399595735,), (1399595756,), (1399595757,), (1399595758,), (1399595777,), (1399595832,), (1399595826,), (1399595827,), (1399595828,), (1399595829,), (1399595841,), (1399595842,), (1399595843,), (1399595882,), (1399595883,), (1399595884,), (1399595885,), (1399595907,), (1399595908,), (1399595909,), (1399595910,), (1399595930,), (1399595931,), (1399595932,), (1399595933,), (1399595936,), (1399595951,), (1399595952,), (1399595953,), (1399595954,), (1399595957,), (1399595999,), (1399596000,), (1399596001,), (1399596018,), (1399596019,), (1399596020,), (1399596023,), (1399596026,), (1399596029,), (1399596045,), (1399596047,), (1399596049,), (1399596050,), (1399596051,), (1399596054,), (1399596057,), (1399596060,), (1399596075,), (1399596077,), (1399596079,), (1399596101,), (1399596105,), (1399596106,), (1399596118,), (1399596119,), (1399596137,), (1399596170,), (1399596201,), (1399596335,), (1399596337,), (1399596338,), (1399596340,), (1399596343,), (1399596346,), (1399596363,), (1399596367,), (1399596370,), (1399596374,), (1399596376,), (1399596399,), (1399596393,), (1399596395,), (1399596397,), (1399596605,), (1399596637,), (1399596672,), (1399596704,), (1399596737,), (1399596770,), (1399597090,), (1399597122,), (1399597154,), (1399597186,), (1399597341,), (1399597342,), (1399597343,), (1399597595,), (1399597628,), (1399597641,), (1399597643,), (1399597666,), (1399597700,), (1399597701,), (1399597702,), (1399597703,), (1399597706,), (1399597730,), (1399597731,), (1399597757,), (1399597758,), (1399597759,), (1399597774,), (1399597776,), (1399597777,), (1399597779,), (1399597782,), (1399597802,), (1399597803,), (1399597804,), (1399597805,), (1399597808,), (1399597820,), (1399597821,), (1399597822,), (1399597845,), (1399597846,), (1399597847,), (1399597848,), (1399597850,), (1399597876,), (1399597877,), (1399597878,), (1399597879,), (1399597881,), (1399597900,), (1399597901,), (1399597902,), (1399597903,), (1399597906,), (1399597909,), (1399597926,), (1399597930,), (1399597933,), (1399597956,), (1399597950,), (1399597951,), (1399597952,), (1399597953,), (1399597975,), (1399597976,), (1399597977,), (1399597978,), (1399598006,), (1399598008,), (1399598010,), (1399598011,), (1399598027,), (1399598028,), (1399598029,), (1399598030,), (1399598032,), (1399598064,), (1399598066,), (1399598082,), (1399598083,), (1399598116,), (1399598119,), (1399598121,), (1399598123,), (1399598126,), (1399598140,), (1399598141,), (1399598142,), (1399598143,), (1399598146,), (1399598172,), (1399598173,), (1399598174,), (1399598175,), (1399598209,), (1399598213,), (1399598214,), (1399598215,), (1399598235,), (1399598236,), (1399598237,), (1399598266,), (1399598268,), (1399598270,), (1399598274,), (1399598278,), (1399598329,), (1399598332,), (1399598334,), (1399598338,), (1399598356,), (1399598357,), (1399598358,), (1399598392,), (1399598393,), (1399598395,), (1399598396,), (1399598438,), (1399598415,), (1399598418,), (1399598426,), (1399598432,), (1399598435,), (1399598442,), (1399598444,), (1399598446,), (1399598469,), (1399598470,), (1399598471,), (1399598472,), (1399598524,), (1399598527,), (1399598529,), (1399598531,), (1399598534,), (1399598535,), (1399598550,), (1399598552,), (1399598553,), (1399598556,), (1399598559,), (1399598562,), (1399598583,), (1399598591,), (1399598622,), (1399598624,), (1399598626,), (1399598661,), (1399598663,), (1399598665,), (1399598688,), (1399598689,), (1399598690,), (1399598691,), (1399598725,), (1399598745,), (1399598747,), (1399598749,), (1399598785,), (1399598787,), (1399598789,), (1399598791,), (1399598794,), (1399598807,), (1399598808,), (1399598809,), (1399598810,), (1399598836,), (1399598841,), (1399598863,), (1399598866,), (1399598868,), (1399598872,), (1399598877,), (1399598919,), (1399598903,), (1399598905,), (1399598907,), (1399598911,), (1399598916,), (1399598933,), (1399598934,), (1399598935,), (1399598975,), (1399598976,), (1399598977,), (1399598997,), (1399598999,), (1399599001,), (1399599002,), (1399599004,), (1399599027,), (1399599029,), (1399599031,), (1399599032,), (1399599035,), (1399599056,), (1399599057,), (1399599058,), (1399599059,), (1399599062,), (1399599105,), (1399599126,), (1399599128,), (1399599155,), (1399599157,), (1399599181,), (1399599183,), (1399599185,), (1399599189,), (1399599193,), (1399599201,), (1399599203,), (1399599205,), (1399599235,), (1399599236,), (1399599251,), (1399599255,), (1399599260,), (1399599294,), (1399599282,), (1399599284,), (1399599287,), (1399599290,), (1399599308,), (1399599310,), (1399599312,), (1399599314,), (1399599335,), (1399599337,), (1399599341,), (1399599345,), (1399599350,), (1399599361,), (1399599370,), (1399599371,), (1399599373,), (1399599375,), (1399599381,), (1399599382,), (1399599384,), (1399599396,), (1399599397,), (1399599398,), (1399599399,), (1399599401,), (1399599633,), (1399599665,), (1399599679,), (1399599729,), (1399599735,), (1399599736,), (1399599737,), (1399599740,), (1399599741,), (1399599758,), (1399599760,), (1399599762,), (1399599799,), (1399599800,), (1399599801,), (1399599802,), (1399599804,), (1399599814,), (1399600046,), (1399602790,), (1399602770,), (1399602787,), (1399602812,), (1399602814,), (1399602816,), (1399602818,), (1399602821,), (1399602835,), (1399602836,), (1399602841,), (1399602875,), (1399602885,), (1399602889,), (1399602892,), (1399602928,), (1399602941,), (1399602960,), (1399602961,), (1399602964,), (1399602981,), (1399602982,), (1399602983,), (1399602986,), (1399602989,), (1399602992,), (1399602999,), (1399603000,), (1399603023,), (1399603025,), (1399603031,), (1399603034,), (1399603037,), (1399603039,), (1399603051,), (1399603053,), (1399603055,), (1399603057,), (1399603061,), (1399603098,), (1399603099,), (1399603100,), (1399603415,), (1399603418,), (1399603421,), (1399603425,), (1399603429,), (1399603432,), (1399603646,), (1399603651,), (1399603653,), (1399603676,), (1399603798,), (1399603817,), (1399603854,), (1399604120,), (1399604122,), (1399604125,), (1399604127,), (1399604129,), (1399604383,), (1399604216,), (1399604246,), (1399604278,), (1399604309,), (1399604348,), (1399604442,), (1399604443,), (1399604444,), (1399604445,), (1399604448,), (1399604468,), (1399604471,), (1399604754,), (1399604755,), (1399604756,), (1399604921,), (1399604922,), (1399604923,), (1399604924,), (1399604927,), (1399605083,), (1399605085,), (1399605110,), (1399605119,), (1399605137,), (1399605138,), (1399605139,), (1399605165,), (1399605166,), (1399605167,), (1399605168,), (1399605184,), (1399605186,), (1399605188,), (1399605190,), (1399605223,), (1399605225,), (1399605227,), (1399605230,), (1399605234,), (1399605238,), (1399605249,), (1399605256,), (1399605258,), (1399605260,), (1399605262,), (1399605305,), (1399605306,), (1399605307,), (1399605308,), (1399605453,), (1399605455,), (1399605457,), (1399605483,), (1399605516,), (1399605536,), (1399605581,), (1399605586,), (1399605597,), (1399605598,), (1399605599,), (1399605602,), (1399605605,), (1399605620,), (1399605622,), (1399605625,), (1399605627,), (1399605668,), (1399605662,), (1399605663,), (1399605664,), (1399605665,), (1399605688,), (1399605697,), (1399605700,), (1399605730,), (1399605731,), (1399605732,), (1399605733,), (1399605748,), (1399605749,), (1399605750,), (1399605751,), (1399605770,), (1399605771,), (1399605772,), (1399605793,), (1399605795,), (1399605825,), (1399605828,), (1399605830,), (1399605832,), (1399605847,), (1399605849,), (1399605852,), (1399605856,), (1399605861,), (1399605869,), (1399605880,), (1399605885,), (1399605887,), (1399605895,), (1399605898,), (1399605903,), (1399605907,), (1399605912,), (1399605917,), (1399605919,), (1399605921,), (1399605949,), (1399605950,), (1399605951,), (1399605952,), (1399605968,), (1399605970,), (1399605972,), (1399605973,), (1399605975,), (1399605992,), (1399605993,), (1399605994,), (1399605995,), (1399605998,), (1399606835,), (1399606838,), (1399606848,), (1399606960,), (1399606962,), (1399607007,), (1399607017,), (1399607055,), (1399607063,), (1399607092,), (1399607099,), (1399607113,), (1399607114,), (1399607227,), (1399607163,), (1399607188,), (1399607190,), (1399607199,), (1399607247,), (1399607249,), (1399607610,), (1399607644,), (1399607674,), (1399607708,), (1399608099,), (1399608131,), (1399608143,), (1399608144,), (1399608242,), (1399608275,), (1399608308,), (1399608339,), (1399608371,), (1399608529,), (1399608544,), (1399608550,), (1399608551,), (1399608553,), (1399608575,), (1399608576,), (1399608578,), (1399608607,), (1399608623,), (1399608624,), (1399608625,), (1399608647,), (1399608649,), (1399608651,), (1399608652,), (1399608665,), (1399608667,), (1399608669,), (1399608671,), (1399608674,), (1399608703,), (1399608705,), (1399608706,), (1399608708,), (1399608712,), (1399608736,), (1399608738,), (1399608740,), (1399608778,), (1399608779,), (1399608780,), (1399608781,), (1399608783,), (1399608784,), (1399608804,), (1399608806,), (1399608808,), (1399608810,), (1399608813,), (1399608837,), (1399608831,), (1399608833,), (1399608835,), (1399608854,), (1399608855,), (1399608856,), (1399608857,), (1399608880,), (1399608882,), (1399608884,), (1399608887,), (1399608908,), (1399608909,), (1399608910,), (1399608911,), (1399608938,), (1399608940,), (1399608942,), (1399608960,), (1399608961,), (1399609006,), (1399609009,), (1399609011,), (1399609013,), (1399609031,), (1399609032,), (1399609033,), (1399609036,), (1399609039,), (1399609042,), (1399609113,), (1399609146,), (1399609179,), (1399609327,), (1399609342,), (1399609344,), (1399609347,), (1399609356,), (1399609511,), (1399609512,), (1399609514,), (1399609552,), (1399609553,), (1399609554,), (1399609555,), (1399609575,), (1399609577,), (1399609579,), (1399609581,), (1399609623,), (1399609625,), (1399609627,), (1399609629,), (1399609653,), (1399609655,), (1399609657,), (1399609659,), (1399609685,), (1399609687,), (1399609689,), (1399609690,), (1399609692,), (1399609741,), (1399609733,), (1399609735,), (1399609737,), (1399609739,), (1399609772,), (1399609774,), (1399609775,), (1399609776,), (1399609778,), (1399609794,), (1399609795,), (1399609796,), (1399609797,), (1399609800,), (1399609831,), (1399609836,), (1399609838,), (1399609853,), (1399609855,), (1399609857,), (1399609861,), (1399609877,), (1399609878,), (1399609879,), (1399609898,), (1399609899,), (1399609901,), (1399609934,), (1399610047,), (1399610233,), (1399610442,), (1399610476,), (1399610481,), (1399610580,), (1399610581,), (1399611077,), (1399611193,), (1399611224,), (1399611253,), (1399611518,), (1399611520,), (1399611536,), (1399611538,), (1399611540,), (1399611542,), (1399611545,), (1399611559,), (1399611560,), (1399611561,), (1399611587,), (1399611588,), (1399611590,), (1399611635,), (1399611642,), (1399611683,), (1399611685,), (1399611687,), (1399611689,), (1399611692,), (1399611706,), (1399611708,), (1399611710,), (1399611714,), (1399611718,), (1399611748,), (1399611750,), (1399611752,), (1399611754,), (1399611757,), (1399611767,), (1399658660,), (1399658658,), (1399658880,), (1399658883,), (1399659048,), (1399659084,), (1399659563,), (1399659616,), (1399659617,), (1399659992,), (1399659990,), (1399660246,), (1399660248,), (1399660275,), (1399660276,), (1399660357,), (1399660360,), (1399660363,), (1399660420,), (1399660452,), (1399660485,), (1399660522,), (1399660961,), (1399661068,), (1399661070,), (1399661072,), (1399661074,), (1399661149,), (1399661182,), (1399661218,), (1399661371,), (1399661373,), (1399661375,), (1399661377,), (1399661627,), (1399661630,), (1399661632,), (1399661640,), (1399661664,), (1399661668,), (1399661682,), (1399661726,), (1399661787,), (1399662004,), (1399662034,), (1399662046,), (1399662287,), (1399662346,), (1399662324,), (1399662326,), (1399662328,), (1399662330,), (1399662339,), (1399662356,), (1399662358,), (1399662360,), (1399662363,), (1399662366,), (1399662375,), (1399662377,), (1399662378,), (1399662380,), (1399662383,), (1399662720,), (1399662754,), (1399663096,), (1399663124,), (1399663156,), (1399663192,), (1399663258,), (1399663474,), (1399663475,), (1399663476,), (1399663477,), (1399663480,), (1399663516,), (1399663517,), (1399663518,), (1399663519,), (1399663534,), (1399663536,), (1399663538,), (1399663540,), (1399663570,), (1399663572,), (1399663597,), (1399663599,), (1399663601,), (1399663603,), (1399663638,), (1399663639,), (1399663641,), (1399663643,), (1399663646,), (1399663649,), (1399663660,), (1399663662,), (1399663664,), (1399663666,), (1399663670,), (1399663692,), (1399663694,), (1399663696,), (1399663698,), (1399663731,), (1399663735,), (1399663738,), (1399663777,), (1399663769,), (1399663771,), (1399663773,), (1399663796,), (1399663798,), (1399663800,), (1399663802,), (1399663805,), (1399663819,), (1399663820,), (1399663850,), (1399663856,), (1399663858,), (1399663860,), (1399663863,), (1399663866,), (1399663879,), (1399663880,), (1399663881,), (1399663882,), (1399663884,), (1399663886,), (1399663949,), (1399663952,), (1399663976,), (1399663977,), (1399663978,), (1399663979,), (1399663982,), (1399663984,), (1399664010,), (1399664012,), (1399664014,), (1399664016,), (1399664029,), (1399664030,), (1399664032,), (1399664034,), (1399664065,), (1399664067,), (1399664069,), (1399664087,), (1399664088,), (1399664089,), (1399664090,), (1399664093,), (1399664096,), (1399664139,), (1399664141,), (1399664142,), (1399664144,), (1399664147,), (1399664175,), (1399664176,), (1399664178,), (1399664180,), (1399664183,), (1399664185,), (1399664215,), (1399664219,), (1399664258,), (1399664261,), (1399664262,), (1399664263,), (1399664266,), (1399664280,), (1399664282,), (1399664285,), (1399664287,), (1399664290,), (1399664294,), (1399664309,), (1399664307,), (1399664308,), (1399664324,), (1399664325,), (1399664326,), (1399664327,), (1399664330,), (1399664333,), (1399664361,), (1399664362,), (1399664364,), (1399664368,), (1399664371,), (1399664374,), (1399664384,), (1399664386,), (1399664388,), (1399664390,), (1399664391,), (1399664393,), (1399664396,), (1399664399,), (1399664425,), (1399664426,), (1399664427,), (1399664428,), (1399664431,), (1399664448,), (1399664449,), (1399664450,), (1399664451,), (1399664454,), (1399664457,), (1399664515,), (1399664516,), (1399664517,), (1399664518,), (1399664521,), (1399664523,), (1399664536,), (1399664537,), (1399664538,), (1399664568,), (1399664569,), (1399664570,), (1399664573,), (1399664576,), (1399664579,), (1399664591,), (1399664594,), (1399664597,), (1399664601,), (1399664602,), (1399664603,), (1399664606,), (1399664632,), (1399664633,), (1399664634,), (1399664635,), (1399664638,), (1399664650,), (1399664651,), (1399664652,), (1399664653,), (1399664656,), (1399664677,), (1399664678,), (1399664685,), (1399664690,), (1399664700,), (1399664703,), (1399664707,), (1399664708,), (1399664709,), (1399664710,), (1399664711,), (1399664712,), (1399664713,), (1399664737,), (1399664744,), (1399664746,), (1399664747,), (1399664750,), (1399664754,), (1399664772,), (1399664767,), (1399664769,), (1399664771,), (1399664788,), (1399664790,), (1399664792,), (1399664794,), (1399664811,), (1399664812,), (1399664813,), (1399664814,), (1399664817,), (1399664829,), (1399664830,), (1399664831,), (1399664834,), (1399664837,), (1399664840,), (1399664846,), (1399664847,), (1399664848,), (1399664849,), (1399664850,), (1399664851,), (1399664858,), (1399664867,), (1399664910,), (1399664912,), (1399664914,), (1399664916,), (1399664921,), (1399664924,), (1399664952,), (1399664955,), (1399664957,), (1399664987,), (1399664988,), (1399664991,), (1399664994,), (1399664997,), (1399664999,), (1399665003,), (1399665004,), (1399665005,), (1399665007,), (1399665011,), (1399665062,), (1399665063,), (1399665064,), (1399665065,), (1399665068,), (1399665080,), (1399665081,), (1399665082,), (1399665083,), (1399665085,), (1399665087,), (1399665122,), (1399665155,), (1399665186,), (1399665220,), (1399665263,), (1399665264,), (1399665265,), (1399665266,), (1399665270,), (1399665273,), (1399665294,), (1399665295,), (1399665296,), (1399665299,), (1399665302,), (1399665303,), (1399665311,), (1399665312,), (1399665314,), (1399665316,), (1399665320,), (1399665321,), (1399665331,), (1399665338,), (1399665341,), (1399665395,), (1399665386,), (1399665387,), (1399665388,), (1399665389,), (1399665392,), (1399665401,), (1399665403,), (1399665405,), (1399665409,), (1399665442,), (1399665443,), (1399665446,), (1399665449,), (1399665452,), (1399665454,), (1399665471,), (1399665474,), (1399665477,), (1399665480,), (1399665484,), (1399665492,), (1399665499,), (1399665502,), (1399665505,), (1399665506,), (1399665508,), (1399665510,), (1399665516,), (1399665517,), (1399665520,), (1399665521,), (1399665524,), (1399665525,), (1399665530,), (1399665531,), (1399665534,), (1399665535,), (1399665537,), (1399665538,), (1399665542,), (1399665543,), (1399665544,), (1399665556,), (1399665589,), (1399665623,), (1399665858,), (1399665859,), (1399665861,), (1399665922,), (1399665934,), (1399665941,), (1399665944,), (1399665947,), (1399665962,), (1399665979,), (1399665980,), (1399665983,), (1399665985,), (1399666007,), (1399666008,), (1399666009,), (1399666010,), (1399666013,), (1399666016,), (1399666038,), (1399666039,), (1399666040,), (1399666042,), (1399666046,), (1399666049,), (1399666061,), (1399666062,), (1399666063,), (1399666064,), (1399666091,), (1399666092,), (1399666093,), (1399666096,), (1399666099,), (1399666101,), (1399666108,), (1399666110,), (1399666111,), (1399666112,), (1399666116,), (1399666120,), (1399666124,), (1399666246,), (1399666156,), (1399666157,), (1399666177,), (1399666210,), (1399666835,), (1399666899,), (1399666965,), (1399667028,), (1399667095,), (1399667164,), (1399667801,), (1399667866,), (1399667935,), (1399668872,), (1399668932,), (1399669000,), (1399669067,), (1399669129,), (1399669193,), (1399669430,), (1399669465,), (1399669658,), (1399669729,), (1399669810,), (1399669920,), (1399670741,), (1399670767,), (1399670790,), (1399670836,), (1399670888,), (1399671314,), (1399671381,), (1399671449,), (1399671881,), (1399671911,), (1399671957,), (1399672010,), (1399672034,), (1399672072,), (1399672387,), (1399672445,), (1399672485,), (1399672533,), (1399672712,), (1399672713,), (1399672714,), (1399672715,), (1399672718,), (1399672821,), (1399672857,), (1399672871,), (1399672919,), (1399672921,), (1399672922,), (1399672952,), (1399672991,), (1399673029,), (1399673270,), (1399673274,), (1399673279,), (1399673319,), (1399673362,), (1399673389,), (1399673504,), (1399673505,), (1399673506,), (1399673510,), (1399673524,), (1399673531,), (1399673542,), (1399673543,), (1399673548,), (1399673551,), (1399673554,), (1399673555,), (1399673689,), (1399673625,), (1399673660,), (1399673683,), (1399673685,), (1399673687,), (1399673878,), (1399673912,), (1399673919,), (1399673920,), (1399673956,), (1399673957,), (1399673958,), (1399673962,), (1399673965,), (1399673969,), (1399673985,), (1399673988,), (1399673989,), (1399673990,), (1399673991,), (1399673994,), (1399673997,), (1399674008,), (1399674009,), (1399674010,), (1399674011,), (1399674025,), (1399674026,), (1399674027,), (1399674028,), (1399674030,), (1399674090,), (1399674094,), (1399674095,), (1399674098,), (1399674101,), (1399674115,), (1399674118,), (1399674121,), (1399674124,), (1399674127,), (1399674139,), (1399674309,), (1399674346,), (1399674379,), (1399674445,), (1399674447,), (1399674449,), (1399674450,), (1399674454,), (1399674584,), (1399674587,), (1399674589,), (1399674593,), (1399674597,), (1399674620,), (1399674623,), (1399674637,), (1399674639,), (1399674641,), (1399674644,), (1399674647,), (1399674650,), (1399674676,), (1399674677,), (1399674680,), (1399674683,), (1399674686,), (1399674689,), (1399674712,), (1399674725,), (1399674733,), (1399674745,), (1399674757,), (1399674759,), (1399674764,), (1399674765,), (1399674775,), (1399674776,), (1399674781,), (1399674782,), (1399674785,), (1399674786,), (1399674789,), (1399674790,), (1399674795,), (1399674796,), (1399674797,), (1399674798,), (1399674834,), (1399674823,), (1399674824,), (1399674825,), (1399674828,), (1399674831,), (1399674855,), (1399674856,), (1399674857,), (1399674879,), (1399674880,), (1399674882,), (1399674883,), (1399674886,), (1399674907,), (1399674908,), (1399674909,), (1399674919,), (1399674953,), (1399674960,), (1399674961,), (1399674962,), (1399674965,), (1399674968,), (1399674981,), (1399674982,), (1399674983,), (1399675041,), (1399675065,), (1399675086,), (1399675087,), (1399675089,), (1399675120,), (1399675121,), (1399675122,), (1399675145,), (1399675174,), (1399675182,), (1399675218,), (1399675219,), (1399675220,), (1399675221,), (1399675224,), (1399675226,), (1399675236,), (1399675237,), (1399675240,), (1399675269,), (1399675270,), (1399675271,), (1399675312,), (1399675310,), (1399675311,), (1399675332,), (1399675333,), (1399675334,), (1399675335,), (1399675353,), (1399675355,), (1399675357,), (1399675360,), (1399675362,), (1399675364,), (1399675403,), (1399675409,), (1399675413,), (1399675415,), (1399675417,), (1399675419,), (1399675422,), (1399675470,), (1399675517,), (1399675518,), (1399675542,), (1399675543,), (1399675544,), (1399675547,), (1399675549,), (1399675551,), (1399675573,), (1399675574,), (1399675575,), (1399675576,), (1399675578,), (1399675581,), (1399675602,), (1399675603,), (1399675604,), (1399675605,), (1399675623,), (1399675624,), (1399675625,), (1399675657,), (1399675658,), (1399675659,), (1399675981,), (1399675985,), (1399675988,), (1399675990,), (1399675992,), (1399675994,), (1399676022,), (1399676020,), (1399676234,), (1399676265,), (1399676295,), (1399676327,), (1399676372,), (1399677066,), (1399677128,), (1399677188,), (1399677248,), (1399677316,), (1399677975,), (1399678008,), (1399678027,), (1399678030,), (1399678032,), (1399678034,), (1399678042,), (1399678044,), (1399678045,), (1399678050,), (1399678060,), (1399678132,), (1399678193,), (1399678257,), (1399678751,), (1399678794,), (1399678801,), (1399678807,), (1399678810,), (1399678827,), (1399678993,), (1399678994,), (1399678995,), (1399678996,), (1399678999,), (1399679023,), (1399679024,), (1399679025,), (1399679028,), (1399679031,), (1399679034,), (1399679050,), (1399679051,), (1399679052,), (1399679053,), (1399679057,), (1399679061,), (1399679066,), (1399679076,), (1399679153,), (1399679154,), (1399679157,), (1399679165,), (1399679177,), (1399679180,), (1399679247,), (1399679248,), (1399679249,), (1399679250,), (1399679253,), (1399679432,), (1399679433,), (1399679436,), (1399679484,), (1399679490,), (1399679492,), (1399679496,), (1399679500,), (1399679504,), (1399679536,), (1399679537,), (1399679561,), (1399679588,), (1399679631,), (1399679675,), (1399679718,), (1399679720,), (1399679721,), (1399679750,), (1399679908,), (1399679938,), (1399679969,), (1399680037,), (1399680025,), (1399680026,), (1399680262,), (1399680263,), (1399680264,), (1399680276,), (1399680397,), (1399680398,), (1399680399,), (1399680402,), (1399680404,), (1399680406,), (1399680421,), (1399680425,), (1399680426,), (1399680429,), (1399680432,), (1399680435,), (1399680438,), (1399680459,), (1399680460,), (1399680491,), (1399680549,), (1399680613,), (1399681532,), (1399681564,), (1399681595,), (1399681602,), (1399681605,), (1399681707,), (1399681708,), (1399681724,), (1399681755,), (1399681791,), (1399681824,), (1399681864,), (1399681865,), (1399681866,), (1399681869,), (1399681872,), (1399681875,), (1399681891,), (1399681892,), (1399681893,), (1399681894,), (1399681895,), (1399681896,), (1399681899,), (1399681917,), (1399681918,), (1399681919,), (1399681920,), (1399681923,), (1399681925,), (1399681939,), (1399681940,), (1399681941,), (1399681942,), (1399681945,), (1399681948,), (1399681983,), (1399681984,), (1399681985,), (1399681988,), (1399681991,), (1399681994,), (1399682000,), (1399682001,), (1399682002,), (1399682003,), (1399682004,), (1399682008,), (1399682011,), (1399682013,), (1399682016,), (1399682020,), (1399682027,), (1399682036,), (1399682037,), (1399682038,), (1399682039,), (1399684407,), (1399684441,), (1399684443,), (1399684445,), (1399684446,), (1399684449,), (1399684463,), (1399684464,), (1399684465,), (1399684489,), (1399684491,), (1399684493,), (1399684496,), (1399684499,), (1399684511,), (1399684513,), (1399684515,), (1399684517,), (1399684544,), (1399684545,), (1399684546,), (1399684562,), (1399684564,), (1399684566,), (1399684568,), (1399684572,), (1399684588,), (1399684590,), (1399684592,), (1399684594,), (1399684597,), (1399684599,), (1399684605,), (1399684607,), (1399684609,), (1399684611,), (1399684613,), (1399684615,), (1399684616,), (1399684648,), (1399684650,), (1399684652,), (1399684654,), (1399684657,), (1399684671,), (1399684672,), (1399684673,), (1399684674,), (1399684677,), (1399684680,), (1399684692,), (1399684694,), (1399684696,), (1399684698,), (1399684701,), (1399684704,), (1399684714,), (1399684716,), (1399684718,), (1399684722,), (1399684744,), (1399684745,), (1399684748,), (1399684751,), (1399684753,), (1399684755,), (1399684761,), (1399684762,), (1399684764,), (1399684768,), (1399684769,), (1399684772,), (1399684775,), (1399684816,), (1399684806,), (1399684808,), (1399684809,), (1399684810,), (1399684813,), (1399684828,), (1399684829,), (1399684830,), (1399684831,), (1399684833,), (1399684835,), (1399684861,), (1399684862,), (1399684863,), (1399684866,), (1399684869,), (1399684872,), (1399684883,), (1399684884,), (1399684885,), (1399684886,), (1399684887,), (1399684888,), (1399684889,), (1399684892,), (1399684895,), (1399684898,), (1399684914,), (1399684916,), (1399684917,), (1399684918,), (1399684921,), (1399684932,), (1399684934,), (1399684937,), (1399684941,), (1399684945,), (1399684948,), (1399684973,), (1399684974,), (1399684975,), (1399684976,), (1399684988,), (1399684989,), (1399684990,), (1399685021,), (1399685022,), (1399685023,), (1399685026,), (1399685029,), (1399685158,), (1399685156,), (1399685189,), (1399685195,), (1399685205,), (1399685206,), (1399685209,), (1399685212,), (1399685221,), (1399685222,), (1399685223,), (1399685224,), (1399685253,), (1399685256,), (1399685257,), (1399685258,), (1399685261,), (1399685268,), (1399685270,), (1399685272,), (1399685292,), (1399685293,), (1399685294,), (1399685295,), (1399685298,), (1399685301,), (1399685310,), (1399685313,), (1399685314,), (1399685315,), (1399685316,), (1399685339,), (1399685340,), (1399685341,), (1399685344,), (1399685347,), (1399685350,), (1399685358,), (1399685359,), (1399685360,), (1399685361,), (1399685363,), (1399685364,), (1399685365,), (1399685395,), (1399685396,), (1399685397,), (1399685398,), (1399685401,), (1399685413,), (1399685415,), (1399685417,), (1399685421,), (1399685425,), (1399685429,), (1399685450,), (1399685452,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16122025': {'nb_upload': 56, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29477548]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1399685452, 1399685450, 1399685429, 1399685425, 1399685421, 1399685417, 1399685415, 1399685413, 1399685401, 1399685398, 1399685397, 1399685396, 1399685395] map_info['map_portfolio_photo'] : {29477548: [1399685452, 1399685450, 1399685429, 1399685425, 1399685421, 1399685417, 1399685415, 1399685413, 1399685401, 1399685398, 1399685397, 1399685396, 1399685395, 1399685365, 1399685364, 1399685363, 1399685361, 1399685360, 1399685359, 1399685358, 1399685350, 1399685347, 1399685344, 1399685341, 1399685340, 1399685339, 1399685316, 1399685315, 1399685314, 1399685313, 1399685310, 1399685301, 1399685298, 1399685295, 1399685294, 1399685293, 1399685292, 1399685272, 1399685270, 1399685268, 1399685261, 1399685258, 1399685257, 1399685256, 1399685253, 1399685224, 1399685223, 1399685222, 1399685221, 1399685212, 1399685209, 1399685206, 1399685205, 1399685195, 1399685189, 1399685156]} final : True mtd_id 4302 list_pids : [1399685452, 1399685450, 1399685429, 1399685425, 1399685421, 1399685417, 1399685415, 1399685413, 1399685401, 1399685398, 1399685397, 1399685396, 1399685395] Looping around the photos to save general results len do output : 1 /29477548Didn'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, '4236201') ('4302', '29477548', '1399685452', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685450', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685429', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685425', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685421', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685417', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685415', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685413', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685401', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685398', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685397', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685396', None, None, None, None, None, '4236201') ('4302', None, None, None, None, None, None, None, '4236201') ('4302', '29477548', '1399685395', None, None, None, None, None, '4236201') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '29477548', 'None', None, None, None, None, '4236201'), ('4302', '29477548', '1399685452', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685450', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685429', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685425', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685421', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685417', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685415', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685413', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685401', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685398', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685397', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685396', None, None, None, None, None, '4236201'), ('4302', '29477548', '1399685395', None, None, None, None, None, '4236201')] time used for this insertion : 0.02368450164794922 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.6920483112335205 time spend to save output : 0.023955106735229492 total time spend for step 5 : 3.71600341796875 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 (4236201) 2.60user 2.31system 0:15.22elapsed 32%CPU (0avgtext+0avgdata 167556maxresident)k 16inputs+14016outputs (16major+80355minor)pagefaults 0swaps