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 : 3086571 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 (2942801) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2942801) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23290420 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2942801'] with mtr_portfolio_ids : ['23290420'] and first list_photo_ids : [] new path : /proc/3086571/ Name: python3 Umask: 0002 State: R (running) Tgid: 3086571 Ngid: 0 Pid: 3086571 PPid: 3086570 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3086571 NSpid: 3086571 NSpgid: 3084703 NSsid: 3084703 VmPeak: 1107216 kB VmSize: 1107216 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99456 kB VmRSS: 99456 kB RssAnon: 60212 kB RssFile: 39244 kB RssShmem: 0 kB VmData: 865964 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 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: 52 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3086571', 'Ngid': '0', 'Pid': '3086571', 'PPid': '3086570', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3086571', 'NSpid': '3086571', 'NSpgid': '3084703', 'NSsid': '3084703', 'VmPeak': '1107216 kB', 'VmSize': '1107216 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99456 kB', 'VmRSS': '99456 kB', 'RssAnon': '60212 kB', 'RssFile': '39244 kB', 'RssShmem': '0 kB', 'VmData': '865964 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', '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': '52', 'nonvoluntary_ctxt_switches': '93'} ('datou_batch_current', '3086571', '1107216', '0', '1107216', '865964', '99456', b'', 'marlene', '2942801') 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 ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (23290420) 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 (2942801 ) ) 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 (23290420) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1360699638, 'portfolio_id': 23290420}, {'photo_id': 1360699605, 'portfolio_id': 23290420}, {'photo_id': 1360699601, 'portfolio_id': 23290420}, {'photo_id': 1360699598, 'portfolio_id': 23290420}, {'photo_id': 1360699534, 'portfolio_id': 23290420}, {'photo_id': 1360699531, 'portfolio_id': 23290420}, {'photo_id': 1360699527, 'portfolio_id': 23290420}, {'photo_id': 1360699523, 'portfolio_id': 23290420}, {'photo_id': 1360699520, 'portfolio_id': 23290420}, {'photo_id': 1360699453, 'portfolio_id': 23290420}, {'photo_id': 1360699450, 'portfolio_id': 23290420}, {'photo_id': 1360699448, 'portfolio_id': 23290420}, {'photo_id': 1360699417, 'portfolio_id': 23290420}, {'photo_id': 1360699413, 'portfolio_id': 23290420}, {'photo_id': 1360699409, 'portfolio_id': 23290420}, {'photo_id': 1360699405, 'portfolio_id': 23290420}, {'photo_id': 1360699375, 'portfolio_id': 23290420}, {'photo_id': 1360699371, 'portfolio_id': 23290420}, {'photo_id': 1360699369, 'portfolio_id': 23290420}, {'photo_id': 1360699366, 'portfolio_id': 23290420}, {'photo_id': 1360699331, 'portfolio_id': 23290420}, {'photo_id': 1360699327, 'portfolio_id': 23290420}, {'photo_id': 1360699324, 'portfolio_id': 23290420}, {'photo_id': 1360699285, 'portfolio_id': 23290420}, {'photo_id': 1360699282, 'portfolio_id': 23290420}, {'photo_id': 1360699280, 'portfolio_id': 23290420}, {'photo_id': 1360699256, 'portfolio_id': 23290420}, {'photo_id': 1360699254, 'portfolio_id': 23290420}, {'photo_id': 1360699250, 'portfolio_id': 23290420}, {'photo_id': 1360699245, 'portfolio_id': 23290420}, {'photo_id': 1360699242, 'portfolio_id': 23290420}, {'photo_id': 1360699217, 'portfolio_id': 23290420}, {'photo_id': 1360699215, 'portfolio_id': 23290420}, {'photo_id': 1360699213, 'portfolio_id': 23290420}, {'photo_id': 1360699210, 'portfolio_id': 23290420}, {'photo_id': 1360699206, 'portfolio_id': 23290420}, {'photo_id': 1360699202, 'portfolio_id': 23290420}, {'photo_id': 1360699150, 'portfolio_id': 23290420}, {'photo_id': 1360699147, 'portfolio_id': 23290420}, {'photo_id': 1360699144, 'portfolio_id': 23290420}, {'photo_id': 1360699141, 'portfolio_id': 23290420}, {'photo_id': 1360699082, 'portfolio_id': 23290420}, {'photo_id': 1360699078, 'portfolio_id': 23290420}, {'photo_id': 1360699074, 'portfolio_id': 23290420}, {'photo_id': 1360699069, 'portfolio_id': 23290420}, {'photo_id': 1360699065, 'portfolio_id': 23290420}, {'photo_id': 1360699045, 'portfolio_id': 23290420}, {'photo_id': 1360699042, 'portfolio_id': 23290420}, {'photo_id': 1360699038, 'portfolio_id': 23290420}, {'photo_id': 1360699034, 'portfolio_id': 23290420}, {'photo_id': 1360699030, 'portfolio_id': 23290420}, {'photo_id': 1360699026, 'portfolio_id': 23290420}, {'photo_id': 1360698989, 'portfolio_id': 23290420}, {'photo_id': 1360698983, 'portfolio_id': 23290420}, {'photo_id': 1360698976, 'portfolio_id': 23290420}, {'photo_id': 1360698970, 'portfolio_id': 23290420}, {'photo_id': 1360698934, 'portfolio_id': 23290420}, {'photo_id': 1360698929, 'portfolio_id': 23290420}] map_portfolio_id_photo_id: {23290420: [1360699638, 1360699605, 1360699601, 1360699598, 1360699534, 1360699531, 1360699527, 1360699523, 1360699520, 1360699453, 1360699450, 1360699448, 1360699417, 1360699413, 1360699409, 1360699405, 1360699375, 1360699371, 1360699369, 1360699366, 1360699331, 1360699327, 1360699324, 1360699285, 1360699282, 1360699280, 1360699256, 1360699254, 1360699250, 1360699245, 1360699242, 1360699217, 1360699215, 1360699213, 1360699210, 1360699206, 1360699202, 1360699150, 1360699147, 1360699144, 1360699141, 1360699082, 1360699078, 1360699074, 1360699069, 1360699065, 1360699045, 1360699042, 1360699038, 1360699034, 1360699030, 1360699026, 1360698989, 1360698983, 1360698976, 1360698970, 1360698934, 1360698929]} ##### 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.0265347957611084 #### 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 May 27 05:58:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23290420) 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 : 23290420 get user id for portfolio 23290420 get sub ptf for main ptf 23290420, type 3726 and hashtags ['plastique', 'Teint_Dans_La_Masse', 'flou', 'Carton_brun', 'papier', 'environnement', 'mal_croppe', 'cartonnette', 'kraft', 'metal', 'autre_refus', '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`=23290420 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Teint_Dans_La_Masse','flou','Carton_brun','papier','environnement','mal_croppe','cartonnette','kraft','metal','autre_refus','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`=23290420 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Teint_Dans_La_Masse','flou','Carton_brun','papier','environnement','mal_croppe','cartonnette','kraft','metal','autre_refus','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 23290420, 'sub_port_id': 23292624, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535127, 'last_updated_at': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 45)}, 'plastique': {'main_port_id': 23290420, 'sub_port_id': 23292625, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535128, 'last_updated_at': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 45)}, 'Carton_gris': {'main_port_id': 23290420, 'sub_port_id': 23292626, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535129, 'last_updated_at': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 45)}, 'papier': {'main_port_id': 23290420, 'sub_port_id': 23292627, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535130, 'last_updated_at': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 45)}, 'autre_refus': {'main_port_id': 23290420, 'sub_port_id': 23292628, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535131, 'last_updated_at': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 45)}, 'metal': {'main_port_id': 23290420, 'sub_port_id': 23292629, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535132, 'last_updated_at': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 45)}, 'Teint_Dans_La_Masse': {'main_port_id': 23290420, 'sub_port_id': 23292630, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535133, 'last_updated_at': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 45)}, 'kraft': {'main_port_id': 23290420, 'sub_port_id': 23292631, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535134, 'last_updated_at': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 45)}, 'cartonnette': {'main_port_id': 23290420, 'sub_port_id': 23292632, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535135, 'last_updated_at': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 45)}, 'mal_croppe': {'main_port_id': 23290420, 'sub_port_id': 23292633, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535136, 'last_updated_at': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 45)}, 'Carton_brun': {'main_port_id': 23290420, 'sub_port_id': 23292634, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535137, 'last_updated_at': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 45)}, 'environnement': {'main_port_id': 23290420, 'sub_port_id': 23292635, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535138, 'last_updated_at': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 45)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23292624 , 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=23290420 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 (23292624) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23290420) result : ((1360698929,), (1360698934,), (1360698970,), (1360698976,), (1360698983,), (1360698989,), (1360699026,), (1360699030,), (1360699034,), (1360699038,), (1360699042,), (1360699045,), (1360699065,), (1360699069,), (1360699074,), (1360699078,), (1360699082,), (1360699141,), (1360699144,), (1360699147,), (1360699150,), (1360699202,), (1360699206,), (1360699210,), (1360699213,), (1360699215,), (1360699217,), (1360699242,), (1360699245,), (1360699250,), (1360699254,), (1360699256,), (1360699280,), (1360699282,), (1360699285,), (1360699324,), (1360699327,), (1360699331,), (1360699366,), (1360699369,), (1360699371,), (1360699375,), (1360699405,), (1360699409,), (1360699413,), (1360699417,), (1360699448,), (1360699450,), (1360699453,), (1360699520,), (1360699523,), (1360699527,), (1360699531,), (1360699534,), (1360699598,), (1360699601,), (1360699605,), (1360699638,)) 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 23292625 , 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=23290420 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 (23292625) result : ((1360699316,), (1360702388,), (1360704441,), (1360704442,), (1360704443,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23290420) result : ((1360698929,), (1360698934,), (1360698970,), (1360698976,), (1360698983,), (1360698989,), (1360699026,), (1360699030,), (1360699034,), (1360699038,), (1360699042,), (1360699045,), (1360699065,), (1360699069,), (1360699074,), (1360699078,), (1360699082,), (1360699141,), (1360699144,), (1360699147,), (1360699150,), (1360699202,), (1360699206,), (1360699210,), (1360699213,), (1360699215,), (1360699217,), (1360699242,), (1360699245,), (1360699250,), (1360699254,), (1360699256,), (1360699280,), (1360699282,), (1360699285,), (1360699324,), (1360699327,), (1360699331,), (1360699366,), (1360699369,), (1360699371,), (1360699375,), (1360699405,), (1360699409,), (1360699413,), (1360699417,), (1360699448,), (1360699450,), (1360699453,), (1360699520,), (1360699523,), (1360699527,), (1360699531,), (1360699534,), (1360699598,), (1360699601,), (1360699605,), (1360699638,)) 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 23292626 , 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=23290420 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 (23292626) result : ((1360704430,), (1360704431,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23290420) result : ((1360698929,), (1360698934,), (1360698970,), (1360698976,), (1360698983,), (1360698989,), (1360699026,), (1360699030,), (1360699034,), (1360699038,), (1360699042,), (1360699045,), (1360699065,), (1360699069,), (1360699074,), (1360699078,), (1360699082,), (1360699141,), (1360699144,), (1360699147,), (1360699150,), (1360699202,), (1360699206,), (1360699210,), (1360699213,), (1360699215,), (1360699217,), (1360699242,), (1360699245,), (1360699250,), (1360699254,), (1360699256,), (1360699280,), (1360699282,), (1360699285,), (1360699324,), (1360699327,), (1360699331,), (1360699366,), (1360699369,), (1360699371,), (1360699375,), (1360699405,), (1360699409,), (1360699413,), (1360699417,), (1360699448,), (1360699450,), (1360699453,), (1360699520,), (1360699523,), (1360699527,), (1360699531,), (1360699534,), (1360699598,), (1360699601,), (1360699605,), (1360699638,)) 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 23292627 , 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=23290420 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 (23292627) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23290420) result : ((1360698929,), (1360698934,), (1360698970,), (1360698976,), (1360698983,), (1360698989,), (1360699026,), (1360699030,), (1360699034,), (1360699038,), (1360699042,), (1360699045,), (1360699065,), (1360699069,), (1360699074,), (1360699078,), (1360699082,), (1360699141,), (1360699144,), (1360699147,), (1360699150,), (1360699202,), (1360699206,), (1360699210,), (1360699213,), (1360699215,), (1360699217,), (1360699242,), (1360699245,), (1360699250,), (1360699254,), (1360699256,), (1360699280,), (1360699282,), (1360699285,), (1360699324,), (1360699327,), (1360699331,), (1360699366,), (1360699369,), (1360699371,), (1360699375,), (1360699405,), (1360699409,), (1360699413,), (1360699417,), (1360699448,), (1360699450,), (1360699453,), (1360699520,), (1360699523,), (1360699527,), (1360699531,), (1360699534,), (1360699598,), (1360699601,), (1360699605,), (1360699638,)) 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 23292628 , 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=23290420 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 (23292628) result : ((1360702380,), (1360704426,), (1360704427,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23290420) result : ((1360698929,), (1360698934,), (1360698970,), (1360698976,), (1360698983,), (1360698989,), (1360699026,), (1360699030,), (1360699034,), (1360699038,), (1360699042,), (1360699045,), (1360699065,), (1360699069,), (1360699074,), (1360699078,), (1360699082,), (1360699141,), (1360699144,), (1360699147,), (1360699150,), (1360699202,), (1360699206,), (1360699210,), (1360699213,), (1360699215,), (1360699217,), (1360699242,), (1360699245,), (1360699250,), (1360699254,), (1360699256,), (1360699280,), (1360699282,), (1360699285,), (1360699324,), (1360699327,), (1360699331,), (1360699366,), (1360699369,), (1360699371,), (1360699375,), (1360699405,), (1360699409,), (1360699413,), (1360699417,), (1360699448,), (1360699450,), (1360699453,), (1360699520,), (1360699523,), (1360699527,), (1360699531,), (1360699534,), (1360699598,), (1360699601,), (1360699605,), (1360699638,)) 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 23292629 , 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=23290420 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 (23292629) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23290420) result : ((1360698929,), (1360698934,), (1360698970,), (1360698976,), (1360698983,), (1360698989,), (1360699026,), (1360699030,), (1360699034,), (1360699038,), (1360699042,), (1360699045,), (1360699065,), (1360699069,), (1360699074,), (1360699078,), (1360699082,), (1360699141,), (1360699144,), (1360699147,), (1360699150,), (1360699202,), (1360699206,), (1360699210,), (1360699213,), (1360699215,), (1360699217,), (1360699242,), (1360699245,), (1360699250,), (1360699254,), (1360699256,), (1360699280,), (1360699282,), (1360699285,), (1360699324,), (1360699327,), (1360699331,), (1360699366,), (1360699369,), (1360699371,), (1360699375,), (1360699405,), (1360699409,), (1360699413,), (1360699417,), (1360699448,), (1360699450,), (1360699453,), (1360699520,), (1360699523,), (1360699527,), (1360699531,), (1360699534,), (1360699598,), (1360699601,), (1360699605,), (1360699638,)) 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 23292630 , 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=23290420 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 (23292630) result : ((1360699308,), (1360702378,), (1360702379,), (1360704419,), (1360704420,), (1360704421,), (1360704422,), (1360704423,), (1360704424,), (1360704425,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23290420) result : ((1360698929,), (1360698934,), (1360698970,), (1360698976,), (1360698983,), (1360698989,), (1360699026,), (1360699030,), (1360699034,), (1360699038,), (1360699042,), (1360699045,), (1360699065,), (1360699069,), (1360699074,), (1360699078,), (1360699082,), (1360699141,), (1360699144,), (1360699147,), (1360699150,), (1360699202,), (1360699206,), (1360699210,), (1360699213,), (1360699215,), (1360699217,), (1360699242,), (1360699245,), (1360699250,), (1360699254,), (1360699256,), (1360699280,), (1360699282,), (1360699285,), (1360699324,), (1360699327,), (1360699331,), (1360699366,), (1360699369,), (1360699371,), (1360699375,), (1360699405,), (1360699409,), (1360699413,), (1360699417,), (1360699448,), (1360699450,), (1360699453,), (1360699520,), (1360699523,), (1360699527,), (1360699531,), (1360699534,), (1360699598,), (1360699601,), (1360699605,), (1360699638,)) 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 23292631 , 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=23290420 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 (23292631) result : ((1360702389,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23290420) result : ((1360698929,), (1360698934,), (1360698970,), (1360698976,), (1360698983,), (1360698989,), (1360699026,), (1360699030,), (1360699034,), (1360699038,), (1360699042,), (1360699045,), (1360699065,), (1360699069,), (1360699074,), (1360699078,), (1360699082,), (1360699141,), (1360699144,), (1360699147,), (1360699150,), (1360699202,), (1360699206,), (1360699210,), (1360699213,), (1360699215,), (1360699217,), (1360699242,), (1360699245,), (1360699250,), (1360699254,), (1360699256,), (1360699280,), (1360699282,), (1360699285,), (1360699324,), (1360699327,), (1360699331,), (1360699366,), (1360699369,), (1360699371,), (1360699375,), (1360699405,), (1360699409,), (1360699413,), (1360699417,), (1360699448,), (1360699450,), (1360699453,), (1360699520,), (1360699523,), (1360699527,), (1360699531,), (1360699534,), (1360699598,), (1360699601,), (1360699605,), (1360699638,)) 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 23292632 , 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=23290420 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 (23292632) result : ((1360699310,), (1360699311,), (1360702382,), (1360704432,), (1360704433,), (1360704434,), (1360704435,), (1360704436,), (1360704437,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23290420) result : ((1360698929,), (1360698934,), (1360698970,), (1360698976,), (1360698983,), (1360698989,), (1360699026,), (1360699030,), (1360699034,), (1360699038,), (1360699042,), (1360699045,), (1360699065,), (1360699069,), (1360699074,), (1360699078,), (1360699082,), (1360699141,), (1360699144,), (1360699147,), (1360699150,), (1360699202,), (1360699206,), (1360699210,), (1360699213,), (1360699215,), (1360699217,), (1360699242,), (1360699245,), (1360699250,), (1360699254,), (1360699256,), (1360699280,), (1360699282,), (1360699285,), (1360699324,), (1360699327,), (1360699331,), (1360699366,), (1360699369,), (1360699371,), (1360699375,), (1360699405,), (1360699409,), (1360699413,), (1360699417,), (1360699448,), (1360699450,), (1360699453,), (1360699520,), (1360699523,), (1360699527,), (1360699531,), (1360699534,), (1360699598,), (1360699601,), (1360699605,), (1360699638,)) 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 23292633 , 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=23290420 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 (23292633) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23290420) result : ((1360698929,), (1360698934,), (1360698970,), (1360698976,), (1360698983,), (1360698989,), (1360699026,), (1360699030,), (1360699034,), (1360699038,), (1360699042,), (1360699045,), (1360699065,), (1360699069,), (1360699074,), (1360699078,), (1360699082,), (1360699141,), (1360699144,), (1360699147,), (1360699150,), (1360699202,), (1360699206,), (1360699210,), (1360699213,), (1360699215,), (1360699217,), (1360699242,), (1360699245,), (1360699250,), (1360699254,), (1360699256,), (1360699280,), (1360699282,), (1360699285,), (1360699324,), (1360699327,), (1360699331,), (1360699366,), (1360699369,), (1360699371,), (1360699375,), (1360699405,), (1360699409,), (1360699413,), (1360699417,), (1360699448,), (1360699450,), (1360699453,), (1360699520,), (1360699523,), (1360699527,), (1360699531,), (1360699534,), (1360699598,), (1360699601,), (1360699605,), (1360699638,)) 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 23292634 , 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=23290420 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 (23292634) result : ((1360699314,), (1360702384,), (1360702385,), (1360704440,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23290420) result : ((1360698929,), (1360698934,), (1360698970,), (1360698976,), (1360698983,), (1360698989,), (1360699026,), (1360699030,), (1360699034,), (1360699038,), (1360699042,), (1360699045,), (1360699065,), (1360699069,), (1360699074,), (1360699078,), (1360699082,), (1360699141,), (1360699144,), (1360699147,), (1360699150,), (1360699202,), (1360699206,), (1360699210,), (1360699213,), (1360699215,), (1360699217,), (1360699242,), (1360699245,), (1360699250,), (1360699254,), (1360699256,), (1360699280,), (1360699282,), (1360699285,), (1360699324,), (1360699327,), (1360699331,), (1360699366,), (1360699369,), (1360699371,), (1360699375,), (1360699405,), (1360699409,), (1360699413,), (1360699417,), (1360699448,), (1360699450,), (1360699453,), (1360699520,), (1360699523,), (1360699527,), (1360699531,), (1360699534,), (1360699598,), (1360699601,), (1360699605,), (1360699638,)) 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 23292635 , 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=23290420 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 (23292635) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23290420) result : ((1360698929,), (1360698934,), (1360698970,), (1360698976,), (1360698983,), (1360698989,), (1360699026,), (1360699030,), (1360699034,), (1360699038,), (1360699042,), (1360699045,), (1360699065,), (1360699069,), (1360699074,), (1360699078,), (1360699082,), (1360699141,), (1360699144,), (1360699147,), (1360699150,), (1360699202,), (1360699206,), (1360699210,), (1360699213,), (1360699215,), (1360699217,), (1360699242,), (1360699245,), (1360699250,), (1360699254,), (1360699256,), (1360699280,), (1360699282,), (1360699285,), (1360699324,), (1360699327,), (1360699331,), (1360699366,), (1360699369,), (1360699371,), (1360699375,), (1360699405,), (1360699409,), (1360699413,), (1360699417,), (1360699448,), (1360699450,), (1360699453,), (1360699520,), (1360699523,), (1360699527,), (1360699531,), (1360699534,), (1360699598,), (1360699601,), (1360699605,), (1360699638,)) 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`=23290420 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Teint_Dans_La_Masse','flou','Carton_brun','papier','environnement','mal_croppe','cartonnette','kraft','metal','autre_refus','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`=23290420 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Teint_Dans_La_Masse','flou','Carton_brun','papier','environnement','mal_croppe','cartonnette','kraft','metal','autre_refus','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 23290420, 'sub_port_id': 23292636, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535139, 'last_updated_at': datetime.datetime(2025, 5, 23, 9, 50, 51), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 9, 50, 51), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 51)}, 'plastique': {'main_port_id': 23290420, 'sub_port_id': 23292637, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535140, 'last_updated_at': datetime.datetime(2025, 5, 23, 9, 50, 51), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 9, 50, 51), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 51)}, 'Carton_gris': {'main_port_id': 23290420, 'sub_port_id': 23292638, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535141, 'last_updated_at': datetime.datetime(2025, 5, 23, 9, 50, 51), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 9, 50, 51), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 51)}, 'papier': {'main_port_id': 23290420, 'sub_port_id': 23292639, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535142, 'last_updated_at': datetime.datetime(2025, 5, 23, 9, 50, 51), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 9, 50, 51), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 51)}, 'autre_refus': {'main_port_id': 23290420, 'sub_port_id': 23292640, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535143, 'last_updated_at': datetime.datetime(2025, 5, 23, 9, 50, 51), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 9, 50, 51), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 51)}, 'metal': {'main_port_id': 23290420, 'sub_port_id': 23292641, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535144, 'last_updated_at': datetime.datetime(2025, 5, 23, 9, 50, 51), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 9, 50, 51), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 51)}, 'Teint_Dans_La_Masse': {'main_port_id': 23290420, 'sub_port_id': 23292642, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535145, 'last_updated_at': datetime.datetime(2025, 5, 23, 9, 50, 51), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 9, 50, 51), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 51)}, 'kraft': {'main_port_id': 23290420, 'sub_port_id': 23292643, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535146, 'last_updated_at': datetime.datetime(2025, 5, 23, 9, 50, 51), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 9, 50, 51), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 51)}, 'cartonnette': {'main_port_id': 23290420, 'sub_port_id': 23292644, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535147, 'last_updated_at': datetime.datetime(2025, 5, 23, 9, 50, 51), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 9, 50, 51), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 51)}, 'mal_croppe': {'main_port_id': 23290420, 'sub_port_id': 23292645, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535148, 'last_updated_at': datetime.datetime(2025, 5, 23, 9, 50, 51), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 9, 50, 51), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 51)}, 'Carton_brun': {'main_port_id': 23290420, 'sub_port_id': 23292646, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535149, 'last_updated_at': datetime.datetime(2025, 5, 23, 9, 50, 51), 'last_updated_at_desc': datetime.datetime(2025, 5, 23, 9, 50, 51), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 51)}, 'environnement': {'main_port_id': 23290420, 'sub_port_id': 23292647, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15535150, 'last_updated_at': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 15, 35), 'last_updated_at_asc': datetime.datetime(2025, 5, 23, 9, 50, 51)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23292636,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23292624 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23292637,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23292625 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23292638,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23292626 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23292639,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23292627 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23292640,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23292628 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23292641,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23292629 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23292642,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23292630 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23292643,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23292631 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23292644,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23292632 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23292645,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23292633 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23292646,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23292634 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23292647,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23292635 lien utilise dans velours : https://www.fotonower.com/velours/23292636,23292637,23292638,23292639,23292640,23292641,23292642,23292643,23292644,23292645,23292646,23292647?tags=flou,plastique,Carton_gris,papier,autre_refus,metal,Teint_Dans_La_Masse,kraft,cartonnette,mal_croppe,Carton_brun,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23290420]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1360699638, 1360699605, 1360699601, 1360699598] map_info['map_portfolio_photo'] : {23290420: [1360699638, 1360699605, 1360699601, 1360699598, 1360699534, 1360699531, 1360699527, 1360699523, 1360699520, 1360699453, 1360699450, 1360699448, 1360699417, 1360699413, 1360699409, 1360699405, 1360699375, 1360699371, 1360699369, 1360699366, 1360699331, 1360699327, 1360699324, 1360699285, 1360699282, 1360699280, 1360699256, 1360699254, 1360699250, 1360699245, 1360699242, 1360699217, 1360699215, 1360699213, 1360699210, 1360699206, 1360699202, 1360699150, 1360699147, 1360699144, 1360699141, 1360699082, 1360699078, 1360699074, 1360699069, 1360699065, 1360699045, 1360699042, 1360699038, 1360699034, 1360699030, 1360699026, 1360698989, 1360698983, 1360698976, 1360698970, 1360698934, 1360698929]} final : False mtd_id 4302 list_pids : [1360699638, 1360699605, 1360699601, 1360699598] Looping around the photos to save general results len do output : 1 /23290420. 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, '2942801') ('4302', '23290420', '1360699638', None, None, None, None, None, '2942801') ('4302', None, None, None, None, None, None, None, '2942801') ('4302', '23290420', '1360699605', None, None, None, None, None, '2942801') ('4302', None, None, None, None, None, None, None, '2942801') ('4302', '23290420', '1360699601', None, None, None, None, None, '2942801') ('4302', None, None, None, None, None, None, None, '2942801') ('4302', '23290420', '1360699598', None, None, None, None, None, '2942801') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '23290420', "{'flou': 23292624, 'plastique': 23292625, 'Carton_gris': 23292626, 'papier': 23292627, 'autre_refus': 23292628, 'metal': 23292629, 'Teint_Dans_La_Masse': 23292630, 'kraft': 23292631, 'cartonnette': 23292632, 'mal_croppe': 23292633, 'Carton_brun': 23292634, 'environnement': 23292635}", None, None, None, None, '2942801'), ('4302', '23290420', '1360699638', None, None, None, None, None, '2942801'), ('4302', '23290420', '1360699605', None, None, None, None, None, '2942801'), ('4302', '23290420', '1360699601', None, None, None, None, None, '2942801'), ('4302', '23290420', '1360699598', None, None, None, None, None, '2942801')] time used for this insertion : 0.01273036003112793 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4637906551361084 time spend to save output : 0.01295924186706543 total time spend for step 1 : 1.4767498970031738 step2:final Tue May 27 05:59:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23290420) 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 23290420 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1360698934,1360698929,1360698989,1360698983,1360698976,1360698970,1360699045,1360699042,1360699038,1360699034,1360699030,1360699026,1360699082,1360699078,1360699074,1360699069,1360699065,1360699150,1360699147,1360699144,1360699141,1360699217,1360699215,1360699213,1360699210,1360699206,1360699202,1360699256,1360699254,1360699250,1360699245,1360699242,1360699285,1360699282,1360699280,1360699331,1360699327,1360699324,1360699375,1360699371,1360699369,1360699366,1360699417,1360699413,1360699409,1360699405,1360699453,1360699450,1360699448,1360699534,1360699531,1360699527,1360699523,1360699520,1360699605,1360699601,1360699598,1360699638); 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([23290420]) Inside saveOutput : final : False verbose : True original output for save of step final : {1360699638: ('0.040691904480527584',), 1360699605: ('0.040691904480527584',), 1360699601: ('0.040691904480527584',), 1360699598: ('0.040691904480527584',)} new output for save of step final : {1360699638: ('0.040691904480527584',), 1360699605: ('0.040691904480527584',), 1360699601: ('0.040691904480527584',), 1360699598: ('0.040691904480527584',)} [1360699638, 1360699605, 1360699601, 1360699598] map_info['map_portfolio_photo'] : {23290420: [1360699638, 1360699605, 1360699601, 1360699598, 1360699534, 1360699531, 1360699527, 1360699523, 1360699520, 1360699453, 1360699450, 1360699448, 1360699417, 1360699413, 1360699409, 1360699405, 1360699375, 1360699371, 1360699369, 1360699366, 1360699331, 1360699327, 1360699324, 1360699285, 1360699282, 1360699280, 1360699256, 1360699254, 1360699250, 1360699245, 1360699242, 1360699217, 1360699215, 1360699213, 1360699210, 1360699206, 1360699202, 1360699150, 1360699147, 1360699144, 1360699141, 1360699082, 1360699078, 1360699074, 1360699069, 1360699065, 1360699045, 1360699042, 1360699038, 1360699034, 1360699030, 1360699026, 1360698989, 1360698983, 1360698976, 1360698970, 1360698934, 1360698929]} final : False mtd_id 4302 list_pids : [1360699638, 1360699605, 1360699601, 1360699598] Looping around the photos to save general results len do output : 4 /1360699638.Didn't retrieve data . /1360699605.Didn't retrieve data . /1360699601.Didn't retrieve data . /1360699598.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, '2942801') ('4302', '23290420', '1360699638', None, None, None, None, None, '2942801') ('4302', None, None, None, None, None, None, None, '2942801') ('4302', '23290420', '1360699605', None, None, None, None, None, '2942801') ('4302', None, None, None, None, None, None, None, '2942801') ('4302', '23290420', '1360699601', None, None, None, None, None, '2942801') ('4302', None, None, None, None, None, None, None, '2942801') ('4302', '23290420', '1360699598', None, None, None, None, None, '2942801') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '23290420', '1360699638', '0.040691904480527584', None, None, None, None, '2942801'), ('4302', '23290420', '1360699605', '0.040691904480527584', None, None, None, None, '2942801'), ('4302', '23290420', '1360699601', '0.040691904480527584', None, None, None, None, '2942801'), ('4302', '23290420', '1360699598', '0.040691904480527584', None, None, None, None, '2942801')] time used for this insertion : 0.012551546096801758 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4413769245147705 time spend to save output : 0.012880802154541016 total time spend for step 2 : 0.4542577266693115 step3:velours_tree Tue May 27 05:59:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {23290420: [{'flou': 23292624, 'plastique': 23292625, 'Carton_gris': 23292626, 'papier': 23292627, 'autre_refus': 23292628, 'metal': 23292629, 'Teint_Dans_La_Masse': 23292630, 'kraft': 23292631, 'cartonnette': 23292632, 'mal_croppe': 23292633, 'Carton_brun': 23292634, 'environnement': 23292635}]} input_args_next_step : {23290420: ()} output_args : {23290420: [{'flou': 23292624, 'plastique': 23292625, 'Carton_gris': 23292626, 'papier': 23292627, 'autre_refus': 23292628, 'metal': 23292629, 'Teint_Dans_La_Masse': 23292630, 'kraft': 23292631, 'cartonnette': 23292632, 'mal_croppe': 23292633, 'Carton_brun': 23292634, 'environnement': 23292635}]} args : 23290420 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 : ({'flou': 23292624, 'plastique': 23292625, 'Carton_gris': 23292626, 'papier': 23292627, 'autre_refus': 23292628, 'metal': 23292629, 'Teint_Dans_La_Masse': 23292630, 'kraft': 23292631, 'cartonnette': 23292632, 'mal_croppe': 23292633, 'Carton_brun': 23292634, 'environnement': 23292635},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23290420) 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([23290420]) 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.3242201805114746 time spend to save output : 4.8160552978515625e-05 total time spend for step 3 : 0.3242683410644531 step4:send_mail_cod Tue May 27 05:59:01 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 : {1360699638: ('0.040691904480527584',), 1360699605: ('0.040691904480527584',), 1360699601: ('0.040691904480527584',), 1360699598: ('0.040691904480527584',)} input_args_next_step : {1360699638: ()} output_args : {1360699638: ('0.040691904480527584',), 1360699605: ('0.040691904480527584',), 1360699601: ('0.040691904480527584',), 1360699598: ('0.040691904480527584',)} args : 1360699638 depend.output_id : 0 input_args_next_step : {1360699638: ('0.040691904480527584',), 1360699605: ()} output_args : {1360699638: ('0.040691904480527584',), 1360699605: ('0.040691904480527584',), 1360699601: ('0.040691904480527584',), 1360699598: ('0.040691904480527584',)} args : 1360699605 depend.output_id : 0 input_args_next_step : {1360699638: ('0.040691904480527584',), 1360699605: ('0.040691904480527584',), 1360699601: ()} output_args : {1360699638: ('0.040691904480527584',), 1360699605: ('0.040691904480527584',), 1360699601: ('0.040691904480527584',), 1360699598: ('0.040691904480527584',)} args : 1360699601 depend.output_id : 0 input_args_next_step : {1360699638: ('0.040691904480527584',), 1360699605: ('0.040691904480527584',), 1360699601: ('0.040691904480527584',), 1360699598: ()} output_args : {1360699638: ('0.040691904480527584',), 1360699605: ('0.040691904480527584',), 1360699601: ('0.040691904480527584',), 1360699598: ('0.040691904480527584',)} args : 1360699598 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 : {23290420: [{'flou': 23292624, 'plastique': 23292625, 'Carton_gris': 23292626, 'papier': 23292627, 'autre_refus': 23292628, 'metal': 23292629, 'Teint_Dans_La_Masse': 23292630, 'kraft': 23292631, 'cartonnette': 23292632, 'mal_croppe': 23292633, 'Carton_brun': 23292634, 'environnement': 23292635}]} input_args_next_step : {1360699638: ('0.040691904480527584',), 1360699605: ('0.040691904480527584',), 1360699601: ('0.040691904480527584',), 1360699598: ('0.040691904480527584',), 23290420: ()} output_args : {23290420: [{'flou': 23292624, 'plastique': 23292625, 'Carton_gris': 23292626, 'papier': 23292627, 'autre_refus': 23292628, 'metal': 23292629, 'Teint_Dans_La_Masse': 23292630, 'kraft': 23292631, 'cartonnette': 23292632, 'mal_croppe': 23292633, 'Carton_brun': 23292634, 'environnement': 23292635}]} args : 23290420 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 :5, first value : ('0.040691904480527584',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23290420) 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 ph WHERE photo_id IN (1360699638,1360699605,1360699601,1360699598) Found this number of photos: 4 ##### Call download_photos : nb_thread : 5 begin to download photo : 1360699598 begin to download photo : 1360699601 begin to download photo : 1360699605 begin to download photo : 1360699638 download finish for photo 1360699601 download finish for photo 1360699638 download finish for photo 1360699598 download finish for photo 1360699605 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette232926241748318341/ length of list_filenames : 4 ; length of list_pids : 4 ; length of list_args : 4 results_Auto_P23290420_27-05-2025_05_59_01.pdf 23292624 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23292624 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette232926241748318341 23292625 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23292625 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1360699316: '1747979607_3021741_1360698976_27794784b3a379a06992098f117208f7_rle_crop_3810934689_0.png', 1360702388: '1747983626_3069968_1360699598_62dac3733efc05a96ae1bc81193c40e2_rle_crop_3810936588_0.png', 1360704441: '1747986566_3107168_1360699534_b5dc1dd14d71a12ca1197af278860bae_rle_crop_3810936421_0.png', 1360704442: '1747986566_3107168_1360699405_22a6b367b4b0fe41c282f28ae154ca41_rle_crop_3810939072_0.png', 1360704443: '1747986566_3107168_1360699285_95e66b0dde11b8c286645422b7d3bc38_rle_crop_3810939150_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/ba25d1a37a776366e7e83b374dccc30d_7957542.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/2f186cf7c60c2d6d36191d8010fdba79_25501348.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/e1eaf034dc1151e4f42e3c5a1157553b_29404348.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/ea50f082f28b0e126712082c42c3be8b_46621451.png change filename to text .imagette232926251748318341/ imagette232926251748318341/1747979607_3021741_1360698976_27794784b3a379a06992098f117208f7_rle_crop_3810934689_0.png.png imagette232926251748318341/1747986566_3107168_1360699285_95e66b0dde11b8c286645422b7d3bc38_rle_crop_3810939150_0.png.png imagette232926251748318341/1747983626_3069968_1360699598_62dac3733efc05a96ae1bc81193c40e2_rle_crop_3810936588_0.png.png imagette232926251748318341/1747986566_3107168_1360699405_22a6b367b4b0fe41c282f28ae154ca41_rle_crop_3810939072_0.png.png imagette232926251748318341/1747986566_3107168_1360699534_b5dc1dd14d71a12ca1197af278860bae_rle_crop_3810936421_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/6317bee4d02373c18a31e3dc4bbf1ba4_20255468.png imagette232926251748318341 23292628 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23292628 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1360702380: '1747983626_3069968_1360699601_50a25fad0841f1d5f822b72532b25c9f_rle_crop_3810936570_0.png', 1360704426: '1747986566_3107168_1360699534_b5dc1dd14d71a12ca1197af278860bae_rle_crop_3810936424_0.png', 1360704427: '1747986566_3107168_1360699369_96e38eaaa253ddd53b9eefb2c895b8ab_rle_crop_3810939098_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/77f7bf3f5f5212f27174cde51a5c09c4_49970543.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/f38fcf927b1aaa70b1af3e29d97592ca_92642239.png change filename to text .imagette232926281748318341/ imagette232926281748318341/1747983626_3069968_1360699601_50a25fad0841f1d5f822b72532b25c9f_rle_crop_3810936570_0.png.png imagette232926281748318341/1747986566_3107168_1360699369_96e38eaaa253ddd53b9eefb2c895b8ab_rle_crop_3810939098_0.png.png imagette232926281748318341/1747986566_3107168_1360699534_b5dc1dd14d71a12ca1197af278860bae_rle_crop_3810936424_0.png.png imagette232926291748318342/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/10c4cd7d217561b140feb587481089bd_98291432.png imagette232926281748318341 23292629 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23292629 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette232926291748318342 23292631 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23292631 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1360702389: '1747983626_3069968_1360699598_62dac3733efc05a96ae1bc81193c40e2_rle_crop_3810936592_0.png'} change filename to text .imagette232926311748318342/ imagette232926311748318342/1747983626_3069968_1360699598_62dac3733efc05a96ae1bc81193c40e2_rle_crop_3810936592_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/25c9050baea04a429a4f2097cf9c7436_68228465.png imagette232926311748318342 23292632 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23292632 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1360699310: '1747979607_3021741_1360698976_27794784b3a379a06992098f117208f7_rle_crop_3810934678_0.png', 1360699311: '1747979607_3021741_1360698976_27794784b3a379a06992098f117208f7_rle_crop_3810934685_0.png', 1360702382: '1747983626_3069968_1360699638_853308e1fa7e960412c45473c3df0612_rle_crop_3810936558_0.png', 1360704432: '1747986566_3107168_1360699534_b5dc1dd14d71a12ca1197af278860bae_rle_crop_3810936425_0.png', 1360704433: '1747986566_3107168_1360699417_d0e85d35797c0e83adf1c11c49bdbb11_rle_crop_3810939027_0.png', 1360704434: '1747986566_3107168_1360699409_c4a70742a5f2fb61b1ca2a43fc25c081_rle_crop_3810939052_0.png', 1360704435: '1747986566_3107168_1360699405_22a6b367b4b0fe41c282f28ae154ca41_rle_crop_3810939064_0.png', 1360704436: '1747986566_3107168_1360699371_5593ac12759aff07f90fcb4b56cda400_rle_crop_3810939088_0.png', 1360704437: '1747986566_3107168_1360699371_5593ac12759aff07f90fcb4b56cda400_rle_crop_3810939086_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/01adfa82ee7ccad100540c5080dbfbea_16935424.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/42ea27659b906dea9f70cce9980389fc_6286805.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/2c2ccf0cd3d2d6fb09395bd18a640ecd_45704148.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/1b0e4ee2cf7952386e28fd843e3f3de8_20429446.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/fdf6f15c99b8f30e9161fa100e5cbaf9_40729644.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/533935a67a4620813babcd8ba76a9ae6_76285299.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/4a06800ac9c0478b16c4db136b8701b1_83798482.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/318338bd13e6024a32233ef0ba2ec2a3_83178449.png change filename to text .imagette232926321748318342/ imagette232926321748318342/1747986566_3107168_1360699534_b5dc1dd14d71a12ca1197af278860bae_rle_crop_3810936425_0.png.png imagette232926321748318342/1747986566_3107168_1360699417_d0e85d35797c0e83adf1c11c49bdbb11_rle_crop_3810939027_0.png.png imagette232926321748318342/1747979607_3021741_1360698976_27794784b3a379a06992098f117208f7_rle_crop_3810934685_0.png.png imagette232926321748318342/1747986566_3107168_1360699409_c4a70742a5f2fb61b1ca2a43fc25c081_rle_crop_3810939052_0.png.png imagette232926321748318342/1747986566_3107168_1360699371_5593ac12759aff07f90fcb4b56cda400_rle_crop_3810939086_0.png.png imagette232926321748318342/1747986566_3107168_1360699371_5593ac12759aff07f90fcb4b56cda400_rle_crop_3810939088_0.png.png imagette232926321748318342/1747983626_3069968_1360699638_853308e1fa7e960412c45473c3df0612_rle_crop_3810936558_0.png.png imagette232926321748318342/1747986566_3107168_1360699405_22a6b367b4b0fe41c282f28ae154ca41_rle_crop_3810939064_0.png.png imagette232926321748318342/1747979607_3021741_1360698976_27794784b3a379a06992098f117208f7_rle_crop_3810934678_0.png.png imagette232926331748318343/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/3ec33e354b97d2e86bb47c8a75557eba_96670749.png imagette232926321748318342 23292633 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23292633 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette232926331748318343 23292626 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23292626 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1360704430: '1747986566_3107168_1360699453_4e07f91bcbdf6933f4b4f1872fc8223c_rle_crop_3810939003_0.png', 1360704431: '1747986566_3107168_1360699324_661f77feb7b5a3ff8840df9523a568ab_rle_crop_3810939135_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/81a5a05fea9be43f88775f1f024ecd06_39518470.png change filename to text .imagette232926261748318343/ imagette232926261748318343/1747986566_3107168_1360699324_661f77feb7b5a3ff8840df9523a568ab_rle_crop_3810939135_0.png.png imagette232926261748318343/1747986566_3107168_1360699453_4e07f91bcbdf6933f4b4f1872fc8223c_rle_crop_3810939003_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/973818bee08a20876ec6a7c64f0351c9_49029953.png imagette232926261748318343 23292630 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23292630 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1360699308: '1747979607_3021741_1360698970_c09da1ec787ad8a5b503101c95540f7f_rle_crop_3810934696_0.png', 1360702378: '1747983626_3069968_1360699601_50a25fad0841f1d5f822b72532b25c9f_rle_crop_3810936577_0.png', 1360702379: '1747983626_3069968_1360699601_50a25fad0841f1d5f822b72532b25c9f_rle_crop_3810936573_0.png', 1360704419: '1747986566_3107168_1360699527_5fcb170205dcf0cc1b94111a074ccc2d_rle_crop_3810938974_0.png', 1360704420: '1747986566_3107168_1360699453_4e07f91bcbdf6933f4b4f1872fc8223c_rle_crop_3810939005_0.png', 1360704421: '1747986566_3107168_1360699413_56985a56fcc45167c1f341558eb2a0c9_rle_crop_3810939041_0.png', 1360704422: '1747986566_3107168_1360699375_e579ec796abc523e5c7bf520191d2e21_rle_crop_3810939076_0.png', 1360704423: '1747986566_3107168_1360699369_96e38eaaa253ddd53b9eefb2c895b8ab_rle_crop_3810939099_0.png', 1360704424: '1747986566_3107168_1360699324_661f77feb7b5a3ff8840df9523a568ab_rle_crop_3810939137_0.png', 1360704425: '1747986566_3107168_1360699285_95e66b0dde11b8c286645422b7d3bc38_rle_crop_3810939153_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/d08b4809581319846df705ac8721a579_38803720.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/e980924f59777e847f0ba5ca6c81e3f5_5784533.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/f58c5c9049330d41d0251665af84a9b7_90017589.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/c0daa3a9a0c0425f379530a7759824f3_62979927.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/5a435d68ccee69e01071584c20341b97_55793877.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/01bb80578fbd683b64283ae5b9e84717_70242364.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/38d7988356d9d96123886dd970e7d577_47662340.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/83176a6ca89a218b70bfd6dc1f7e33be_24625508.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/0052b033b7934066c8f52b5fbe4f49b5_1810735.png change filename to text .imagette232926301748318343/ imagette232926301748318343/1747979607_3021741_1360698970_c09da1ec787ad8a5b503101c95540f7f_rle_crop_3810934696_0.png.png imagette232926301748318343/1747983626_3069968_1360699601_50a25fad0841f1d5f822b72532b25c9f_rle_crop_3810936577_0.png.png imagette232926301748318343/1747986566_3107168_1360699285_95e66b0dde11b8c286645422b7d3bc38_rle_crop_3810939153_0.png.png imagette232926301748318343/1747986566_3107168_1360699453_4e07f91bcbdf6933f4b4f1872fc8223c_rle_crop_3810939005_0.png.png imagette232926301748318343/1747986566_3107168_1360699324_661f77feb7b5a3ff8840df9523a568ab_rle_crop_3810939137_0.png.png imagette232926301748318343/1747986566_3107168_1360699527_5fcb170205dcf0cc1b94111a074ccc2d_rle_crop_3810938974_0.png.png imagette232926301748318343/1747986566_3107168_1360699375_e579ec796abc523e5c7bf520191d2e21_rle_crop_3810939076_0.png.png imagette232926301748318343/1747983626_3069968_1360699601_50a25fad0841f1d5f822b72532b25c9f_rle_crop_3810936573_0.png.png imagette232926301748318343/1747986566_3107168_1360699369_96e38eaaa253ddd53b9eefb2c895b8ab_rle_crop_3810939099_0.png.png imagette232926301748318343/1747986566_3107168_1360699413_56985a56fcc45167c1f341558eb2a0c9_rle_crop_3810939041_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/03d4b75befb3e5a4333375a3b67088ea_11922647.png imagette232926301748318343 23292634 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23292634 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1360699314: '1747979607_3021741_1360698976_27794784b3a379a06992098f117208f7_rle_crop_3810934684_0.png', 1360702384: '1747983626_3069968_1360699601_50a25fad0841f1d5f822b72532b25c9f_rle_crop_3810936574_0.png', 1360702385: '1747983626_3069968_1360699598_62dac3733efc05a96ae1bc81193c40e2_rle_crop_3810936591_0.png', 1360704440: '1747986566_3107168_1360699413_56985a56fcc45167c1f341558eb2a0c9_rle_crop_3810939042_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/51f6d25e16c1ee7c5346d15ce0c652f7_32829574.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/4742b685ded20ae113269084c9ff87ae_71967314.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/9ebd191314740280477fdc15d79e5894_46681263.png change filename to text .imagette232926341748318344/ imagette232926341748318344/1747979607_3021741_1360698976_27794784b3a379a06992098f117208f7_rle_crop_3810934684_0.png.png imagette232926341748318344/1747983626_3069968_1360699601_50a25fad0841f1d5f822b72532b25c9f_rle_crop_3810936574_0.png.png imagette232926341748318344/1747983626_3069968_1360699598_62dac3733efc05a96ae1bc81193c40e2_rle_crop_3810936591_0.png.png imagette232926341748318344/1747986566_3107168_1360699413_56985a56fcc45167c1f341558eb2a0c9_rle_crop_3810939042_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/4f6bf91292bc65c286cf1477bd5515d7_18494078.png imagette232926341748318344 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=23290420 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/23292636,23292637,23292638,23292639,23292640,23292641,23292642,23292643,23292644,23292645,23292646,23292647?tags=flou,plastique,Carton_gris,papier,autre_refus,metal,Teint_Dans_La_Masse,kraft,cartonnette,mal_croppe,Carton_brun,environnement your option no_mail is active, we will not send the real mail to your client args[1360699638] : ('0.040691904480527584',) no score found for photo 1360699638 We are sending mail with results at report@fotonower.com args[1360699605] : ('0.040691904480527584',) no score found for photo 1360699605 We are sending mail with results at report@fotonower.com args[1360699601] : ('0.040691904480527584',) no score found for photo 1360699601 We are sending mail with results at report@fotonower.com args[1360699598] : ('0.040691904480527584',) no score found for photo 1360699598 We are sending mail with results at report@fotonower.com refus_total : 0.040691904480527584 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23290420 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_P23290420_27-05-2025_05_59_01.pdf results_Auto_P23290420_27-05-2025_05_59_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23290420_27-05-2025_05_59_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','23290420','results_Auto_P23290420_27-05-2025_05_59_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23290420_27-05-2025_05_59_01.pdf','pdf','','0.16','0.040691904480527584') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23290420]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1360699638, 1360699605, 1360699601, 1360699598] map_info['map_portfolio_photo'] : {23290420: [1360699638, 1360699605, 1360699601, 1360699598, 1360699534, 1360699531, 1360699527, 1360699523, 1360699520, 1360699453, 1360699450, 1360699448, 1360699417, 1360699413, 1360699409, 1360699405, 1360699375, 1360699371, 1360699369, 1360699366, 1360699331, 1360699327, 1360699324, 1360699285, 1360699282, 1360699280, 1360699256, 1360699254, 1360699250, 1360699245, 1360699242, 1360699217, 1360699215, 1360699213, 1360699210, 1360699206, 1360699202, 1360699150, 1360699147, 1360699144, 1360699141, 1360699082, 1360699078, 1360699074, 1360699069, 1360699065, 1360699045, 1360699042, 1360699038, 1360699034, 1360699030, 1360699026, 1360698989, 1360698983, 1360698976, 1360698970, 1360698934, 1360698929]} final : False mtd_id 4302 list_pids : [1360699638, 1360699605, 1360699601, 1360699598] 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, '2942801') ('4302', '23290420', '1360699638', None, None, None, None, None, '2942801') ('4302', None, None, None, None, None, None, None, '2942801') ('4302', '23290420', '1360699605', None, None, None, None, None, '2942801') ('4302', None, None, None, None, None, None, None, '2942801') ('4302', '23290420', '1360699601', None, None, None, None, None, '2942801') ('4302', None, None, None, None, None, None, None, '2942801') ('4302', '23290420', '1360699598', None, None, None, None, None, '2942801') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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', '23290420', '1360699638', None, None, None, None, None, '2942801'), ('4302', '23290420', '1360699605', None, None, None, None, None, '2942801'), ('4302', '23290420', '1360699601', None, None, None, None, None, '2942801'), ('4302', '23290420', '1360699598', None, None, None, None, None, '2942801')] time used for this insertion : 0.02116703987121582 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.486823081970215 time spend to save output : 0.0213315486907959 total time spend for step 4 : 4.508154630661011 step5:split_time_score Tue May 27 05:59:05 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 : ['23290420'] 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 : [('23290420',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23290420) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1360699601: {'path': 'temp/1748318341_3086571_1360699601_50a25fad0841f1d5f822b72532b25c9f.jpg', 'extension': 'jpg'}, 1360699638: {'path': 'temp/1748318341_3086571_1360699638_853308e1fa7e960412c45473c3df0612.jpg', 'extension': 'jpg'}, 1360699598: {'path': 'temp/1748318341_3086571_1360699598_62dac3733efc05a96ae1bc81193c40e2.jpg', 'extension': 'jpg'}, 1360699605: {'path': 'temp/1748318341_3086571_1360699605_1a79eaf2b1c102c92639263a15ca9887.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 = 23290420; (('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 ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 23290420 group by h (('07', 58),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=23290420 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 (23290420) 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 (23290420) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 23052025 23290420 Nombre de photos uploadées : 58 / 23040 (0%) 23052025 23290420 Nombre de photos taguées (types de déchets): 0 / 58 (0%) 23052025 23290420 Nombre de photos taguées (volume) : 0 / 58 (0%) [{'photo_id': 1360698934, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/eb6509753867ec8245bac1625addcfa8.jpg', 'username': None, 'uploaded_at': 1747979167, 'text': 'image_23052025_07_45_04_9141.jpg'}, {'photo_id': 1360698929, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/916f77fedce6c6f4e2e6793b878cb9ec.jpg', 'username': None, 'uploaded_at': 1747979167, 'text': 'image_23052025_07_45_24_10137.jpg'}, {'photo_id': 1360698989, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/ae9904c0def7ea2001a938403ae21cba.jpg', 'username': None, 'uploaded_at': 1747979228, 'text': 'image_23052025_07_45_44_10136.jpg'}, {'photo_id': 1360698983, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/23/2588e2082259415c488cbf36f69939b4.jpg', 'username': None, 'uploaded_at': 1747979228, 'text': 'image_23052025_07_46_05_010166m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ?????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0035452842712402344 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 23290420, '2025-05-23' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1831613,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03434324264526367 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= 1831613 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23282309, 'dashboard_result_id': 10932112, '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_P23282309_26-05-2025_16_46_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23282326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23282327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23282328, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23282329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23282330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23282331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23282332, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23282333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23282334, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23282335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23282336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23282337, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23290413, 'dashboard_result_id': 10932113, '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_P23290413_26-05-2025_15_37_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336952, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23283058, 'dashboard_result_id': 10932114, '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_P23283058_26-05-2025_15_06_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23283060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23283061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23283062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23283063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23283064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23283065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23283066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23283067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23283068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23283069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23283070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23283071, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23282803, 'dashboard_result_id': 10932115, '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_P23282803_26-05-2025_16_32_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23282809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23282811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23282812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23282813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23282814, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23282815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23282816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23282817, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23282818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23282819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23282820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23282821, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23283810, 'dashboard_result_id': 10932116, '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_P23283810_26-05-2025_15_05_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23283819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23283820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23283821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23283822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23283823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23283824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23283825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23283826, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23283827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23283828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23283829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23283830, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23284061, 'dashboard_result_id': 10932117, '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_P23284061_26-05-2025_16_14_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23284072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284074, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23284185, 'dashboard_result_id': 10932118, '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_P23284185_26-05-2025_16_13_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23284192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284196, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284199, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23284543, 'dashboard_result_id': 10932119, '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_P23284543_26-05-2025_16_11_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284567, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23284575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284576, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23284637, 'dashboard_result_id': 10932120, '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_P23284637_26-05-2025_16_11_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23284639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284641, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284645, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284650, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23285058, 'dashboard_result_id': 10932121, '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_P23285058_26-05-2025_16_09_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23285061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23285062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23285063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23285064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23285065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23285066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23285067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23285068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23285069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23285070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23285071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23285072, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23285265, 'dashboard_result_id': 10932122, '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_P23285265_26-05-2025_16_06_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23285267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23285268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23285269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23285270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23285271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23285272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23285273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23285274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23285275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23285276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23285277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23285278, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23286346, 'dashboard_result_id': 10932123, '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_P23286346_26-05-2025_14_59_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23286348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23286349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23286350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23286351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23286352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23286353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23286354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23286355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23286356, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23286357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23286358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23286359, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23285758, 'dashboard_result_id': 10932124, '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_P23285758_26-05-2025_16_04_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23285759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23285760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23285761, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23285762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23285763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23285764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23285765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23285766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23285767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23285768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23285769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23285770, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23286077, 'dashboard_result_id': 10932125, '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_P23286077_26-05-2025_14_57_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23286078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23286079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23286080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23286081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23286082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23286083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23286084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23286085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23286086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23286087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23286088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23286089, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23286960, 'dashboard_result_id': 10932126, '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_P23286960_26-05-2025_14_57_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23286962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23286963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23286964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23286965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23286966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23286967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23286968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23286969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23286970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23286971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23286972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23286973, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23287222, 'dashboard_result_id': 10932127, '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_P23287222_26-05-2025_14_57_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23287224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287232, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287235, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23287637, 'dashboard_result_id': 10932128, '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_P23287637_26-05-2025_14_54_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23287659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287662, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23287638, 'dashboard_result_id': 10932129, '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_P23287638_26-05-2025_14_54_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287644, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23287646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287651, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23287834, 'dashboard_result_id': 10932130, '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_P23287834_26-05-2025_14_52_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23287836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287838, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287840, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287844, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287845, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287847, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23288115, 'dashboard_result_id': 10932131, '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_P23288115_26-05-2025_14_52_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23288117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23288118, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23288119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23288120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23288121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23288122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23288123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23288124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23288125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23288126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23288127, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23288128, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23288547, 'dashboard_result_id': 10932132, '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_P23288547_26-05-2025_14_51_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23288548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23288549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23288550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23288551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23288552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23288553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23288554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23288555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23288556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23288557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23288558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23288559, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23288807, 'dashboard_result_id': 10932133, '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_P23288807_26-05-2025_14_50_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23288809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23288810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23288811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23288812, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23288813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23288814, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23288815, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23288816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23288817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23288818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23288819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23288820, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23290416, 'dashboard_result_id': 10932134, '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_P23290416_26-05-2025_15_36_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23337067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23337068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23337069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23337070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23337071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23337072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23337073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23337074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23337075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23337076, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23337077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23337078, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23290064, 'dashboard_result_id': 10932135, '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_P23290064_26-05-2025_14_50_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23290076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23290077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23290078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23290079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23290080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23290081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23290082, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23290083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23290084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23290085, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23290086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23290087, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23290418, 'dashboard_result_id': 10932136, '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_P23290418_26-05-2025_15_35_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23337100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23337101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23337102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23337103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23337104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23337105, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23337106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23337107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23337108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23337109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23337110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23337111, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23290420, 'dashboard_result_id': 10932137, '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_P23290420_26-05-2025_15_35_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23292624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23292625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23292626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23292627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23292628, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23292629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23292630, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23292631, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23292632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23292633, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23292634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23292635, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23291043, 'dashboard_result_id': 10932138, '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_P23291043_26-05-2025_14_49_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23291061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23291062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23291063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23291064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23291065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23291066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23291067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23291068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23291069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23291070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23291071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23291072, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23290765, 'dashboard_result_id': 10932139, '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_P23290765_26-05-2025_15_28_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23290773, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23290774, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23290775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23290776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23290777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23290778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23290779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23290780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23290781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23290782, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23290783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23290784, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23291275, 'dashboard_result_id': 10932140, '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_P23291275_26-05-2025_15_24_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23291286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23291287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23291288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23291289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23291290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23291291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23291292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23291293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23291294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23291295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23291296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23291297, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23291844, 'dashboard_result_id': 10932141, '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_P23291844_26-05-2025_14_46_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23338313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23338314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23338315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23338316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23338317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23338318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23338319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23338320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23338321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23338322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23338323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23338324, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23292519, 'dashboard_result_id': 10932142, '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_P23292519_26-05-2025_14_42_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23292522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23292523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23292524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23292525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23292526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23292527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23292528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23292529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23292530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23292531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23292532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23292533, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23292773, 'dashboard_result_id': 10932143, '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_P23292773_26-05-2025_13_51_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336351, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336353, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336358, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23292971, 'dashboard_result_id': 10932144, '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_P23292971_26-05-2025_13_48_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23336202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336204, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336208, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336211, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336212, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336213, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23293107, 'dashboard_result_id': 10932145, '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_P23293107_26-05-2025_13_43_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23293108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23293109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23293110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23293111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23293112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23293113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23293114, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23293115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23293116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23293117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23293118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23293119, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23293781, 'dashboard_result_id': 10932146, '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_P23293781_26-05-2025_13_41_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23335810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23335812, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23335815, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335820, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23335821, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23294253, 'dashboard_result_id': 10932147, '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_P23294253_26-05-2025_13_38_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23335711, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23335717, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23335721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335722, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23294574, 'dashboard_result_id': 10932148, '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_P23294574_26-05-2025_13_35_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23335494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335495, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335496, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23335497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23335500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335502, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23295167, 'dashboard_result_id': 10932149, '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_P23295167_26-05-2025_13_31_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23335290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23335291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23335295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335299, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23295188, 'dashboard_result_id': 10932150, '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_P23295188_26-05-2025_13_29_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23295221, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23295222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23295223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23295224, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23295226, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23295227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23295228, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23295229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23295230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23295231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23295232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23295233, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23296296, 'dashboard_result_id': 10932151, '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_P23296296_26-05-2025_13_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23334412, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23334413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23334414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23334415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23334416, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23334417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23334418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23334419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23334420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23334421, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23334422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23334423, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23297474, 'dashboard_result_id': 10932152, '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_P23297474_26-05-2025_13_00_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23297504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23297505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23297506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23297507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23297508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23297509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23297511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23297512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23297513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23297514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23297515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23297516, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23299796, 'dashboard_result_id': 10932153, '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_P23299796_26-05-2025_13_10_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23299834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23299835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23299836, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23299837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23299838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23299839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23299840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23299841, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23299842, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23299843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23299844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23299845, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23300457, 'dashboard_result_id': 10932154, '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_P23300457_26-05-2025_13_07_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23300534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23300535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23300536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23300537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23300538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23300539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23300540, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23300541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23300542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23300543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23300544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23300545, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23301804, 'dashboard_result_id': 10932155, '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_P23301804_26-05-2025_12_58_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23301806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23301807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23301808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23301809, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23301810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23301811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23301812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23301813, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23301814, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23301815, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23301816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23301817, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23302591, 'dashboard_result_id': 10932156, '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_P23302591_26-05-2025_12_55_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23332697, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23332698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23332699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23332700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23332701, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23332702, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23332703, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23332704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23332705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23332706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23332707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23332708, 'pht': 3726}}"}, {'dashboat_entry_day': 1831613, 'dashboard_run_id': 1845855, 'mtr_portfolio_id': 23309776, 'dashboard_result_id': 10932157, '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_P23309776_26-05-2025_11_42_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23309813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23309814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23309815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23309816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23309817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23309818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23309819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23309820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23309821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23309822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23309823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23309824, '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 = 23282309 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': 2939198, 'mtr_portfolio_id': 23282309, 'created_at': datetime.datetime(2025, 5, 26, 16, 45, 59), 'result': '0.0644274782679355', 'result_long': None, 'result_double': None}] Qualite : 0.0644274782679355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23282309 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23282309_26-05-2025_16_46_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23282309 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_P23282309_26-05-2025_16_46_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23282326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23282327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23282328, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23282329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23282330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23282331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23282332, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23282333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23282334, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23282335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23282336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23282337, 'pht': 3726}}" where mtr_portfolio_id = 23282309 and dashboard_run_id = 1845855 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`=23282309 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932112, 0.0644274782679355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23282309_26-05-2025_16_46_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23282326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23282327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23282328, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23282329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23282330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23282331, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23282332, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23282333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23282334, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23282335, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23282336, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23282337, '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 = 23290413 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': 2942798, 'mtr_portfolio_id': 23290413, 'created_at': datetime.datetime(2025, 5, 26, 15, 36, 59), 'result': '0.048645099607279196', 'result_long': None, 'result_double': None}] Qualite : 0.048645099607279196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23290413 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23290413_26-05-2025_15_37_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23290413 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_P23290413_26-05-2025_15_37_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336952, 'pht': 3726}}" where mtr_portfolio_id = 23290413 and dashboard_run_id = 1845855 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`=23290413 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932113, 0.048645099607279196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23290413_26-05-2025_15_37_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336942, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336945, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336952, '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 = 23283058 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': 2943552, 'mtr_portfolio_id': 23283058, 'created_at': datetime.datetime(2025, 5, 26, 15, 6), 'result': '0.049213785087505624', 'result_long': None, 'result_double': None}] Qualite : 0.049213785087505624 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23283058 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23283058_26-05-2025_15_06_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23283058 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_P23283058_26-05-2025_15_06_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23283060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23283061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23283062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23283063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23283064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23283065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23283066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23283067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23283068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23283069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23283070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23283071, 'pht': 3726}}" where mtr_portfolio_id = 23283058 and dashboard_run_id = 1845855 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`=23283058 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932114, 0.049213785087505624, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23283058_26-05-2025_15_06_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23283060, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23283061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23283062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23283063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23283064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23283065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23283066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23283067, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23283068, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23283069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23283070, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23283071, '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 = 23282803 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': 2939394, 'mtr_portfolio_id': 23282803, 'created_at': datetime.datetime(2025, 5, 26, 16, 32, 30), 'result': '0.037674885556400646', 'result_long': None, 'result_double': None}] Qualite : 0.037674885556400646 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23282803 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23282803_26-05-2025_16_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23282803 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_P23282803_26-05-2025_16_32_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23282809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23282811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23282812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23282813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23282814, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23282815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23282816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23282817, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23282818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23282819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23282820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23282821, 'pht': 3726}}" where mtr_portfolio_id = 23282803 and dashboard_run_id = 1845855 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`=23282803 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932115, 0.037674885556400646, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23282803_26-05-2025_16_32_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23282809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23282811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23282812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23282813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23282814, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23282815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23282816, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23282817, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23282818, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23282819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23282820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23282821, '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 = 23283810 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': 2943554, 'mtr_portfolio_id': 23283810, 'created_at': datetime.datetime(2025, 5, 26, 15, 4, 58), 'result': '0.03903763175748807', 'result_long': None, 'result_double': None}] Qualite : 0.03903763175748807 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23283810 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23283810_26-05-2025_15_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23283810 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_P23283810_26-05-2025_15_05_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23283819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23283820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23283821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23283822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23283823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23283824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23283825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23283826, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23283827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23283828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23283829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23283830, 'pht': 3726}}" where mtr_portfolio_id = 23283810 and dashboard_run_id = 1845855 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`=23283810 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932116, 0.03903763175748807, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23283810_26-05-2025_15_05_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23283819, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23283820, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23283821, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23283822, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23283823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23283824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23283825, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23283826, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23283827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23283828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23283829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23283830, '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 = 23284061 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': 2939917, 'mtr_portfolio_id': 23284061, 'created_at': datetime.datetime(2025, 5, 26, 16, 14, 1), 'result': '0.06005330098728292', 'result_long': None, 'result_double': None}] Qualite : 0.06005330098728292 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23284061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284061_26-05-2025_16_14_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23284061 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_P23284061_26-05-2025_16_14_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23284072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284074, 'pht': 3726}}" where mtr_portfolio_id = 23284061 and dashboard_run_id = 1845855 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`=23284061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932117, 0.06005330098728292, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284061_26-05-2025_16_14_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284067, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23284072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284074, '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 = 23284185 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': 2939943, 'mtr_portfolio_id': 23284185, 'created_at': datetime.datetime(2025, 5, 26, 16, 13, 30), 'result': '0.06139283378281599', 'result_long': None, 'result_double': None}] Qualite : 0.06139283378281599 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23284185 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284185_26-05-2025_16_13_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23284185 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_P23284185_26-05-2025_16_13_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23284192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284196, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284199, 'pht': 3726}}" where mtr_portfolio_id = 23284185 and dashboard_run_id = 1845855 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`=23284185 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932118, 0.06139283378281599, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284185_26-05-2025_16_13_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284189, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23284192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284196, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284197, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284198, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284199, '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 = 23284543 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': 2940169, 'mtr_portfolio_id': 23284543, 'created_at': datetime.datetime(2025, 5, 26, 16, 11, 56), 'result': '0.07849162160659186', 'result_long': None, 'result_double': None}] Qualite : 0.07849162160659186 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23284543 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284543_26-05-2025_16_11_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23284543 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_P23284543_26-05-2025_16_11_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284567, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23284575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284576, 'pht': 3726}}" where mtr_portfolio_id = 23284543 and dashboard_run_id = 1845855 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`=23284543 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932119, 0.07849162160659186, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284543_26-05-2025_16_11_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284565, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284567, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284572, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23284575, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284576, '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 = 23284637 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': 2940230, 'mtr_portfolio_id': 23284637, 'created_at': datetime.datetime(2025, 5, 26, 16, 11, 29), 'result': '0.02116161060463407', 'result_long': None, 'result_double': None}] Qualite : 0.02116161060463407 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23284637 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284637_26-05-2025_16_11_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23284637 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_P23284637_26-05-2025_16_11_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23284639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284641, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284645, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284650, 'pht': 3726}}" where mtr_portfolio_id = 23284637 and dashboard_run_id = 1845855 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`=23284637 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932120, 0.02116161060463407, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23284637_26-05-2025_16_11_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23284639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23284640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23284641, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23284642, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23284643, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23284644, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23284645, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23284646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23284647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23284648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23284649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23284650, '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 = 23285058 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': 2940469, 'mtr_portfolio_id': 23285058, 'created_at': datetime.datetime(2025, 5, 26, 16, 9, 57), 'result': '0.05051425779816264', 'result_long': None, 'result_double': None}] Qualite : 0.05051425779816264 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23285058 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23285058_26-05-2025_16_09_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23285058 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_P23285058_26-05-2025_16_09_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23285061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23285062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23285063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23285064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23285065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23285066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23285067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23285068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23285069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23285070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23285071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23285072, 'pht': 3726}}" where mtr_portfolio_id = 23285058 and dashboard_run_id = 1845855 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`=23285058 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932121, 0.05051425779816264, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23285058_26-05-2025_16_09_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23285061, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23285062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23285063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23285064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23285065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23285066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23285067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23285068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23285069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23285070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23285071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23285072, '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 = 23285265 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': 2940553, 'mtr_portfolio_id': 23285265, 'created_at': datetime.datetime(2025, 5, 26, 16, 6, 31), 'result': '0.04482751226494379', 'result_long': None, 'result_double': None}] Qualite : 0.04482751226494379 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23285265 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23285265_26-05-2025_16_06_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23285265 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_P23285265_26-05-2025_16_06_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23285267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23285268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23285269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23285270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23285271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23285272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23285273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23285274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23285275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23285276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23285277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23285278, 'pht': 3726}}" where mtr_portfolio_id = 23285265 and dashboard_run_id = 1845855 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`=23285265 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932122, 0.04482751226494379, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23285265_26-05-2025_16_06_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23285267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23285268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23285269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23285270, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23285271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23285272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23285273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23285274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23285275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23285276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23285277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23285278, '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 = 23286346 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': 2943561, 'mtr_portfolio_id': 23286346, 'created_at': datetime.datetime(2025, 5, 26, 14, 59, 27), 'result': '0.07920681716625969', 'result_long': None, 'result_double': None}] Qualite : 0.07920681716625969 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23286346 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23286346_26-05-2025_14_59_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23286346 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_P23286346_26-05-2025_14_59_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23286348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23286349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23286350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23286351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23286352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23286353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23286354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23286355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23286356, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23286357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23286358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23286359, 'pht': 3726}}" where mtr_portfolio_id = 23286346 and dashboard_run_id = 1845855 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`=23286346 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932123, 0.07920681716625969, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23286346_26-05-2025_14_59_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23286348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23286349, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23286350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23286351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23286352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23286353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23286354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23286355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23286356, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23286357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23286358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23286359, '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 = 23285758 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': 2940802, 'mtr_portfolio_id': 23285758, 'created_at': datetime.datetime(2025, 5, 26, 16, 4, 30), 'result': '0.054911784430796015', 'result_long': None, 'result_double': None}] Qualite : 0.054911784430796015 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23285758 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23285758_26-05-2025_16_04_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23285758 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_P23285758_26-05-2025_16_04_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23285759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23285760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23285761, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23285762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23285763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23285764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23285765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23285766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23285767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23285768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23285769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23285770, 'pht': 3726}}" where mtr_portfolio_id = 23285758 and dashboard_run_id = 1845855 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`=23285758 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932124, 0.054911784430796015, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23285758_26-05-2025_16_04_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23285759, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23285760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23285761, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23285762, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23285763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23285764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23285765, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23285766, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23285767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23285768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23285769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23285770, '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 = 23286077 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': 2940937, 'mtr_portfolio_id': 23286077, 'created_at': datetime.datetime(2025, 5, 26, 15, 59, 57), 'result': '0.06338704010670235', 'result_long': None, 'result_double': None}] Qualite : 0.06338704010670235 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23286077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23286077_26-05-2025_14_57_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23286077 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_P23286077_26-05-2025_14_57_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23286078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23286079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23286080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23286081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23286082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23286083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23286084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23286085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23286086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23286087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23286088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23286089, 'pht': 3726}}" where mtr_portfolio_id = 23286077 and dashboard_run_id = 1845855 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`=23286077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932125, 0.06338704010670235, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23286077_26-05-2025_14_57_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23286078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23286079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23286080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23286081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23286082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23286083, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23286084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23286085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23286086, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23286087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23286088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23286089, '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 = 23286960 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': 2943564, 'mtr_portfolio_id': 23286960, 'created_at': datetime.datetime(2025, 5, 26, 14, 57, 28), 'result': '0.04410894381375473', 'result_long': None, 'result_double': None}] Qualite : 0.04410894381375473 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23286960 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23286960_26-05-2025_14_57_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23286960 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_P23286960_26-05-2025_14_57_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23286962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23286963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23286964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23286965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23286966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23286967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23286968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23286969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23286970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23286971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23286972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23286973, 'pht': 3726}}" where mtr_portfolio_id = 23286960 and dashboard_run_id = 1845855 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`=23286960 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932126, 0.04410894381375473, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23286960_26-05-2025_14_57_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23286962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23286963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23286964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23286965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23286966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23286967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23286968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23286969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23286970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23286971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23286972, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23286973, '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 = 23287222 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': 2941368, 'mtr_portfolio_id': 23287222, 'created_at': datetime.datetime(2025, 5, 26, 15, 57, 27), 'result': '0.051669532519632765', 'result_long': None, 'result_double': None}] Qualite : 0.051669532519632765 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23287222 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287222_26-05-2025_14_57_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23287222 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_P23287222_26-05-2025_14_57_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23287224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287232, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287235, 'pht': 3726}}" where mtr_portfolio_id = 23287222 and dashboard_run_id = 1845855 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`=23287222 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932127, 0.051669532519632765, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287222_26-05-2025_14_57_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23287224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287232, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287235, '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 = 23287637 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': 2943566, 'mtr_portfolio_id': 23287637, 'created_at': datetime.datetime(2025, 5, 26, 14, 54, 30), 'result': '0.02489637938620779', 'result_long': None, 'result_double': None}] Qualite : 0.02489637938620779 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23287637 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287637_26-05-2025_14_54_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23287637 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_P23287637_26-05-2025_14_54_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23287659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287662, 'pht': 3726}}" where mtr_portfolio_id = 23287637 and dashboard_run_id = 1845855 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`=23287637 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932128, 0.02489637938620779, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287637_26-05-2025_14_54_36.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287650, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23287659, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287660, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287662, '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 = 23287638 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': 2941552, 'mtr_portfolio_id': 23287638, 'created_at': datetime.datetime(2025, 5, 26, 15, 52, 58), 'result': '0.043053091951411576', 'result_long': None, 'result_double': None}] Qualite : 0.043053091951411576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23287638 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287638_26-05-2025_14_54_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23287638 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_P23287638_26-05-2025_14_54_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287644, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23287646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287651, 'pht': 3726}}" where mtr_portfolio_id = 23287638 and dashboard_run_id = 1845855 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`=23287638 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932129, 0.043053091951411576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287638_26-05-2025_14_54_05.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287639, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287642, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287644, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23287646, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287649, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287651, '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 = 23287834 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': 2941637, 'mtr_portfolio_id': 23287834, 'created_at': datetime.datetime(2025, 5, 26, 15, 52, 28), 'result': '0.028363749527641317', 'result_long': None, 'result_double': None}] Qualite : 0.028363749527641317 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23287834 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287834_26-05-2025_14_52_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23287834 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_P23287834_26-05-2025_14_52_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23287836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287838, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287840, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287844, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287845, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287847, 'pht': 3726}}" where mtr_portfolio_id = 23287834 and dashboard_run_id = 1845855 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`=23287834 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932130, 0.028363749527641317, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23287834_26-05-2025_14_52_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23287836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23287837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23287838, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23287839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23287840, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23287841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23287842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23287843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23287844, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23287845, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23287846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23287847, '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 = 23288115 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': 2941772, 'mtr_portfolio_id': 23288115, 'created_at': datetime.datetime(2025, 5, 26, 15, 51, 59), 'result': '0.09252529888664819', 'result_long': None, 'result_double': None}] Qualite : 0.09252529888664819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23288115 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23288115_26-05-2025_14_52_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23288115 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_P23288115_26-05-2025_14_52_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23288117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23288118, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23288119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23288120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23288121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23288122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23288123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23288124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23288125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23288126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23288127, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23288128, 'pht': 3726}}" where mtr_portfolio_id = 23288115 and dashboard_run_id = 1845855 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`=23288115 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932131, 0.09252529888664819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23288115_26-05-2025_14_52_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23288117, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23288118, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23288119, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23288120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23288121, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23288122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23288123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23288124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23288125, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23288126, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23288127, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23288128, '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 = 23288547 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 23288547 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23288547 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23288547_26-05-2025_14_51_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23288547 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_P23288547_26-05-2025_14_51_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23288548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23288549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23288550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23288551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23288552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23288553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23288554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23288555, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23288556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23288557, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23288558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23288559, 'pht': 3726}}" where mtr_portfolio_id = 23288547 and dashboard_run_id = 1845855 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 = 23288807 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': 2942127, 'mtr_portfolio_id': 23288807, 'created_at': datetime.datetime(2025, 5, 26, 15, 49, 59), 'result': '0.04767460023010003', 'result_long': None, 'result_double': None}] Qualite : 0.04767460023010003 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23288807 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23288807_26-05-2025_14_50_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23288807 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_P23288807_26-05-2025_14_50_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23288809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23288810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23288811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23288812, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23288813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23288814, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23288815, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23288816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23288817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23288818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23288819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23288820, 'pht': 3726}}" where mtr_portfolio_id = 23288807 and dashboard_run_id = 1845855 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`=23288807 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932133, 0.04767460023010003, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23288807_26-05-2025_14_50_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23288809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23288810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23288811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23288812, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23288813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23288814, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23288815, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23288816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23288817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23288818, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23288819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23288820, '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 = 23290416 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': 2942799, 'mtr_portfolio_id': 23290416, 'created_at': datetime.datetime(2025, 5, 26, 15, 35, 58), 'result': '0.05115101714818417', 'result_long': None, 'result_double': None}] Qualite : 0.05115101714818417 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23290416 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23290416_26-05-2025_15_36_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23290416 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_P23290416_26-05-2025_15_36_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23337067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23337068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23337069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23337070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23337071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23337072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23337073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23337074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23337075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23337076, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23337077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23337078, 'pht': 3726}}" where mtr_portfolio_id = 23290416 and dashboard_run_id = 1845855 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`=23290416 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932134, 0.05115101714818417, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23290416_26-05-2025_15_36_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23337067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23337068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23337069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23337070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23337071, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23337072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23337073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23337074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23337075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23337076, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23337077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23337078, '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 = 23290064 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': 2943572, 'mtr_portfolio_id': 23290064, 'created_at': datetime.datetime(2025, 5, 26, 14, 49, 57), 'result': '0.03726798186647803', 'result_long': None, 'result_double': None}] Qualite : 0.03726798186647803 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23290064 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23290064_26-05-2025_14_50_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23290064 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_P23290064_26-05-2025_14_50_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23290076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23290077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23290078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23290079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23290080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23290081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23290082, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23290083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23290084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23290085, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23290086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23290087, 'pht': 3726}}" where mtr_portfolio_id = 23290064 and dashboard_run_id = 1845855 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`=23290064 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932135, 0.03726798186647803, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23290064_26-05-2025_14_50_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23290076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23290077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23290078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23290079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23290080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23290081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23290082, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23290083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23290084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23290085, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23290086, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23290087, '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 = 23290418 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': 2942800, 'mtr_portfolio_id': 23290418, 'created_at': datetime.datetime(2025, 5, 26, 15, 35, 30), 'result': '0.07300197106569571', 'result_long': None, 'result_double': None}] Qualite : 0.07300197106569571 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23290418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23290418_26-05-2025_15_35_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23290418 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_P23290418_26-05-2025_15_35_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23337100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23337101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23337102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23337103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23337104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23337105, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23337106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23337107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23337108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23337109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23337110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23337111, 'pht': 3726}}" where mtr_portfolio_id = 23290418 and dashboard_run_id = 1845855 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`=23290418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932136, 0.07300197106569571, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23290418_26-05-2025_15_35_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23337100, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23337101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23337102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23337103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23337104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23337105, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23337106, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23337107, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23337108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23337109, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23337110, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23337111, '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 = 23290420 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': 2942801, 'mtr_portfolio_id': 23290420, 'created_at': datetime.datetime(2025, 5, 27, 5, 59), 'result': '0.040691904480527584', 'result_long': None, 'result_double': None}] Qualite : 0.040691904480527584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23290420 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23290420_27-05-2025_05_59_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23290420 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_P23290420_27-05-2025_05_59_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23292624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23292625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23292626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23292627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23292628, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23292629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23292630, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23292631, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23292632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23292633, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23292634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23292635, 'pht': 3726}}" where mtr_portfolio_id = 23290420 and dashboard_run_id = 1845855 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`=23290420 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932137, 0.040691904480527584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23290420_27-05-2025_05_59_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23292624, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23292625, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23292626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23292627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23292628, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23292629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23292630, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23292631, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23292632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23292633, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23292634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23292635, '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 = 23291043 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': 2943573, 'mtr_portfolio_id': 23291043, 'created_at': datetime.datetime(2025, 5, 26, 14, 49, 29), 'result': '0.03974789209131804', 'result_long': None, 'result_double': None}] Qualite : 0.03974789209131804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23291043 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23291043_26-05-2025_14_49_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23291043 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_P23291043_26-05-2025_14_49_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23291061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23291062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23291063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23291064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23291065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23291066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23291067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23291068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23291069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23291070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23291071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23291072, 'pht': 3726}}" where mtr_portfolio_id = 23291043 and dashboard_run_id = 1845855 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`=23291043 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932138, 0.03974789209131804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23291043_26-05-2025_14_49_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23291061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23291062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23291063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23291064, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23291065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23291066, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23291067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23291068, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23291069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23291070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23291071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23291072, '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 = 23290765 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': 2942972, 'mtr_portfolio_id': 23290765, 'created_at': datetime.datetime(2025, 5, 26, 15, 28), 'result': '0.03937798374952385', 'result_long': None, 'result_double': None}] Qualite : 0.03937798374952385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23290765 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23290765_26-05-2025_15_28_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23290765 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_P23290765_26-05-2025_15_28_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23290773, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23290774, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23290775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23290776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23290777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23290778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23290779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23290780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23290781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23290782, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23290783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23290784, 'pht': 3726}}" where mtr_portfolio_id = 23290765 and dashboard_run_id = 1845855 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`=23290765 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932139, 0.03937798374952385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23290765_26-05-2025_15_28_05.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23290773, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23290774, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23290775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23290776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23290777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23290778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23290779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23290780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23290781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23290782, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23290783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23290784, '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 = 23291275 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': 2943250, 'mtr_portfolio_id': 23291275, 'created_at': datetime.datetime(2025, 5, 26, 15, 23, 57), 'result': '0.032906802138447745', 'result_long': None, 'result_double': None}] Qualite : 0.032906802138447745 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23291275 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23291275_26-05-2025_15_24_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23291275 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_P23291275_26-05-2025_15_24_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23291286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23291287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23291288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23291289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23291290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23291291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23291292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23291293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23291294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23291295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23291296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23291297, 'pht': 3726}}" where mtr_portfolio_id = 23291275 and dashboard_run_id = 1845855 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`=23291275 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932140, 0.032906802138447745, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23291275_26-05-2025_15_24_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23291286, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23291287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23291288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23291289, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23291290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23291291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23291292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23291293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23291294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23291295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23291296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23291297, '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 = 23291844 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': 2943594, 'mtr_portfolio_id': 23291844, 'created_at': datetime.datetime(2025, 5, 26, 14, 46, 29), 'result': '0.050941810249564345', 'result_long': None, 'result_double': None}] Qualite : 0.050941810249564345 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23291844 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23291844_26-05-2025_14_46_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23291844 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_P23291844_26-05-2025_14_46_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23338313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23338314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23338315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23338316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23338317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23338318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23338319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23338320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23338321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23338322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23338323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23338324, 'pht': 3726}}" where mtr_portfolio_id = 23291844 and dashboard_run_id = 1845855 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`=23291844 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932141, 0.050941810249564345, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23291844_26-05-2025_14_46_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23338313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23338314, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23338315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23338316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23338317, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23338318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23338319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23338320, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23338321, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23338322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23338323, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23338324, '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 = 23292519 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': 2943790, 'mtr_portfolio_id': 23292519, 'created_at': datetime.datetime(2025, 5, 26, 14, 42, 28), 'result': '0.09853127524122728', 'result_long': None, 'result_double': None}] Qualite : 0.09853127524122728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23292519 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23292519_26-05-2025_14_42_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23292519 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_P23292519_26-05-2025_14_42_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23292522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23292523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23292524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23292525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23292526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23292527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23292528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23292529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23292530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23292531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23292532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23292533, 'pht': 3726}}" where mtr_portfolio_id = 23292519 and dashboard_run_id = 1845855 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`=23292519 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932142, 0.09853127524122728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23292519_26-05-2025_14_42_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23292522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23292523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23292524, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23292525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23292526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23292527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23292528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23292529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23292530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23292531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23292532, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23292533, '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 = 23292773 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': 2944118, 'mtr_portfolio_id': 23292773, 'created_at': datetime.datetime(2025, 5, 26, 13, 51, 29), 'result': '0.02173304178455117', 'result_long': None, 'result_double': None}] Qualite : 0.02173304178455117 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23292773 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23292773_26-05-2025_13_51_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23292773 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_P23292773_26-05-2025_13_51_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336351, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336353, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336358, 'pht': 3726}}" where mtr_portfolio_id = 23292773 and dashboard_run_id = 1845855 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`=23292773 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932143, 0.02173304178455117, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23292773_26-05-2025_13_51_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336351, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336353, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336356, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336358, '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 = 23292971 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': 2944188, 'mtr_portfolio_id': 23292971, 'created_at': datetime.datetime(2025, 5, 26, 13, 48, 28), 'result': '0.018205471114361688', 'result_long': None, 'result_double': None}] Qualite : 0.018205471114361688 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23292971 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23292971_26-05-2025_13_48_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23292971 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_P23292971_26-05-2025_13_48_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23336202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336204, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336208, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336211, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336212, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336213, 'pht': 3726}}" where mtr_portfolio_id = 23292971 and dashboard_run_id = 1845855 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`=23292971 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932144, 0.018205471114361688, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23292971_26-05-2025_13_48_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23336202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336203, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336204, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336208, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336209, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336211, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336212, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336213, '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 = 23293107 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': 2944242, 'mtr_portfolio_id': 23293107, 'created_at': datetime.datetime(2025, 5, 26, 13, 43, 29), 'result': '0.13082168273447528', 'result_long': None, 'result_double': None}] Qualite : 0.13082168273447528 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23293107 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23293107_26-05-2025_13_43_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23293107 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_P23293107_26-05-2025_13_43_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23293108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23293109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23293110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23293111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23293112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23293113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23293114, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23293115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23293116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23293117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23293118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23293119, 'pht': 3726}}" where mtr_portfolio_id = 23293107 and dashboard_run_id = 1845855 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`=23293107 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932145, 0.13082168273447528, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23293107_26-05-2025_13_43_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23293108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23293109, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23293110, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23293111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23293112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23293113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23293114, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23293115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23293116, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23293117, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23293118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23293119, '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 = 23293781 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': 2944631, 'mtr_portfolio_id': 23293781, 'created_at': datetime.datetime(2025, 5, 26, 13, 41), 'result': '0.04899943066318743', 'result_long': None, 'result_double': None}] Qualite : 0.04899943066318743 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23293781 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23293781_26-05-2025_13_41_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23293781 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_P23293781_26-05-2025_13_41_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23335810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23335812, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23335815, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335820, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23335821, 'pht': 3726}}" where mtr_portfolio_id = 23293781 and dashboard_run_id = 1845855 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`=23293781 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932146, 0.04899943066318743, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23293781_26-05-2025_13_41_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23335810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23335812, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23335815, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335816, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335818, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335820, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23335821, '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 = 23294253 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 23294253 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 23294253 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23294253 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23294253 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2944755, 'mtr_portfolio_id': 23294253, 'created_at': datetime.datetime(2025, 5, 26, 13, 38, 28), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23294253 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23294253_26-05-2025_13_38_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23294253 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_P23294253_26-05-2025_13_38_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23335711, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23335717, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23335721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335722, 'pht': 3726}}" where mtr_portfolio_id = 23294253 and dashboard_run_id = 1845855 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`=23294253 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932147, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23294253_26-05-2025_13_38_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23335711, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23335717, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335718, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335719, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23335721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335722, '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 = 23294574 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': 2944868, 'mtr_portfolio_id': 23294574, 'created_at': datetime.datetime(2025, 5, 26, 13, 34, 59), 'result': '0.03969406451626526', 'result_long': None, 'result_double': None}] Qualite : 0.03969406451626526 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23294574 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23294574_26-05-2025_13_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23294574 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_P23294574_26-05-2025_13_35_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23335494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335495, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335496, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23335497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23335500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335502, 'pht': 3726}}" where mtr_portfolio_id = 23294574 and dashboard_run_id = 1845855 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`=23294574 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932148, 0.03969406451626526, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23294574_26-05-2025_13_35_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23335494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335495, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335496, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23335497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23335500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335502, '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 = 23295167 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 23295167 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 23295167 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23295167 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23295167 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23295167 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23295167_26-05-2025_13_31_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23295167 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_P23295167_26-05-2025_13_31_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335289, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23335290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23335291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335293, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23335295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335296, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335299, 'pht': 3726}}" where mtr_portfolio_id = 23295167 and dashboard_run_id = 1845855 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 = 23295188 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': 2944996, 'mtr_portfolio_id': 23295188, 'created_at': datetime.datetime(2025, 5, 26, 13, 29, 31), 'result': '0.02706719542379491', 'result_long': None, 'result_double': None}] Qualite : 0.02706719542379491 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23295188 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23295188_26-05-2025_13_29_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23295188 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_P23295188_26-05-2025_13_29_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23295221, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23295222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23295223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23295224, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23295226, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23295227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23295228, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23295229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23295230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23295231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23295232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23295233, 'pht': 3726}}" where mtr_portfolio_id = 23295188 and dashboard_run_id = 1845855 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`=23295188 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932150, 0.02706719542379491, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23295188_26-05-2025_13_29_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23295221, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23295222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23295223, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23295224, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23295226, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23295227, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23295228, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23295229, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23295230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23295231, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23295232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23295233, '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 = 23296296 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': 2945209, 'mtr_portfolio_id': 23296296, 'created_at': datetime.datetime(2025, 5, 26, 13, 18, 59), 'result': '0.06355173350632357', 'result_long': None, 'result_double': None}] Qualite : 0.06355173350632357 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23296296 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23296296_26-05-2025_13_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23296296 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_P23296296_26-05-2025_13_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23334412, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23334413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23334414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23334415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23334416, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23334417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23334418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23334419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23334420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23334421, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23334422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23334423, 'pht': 3726}}" where mtr_portfolio_id = 23296296 and dashboard_run_id = 1845855 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`=23296296 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932151, 0.06355173350632357, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23296296_26-05-2025_13_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23334412, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23334413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23334414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23334415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23334416, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23334417, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23334418, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23334419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23334420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23334421, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23334422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23334423, '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 = 23297474 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': 2945474, 'mtr_portfolio_id': 23297474, 'created_at': datetime.datetime(2025, 5, 26, 13, 0, 28), 'result': '0.03302016356036787', 'result_long': None, 'result_double': None}] Qualite : 0.03302016356036787 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23297474 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23297474_26-05-2025_13_00_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23297474 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_P23297474_26-05-2025_13_00_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23297504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23297505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23297506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23297507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23297508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23297509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23297511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23297512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23297513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23297514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23297515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23297516, 'pht': 3726}}" where mtr_portfolio_id = 23297474 and dashboard_run_id = 1845855 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`=23297474 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932152, 0.03302016356036787, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23297474_26-05-2025_13_00_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23297504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23297505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23297506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23297507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23297508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23297509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23297511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23297512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23297513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23297514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23297515, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23297516, '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 = 23299796 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': 2945653, 'mtr_portfolio_id': 23299796, 'created_at': datetime.datetime(2025, 5, 26, 13, 9, 59), 'result': '0.0031488256367268167', 'result_long': None, 'result_double': None}] Qualite : 0.0031488256367268167 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23299796 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23299796_26-05-2025_13_10_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23299796 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_P23299796_26-05-2025_13_10_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23299834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23299835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23299836, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23299837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23299838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23299839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23299840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23299841, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23299842, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23299843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23299844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23299845, 'pht': 3726}}" where mtr_portfolio_id = 23299796 and dashboard_run_id = 1845855 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`=23299796 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932153, 0.0031488256367268167, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23299796_26-05-2025_13_10_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23299834, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23299835, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23299836, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23299837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23299838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23299839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23299840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23299841, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23299842, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23299843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23299844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23299845, '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 = 23300457 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': 2945694, 'mtr_portfolio_id': 23300457, 'created_at': datetime.datetime(2025, 5, 26, 13, 7, 28), 'result': '0.07619664336741928', 'result_long': None, 'result_double': None}] Qualite : 0.07619664336741928 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23300457 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23300457_26-05-2025_13_07_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23300457 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_P23300457_26-05-2025_13_07_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23300534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23300535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23300536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23300537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23300538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23300539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23300540, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23300541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23300542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23300543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23300544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23300545, 'pht': 3726}}" where mtr_portfolio_id = 23300457 and dashboard_run_id = 1845855 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`=23300457 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932154, 0.07619664336741928, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23300457_26-05-2025_13_07_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23300534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23300535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23300536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23300537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23300538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23300539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23300540, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23300541, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23300542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23300543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23300544, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23300545, '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 = 23301804 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 23301804 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 23301804 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23301804 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23301804 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23301804 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23301804_26-05-2025_12_58_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23301804 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_P23301804_26-05-2025_12_58_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 23301806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23301807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23301808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23301809, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23301810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23301811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23301812, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23301813, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23301814, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23301815, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23301816, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23301817, 'pht': 3726}}" where mtr_portfolio_id = 23301804 and dashboard_run_id = 1845855 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 = 23302591 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': 2945848, 'mtr_portfolio_id': 23302591, 'created_at': datetime.datetime(2025, 5, 26, 12, 54, 59), 'result': '0.09018094947646639', 'result_long': None, 'result_double': None}] Qualite : 0.09018094947646639 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23302591 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23302591_26-05-2025_12_55_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23302591 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_P23302591_26-05-2025_12_55_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23332697, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23332698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23332699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23332700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23332701, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23332702, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23332703, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23332704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23332705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23332706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23332707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23332708, 'pht': 3726}}" where mtr_portfolio_id = 23302591 and dashboard_run_id = 1845855 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`=23302591 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932156, 0.09018094947646639, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23302591_26-05-2025_12_55_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23332697, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23332698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23332699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23332700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23332701, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23332702, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23332703, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23332704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23332705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23332706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23332707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23332708, '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 = 23309776 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': 2946758, 'mtr_portfolio_id': 23309776, 'created_at': datetime.datetime(2025, 5, 26, 11, 42, 1), 'result': '0.02014171305070155', 'result_long': None, 'result_double': None}] Qualite : 0.02014171305070155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23309776 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23309776_26-05-2025_11_42_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23309776 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_P23309776_26-05-2025_11_42_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23309813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23309814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23309815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23309816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23309817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23309818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23309819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23309820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23309821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23309822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23309823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23309824, 'pht': 3726}}" where mtr_portfolio_id = 23309776 and dashboard_run_id = 1845855 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`=23309776 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10932157, 0.02014171305070155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23309776_26-05-2025_11_42_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23309813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23309814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23309815, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23309816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23309817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23309818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23309819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23309820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23309821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23309822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23309823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23309824, '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 (23282309,23290413,23283058,23282803,23283810,23284061,23284185,23284543,23284637,23285058,23285265,23286346,23285758,23286077,23286960,23287222,23287637,23287638,23287834,23288115,23288547,23288807,23290416,23290064,23290418,23290420,23291043,23290765,23291275,23291844,23292519,23292773,23292971,23293107,23293781,23294253,23294574,23295167,23295188,23296296,23297474,23299796,23300457,23301804,23302591,23309776) result : ((1360680878,), (1360680881,), (1360680886,), (1360680919,), (1360680926,), (1360680932,), (1360680938,), (1360680943,), (1360680966,), (1360680970,), (1360680974,), (1360680977,), (1360680981,), (1360680985,), (1360681004,), (1360681009,), (1360681014,), (1360681048,), (1360681053,), (1360681057,), (1360681061,), (1360681065,), (1360681068,), (1360681089,), (1360681094,), (1360681098,), (1360681102,), (1360681106,), (1360681181,), (1360681186,), (1360681192,), (1360681197,), (1360681201,), (1360681220,), (1360681257,), (1360681273,), (1360681281,), (1360681544,), (1360681548,), (1360681552,), (1360681557,), (1360681629,), (1360681643,), (1360681650,), (1360681660,), (1360681760,), (1360681764,), (1360681767,), (1360681772,), (1360681776,), (1360681800,), (1360681841,), (1360682678,), (1360682681,), (1360682701,), (1360682705,), (1360682708,), (1360682711,), (1360682728,), (1360682732,), (1360682736,), (1360682750,), (1360682753,), (1360682757,), (1360682761,), (1360682766,), (1360682787,), (1360682790,), (1360682793,), (1360682819,), (1360682823,), (1360682826,), (1360682829,), (1360682832,), (1360682851,), (1360682855,), (1360682858,), (1360682875,), (1360682879,), (1360682883,), (1360682886,), (1360682902,), (1360682905,), (1360682908,), (1360682911,), (1360682932,), (1360682937,), (1360682941,), (1360682945,), (1360682948,), (1360682950,), (1360682960,), (1360682964,), (1360682967,), (1360682972,), (1360682989,), (1360682992,), (1360682995,), (1360683011,), (1360683017,), (1360683021,), (1360683025,), (1360683029,), (1360683030,), (1360683383,), (1360683405,), (1360683429,), (1360683454,), (1360683527,), (1360683547,), (1360683567,), (1360683600,), (1360683624,), (1360685448,), (1360682259,), (1360682263,), (1360682266,), (1360682269,), (1360682273,), (1360682284,), (1360682287,), (1360682317,), (1360682321,), (1360682325,), (1360682328,), (1360682347,), (1360682349,), (1360682351,), (1360682376,), (1360682379,), (1360682382,), (1360682386,), (1360682406,), (1360682410,), (1360682414,), (1360682418,), (1360682432,), (1360682435,), (1360682438,), (1360682457,), (1360682461,), (1360682465,), (1360682485,), (1360682489,), (1360682493,), (1360682496,), (1360682513,), (1360682517,), (1360682521,), (1360682524,), (1360682528,), (1360682540,), (1360682544,), (1360682547,), (1360682571,), (1360682575,), (1360682579,), (1360682582,), (1360682585,), (1360682587,), (1360682600,), (1360682604,), (1360682606,), (1360682610,), (1360682612,), (1360682629,), (1360682633,), (1360682652,), (1360682655,), (1360682658,), (1360682660,), (1360682663,), (1360682665,), (1360682684,), (1360685442,), (1360685445,), (1360685471,), (1360685474,), (1360685477,), (1360685480,), (1360685500,), (1360685522,), (1360685524,), (1360685526,), (1360685529,), (1360685552,), (1360685555,), (1360685558,), (1360685561,), (1360685563,), (1360685566,), (1360685588,), (1360685589,), (1360685591,), (1360685594,), (1360685609,), (1360685611,), (1360685614,), (1360685654,), (1360685656,), (1360685675,), (1360685678,), (1360685681,), (1360685685,), (1360685687,), (1360685705,), (1360685709,), (1360685713,), (1360685717,), (1360685720,), (1360685764,), (1360685766,), (1360685790,), (1360685792,), (1360685794,), (1360686131,), (1360686206,), (1360686232,), (1360686235,), (1360686238,), (1360686241,), (1360686255,), (1360686258,), (1360686261,), (1360686264,), (1360686267,), (1360686278,), (1360686281,), (1360686284,), (1360686287,), (1360686302,), (1360686306,), (1360686309,), (1360686312,), (1360686316,), (1360686329,), (1360686333,), (1360686336,), (1360686339,), (1360686342,), (1360686344,), (1360686361,), (1360686366,), (1360686370,), (1360686392,), (1360686397,), (1360686402,), (1360686405,), (1360686418,), (1360686422,), (1360686425,), (1360686429,), (1360686432,), (1360686434,), (1360686449,), (1360686453,), (1360686456,), (1360686460,), (1360686483,), (1360686487,), (1360686491,), (1360686507,), (1360686511,), (1360686515,), (1360686519,), (1360686524,), (1360686543,), (1360686546,), (1360686549,), (1360686552,), (1360686555,), (1360686570,), (1360686572,), (1360686574,), (1360686576,), (1360686578,), (1360686597,), (1360686599,), (1360686631,), (1360686623,), (1360686625,), (1360686627,), (1360686629,), (1360686651,), (1360686655,), (1360686658,), (1360686661,), (1360686663,), (1360686665,), (1360686683,), (1360686685,), (1360686688,), (1360686712,), (1360686715,), (1360686754,), (1360686757,), (1360686759,), (1360686761,), (1360686763,), (1360686764,), (1360686792,), (1360686794,), (1360686796,), (1360686798,), (1360686800,), (1360686801,), (1360686821,), (1360686823,), (1360686826,), (1360686850,), (1360686852,), (1360686853,), (1360686856,), (1360686859,), (1360686878,), (1360686880,), (1360686883,), (1360686885,), (1360686887,), (1360686906,), (1360686908,), (1360686910,), (1360686912,), (1360686914,), (1360686931,), (1360686933,), (1360686935,), (1360686937,), (1360686939,), (1360686960,), (1360686962,), (1360686965,), (1360686968,), (1360686969,), (1360686990,), (1360686992,), (1360686995,), (1360686997,), (1360687015,), (1360687017,), (1360687019,), (1360687254,), (1360687251,), (1360687302,), (1360687306,), (1360687309,), (1360687348,), (1360687350,), (1360687352,), (1360687354,), (1360687356,), (1360687372,), (1360687374,), (1360687376,), (1360687378,), (1360687380,), (1360687381,), (1360687398,), (1360687400,), (1360687402,), (1360687422,), (1360687425,), (1360687428,), (1360687431,), (1360687447,), (1360687451,), (1360687453,), (1360687455,), (1360687457,), (1360687485,), (1360687475,), (1360687478,), (1360687480,), (1360687482,), (1360687483,), (1360687505,), (1360687506,), (1360687508,), (1360687524,), (1360687527,), (1360687530,), (1360687533,), (1360687535,), (1360687554,), (1360687556,), (1360687558,), (1360687560,), (1360687591,), (1360687593,), (1360687594,), (1360687596,), (1360687622,), (1360687625,), (1360687649,), (1360687651,), (1360687654,), (1360687656,), (1360687658,), (1360687676,), (1360687679,), (1360687682,), (1360687685,), (1360687689,), (1360687710,), (1360687712,), (1360687715,), (1360687717,), (1360687719,), (1360687720,), (1360687737,), (1360687739,), (1360687741,), (1360687762,), (1360687765,), (1360687767,), (1360687770,), (1360687772,), (1360687787,), (1360687789,), (1360687791,), (1360687793,), (1360687812,), (1360687814,), (1360687816,), (1360687818,), (1360687852,), (1360687855,), (1360687858,), (1360687861,), (1360687865,), (1360687871,), (1360687875,), (1360687903,), (1360687893,), (1360687897,), (1360687900,), (1360687925,), (1360687929,), (1360687931,), (1360687934,), (1360687939,), (1360687940,), (1360687951,), (1360687955,), (1360687959,), (1360687977,), (1360687980,), (1360687983,), (1360687986,), (1360688006,), (1360688010,), (1360688013,), (1360688017,), (1360688020,), (1360688037,), (1360688041,), (1360688045,), (1360688048,), (1360688051,), (1360688064,), (1360688068,), (1360688071,), (1360688076,), (1360688080,), (1360688099,), (1360688103,), (1360688106,), (1360688126,), (1360688129,), (1360688132,), (1360688135,), (1360688138,), (1360688140,), (1360688162,), (1360688166,), (1360688170,), (1360688173,), (1360688177,), (1360688215,), (1360688219,), (1360688222,), (1360688239,), (1360688242,), (1360688266,), (1360688269,), (1360688272,), (1360688276,), (1360688278,), (1360688297,), (1360688301,), (1360688303,), (1360688325,), (1360688326,), (1360688328,), (1360688329,), (1360688330,), (1360688331,), (1360688347,), (1360688345,), (1360688346,), (1360688372,), (1360688375,), (1360688378,), (1360688380,), (1360688398,), (1360688401,), (1360688404,), (1360688407,), (1360688408,), (1360688425,), (1360688427,), (1360688429,), (1360688431,), (1360688460,), (1360688463,), (1360688466,), (1360688468,), (1360688471,), (1360688472,), (1360688500,), (1360688502,), (1360688504,), (1360688506,), (1360688535,), (1360688538,), (1360688540,), (1360688543,), (1360688547,), (1360688565,), (1360688568,), (1360688585,), (1360688588,), (1360688591,), (1360688612,), (1360688614,), (1360688616,), (1360688619,), (1360688622,), (1360688637,), (1360688640,), (1360688643,), (1360688646,), (1360688650,), (1360688670,), (1360688674,), (1360688678,), (1360688681,), (1360688696,), (1360688699,), (1360688704,), (1360688707,), (1360688710,), (1360688711,), (1360688724,), (1360688728,), (1360688733,), (1360688736,), (1360688756,), (1360688759,), (1360688762,), (1360688766,), (1360688769,), (1360688798,), (1360689305,), (1360689308,), (1360689326,), (1360689330,), (1360689333,), (1360689336,), (1360689339,), (1360689349,), (1360689353,), (1360689356,), (1360689359,), (1360689362,), (1360689378,), (1360689382,), (1360689384,), (1360689403,), (1360689408,), (1360689412,), (1360689416,), (1360689418,), (1360689441,), (1360689445,), (1360689449,), (1360689452,), (1360689455,), (1360689469,), (1360689472,), (1360689475,), (1360689478,), (1360689480,), (1360689502,), (1360689504,), (1360689507,), (1360689537,), (1360689540,), (1360689544,), (1360689548,), (1360689552,), (1360689574,), (1360689577,), (1360689580,), (1360689583,), (1360689585,), (1360689587,), (1360689607,), (1360689608,), (1360689609,), (1360689611,), (1360689613,), (1360689615,), (1360689633,), (1360689635,), (1360689637,), (1360689639,), (1360689656,), (1360689658,), (1360689660,), (1360689662,), (1360689664,), (1360689665,), (1360689690,), (1360689695,), (1360689698,), (1360689747,), (1360689735,), (1360689738,), (1360689740,), (1360689744,), (1360689762,), (1360689765,), (1360689769,), (1360689771,), (1360689796,), (1360689800,), (1360689804,), (1360689836,), (1360689840,), (1360689844,), (1360689848,), (1360689864,), (1360689866,), (1360689869,), (1360689872,), (1360689876,), (1360689892,), (1360689896,), (1360689899,), (1360689904,), (1360689922,), (1360689925,), (1360689928,), (1360689947,), (1360689949,), (1360689951,), (1360689953,), (1360689971,), (1360689973,), (1360689975,), (1360689994,), (1360689996,), (1360689998,), (1360690000,), (1360690002,), (1360690027,), (1360690030,), (1360691331,), (1360688788,), (1360688791,), (1360688794,), (1360688825,), (1360688828,), (1360688831,), (1360688834,), (1360688837,), (1360688858,), (1360688861,), (1360688863,), (1360688867,), (1360688893,), (1360688896,), (1360688901,), (1360688904,), (1360688908,), (1360688910,), (1360688933,), (1360688935,), (1360688937,), (1360688940,), (1360688943,), (1360688946,), (1360688984,), (1360688988,), (1360688991,), (1360689011,), (1360689015,), (1360689019,), (1360689022,), (1360689044,), (1360689047,), (1360689051,), (1360689056,), (1360689058,), (1360689060,), (1360689079,), (1360689085,), (1360689089,), (1360689092,), (1360689103,), (1360689108,), (1360689112,), (1360689146,), (1360689149,), (1360689151,), (1360689154,), (1360689157,), (1360689178,), (1360689182,), (1360689185,), (1360689218,), (1360689220,), (1360689221,), (1360689235,), (1360689239,), (1360689242,), (1360689245,), (1360689248,), (1360689250,), (1360689272,), (1360689277,), (1360689281,), (1360689284,), (1360689286,), (1360689288,), (1360689311,), (1360691328,), (1360691390,), (1360691442,), (1360691446,), (1360691452,), (1360691454,), (1360691475,), (1360691479,), (1360691483,), (1360691504,), (1360691508,), (1360691557,), (1360691559,), (1360691561,), (1360691563,), (1360691566,), (1360691569,), (1360691609,), (1360691611,), (1360691613,), (1360691615,), (1360691633,), (1360691636,), (1360691639,), (1360691641,), (1360691644,), (1360691664,), (1360691667,), (1360691670,), (1360691673,), (1360691675,), (1360691676,), (1360691700,), (1360691703,), (1360691705,), (1360691708,), (1360691709,), (1360691710,), (1360691727,), (1360691731,), (1360691734,), (1360691763,), (1360691758,), (1360691761,), (1360691780,), (1360691782,), (1360691784,), (1360691786,), (1360691788,), (1360691789,), (1360691802,), (1360691804,), (1360691807,), (1360691846,), (1360691850,), (1360691854,), (1360691873,), (1360691900,), (1360691954,), (1360691958,), (1360691961,), (1360691984,), (1360691987,), (1360691990,), (1360691993,), (1360692017,), (1360692019,), (1360692021,), (1360692023,), (1360692041,), (1360692047,), (1360692050,), (1360692052,), (1360692071,), (1360692074,), (1360692078,), (1360692080,), (1360692083,), (1360692101,), (1360692103,), (1360692105,), (1360692107,), (1360692123,), (1360692125,), (1360692127,), (1360692148,), (1360692151,), (1360692154,), (1360692156,), (1360692184,), (1360692188,), (1360692191,), (1360692194,), (1360692213,), (1360692218,), (1360692248,), (1360692252,), (1360692256,), (1360692280,), (1360692274,), (1360692277,), (1360692300,), (1360692302,), (1360692304,), (1360692325,), (1360692327,), (1360692329,), (1360692331,), (1360692349,), (1360692351,), (1360692353,), (1360692355,), (1360692373,), (1360692376,), (1360692379,), (1360692398,), (1360692400,), (1360692401,), (1360692434,), (1360692437,), (1360692464,), (1360692466,), (1360692468,), (1360692470,), (1360692500,), (1360692502,), (1360692504,), (1360692506,), (1360692508,), (1360692534,), (1360692537,), (1360692540,), (1360692542,), (1360692564,), (1360692566,), (1360692567,), (1360692569,), (1360692593,), (1360692596,), (1360692599,), (1360692602,), (1360692604,), (1360692633,), (1360692650,), (1360692655,), (1360692662,), (1360692744,), (1360692747,), (1360692749,), (1360692753,), (1360692757,), (1360692758,), (1360692770,), (1360692774,), (1360692821,), (1360692808,), (1360692810,), (1360692813,), (1360692816,), (1360692819,), (1360692839,), (1360692841,), (1360692843,), (1360692845,), (1360692847,), (1360692879,), (1360692881,), (1360692883,), (1360692908,), (1360692910,), (1360692932,), (1360692936,), (1360692939,), (1360692942,), (1360692993,), (1360692995,), (1360692997,), (1360692999,), (1360693001,), (1360693097,), (1360693099,), (1360693101,), (1360693131,), (1360693133,), (1360693135,), (1360693137,), (1360693140,), (1360693157,), (1360693160,), (1360693163,), (1360693166,), (1360693168,), (1360693183,), (1360693187,), (1360693191,), (1360693194,), (1360693210,), (1360693213,), (1360693216,), (1360693219,), (1360693238,), (1360693241,), (1360693244,), (1360693247,), (1360693270,), (1360693272,), (1360693274,), (1360693276,), (1360693278,), (1360693280,), (1360693305,), (1360693311,), (1360693315,), (1360693319,), (1360693323,), (1360693330,), (1360693331,), (1360693333,), (1360693334,), (1360693336,), (1360693337,), (1360693341,), (1360693342,), (1360693374,), (1360693358,), (1360693362,), (1360693363,), (1360693366,), (1360693370,), (1360693397,), (1360693402,), (1360693406,), (1360693410,), (1360693434,), (1360693437,), (1360693444,), (1360693447,), (1360693450,), (1360693468,), (1360693523,), (1360693550,), (1360693577,), (1360693584,), (1360693598,), (1360693600,), (1360693602,), (1360693604,), (1360693607,), (1360693610,), (1360693625,), (1360693628,), (1360693631,), (1360693633,), (1360693636,), (1360693653,), (1360693656,), (1360693659,), (1360693661,), (1360693664,), (1360693665,), (1360693682,), (1360693684,), (1360693686,), (1360693702,), (1360693709,), (1360693712,), (1360693715,), (1360693718,), (1360693752,), (1360693771,), (1360693779,), (1360693782,), (1360693787,), (1360693816,), (1360693820,), (1360693824,), (1360693826,), (1360693859,), (1360693861,), (1360693864,), (1360693866,), (1360693868,), (1360693895,), (1360693898,), (1360693901,), (1360693904,), (1360693907,), (1360693922,), (1360693925,), (1360693927,), (1360693953,), (1360693956,), (1360693959,), (1360693963,), (1360693966,), (1360693994,), (1360693988,), (1360693990,), (1360693992,), (1360694020,), (1360694025,), (1360694030,), (1360694034,), (1360694054,), (1360694059,), (1360694062,), (1360694089,), (1360694093,), (1360694097,), (1360694102,), (1360694105,), (1360694107,), (1360694127,), (1360694130,), (1360694133,), (1360694135,), (1360694139,), (1360694142,), (1360694156,), (1360694158,), (1360694160,), (1360694162,), (1360694187,), (1360694190,), (1360694193,), (1360694196,), (1360694198,), (1360694202,), (1360694219,), (1360694221,), (1360694222,), (1360694224,), (1360694251,), (1360694252,), (1360694253,), (1360694254,), (1360694272,), (1360694274,), (1360694276,), (1360694277,), (1360694279,), (1360694292,), (1360694316,), (1360694351,), (1360694390,), (1360694393,), (1360694519,), (1360694540,), (1360694543,), (1360694546,), (1360694548,), (1360694573,), (1360694575,), (1360694577,), (1360694598,), (1360694602,), (1360694605,), (1360694608,), (1360694612,), (1360694615,), (1360694629,), (1360694632,), (1360694635,), (1360694637,), (1360694640,), (1360694660,), (1360694663,), (1360694665,), (1360694689,), (1360694694,), (1360694697,), (1360694701,), (1360694704,), (1360694705,), (1360694726,), (1360694729,), (1360694732,), (1360694734,), (1360694736,), (1360694737,), (1360694747,), (1360694749,), (1360694751,), (1360694753,), (1360694779,), (1360694782,), (1360694785,), (1360694787,), (1360694789,), (1360694800,), (1360694803,), (1360694805,), (1360694807,), (1360694811,), (1360694830,), (1360694821,), (1360694823,), (1360694825,), (1360694827,), (1360694849,), (1360694853,), (1360694856,), (1360694872,), (1360694875,), (1360694877,), (1360694879,), (1360694882,), (1360694904,), (1360694906,), (1360694908,), (1360694910,), (1360694912,), (1360694932,), (1360694934,), (1360694936,), (1360694938,), (1360694960,), (1360694963,), (1360694965,), (1360694967,), (1360694968,), (1360694980,), (1360694982,), (1360694984,), (1360694986,), (1360694988,), (1360695008,), (1360695010,), (1360695034,), (1360695038,), (1360695042,), (1360695044,), (1360695047,), (1360695064,), (1360695067,), (1360695070,), (1360695073,), (1360695075,), (1360695091,), (1360695094,), (1360695096,), (1360695099,), (1360695113,), (1360695115,), (1360695117,), (1360695119,), (1360695136,), (1360695138,), (1360695140,), (1360695174,), (1360695179,), (1360695183,), (1360695188,), (1360695192,), (1360695196,), (1360695235,), (1360696352,), (1360696379,), (1360696406,), (1360696639,), (1360696641,), (1360696644,), (1360696669,), (1360696673,), (1360696676,), (1360696787,), (1360696790,), (1360696793,), (1360696796,), (1360696799,), (1360696801,), (1360696850,), (1360696854,), (1360696859,), (1360696864,), (1360696870,), (1360696977,), (1360696981,), (1360696985,), (1360697026,), (1360697029,), (1360697032,), (1360697040,), (1360697046,), (1360697050,), (1360697071,), (1360697082,), (1360697084,), (1360697089,), (1360697090,), (1360697094,), (1360697110,), (1360697114,), (1360697118,), (1360697122,), (1360697125,), (1360697201,), (1360697230,), (1360697258,), (1360697275,), (1360697379,), (1360697398,), (1360697401,), (1360697404,), (1360697423,), (1360697444,), (1360697508,), (1360697515,), (1360697519,), (1360697523,), (1360697561,), (1360697565,), (1360697569,), (1360697571,), (1360697574,), (1360697609,), (1360697612,), (1360697616,), (1360697618,), (1360697622,), (1360697657,), (1360697660,), (1360697663,), (1360697666,), (1360697700,), (1360697704,), (1360697710,), (1360697715,), (1360697719,), (1360697721,), (1360697800,), (1360681830,), (1360681833,), (1360681835,), (1360681837,), (1360681840,), (1360681860,), (1360681863,), (1360681865,), (1360681869,), (1360681871,), (1360681920,), (1360681923,), (1360681926,), (1360681928,), (1360681943,), (1360681945,), (1360681947,), (1360681988,), (1360682016,), (1360682020,), (1360682023,), (1360682026,), (1360682063,), (1360682084,), (1360682106,), (1360682109,), (1360682113,), (1360682115,), (1360682116,), (1360682135,), (1360682138,), (1360682141,), (1360682144,), (1360682146,), (1360682148,), (1360682163,), (1360682165,), (1360682167,), (1360682169,), (1360682171,), (1360682172,), (1360682188,), (1360682192,), (1360682195,), (1360682198,), (1360682227,), (1360682232,), (1360682236,), (1360682239,), (1360682242,), (1360682245,), (1360682275,), (1360695227,), (1360695232,), (1360695269,), (1360695272,), (1360695276,), (1360695280,), (1360695287,), (1360695310,), (1360695313,), (1360695317,), (1360695320,), (1360695323,), (1360695349,), (1360695362,), (1360695366,), (1360695370,), (1360695393,), (1360695398,), (1360695403,), (1360695409,), (1360695412,), (1360695434,), (1360695437,), (1360695441,), (1360695445,), (1360695449,), (1360695452,), (1360695478,), (1360695482,), (1360695485,), (1360695487,), (1360695490,), (1360695494,), (1360695537,), (1360695542,), (1360695546,), (1360695677,), (1360695705,), (1360695722,), (1360695725,), (1360695729,), (1360695732,), (1360695760,), (1360695763,), (1360695769,), (1360695773,), (1360695776,), (1360695781,), (1360695852,), (1360695856,), (1360695866,), (1360695894,), (1360695920,), (1360696046,), (1360696050,), (1360696054,), (1360696058,), (1360696061,), (1360696072,), (1360696100,), (1360696103,), (1360696105,), (1360696108,), (1360696111,), (1360696150,), (1360696154,), (1360696158,), (1360696164,), (1360696204,), (1360696209,), (1360696213,), (1360696217,), (1360696234,), (1360696243,), (1360696425,), (1360697784,), (1360697786,), (1360697790,), (1360697793,), (1360697798,), (1360697828,), (1360697831,), (1360697834,), (1360697874,), (1360697877,), (1360697881,), (1360697885,), (1360697889,), (1360697891,), (1360698017,), (1360698054,), (1360698067,), (1360698070,), (1360698083,), (1360698086,), (1360698199,), (1360698209,), (1360698214,), (1360698331,), (1360698334,), (1360698338,), (1360698342,), (1360698346,), (1360698376,), (1360698378,), (1360698381,), (1360698384,), (1360698387,), (1360698421,), (1360698424,), (1360698427,), (1360698431,), (1360698434,), (1360698469,), (1360698471,), (1360698474,), (1360698482,), (1360698776,), (1360698844,), (1360698848,), (1360698886,), (1360698889,), (1360698893,), (1360698898,), (1360698902,), (1360698939,), (1360698929,), (1360698934,), (1360698970,), (1360698976,), (1360698983,), (1360698989,), (1360699026,), (1360699030,), (1360699034,), (1360699038,), (1360699042,), (1360699045,), (1360699065,), (1360699069,), (1360699074,), (1360699078,), (1360699082,), (1360699141,), (1360699144,), (1360699147,), (1360699150,), (1360699202,), (1360699206,), (1360699210,), (1360699213,), (1360699215,), (1360699217,), (1360699242,), (1360699245,), (1360699250,), (1360699254,), (1360699256,), (1360699280,), (1360699282,), (1360699285,), (1360699324,), (1360699327,), (1360699331,), (1360699366,), (1360699369,), (1360699371,), (1360699375,), (1360699405,), (1360699409,), (1360699413,), (1360699417,), (1360699448,), (1360699450,), (1360699453,), (1360699520,), (1360699523,), (1360699527,), (1360699531,), (1360699534,), (1360699598,), (1360699601,), (1360699605,), (1360699638,), (1360700301,), (1360700303,), (1360700306,), (1360700344,), (1360700348,), (1360700354,), (1360700359,), (1360700363,), (1360700366,), (1360700390,), (1360700393,), (1360700398,), (1360700433,), (1360700438,), (1360700443,), (1360700447,), (1360700474,), (1360700478,), (1360700482,), (1360700486,), (1360700489,), (1360700527,), (1360700534,), (1360700539,), (1360700543,), (1360700546,), (1360700566,), (1360700570,), (1360700574,), (1360700605,), (1360700608,), (1360700611,), (1360700616,), (1360700620,), (1360700626,), (1360700653,), (1360700658,), (1360700666,), (1360700669,), (1360700672,), (1360700674,), (1360700702,), (1360700705,), (1360700710,), (1360700751,), (1360700756,), (1360700761,), (1360700767,), (1360700773,), (1360700794,), (1360700799,), (1360700803,), (1360700807,), (1360700828,), (1360700837,), (1360700843,), (1360700849,), (1360700876,), (1360700880,), (1360700884,), (1360700914,), (1360700919,), (1360700922,), (1360700928,), (1360700934,), (1360700941,), (1360700997,), (1360699631,), (1360699632,), (1360699634,), (1360699636,), (1360699700,), (1360699702,), (1360699707,), (1360699710,), (1360699714,), (1360699716,), (1360699746,), (1360699748,), (1360699751,), (1360699754,), (1360699782,), (1360699785,), (1360699788,), (1360699827,), (1360699832,), (1360699834,), (1360699837,), (1360699839,), (1360699876,), (1360699879,), (1360699882,), (1360699885,), (1360699915,), (1360699918,), (1360699920,), (1360699922,), (1360699956,), (1360699958,), (1360699963,), (1360699965,), (1360699969,), (1360699971,), (1360699996,), (1360699999,), (1360700003,), (1360700006,), (1360700009,), (1360700010,), (1360700038,), (1360700040,), (1360700043,), (1360700046,), (1360700081,), (1360700086,), (1360700092,), (1360700097,), (1360700099,), (1360700119,), (1360700123,), (1360700128,), (1360700134,), (1360700145,), (1360700169,), (1360700173,), (1360700177,), (1360700180,), (1360700212,), (1360700215,), (1360700219,), (1360700223,), (1360700226,), (1360700229,), (1360700260,), (1360700264,), (1360700269,), (1360700310,), (1360700985,), (1360700989,), (1360700993,), (1360701035,), (1360701040,), (1360701045,), (1360701050,), (1360701055,), (1360701085,), (1360701089,), (1360701091,), (1360701094,), (1360701098,), (1360701103,), (1360701137,), (1360701142,), (1360701148,), (1360701191,), (1360701196,), (1360701200,), (1360701204,), (1360701236,), (1360701240,), (1360701245,), (1360701251,), (1360701256,), (1360701282,), (1360701286,), (1360701291,), (1360701295,), (1360701299,), (1360701303,), (1360701326,), (1360701332,), (1360701337,), (1360701370,), (1360701373,), (1360701376,), (1360701380,), (1360701410,), (1360701415,), (1360701420,), (1360701427,), (1360701434,), (1360701473,), (1360701477,), (1360701482,), (1360701487,), (1360701521,), (1360701525,), (1360701528,), (1360701531,), (1360701568,), (1360701570,), (1360701603,), (1360701606,), (1360701610,), (1360701614,), (1360701651,), (1360701654,), (1360701657,), (1360701660,), (1360701664,), (1360701669,), (1360701715,), (1360701699,), (1360701703,), (1360701707,), (1360701711,), (1360701745,), (1360701747,), (1360701750,), (1360701753,), (1360701755,), (1360701782,), (1360701784,), (1360701787,), (1360702016,), (1360702019,), (1360702022,), (1360702025,), (1360702028,), (1360702031,), (1360702063,), (1360702067,), (1360702072,), (1360702077,), (1360702081,), (1360702085,), (1360702107,), (1360702110,), (1360702114,), (1360702150,), (1360702154,), (1360702159,), (1360702164,), (1360702169,), (1360702174,), (1360702204,), (1360702209,), (1360702215,), (1360702221,), (1360702225,), (1360702229,), (1360702254,), (1360702257,), (1360702321,), (1360702330,), (1360702336,), (1360702342,), (1360702349,), (1360702404,), (1360703585,), (1360703797,), (1360703800,), (1360703840,), (1360703843,), (1360703848,), (1360703884,), (1360703887,), (1360703891,), (1360703927,), (1360703942,), (1360703944,), (1360703948,), (1360703995,), (1360704001,), (1360704006,), (1360704009,), (1360704037,), (1360704041,), (1360704044,), (1360704048,), (1360704051,), (1360704078,), (1360704081,), (1360704083,), (1360704117,), (1360704119,), (1360704122,), (1360704125,), (1360704127,), (1360704130,), (1360704170,), (1360704173,), (1360704176,), (1360704178,), (1360704183,), (1360704222,), (1360704219,), (1360704220,), (1360704261,), (1360704263,), (1360704266,), (1360704269,), (1360704271,), (1360704275,), (1360704318,), (1360704321,), (1360704324,), (1360704327,), (1360704329,), (1360704332,), (1360704364,), (1360704366,), (1360704370,), (1360704374,), (1360704377,), (1360704380,), (1360704399,), (1360704403,), (1360704409,), (1360704413,), (1360704472,), (1360704477,), (1360704482,), (1360704487,), (1360704491,), (1360704519,), (1360704522,), (1360704525,), (1360704529,), (1360704558,), (1360704562,), (1360704606,), (1360704609,), (1360704612,), (1360704614,), (1360704617,), (1360704648,), (1360704651,), (1360704654,), (1360704658,), (1360704662,), (1360704694,), (1360704699,), (1360704703,), (1360704706,), (1360704709,), (1360704713,), (1360704735,), (1360704738,), (1360704741,), (1360704771,), (1360704779,), (1360704782,), (1360704786,), (1360704790,), (1360704795,), (1360704813,), (1360704820,), (1360704828,), (1360704834,), (1360704840,), (1360704846,), (1360704890,), (1360704931,), (1360704935,), (1360704977,), (1360705064,), (1360705106,), (1360705113,), (1360705159,), (1360705162,), (1360705199,), (1360705207,), (1360705211,), (1360705216,), (1360705244,), (1360705249,), (1360705254,), (1360705259,), (1360705295,), (1360705301,), (1360705306,), (1360705311,), (1360705357,), (1360705360,), (1360705363,), (1360705366,), (1360705389,), (1360705392,), (1360705431,), (1360705435,), (1360705438,), (1360705441,), (1360705464,), (1360705466,), (1360705469,), (1360705473,), (1360705477,), (1360705500,), (1360705506,), (1360705511,), (1360705517,), (1360705550,), (1360705541,), (1360705546,), (1360705548,), (1360705573,), (1360705578,), (1360705581,), (1360705587,), (1360705610,), (1360705613,), (1360705616,), (1360705618,), (1360705650,), (1360705652,), (1360705655,), (1360705658,), (1360705698,), (1360705701,), (1360705703,), (1360705706,), (1360705750,), (1360705754,), (1360705759,), (1360705764,), (1360705794,), (1360705798,), (1360705834,), (1360705837,), (1360705840,), (1360705844,), (1360705873,), (1360705877,), (1360705881,), (1360705885,), (1360705922,), (1360705925,), (1360705929,), (1360705931,), (1360705934,), (1360705937,), (1360705962,), (1360705972,), (1360705975,), (1360705981,), (1360706007,), (1360706010,), (1360706015,), (1360706019,), (1360706023,), (1360706025,), (1360706053,), (1360706056,), (1360706062,), (1360706064,), (1360706066,), (1360706091,), (1360706095,), (1360706098,), (1360706102,), (1360706106,), (1360706135,), (1360706138,), (1360706143,), (1360706148,), (1360706199,), (1360706192,), (1360706195,), (1360706236,), (1360706240,), (1360706244,), (1360706250,), (1360706255,), (1360706258,), (1360706303,), (1360706306,), (1360706310,), (1360706314,), (1360706317,), (1360706321,), (1360706368,), (1360706371,), (1360706374,), (1360706377,), (1360706415,), (1360706416,), (1360706418,), (1360706422,), (1360706425,), (1360706461,), (1360706465,), (1360706470,), (1360706475,), (1360706478,), (1360706503,), (1360706506,), (1360706509,), (1360706513,), (1360706544,), (1360706546,), (1360706549,), (1360706552,), (1360706554,), (1360706577,), (1360706582,), (1360706586,), (1360706589,), (1360706591,), (1360706596,), (1360706625,), (1360706631,), (1360706637,), (1360706676,), (1360706714,), (1360706719,), (1360706756,), (1360706762,), (1360706766,), (1360706768,), (1360706802,), (1360706804,), (1360706807,), (1360706811,), (1360706848,), (1360706852,), (1360706857,), (1360706903,), (1360706894,), (1360706898,), (1360706900,), (1360706932,), (1360706935,), (1360706939,), (1360706943,), (1360706948,), (1360706985,), (1360706987,), (1360706990,), (1360707022,), (1360707026,), (1360707033,), (1360707037,), (1360707041,), (1360707043,), (1360707070,), (1360707073,), (1360707076,), (1360707079,), (1360707082,), (1360707085,), (1360707139,), (1360707142,), (1360707145,), (1360707149,), (1360707189,), (1360707193,), (1360707197,), (1360707200,), (1360707208,), (1360707237,), (1360707241,), (1360707245,), (1360707248,), (1360707252,), (1360707257,), (1360707290,), (1360707296,), (1360707300,), (1360707303,), (1360707339,), (1360707341,), (1360707345,), (1360707349,), (1360707353,), (1360707359,), (1360707389,), (1360707392,), (1360707397,), (1360707430,), (1360707433,), (1360707438,), (1360707442,), (1360707446,), (1360707449,), (1360707515,), (1360707517,), (1360707520,), (1360707523,), (1360707525,), (1360707558,), (1360707565,), (1360707639,), (1360707754,), (1360707782,), (1360708241,), (1360708474,), (1360708549,), (1360708605,), (1360709057,), (1360709074,), (1360709102,), (1360709132,), (1360709162,), (1360709190,), (1360709274,), (1360709303,), (1360709364,), (1360710061,), (1360710101,), (1360710160,), (1360710998,), (1360711053,), (1360711105,), (1360711155,), (1360711413,), (1360711464,), (1360711520,), (1360711554,), (1360711597,), (1360711771,), (1360711778,), (1360711806,), (1360711835,), (1360712175,), (1360712752,), (1360712778,), (1360712806,), (1360712833,), (1360713284,), (1360713459,), (1360713487,), (1360713534,), (1360713581,), (1360713677,), (1360713681,), (1360713684,), (1360713687,), (1360713690,), (1360713967,), (1360713983,), (1360713993,), (1360714367,), (1360714396,), (1360714423,), (1360714451,), (1360714479,), (1360714507,), (1360714896,), (1360714793,), (1360714823,), (1360714866,), (1360715359,), (1360715404,), (1360715433,), (1360715463,), (1360715494,), (1360716164,), (1360716213,), (1360716278,), (1360716367,), (1360716420,), (1360716431,), (1360716569,), (1360716597,), (1360716637,), (1360716689,), (1360716983,), (1360717119,), (1360717123,), (1360717128,), (1360717134,), (1360717266,), (1360717274,), (1360717597,), (1360717624,), (1360717653,), (1360717681,), (1360718031,), (1360718058,), (1360718086,), (1360718107,), (1360718216,), (1360718245,), (1360718777,), (1360718803,), (1360718831,), (1360718862,), (1360719202,), (1360719230,), (1360719258,), (1360719263,), (1360719424,), (1360719454,), (1360719489,), (1360719497,), (1360719606,), (1360719610,), (1360719614,), (1360719618,), (1360719621,), (1360719886,), (1360719989,), (1360720063,), (1360720441,), (1360720354,), (1360720381,), (1360720410,), (1360720571,), (1360720624,), (1360720673,), (1360720726,), (1360721244,), (1360721276,), (1360721307,), (1360721338,), (1360721812,), (1360721864,), (1360721916,), (1360721977,), (1360722028,), (1360722343,), (1360722379,), (1360722420,), (1360723006,), (1360723047,), (1360723095,), (1360723396,), (1360723399,), (1360723411,), (1360723440,), (1360723512,), (1360723516,), (1360723518,), (1360723560,), (1360723564,), (1360724096,), (1360724124,), (1360724517,), (1360724619,), (1360724623,), (1360724628,), (1360724631,), (1360724908,), (1360724937,), (1360724966,), (1360724996,), (1360725351,), (1360725800,), (1360725828,), (1360725856,), (1360725885,), (1360725915,), (1360726055,), (1360726059,), (1360726063,), (1360726313,), (1360726332,), (1360726360,), (1360726901,), (1360726955,), (1360727008,), (1360727728,), (1360727779,), (1360727828,), (1360727883,), (1360727935,), (1360728055,), (1360728074,), (1360728102,), (1360728133,), (1360728738,), (1360728775,), (1360728815,), (1360728867,), (1360729263,), (1360729295,), (1360729324,), (1360729730,), (1360729762,), (1360729801,), (1360729857,), (1360730179,), (1360730237,), (1360730291,), (1360730348,), (1360730397,), (1360730449,), (1360730867,), (1360730927,), (1360730967,), (1360730976,), (1360731682,), (1360731758,), (1360731819,), (1360731868,), (1360731926,), (1360732723,), (1360732756,), (1360733588,), (1360733471,), (1360733499,), (1360733529,), (1360733559,), (1360733901,), (1360733941,), (1360733970,), (1360734001,), (1360734029,), (1360734338,), (1360734367,), (1360734589,), (1360734602,), (1360734605,), (1360734638,), (1360734644,), (1360734649,), (1360734653,), (1360734658,), (1360734688,), (1360734692,), (1360734697,), (1360734701,), (1360734740,), (1360734744,), (1360734747,), (1360734770,), (1360734774,), (1360735052,), (1360735078,), (1360735582,), (1360735610,), (1360767776,), (1360771437,), (1360771492,), (1360771544,), (1360771962,), (1360772147,), (1360772365,), (1360772789,), (1360774582,), (1360774595,), (1360775515,), (1360777856,), (1360777906,), (1360778323,), (1360779158,), (1360779161,), (1360779165,), (1360780660,), (1360780833,), (1360795903,), (1360795983,), (1360796027,), (1360796031,), (1360796401,), (1360796471,), (1360797207,), (1360797720,), (1360799554,), (1360800809,), (1360803256,), (1360803327,), (1360803401,), (1360803726,), (1360803964,), (1360803970,), (1360804524,), (1360805784,), (1360805814,), (1360805844,), (1360806280,), (1360806330,), (1360808235,), (1360808268,), (1360812603,), (1360898638,), (1360898684,), (1360901137,), (1360901165,), (1360901571,), (1360902274,), (1360902697,), (1360902731,), (1360903656,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'23052025': {'nb_upload': 58, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23290420]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1360699638, 1360699605, 1360699601, 1360699598] map_info['map_portfolio_photo'] : {23290420: [1360699638, 1360699605, 1360699601, 1360699598, 1360699534, 1360699531, 1360699527, 1360699523, 1360699520, 1360699453, 1360699450, 1360699448, 1360699417, 1360699413, 1360699409, 1360699405, 1360699375, 1360699371, 1360699369, 1360699366, 1360699331, 1360699327, 1360699324, 1360699285, 1360699282, 1360699280, 1360699256, 1360699254, 1360699250, 1360699245, 1360699242, 1360699217, 1360699215, 1360699213, 1360699210, 1360699206, 1360699202, 1360699150, 1360699147, 1360699144, 1360699141, 1360699082, 1360699078, 1360699074, 1360699069, 1360699065, 1360699045, 1360699042, 1360699038, 1360699034, 1360699030, 1360699026, 1360698989, 1360698983, 1360698976, 1360698970, 1360698934, 1360698929]} final : True mtd_id 4302 list_pids : [1360699638, 1360699605, 1360699601, 1360699598] Looping around the photos to save general results len do output : 1 /23290420Didn'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, '2942801') ('4302', '23290420', '1360699638', None, None, None, None, None, '2942801') ('4302', None, None, None, None, None, None, None, '2942801') ('4302', '23290420', '1360699605', None, None, None, None, None, '2942801') ('4302', None, None, None, None, None, None, None, '2942801') ('4302', '23290420', '1360699601', None, None, None, None, None, '2942801') ('4302', None, None, None, None, None, None, None, '2942801') ('4302', '23290420', '1360699598', None, None, None, None, None, '2942801') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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, '23290420', 'None', None, None, None, None, '2942801'), ('4302', '23290420', '1360699638', None, None, None, None, None, '2942801'), ('4302', '23290420', '1360699605', None, None, None, None, None, '2942801'), ('4302', '23290420', '1360699601', None, None, None, None, None, '2942801'), ('4302', '23290420', '1360699598', None, None, None, None, None, '2942801')] time used for this insertion : 0.013626813888549805 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.654247760772705 time spend to save output : 0.013795852661132812 total time spend for step 5 : 3.668043613433838 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 (2942801) 2.19user 2.90system 0:13.48elapsed 37%CPU (0avgtext+0avgdata 159580maxresident)k 736inputs+8680outputs (27major+74919minor)pagefaults 0swaps