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 : 3842372 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 (4005115) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4005115) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28223036 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4005115'] with mtr_portfolio_ids : ['28223036'] and first list_photo_ids : [] new path : /proc/3842372/ Name: python3 Umask: 0002 State: R (running) Tgid: 3842372 Ngid: 0 Pid: 3842372 PPid: 3842371 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3842372 NSpid: 3842372 NSpgid: 3840834 NSsid: 3840834 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97960 kB VmRSS: 97960 kB RssAnon: 59908 kB RssFile: 38052 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 42 nonvoluntary_ctxt_switches: 15 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3842372', 'Ngid': '0', 'Pid': '3842372', 'PPid': '3842371', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3842372', 'NSpid': '3842372', 'NSpgid': '3840834', 'NSsid': '3840834', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97960 kB', 'VmRSS': '97960 kB', 'RssAnon': '59908 kB', 'RssFile': '38052 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '42', 'nonvoluntary_ctxt_switches': '15'} ('datou_batch_current', '3842372', '1106908', '0', '1106884', '865636', '97960', b'', 'marlene', '4005115') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28223036) 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 (4005115 ) ) 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 (28223036) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1392805642, 'portfolio_id': 28223036}, {'photo_id': 1392805640, 'portfolio_id': 28223036}, {'photo_id': 1392805637, 'portfolio_id': 28223036}, {'photo_id': 1392805619, 'portfolio_id': 28223036}, {'photo_id': 1392805595, 'portfolio_id': 28223036}, {'photo_id': 1392805391, 'portfolio_id': 28223036}, {'photo_id': 1392805388, 'portfolio_id': 28223036}, {'photo_id': 1392805385, 'portfolio_id': 28223036}, {'photo_id': 1392805376, 'portfolio_id': 28223036}, {'photo_id': 1392805371, 'portfolio_id': 28223036}, {'photo_id': 1392805369, 'portfolio_id': 28223036}, {'photo_id': 1392805234, 'portfolio_id': 28223036}, {'photo_id': 1392805232, 'portfolio_id': 28223036}, {'photo_id': 1392805214, 'portfolio_id': 28223036}, {'photo_id': 1392805022, 'portfolio_id': 28223036}, {'photo_id': 1392805018, 'portfolio_id': 28223036}, {'photo_id': 1392805011, 'portfolio_id': 28223036}, {'photo_id': 1392805006, 'portfolio_id': 28223036}, {'photo_id': 1392804988, 'portfolio_id': 28223036}, {'photo_id': 1392804969, 'portfolio_id': 28223036}, {'photo_id': 1392804499, 'portfolio_id': 28223036}, {'photo_id': 1392804466, 'portfolio_id': 28223036}, {'photo_id': 1392804463, 'portfolio_id': 28223036}, {'photo_id': 1392804460, 'portfolio_id': 28223036}, {'photo_id': 1392804458, 'portfolio_id': 28223036}, {'photo_id': 1392804322, 'portfolio_id': 28223036}, {'photo_id': 1392804291, 'portfolio_id': 28223036}, {'photo_id': 1392804287, 'portfolio_id': 28223036}, {'photo_id': 1392804282, 'portfolio_id': 28223036}, {'photo_id': 1392804278, 'portfolio_id': 28223036}, {'photo_id': 1392804275, 'portfolio_id': 28223036}, {'photo_id': 1392803626, 'portfolio_id': 28223036}, {'photo_id': 1392803560, 'portfolio_id': 28223036}, {'photo_id': 1392803496, 'portfolio_id': 28223036}, {'photo_id': 1392803443, 'portfolio_id': 28223036}, {'photo_id': 1392803089, 'portfolio_id': 28223036}, {'photo_id': 1392803047, 'portfolio_id': 28223036}, {'photo_id': 1392803011, 'portfolio_id': 28223036}, {'photo_id': 1392802968, 'portfolio_id': 28223036}, {'photo_id': 1392802934, 'portfolio_id': 28223036}, {'photo_id': 1392802523, 'portfolio_id': 28223036}, {'photo_id': 1392802475, 'portfolio_id': 28223036}, {'photo_id': 1392802448, 'portfolio_id': 28223036}, {'photo_id': 1392802446, 'portfolio_id': 28223036}, {'photo_id': 1392802427, 'portfolio_id': 28223036}, {'photo_id': 1392801999, 'portfolio_id': 28223036}, {'photo_id': 1392801995, 'portfolio_id': 28223036}, {'photo_id': 1392801991, 'portfolio_id': 28223036}, {'photo_id': 1392801974, 'portfolio_id': 28223036}, {'photo_id': 1392801626, 'portfolio_id': 28223036}, {'photo_id': 1392801574, 'portfolio_id': 28223036}, {'photo_id': 1392801474, 'portfolio_id': 28223036}, {'photo_id': 1392801408, 'portfolio_id': 28223036}, {'photo_id': 1392801327, 'portfolio_id': 28223036}, {'photo_id': 1392800619, 'portfolio_id': 28223036}, {'photo_id': 1392800317, 'portfolio_id': 28223036}, {'photo_id': 1392800312, 'portfolio_id': 28223036}, {'photo_id': 1392800297, 'portfolio_id': 28223036}, {'photo_id': 1392800278, 'portfolio_id': 28223036}, {'photo_id': 1392800275, 'portfolio_id': 28223036}, {'photo_id': 1392800095, 'portfolio_id': 28223036}] map_portfolio_id_photo_id: {28223036: [1392805642, 1392805640, 1392805637, 1392805619, 1392805595, 1392805391, 1392805388, 1392805385, 1392805376, 1392805371, 1392805369, 1392805234, 1392805232, 1392805214, 1392805022, 1392805018, 1392805011, 1392805006, 1392804988, 1392804969, 1392804499, 1392804466, 1392804463, 1392804460, 1392804458, 1392804322, 1392804291, 1392804287, 1392804282, 1392804278, 1392804275, 1392803626, 1392803560, 1392803496, 1392803443, 1392803089, 1392803047, 1392803011, 1392802968, 1392802934, 1392802523, 1392802475, 1392802448, 1392802446, 1392802427, 1392801999, 1392801995, 1392801991, 1392801974, 1392801626, 1392801574, 1392801474, 1392801408, 1392801327, 1392800619, 1392800317, 1392800312, 1392800297, 1392800278, 1392800275, 1392800095]} ##### 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.017299413681030273 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Nov 5 19:14:56 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 (28223036) 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 : 28223036 get user id for portfolio 28223036 get sub ptf for main ptf 28223036, type 3726 and hashtags ['Carton_brun', 'Teint_Dans_La_Masse', 'kraft', 'papier', 'cartonnette', 'environnement', 'autre_refus', 'mal_croppe', 'metal', 'flou', 'plastique', '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`=28223036 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Teint_Dans_La_Masse','kraft','papier','cartonnette','environnement','autre_refus','mal_croppe','metal','flou','plastique','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`=28223036 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Teint_Dans_La_Masse','kraft','papier','cartonnette','environnement','autre_refus','mal_croppe','metal','flou','plastique','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 28223036, 'sub_port_id': 28223054, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092426, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 26)}, 'autre_refus': {'main_port_id': 28223036, 'sub_port_id': 28223055, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092427, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 26)}, 'Carton_gris': {'main_port_id': 28223036, 'sub_port_id': 28223056, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092428, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 26)}, 'mal_croppe': {'main_port_id': 28223036, 'sub_port_id': 28223057, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092429, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 26)}, 'plastique': {'main_port_id': 28223036, 'sub_port_id': 28223058, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092430, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 26)}, 'environnement': {'main_port_id': 28223036, 'sub_port_id': 28223059, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092431, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 28223036, 'sub_port_id': 28223060, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092432, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 26)}, 'papier': {'main_port_id': 28223036, 'sub_port_id': 28223061, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092433, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 26)}, 'flou': {'main_port_id': 28223036, 'sub_port_id': 28223062, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092434, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 26)}, 'Carton_brun': {'main_port_id': 28223036, 'sub_port_id': 28223063, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092435, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 26)}, 'metal': {'main_port_id': 28223036, 'sub_port_id': 28223064, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092436, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 26)}, 'cartonnette': {'main_port_id': 28223036, 'sub_port_id': 28223065, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092437, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28223054 , 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=28223036 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 (28223054) result : ((1392803122,), (1392803124,), (1392803126,), (1392805367,), (1392805519,), (1392805522,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28223036) result : ((1392800095,), (1392800275,), (1392800278,), (1392800297,), (1392800312,), (1392800317,), (1392800619,), (1392801327,), (1392801408,), (1392801474,), (1392801574,), (1392801626,), (1392801974,), (1392801991,), (1392801995,), (1392801999,), (1392802427,), (1392802446,), (1392802448,), (1392802475,), (1392802523,), (1392802934,), (1392802968,), (1392803011,), (1392803047,), (1392803089,), (1392803443,), (1392803496,), (1392803560,), (1392803626,), (1392804275,), (1392804278,), (1392804282,), (1392804287,), (1392804291,), (1392804322,), (1392804458,), (1392804460,), (1392804463,), (1392804466,), (1392804499,), (1392804969,), (1392804988,), (1392805006,), (1392805011,), (1392805018,), (1392805022,), (1392805214,), (1392805232,), (1392805234,), (1392805369,), (1392805371,), (1392805376,), (1392805385,), (1392805388,), (1392805391,), (1392805595,), (1392805619,), (1392805637,), (1392805640,), (1392805642,)) 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 28223055 , 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=28223036 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 (28223055) result : ((1392803069,), (1392803071,), (1392804135,), (1392804137,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28223036) result : ((1392800095,), (1392800275,), (1392800278,), (1392800297,), (1392800312,), (1392800317,), (1392800619,), (1392801327,), (1392801408,), (1392801474,), (1392801574,), (1392801626,), (1392801974,), (1392801991,), (1392801995,), (1392801999,), (1392802427,), (1392802446,), (1392802448,), (1392802475,), (1392802523,), (1392802934,), (1392802968,), (1392803011,), (1392803047,), (1392803089,), (1392803443,), (1392803496,), (1392803560,), (1392803626,), (1392804275,), (1392804278,), (1392804282,), (1392804287,), (1392804291,), (1392804322,), (1392804458,), (1392804460,), (1392804463,), (1392804466,), (1392804499,), (1392804969,), (1392804988,), (1392805006,), (1392805011,), (1392805018,), (1392805022,), (1392805214,), (1392805232,), (1392805234,), (1392805369,), (1392805371,), (1392805376,), (1392805385,), (1392805388,), (1392805391,), (1392805595,), (1392805619,), (1392805637,), (1392805640,), (1392805642,)) 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 28223056 , 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=28223036 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 (28223056) result : ((1392803085,), (1392803087,), (1392804148,), (1392804150,), (1392805587,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28223036) result : ((1392800095,), (1392800275,), (1392800278,), (1392800297,), (1392800312,), (1392800317,), (1392800619,), (1392801327,), (1392801408,), (1392801474,), (1392801574,), (1392801626,), (1392801974,), (1392801991,), (1392801995,), (1392801999,), (1392802427,), (1392802446,), (1392802448,), (1392802475,), (1392802523,), (1392802934,), (1392802968,), (1392803011,), (1392803047,), (1392803089,), (1392803443,), (1392803496,), (1392803560,), (1392803626,), (1392804275,), (1392804278,), (1392804282,), (1392804287,), (1392804291,), (1392804322,), (1392804458,), (1392804460,), (1392804463,), (1392804466,), (1392804499,), (1392804969,), (1392804988,), (1392805006,), (1392805011,), (1392805018,), (1392805022,), (1392805214,), (1392805232,), (1392805234,), (1392805369,), (1392805371,), (1392805376,), (1392805385,), (1392805388,), (1392805391,), (1392805595,), (1392805619,), (1392805637,), (1392805640,), (1392805642,)) 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 28223057 , 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=28223036 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 (28223057) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28223036) result : ((1392800095,), (1392800275,), (1392800278,), (1392800297,), (1392800312,), (1392800317,), (1392800619,), (1392801327,), (1392801408,), (1392801474,), (1392801574,), (1392801626,), (1392801974,), (1392801991,), (1392801995,), (1392801999,), (1392802427,), (1392802446,), (1392802448,), (1392802475,), (1392802523,), (1392802934,), (1392802968,), (1392803011,), (1392803047,), (1392803089,), (1392803443,), (1392803496,), (1392803560,), (1392803626,), (1392804275,), (1392804278,), (1392804282,), (1392804287,), (1392804291,), (1392804322,), (1392804458,), (1392804460,), (1392804463,), (1392804466,), (1392804499,), (1392804969,), (1392804988,), (1392805006,), (1392805011,), (1392805018,), (1392805022,), (1392805214,), (1392805232,), (1392805234,), (1392805369,), (1392805371,), (1392805376,), (1392805385,), (1392805388,), (1392805391,), (1392805595,), (1392805619,), (1392805637,), (1392805640,), (1392805642,)) 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 28223058 , 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=28223036 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 (28223058) result : ((1392804343,), (1392804346,), (1392805510,), (1392805591,), (1392805592,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28223036) result : ((1392800095,), (1392800275,), (1392800278,), (1392800297,), (1392800312,), (1392800317,), (1392800619,), (1392801327,), (1392801408,), (1392801474,), (1392801574,), (1392801626,), (1392801974,), (1392801991,), (1392801995,), (1392801999,), (1392802427,), (1392802446,), (1392802448,), (1392802475,), (1392802523,), (1392802934,), (1392802968,), (1392803011,), (1392803047,), (1392803089,), (1392803443,), (1392803496,), (1392803560,), (1392803626,), (1392804275,), (1392804278,), (1392804282,), (1392804287,), (1392804291,), (1392804322,), (1392804458,), (1392804460,), (1392804463,), (1392804466,), (1392804499,), (1392804969,), (1392804988,), (1392805006,), (1392805011,), (1392805018,), (1392805022,), (1392805214,), (1392805232,), (1392805234,), (1392805369,), (1392805371,), (1392805376,), (1392805385,), (1392805388,), (1392805391,), (1392805595,), (1392805619,), (1392805637,), (1392805640,), (1392805642,)) 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 28223059 , 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=28223036 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 (28223059) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28223036) result : ((1392800095,), (1392800275,), (1392800278,), (1392800297,), (1392800312,), (1392800317,), (1392800619,), (1392801327,), (1392801408,), (1392801474,), (1392801574,), (1392801626,), (1392801974,), (1392801991,), (1392801995,), (1392801999,), (1392802427,), (1392802446,), (1392802448,), (1392802475,), (1392802523,), (1392802934,), (1392802968,), (1392803011,), (1392803047,), (1392803089,), (1392803443,), (1392803496,), (1392803560,), (1392803626,), (1392804275,), (1392804278,), (1392804282,), (1392804287,), (1392804291,), (1392804322,), (1392804458,), (1392804460,), (1392804463,), (1392804466,), (1392804499,), (1392804969,), (1392804988,), (1392805006,), (1392805011,), (1392805018,), (1392805022,), (1392805214,), (1392805232,), (1392805234,), (1392805369,), (1392805371,), (1392805376,), (1392805385,), (1392805388,), (1392805391,), (1392805595,), (1392805619,), (1392805637,), (1392805640,), (1392805642,)) 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 28223060 , 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=28223036 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 (28223060) result : ((1392805360,), (1392805478,), (1392805480,), (1392805586,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28223036) result : ((1392800095,), (1392800275,), (1392800278,), (1392800297,), (1392800312,), (1392800317,), (1392800619,), (1392801327,), (1392801408,), (1392801474,), (1392801574,), (1392801626,), (1392801974,), (1392801991,), (1392801995,), (1392801999,), (1392802427,), (1392802446,), (1392802448,), (1392802475,), (1392802523,), (1392802934,), (1392802968,), (1392803011,), (1392803047,), (1392803089,), (1392803443,), (1392803496,), (1392803560,), (1392803626,), (1392804275,), (1392804278,), (1392804282,), (1392804287,), (1392804291,), (1392804322,), (1392804458,), (1392804460,), (1392804463,), (1392804466,), (1392804499,), (1392804969,), (1392804988,), (1392805006,), (1392805011,), (1392805018,), (1392805022,), (1392805214,), (1392805232,), (1392805234,), (1392805369,), (1392805371,), (1392805376,), (1392805385,), (1392805388,), (1392805391,), (1392805595,), (1392805619,), (1392805637,), (1392805640,), (1392805642,)) 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 28223061 , 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=28223036 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 (28223061) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28223036) result : ((1392800095,), (1392800275,), (1392800278,), (1392800297,), (1392800312,), (1392800317,), (1392800619,), (1392801327,), (1392801408,), (1392801474,), (1392801574,), (1392801626,), (1392801974,), (1392801991,), (1392801995,), (1392801999,), (1392802427,), (1392802446,), (1392802448,), (1392802475,), (1392802523,), (1392802934,), (1392802968,), (1392803011,), (1392803047,), (1392803089,), (1392803443,), (1392803496,), (1392803560,), (1392803626,), (1392804275,), (1392804278,), (1392804282,), (1392804287,), (1392804291,), (1392804322,), (1392804458,), (1392804460,), (1392804463,), (1392804466,), (1392804499,), (1392804969,), (1392804988,), (1392805006,), (1392805011,), (1392805018,), (1392805022,), (1392805214,), (1392805232,), (1392805234,), (1392805369,), (1392805371,), (1392805376,), (1392805385,), (1392805388,), (1392805391,), (1392805595,), (1392805619,), (1392805637,), (1392805640,), (1392805642,)) 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 28223062 , 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=28223036 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 (28223062) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28223036) result : ((1392800095,), (1392800275,), (1392800278,), (1392800297,), (1392800312,), (1392800317,), (1392800619,), (1392801327,), (1392801408,), (1392801474,), (1392801574,), (1392801626,), (1392801974,), (1392801991,), (1392801995,), (1392801999,), (1392802427,), (1392802446,), (1392802448,), (1392802475,), (1392802523,), (1392802934,), (1392802968,), (1392803011,), (1392803047,), (1392803089,), (1392803443,), (1392803496,), (1392803560,), (1392803626,), (1392804275,), (1392804278,), (1392804282,), (1392804287,), (1392804291,), (1392804322,), (1392804458,), (1392804460,), (1392804463,), (1392804466,), (1392804499,), (1392804969,), (1392804988,), (1392805006,), (1392805011,), (1392805018,), (1392805022,), (1392805214,), (1392805232,), (1392805234,), (1392805369,), (1392805371,), (1392805376,), (1392805385,), (1392805388,), (1392805391,), (1392805595,), (1392805619,), (1392805637,), (1392805640,), (1392805642,)) 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 28223063 , 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=28223036 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 (28223063) result : ((1392803110,), (1392803132,), (1392804169,), (1392805365,), (1392805366,), (1392805588,), (1392805589,), (1392805590,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28223036) result : ((1392800095,), (1392800275,), (1392800278,), (1392800297,), (1392800312,), (1392800317,), (1392800619,), (1392801327,), (1392801408,), (1392801474,), (1392801574,), (1392801626,), (1392801974,), (1392801991,), (1392801995,), (1392801999,), (1392802427,), (1392802446,), (1392802448,), (1392802475,), (1392802523,), (1392802934,), (1392802968,), (1392803011,), (1392803047,), (1392803089,), (1392803443,), (1392803496,), (1392803560,), (1392803626,), (1392804275,), (1392804278,), (1392804282,), (1392804287,), (1392804291,), (1392804322,), (1392804458,), (1392804460,), (1392804463,), (1392804466,), (1392804499,), (1392804969,), (1392804988,), (1392805006,), (1392805011,), (1392805018,), (1392805022,), (1392805214,), (1392805232,), (1392805234,), (1392805369,), (1392805371,), (1392805376,), (1392805385,), (1392805388,), (1392805391,), (1392805595,), (1392805619,), (1392805637,), (1392805640,), (1392805642,)) 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 28223064 , 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=28223036 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 (28223064) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28223036) result : ((1392800095,), (1392800275,), (1392800278,), (1392800297,), (1392800312,), (1392800317,), (1392800619,), (1392801327,), (1392801408,), (1392801474,), (1392801574,), (1392801626,), (1392801974,), (1392801991,), (1392801995,), (1392801999,), (1392802427,), (1392802446,), (1392802448,), (1392802475,), (1392802523,), (1392802934,), (1392802968,), (1392803011,), (1392803047,), (1392803089,), (1392803443,), (1392803496,), (1392803560,), (1392803626,), (1392804275,), (1392804278,), (1392804282,), (1392804287,), (1392804291,), (1392804322,), (1392804458,), (1392804460,), (1392804463,), (1392804466,), (1392804499,), (1392804969,), (1392804988,), (1392805006,), (1392805011,), (1392805018,), (1392805022,), (1392805214,), (1392805232,), (1392805234,), (1392805369,), (1392805371,), (1392805376,), (1392805385,), (1392805388,), (1392805391,), (1392805595,), (1392805619,), (1392805637,), (1392805640,), (1392805642,)) 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 28223065 , 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=28223036 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 (28223065) result : ((1392803099,), (1392803101,), (1392804159,), (1392804333,), (1392805361,), (1392805362,), (1392805363,), (1392805364,), (1392805495,), (1392805497,), (1392805499,), (1392805501,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28223036) result : ((1392800095,), (1392800275,), (1392800278,), (1392800297,), (1392800312,), (1392800317,), (1392800619,), (1392801327,), (1392801408,), (1392801474,), (1392801574,), (1392801626,), (1392801974,), (1392801991,), (1392801995,), (1392801999,), (1392802427,), (1392802446,), (1392802448,), (1392802475,), (1392802523,), (1392802934,), (1392802968,), (1392803011,), (1392803047,), (1392803089,), (1392803443,), (1392803496,), (1392803560,), (1392803626,), (1392804275,), (1392804278,), (1392804282,), (1392804287,), (1392804291,), (1392804322,), (1392804458,), (1392804460,), (1392804463,), (1392804466,), (1392804499,), (1392804969,), (1392804988,), (1392805006,), (1392805011,), (1392805018,), (1392805022,), (1392805214,), (1392805232,), (1392805234,), (1392805369,), (1392805371,), (1392805376,), (1392805385,), (1392805388,), (1392805391,), (1392805595,), (1392805619,), (1392805637,), (1392805640,), (1392805642,)) 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`=28223036 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Teint_Dans_La_Masse','kraft','papier','cartonnette','environnement','autre_refus','mal_croppe','metal','flou','plastique','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`=28223036 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Teint_Dans_La_Masse','kraft','papier','cartonnette','environnement','autre_refus','mal_croppe','metal','flou','plastique','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 28223036, 'sub_port_id': 28223068, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092438, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 32)}, 'autre_refus': {'main_port_id': 28223036, 'sub_port_id': 28223069, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092439, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 32)}, 'Carton_gris': {'main_port_id': 28223036, 'sub_port_id': 28223070, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092440, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 32)}, 'mal_croppe': {'main_port_id': 28223036, 'sub_port_id': 28223071, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092441, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 32)}, 'plastique': {'main_port_id': 28223036, 'sub_port_id': 28223072, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092442, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 32)}, 'environnement': {'main_port_id': 28223036, 'sub_port_id': 28223073, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092443, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 28223036, 'sub_port_id': 28223074, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092444, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 32)}, 'papier': {'main_port_id': 28223036, 'sub_port_id': 28223075, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092445, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 32)}, 'flou': {'main_port_id': 28223036, 'sub_port_id': 28223076, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092446, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 32)}, 'Carton_brun': {'main_port_id': 28223036, 'sub_port_id': 28223077, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092447, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 32)}, 'metal': {'main_port_id': 28223036, 'sub_port_id': 28223078, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092448, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 32)}, 'cartonnette': {'main_port_id': 28223036, 'sub_port_id': 28223079, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19092449, 'last_updated_at': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 5, 19, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 5, 19, 3, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28223068,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28223054 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28223069,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28223055 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28223070,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28223056 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28223071,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28223057 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28223072,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28223058 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28223073,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28223059 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28223074,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28223060 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28223075,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28223061 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28223076,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28223062 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28223077,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28223063 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28223078,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28223064 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28223079,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28223065 lien utilise dans velours : https://marlene.fotonower.com/velours/28223068,28223069,28223070,28223071,28223072,28223073,28223074,28223075,28223076,28223077,28223078,28223079?tags=kraft,autre_refus,Carton_gris,mal_croppe,plastique,environnement,Teint_Dans_La_Masse,papier,flou,Carton_brun,metal,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28223036]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1392805642, 1392805640, 1392805637, 1392805619, 1392805595, 1392805391, 1392805388, 1392805385, 1392805376, 1392805371, 1392805369] map_info['map_portfolio_photo'] : {28223036: [1392805642, 1392805640, 1392805637, 1392805619, 1392805595, 1392805391, 1392805388, 1392805385, 1392805376, 1392805371, 1392805369, 1392805234, 1392805232, 1392805214, 1392805022, 1392805018, 1392805011, 1392805006, 1392804988, 1392804969, 1392804499, 1392804466, 1392804463, 1392804460, 1392804458, 1392804322, 1392804291, 1392804287, 1392804282, 1392804278, 1392804275, 1392803626, 1392803560, 1392803496, 1392803443, 1392803089, 1392803047, 1392803011, 1392802968, 1392802934, 1392802523, 1392802475, 1392802448, 1392802446, 1392802427, 1392801999, 1392801995, 1392801991, 1392801974, 1392801626, 1392801574, 1392801474, 1392801408, 1392801327, 1392800619, 1392800317, 1392800312, 1392800297, 1392800278, 1392800275, 1392800095]} final : False mtd_id 4302 list_pids : [1392805642, 1392805640, 1392805637, 1392805619, 1392805595, 1392805391, 1392805388, 1392805385, 1392805376, 1392805371, 1392805369] Looping around the photos to save general results len do output : 1 /28223036. 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, '4005115') ('4302', '28223036', '1392805642', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805640', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805637', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805619', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805595', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805391', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805388', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805385', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805376', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805371', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805369', None, None, None, None, None, '4005115') 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', None, '28223036', "{'kraft': 28223054, 'autre_refus': 28223055, 'Carton_gris': 28223056, 'mal_croppe': 28223057, 'plastique': 28223058, 'environnement': 28223059, 'Teint_Dans_La_Masse': 28223060, 'papier': 28223061, 'flou': 28223062, 'Carton_brun': 28223063, 'metal': 28223064, 'cartonnette': 28223065}", None, None, None, None, '4005115'), ('4302', '28223036', '1392805642', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805640', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805637', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805619', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805595', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805391', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805388', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805385', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805376', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805371', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805369', None, None, None, None, None, '4005115')] time used for this insertion : 0.01492452621459961 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.581190586090088 time spend to save output : 0.015226125717163086 total time spend for step 1 : 1.596416711807251 step2:final Wed Nov 5 19:14: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 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 (28223036) 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 28223036 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1392800095,1392800317,1392800312,1392800297,1392800278,1392800275,1392800619,1392801626,1392801574,1392801474,1392801408,1392801327,1392801999,1392801995,1392801991,1392801974,1392802523,1392802475,1392802448,1392802446,1392802427,1392803089,1392803047,1392803011,1392802968,1392802934,1392803626,1392803560,1392803496,1392803443,1392804322,1392804291,1392804287,1392804282,1392804278,1392804275,1392804499,1392804466,1392804463,1392804460,1392804458,1392805022,1392805018,1392805011,1392805006,1392804988,1392804969,1392805234,1392805232,1392805214,1392805391,1392805388,1392805385,1392805376,1392805371,1392805369,1392805642,1392805640,1392805637,1392805619,1392805595); 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([28223036]) Inside saveOutput : final : False verbose : True original output for save of step final : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ('0.04834750069751047',), 1392805619: ('0.04834750069751047',), 1392805595: ('0.04834750069751047',), 1392805391: ('0.04834750069751047',), 1392805388: ('0.04834750069751047',), 1392805385: ('0.04834750069751047',), 1392805376: ('0.04834750069751047',), 1392805371: ('0.04834750069751047',), 1392805369: ('0.04834750069751047',)} new output for save of step final : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ('0.04834750069751047',), 1392805619: ('0.04834750069751047',), 1392805595: ('0.04834750069751047',), 1392805391: ('0.04834750069751047',), 1392805388: ('0.04834750069751047',), 1392805385: ('0.04834750069751047',), 1392805376: ('0.04834750069751047',), 1392805371: ('0.04834750069751047',), 1392805369: ('0.04834750069751047',)} [1392805642, 1392805640, 1392805637, 1392805619, 1392805595, 1392805391, 1392805388, 1392805385, 1392805376, 1392805371, 1392805369] map_info['map_portfolio_photo'] : {28223036: [1392805642, 1392805640, 1392805637, 1392805619, 1392805595, 1392805391, 1392805388, 1392805385, 1392805376, 1392805371, 1392805369, 1392805234, 1392805232, 1392805214, 1392805022, 1392805018, 1392805011, 1392805006, 1392804988, 1392804969, 1392804499, 1392804466, 1392804463, 1392804460, 1392804458, 1392804322, 1392804291, 1392804287, 1392804282, 1392804278, 1392804275, 1392803626, 1392803560, 1392803496, 1392803443, 1392803089, 1392803047, 1392803011, 1392802968, 1392802934, 1392802523, 1392802475, 1392802448, 1392802446, 1392802427, 1392801999, 1392801995, 1392801991, 1392801974, 1392801626, 1392801574, 1392801474, 1392801408, 1392801327, 1392800619, 1392800317, 1392800312, 1392800297, 1392800278, 1392800275, 1392800095]} final : False mtd_id 4302 list_pids : [1392805642, 1392805640, 1392805637, 1392805619, 1392805595, 1392805391, 1392805388, 1392805385, 1392805376, 1392805371, 1392805369] Looping around the photos to save general results len do output : 11 /1392805642.Didn't retrieve data . /1392805640.Didn't retrieve data . /1392805637.Didn't retrieve data . /1392805619.Didn't retrieve data . /1392805595.Didn't retrieve data . /1392805391.Didn't retrieve data . /1392805388.Didn't retrieve data . /1392805385.Didn't retrieve data . /1392805376.Didn't retrieve data . /1392805371.Didn't retrieve data . /1392805369.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, '4005115') ('4302', '28223036', '1392805642', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805640', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805637', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805619', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805595', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805391', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805388', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805385', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805376', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805371', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805369', None, None, None, None, None, '4005115') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '28223036', '1392805642', '0.04834750069751047', None, None, None, None, '4005115'), ('4302', '28223036', '1392805640', '0.04834750069751047', None, None, None, None, '4005115'), ('4302', '28223036', '1392805637', '0.04834750069751047', None, None, None, None, '4005115'), ('4302', '28223036', '1392805619', '0.04834750069751047', None, None, None, None, '4005115'), ('4302', '28223036', '1392805595', '0.04834750069751047', None, None, None, None, '4005115'), ('4302', '28223036', '1392805391', '0.04834750069751047', None, None, None, None, '4005115'), ('4302', '28223036', '1392805388', '0.04834750069751047', None, None, None, None, '4005115'), ('4302', '28223036', '1392805385', '0.04834750069751047', None, None, None, None, '4005115'), ('4302', '28223036', '1392805376', '0.04834750069751047', None, None, None, None, '4005115'), ('4302', '28223036', '1392805371', '0.04834750069751047', None, None, None, None, '4005115'), ('4302', '28223036', '1392805369', '0.04834750069751047', None, None, None, None, '4005115')] time used for this insertion : 0.013322830200195312 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07201766967773438 time spend to save output : 0.013860464096069336 total time spend for step 2 : 0.08587813377380371 step3:velours_tree Wed Nov 5 19:14: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 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 : {28223036: [{'kraft': 28223054, 'autre_refus': 28223055, 'Carton_gris': 28223056, 'mal_croppe': 28223057, 'plastique': 28223058, 'environnement': 28223059, 'Teint_Dans_La_Masse': 28223060, 'papier': 28223061, 'flou': 28223062, 'Carton_brun': 28223063, 'metal': 28223064, 'cartonnette': 28223065}]} input_args_next_step : {28223036: ()} output_args : {28223036: [{'kraft': 28223054, 'autre_refus': 28223055, 'Carton_gris': 28223056, 'mal_croppe': 28223057, 'plastique': 28223058, 'environnement': 28223059, 'Teint_Dans_La_Masse': 28223060, 'papier': 28223061, 'flou': 28223062, 'Carton_brun': 28223063, 'metal': 28223064, 'cartonnette': 28223065}]} args : 28223036 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 : ({'kraft': 28223054, 'autre_refus': 28223055, 'Carton_gris': 28223056, 'mal_croppe': 28223057, 'plastique': 28223058, 'environnement': 28223059, 'Teint_Dans_La_Masse': 28223060, 'papier': 28223061, 'flou': 28223062, 'Carton_brun': 28223063, 'metal': 28223064, 'cartonnette': 28223065},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28223036) 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([28223036]) 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.2762484550476074 time spend to save output : 4.76837158203125e-05 total time spend for step 3 : 0.27629613876342773 step4:send_mail_cod Wed Nov 5 19:14: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 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 : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ('0.04834750069751047',), 1392805619: ('0.04834750069751047',), 1392805595: ('0.04834750069751047',), 1392805391: ('0.04834750069751047',), 1392805388: ('0.04834750069751047',), 1392805385: ('0.04834750069751047',), 1392805376: ('0.04834750069751047',), 1392805371: ('0.04834750069751047',), 1392805369: ('0.04834750069751047',)} input_args_next_step : {1392805642: ()} output_args : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ('0.04834750069751047',), 1392805619: ('0.04834750069751047',), 1392805595: ('0.04834750069751047',), 1392805391: ('0.04834750069751047',), 1392805388: ('0.04834750069751047',), 1392805385: ('0.04834750069751047',), 1392805376: ('0.04834750069751047',), 1392805371: ('0.04834750069751047',), 1392805369: ('0.04834750069751047',)} args : 1392805642 depend.output_id : 0 input_args_next_step : {1392805642: ('0.04834750069751047',), 1392805640: ()} output_args : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ('0.04834750069751047',), 1392805619: ('0.04834750069751047',), 1392805595: ('0.04834750069751047',), 1392805391: ('0.04834750069751047',), 1392805388: ('0.04834750069751047',), 1392805385: ('0.04834750069751047',), 1392805376: ('0.04834750069751047',), 1392805371: ('0.04834750069751047',), 1392805369: ('0.04834750069751047',)} args : 1392805640 depend.output_id : 0 input_args_next_step : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ()} output_args : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ('0.04834750069751047',), 1392805619: ('0.04834750069751047',), 1392805595: ('0.04834750069751047',), 1392805391: ('0.04834750069751047',), 1392805388: ('0.04834750069751047',), 1392805385: ('0.04834750069751047',), 1392805376: ('0.04834750069751047',), 1392805371: ('0.04834750069751047',), 1392805369: ('0.04834750069751047',)} args : 1392805637 depend.output_id : 0 input_args_next_step : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ('0.04834750069751047',), 1392805619: ()} output_args : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ('0.04834750069751047',), 1392805619: ('0.04834750069751047',), 1392805595: ('0.04834750069751047',), 1392805391: ('0.04834750069751047',), 1392805388: ('0.04834750069751047',), 1392805385: ('0.04834750069751047',), 1392805376: ('0.04834750069751047',), 1392805371: ('0.04834750069751047',), 1392805369: ('0.04834750069751047',)} args : 1392805619 depend.output_id : 0 input_args_next_step : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ('0.04834750069751047',), 1392805619: ('0.04834750069751047',), 1392805595: ()} output_args : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ('0.04834750069751047',), 1392805619: ('0.04834750069751047',), 1392805595: ('0.04834750069751047',), 1392805391: ('0.04834750069751047',), 1392805388: ('0.04834750069751047',), 1392805385: ('0.04834750069751047',), 1392805376: ('0.04834750069751047',), 1392805371: ('0.04834750069751047',), 1392805369: ('0.04834750069751047',)} args : 1392805595 depend.output_id : 0 input_args_next_step : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ('0.04834750069751047',), 1392805619: ('0.04834750069751047',), 1392805595: ('0.04834750069751047',), 1392805391: ()} output_args : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ('0.04834750069751047',), 1392805619: ('0.04834750069751047',), 1392805595: ('0.04834750069751047',), 1392805391: ('0.04834750069751047',), 1392805388: ('0.04834750069751047',), 1392805385: ('0.04834750069751047',), 1392805376: ('0.04834750069751047',), 1392805371: ('0.04834750069751047',), 1392805369: ('0.04834750069751047',)} args : 1392805391 depend.output_id : 0 input_args_next_step : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ('0.04834750069751047',), 1392805619: ('0.04834750069751047',), 1392805595: ('0.04834750069751047',), 1392805391: ('0.04834750069751047',), 1392805388: ()} output_args : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ('0.04834750069751047',), 1392805619: ('0.04834750069751047',), 1392805595: ('0.04834750069751047',), 1392805391: ('0.04834750069751047',), 1392805388: ('0.04834750069751047',), 1392805385: ('0.04834750069751047',), 1392805376: ('0.04834750069751047',), 1392805371: ('0.04834750069751047',), 1392805369: ('0.04834750069751047',)} args : 1392805388 depend.output_id : 0 input_args_next_step : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ('0.04834750069751047',), 1392805619: ('0.04834750069751047',), 1392805595: ('0.04834750069751047',), 1392805391: ('0.04834750069751047',), 1392805388: ('0.04834750069751047',), 1392805385: ()} output_args : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ('0.04834750069751047',), 1392805619: ('0.04834750069751047',), 1392805595: ('0.04834750069751047',), 1392805391: ('0.04834750069751047',), 1392805388: ('0.04834750069751047',), 1392805385: ('0.04834750069751047',), 1392805376: ('0.04834750069751047',), 1392805371: ('0.04834750069751047',), 1392805369: ('0.04834750069751047',)} args : 1392805385 depend.output_id : 0 input_args_next_step : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ('0.04834750069751047',), 1392805619: ('0.04834750069751047',), 1392805595: ('0.04834750069751047',), 1392805391: ('0.04834750069751047',), 1392805388: ('0.04834750069751047',), 1392805385: ('0.04834750069751047',), 1392805376: ()} output_args : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ('0.04834750069751047',), 1392805619: ('0.04834750069751047',), 1392805595: ('0.04834750069751047',), 1392805391: ('0.04834750069751047',), 1392805388: ('0.04834750069751047',), 1392805385: ('0.04834750069751047',), 1392805376: ('0.04834750069751047',), 1392805371: ('0.04834750069751047',), 1392805369: ('0.04834750069751047',)} args : 1392805376 depend.output_id : 0 input_args_next_step : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ('0.04834750069751047',), 1392805619: ('0.04834750069751047',), 1392805595: ('0.04834750069751047',), 1392805391: ('0.04834750069751047',), 1392805388: ('0.04834750069751047',), 1392805385: ('0.04834750069751047',), 1392805376: ('0.04834750069751047',), 1392805371: ()} output_args : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ('0.04834750069751047',), 1392805619: ('0.04834750069751047',), 1392805595: ('0.04834750069751047',), 1392805391: ('0.04834750069751047',), 1392805388: ('0.04834750069751047',), 1392805385: ('0.04834750069751047',), 1392805376: ('0.04834750069751047',), 1392805371: ('0.04834750069751047',), 1392805369: ('0.04834750069751047',)} args : 1392805371 depend.output_id : 0 input_args_next_step : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ('0.04834750069751047',), 1392805619: ('0.04834750069751047',), 1392805595: ('0.04834750069751047',), 1392805391: ('0.04834750069751047',), 1392805388: ('0.04834750069751047',), 1392805385: ('0.04834750069751047',), 1392805376: ('0.04834750069751047',), 1392805371: ('0.04834750069751047',), 1392805369: ()} output_args : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ('0.04834750069751047',), 1392805619: ('0.04834750069751047',), 1392805595: ('0.04834750069751047',), 1392805391: ('0.04834750069751047',), 1392805388: ('0.04834750069751047',), 1392805385: ('0.04834750069751047',), 1392805376: ('0.04834750069751047',), 1392805371: ('0.04834750069751047',), 1392805369: ('0.04834750069751047',)} args : 1392805369 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 : {28223036: [{'kraft': 28223054, 'autre_refus': 28223055, 'Carton_gris': 28223056, 'mal_croppe': 28223057, 'plastique': 28223058, 'environnement': 28223059, 'Teint_Dans_La_Masse': 28223060, 'papier': 28223061, 'flou': 28223062, 'Carton_brun': 28223063, 'metal': 28223064, 'cartonnette': 28223065}]} input_args_next_step : {1392805642: ('0.04834750069751047',), 1392805640: ('0.04834750069751047',), 1392805637: ('0.04834750069751047',), 1392805619: ('0.04834750069751047',), 1392805595: ('0.04834750069751047',), 1392805391: ('0.04834750069751047',), 1392805388: ('0.04834750069751047',), 1392805385: ('0.04834750069751047',), 1392805376: ('0.04834750069751047',), 1392805371: ('0.04834750069751047',), 1392805369: ('0.04834750069751047',), 28223036: ()} output_args : {28223036: [{'kraft': 28223054, 'autre_refus': 28223055, 'Carton_gris': 28223056, 'mal_croppe': 28223057, 'plastique': 28223058, 'environnement': 28223059, 'Teint_Dans_La_Masse': 28223060, 'papier': 28223061, 'flou': 28223062, 'Carton_brun': 28223063, 'metal': 28223064, 'cartonnette': 28223065}]} args : 28223036 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 :12, first value : ('0.04834750069751047',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28223036) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1392805642,1392805640,1392805637,1392805619,1392805595,1392805391,1392805388,1392805385,1392805376,1392805371,1392805369) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1392805369 begin to download photo : 1392805385 begin to download photo : 1392805640 begin to download photo : 1392805595 download finish for photo 1392805385 begin to download photo : 1392805388 download finish for photo 1392805640 begin to download photo : 1392805642 download finish for photo 1392805369 begin to download photo : 1392805371 download finish for photo 1392805595 begin to download photo : 1392805619 download finish for photo 1392805388 begin to download photo : 1392805391 download finish for photo 1392805619 begin to download photo : 1392805637 download finish for photo 1392805642 download finish for photo 1392805371 begin to download photo : 1392805376 download finish for photo 1392805391 download finish for photo 1392805637 download finish for photo 1392805376 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P28223036_05-11-2025_19_14_59.pdf 28223054 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28223054 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392803122: '1762365987_3430559_1392800297_b278622660a1dfabf24cc5ccedd6d811_rle_crop_4022336337_0.png', 1392803124: '1762365987_3430559_1392800278_71d1eb16d4dc06ffefb4b1b234bff522_rle_crop_4022336349_0.png', 1392803126: '1762365987_3430559_1392800275_7e0f89e14c4f4f0b9ac53b1ca8e645cb_rle_crop_4022336396_0.png', 1392805367: '1762366346_3451301_1392804466_acb0c4a4de438ce13b6cc21f7fe57e62_rle_crop_4022344897_0.png', 1392805519: '1762366387_3452909_1392804282_6a57bca74d122480881f1a6a46fb8f83_rle_crop_4022345414_0.png', 1392805522: '1762366387_3452909_1392804278_ee44626b975828066d850c3ecad19d14_rle_crop_4022345426_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/66861f9c1dc6987fcb73959e99d42932_69466754.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/b1353245b44111bf818b8bafcefc11ea_65429970.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/1f7fee649163db8b56610f5a2cc93c1c_72102245.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/30e7fffecdc46f2a5805ec4accf7a27e_10012313.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/c65ac686251c28c8a8d16edfeea425f0_6709743.png change filename to text .imagette282230541762366499/ imagette282230541762366499/1762365987_3430559_1392800297_b278622660a1dfabf24cc5ccedd6d811_rle_crop_4022336337_0.png.png imagette282230541762366499/1762366387_3452909_1392804282_6a57bca74d122480881f1a6a46fb8f83_rle_crop_4022345414_0.png.png imagette282230541762366499/1762366387_3452909_1392804278_ee44626b975828066d850c3ecad19d14_rle_crop_4022345426_0.png.png imagette282230541762366499/1762365987_3430559_1392800278_71d1eb16d4dc06ffefb4b1b234bff522_rle_crop_4022336349_0.png.png imagette282230541762366499/1762365987_3430559_1392800275_7e0f89e14c4f4f0b9ac53b1ca8e645cb_rle_crop_4022336396_0.png.png imagette282230541762366499/1762366346_3451301_1392804466_acb0c4a4de438ce13b6cc21f7fe57e62_rle_crop_4022344897_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/5c9ad8560c6c89cc2bbaaddea605a0ed_66050586.png imagette282230541762366499 28223055 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28223055 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392803069: '1762365987_3430559_1392800297_b278622660a1dfabf24cc5ccedd6d811_rle_crop_4022336335_0.png', 1392803071: '1762365987_3430559_1392800278_71d1eb16d4dc06ffefb4b1b234bff522_rle_crop_4022336344_0.png', 1392804135: '1762366106_3437792_1392802448_3319e3986b5c39650ad3b73a27efefa8_rle_crop_4022340005_0.png', 1392804137: '1762366106_3437792_1392802446_c7b76b83b9a86b7fd5f411185eabfe4f_rle_crop_4022340013_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/3bd158bbbeff03a6859a20e893c1bb2f_6960885.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/4754213a636dff5e7dd3e8ab1cdbb11d_32450566.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/63f9b71a507f5f75095f10883d7630c9_40323806.png change filename to text .imagette282230551762366499/ imagette282230551762366499/1762365987_3430559_1392800278_71d1eb16d4dc06ffefb4b1b234bff522_rle_crop_4022336344_0.png.png imagette282230551762366499/1762366106_3437792_1392802448_3319e3986b5c39650ad3b73a27efefa8_rle_crop_4022340005_0.png.png imagette282230551762366499/1762366106_3437792_1392802446_c7b76b83b9a86b7fd5f411185eabfe4f_rle_crop_4022340013_0.png.png imagette282230551762366499/1762365987_3430559_1392800297_b278622660a1dfabf24cc5ccedd6d811_rle_crop_4022336335_0.png.png imagette282230571762366499/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/09b89d34b2a9d4bbd9e3c27d156177a1_5529425.png imagette282230551762366499 28223057 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28223057 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282230571762366499 28223058 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28223058 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392804343: '1762366144_3438581_1392802523_c72e3a5cadc0b42657eb03530c980f86_rle_crop_4022340144_0.png', 1392804346: '1762366144_3438581_1392801991_4dc71ab2aeb358f0807b40224d743460_rle_crop_4022340159_0.png', 1392805510: '1762366387_3452909_1392804282_6a57bca74d122480881f1a6a46fb8f83_rle_crop_4022345413_0.png', 1392805591: '1762366406_3453973_1392803011_84fb1d533519877f7a0a56fa6938406e_rle_crop_4022345730_0.png', 1392805592: '1762366406_3453973_1392802968_affee4bf363a5619969be3d5ba960fb8_rle_crop_4022345752_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/10a57eb1d8f3d6148aba7fe62fc8c69e_69656518.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/58accdfae6bd004a13067d5267c53a66_25194767.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/8c54cc44cb766ac107858e4e7f650668_40041333.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/e0410ab05c2d132f6a59a035ae5d02eb_82600264.png change filename to text .imagette282230581762366500/ imagette282230581762366500/1762366144_3438581_1392802523_c72e3a5cadc0b42657eb03530c980f86_rle_crop_4022340144_0.png.png imagette282230581762366500/1762366406_3453973_1392802968_affee4bf363a5619969be3d5ba960fb8_rle_crop_4022345752_0.png.png imagette282230581762366500/1762366387_3452909_1392804282_6a57bca74d122480881f1a6a46fb8f83_rle_crop_4022345413_0.png.png imagette282230581762366500/1762366406_3453973_1392803011_84fb1d533519877f7a0a56fa6938406e_rle_crop_4022345730_0.png.png imagette282230581762366500/1762366144_3438581_1392801991_4dc71ab2aeb358f0807b40224d743460_rle_crop_4022340159_0.png.png imagette282230621762366500/ imagette282230641762366500/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/0f6e28095acb037e93dd800501245009_26400377.png imagette282230581762366500 28223062 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28223062 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282230621762366500 28223064 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28223064 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette282230641762366500 28223065 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28223065 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392803099: '1762365987_3430559_1392800619_3f7d90b92530af3bbcea9c8ea52ab4c1_rle_crop_4022335987_0.png', 1392803101: '1762365987_3430559_1392800278_71d1eb16d4dc06ffefb4b1b234bff522_rle_crop_4022336348_0.png', 1392804159: '1762366106_3437792_1392802475_1b57974d58b2332b25e18b84d878f689_rle_crop_4022339976_0.png', 1392804333: '1762366144_3438581_1392801974_dfb81e22b16983e3765e86380e0f0c9e_rle_crop_4022340168_0.png', 1392805361: '1762366346_3451301_1392804466_acb0c4a4de438ce13b6cc21f7fe57e62_rle_crop_4022344895_0.png', 1392805362: '1762366346_3451301_1392804466_acb0c4a4de438ce13b6cc21f7fe57e62_rle_crop_4022344893_0.png', 1392805363: '1762366346_3451301_1392804463_f79b8b07e8ac1c5c556ea108db4f34b3_rle_crop_4022344918_0.png', 1392805364: '1762366346_3451301_1392804463_f79b8b07e8ac1c5c556ea108db4f34b3_rle_crop_4022344920_0.png', 1392805495: '1762366387_3452909_1392804499_247cc02a96e5d5bc6d33f079e6175161_rle_crop_4022345346_0.png', 1392805497: '1762366387_3452909_1392804499_247cc02a96e5d5bc6d33f079e6175161_rle_crop_4022345347_0.png', 1392805499: '1762366387_3452909_1392804278_ee44626b975828066d850c3ecad19d14_rle_crop_4022345423_0.png', 1392805501: '1762366387_3452909_1392804275_3722453385e58f5ce328186fd1fbc30d_rle_crop_4022345432_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/66be03af3bab5b3e89b1cf1c9575b9e8_176641.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/c70055936cf693e47119aa08c9322256_42249084.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/2dff90f6f4a1a472a45499df520fb854_8526922.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/c4cf98f4af7f20554525616e7986834e_36270277.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/484b756633e1867ae249311255f0ce00_2846305.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/4a9ad038e3be50adb3b341d770841011_52087393.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/9897f8e191c133a8d31411a183ace3c7_86822422.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/197a33151a8a72249fc850d6688f7d5f_26075029.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/ea238290e5db5edd6fd4c0b45ca769b1_30780614.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/9a20678c23cbf8ef3ea6cfa4fd705512_8690367.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/cfef88c936d0f9b65db1af8406d0f1fe_31348285.png change filename to text .imagette282230651762366500/ imagette282230651762366500/1762366346_3451301_1392804463_f79b8b07e8ac1c5c556ea108db4f34b3_rle_crop_4022344920_0.png.png imagette282230651762366500/1762366144_3438581_1392801974_dfb81e22b16983e3765e86380e0f0c9e_rle_crop_4022340168_0.png.png imagette282230651762366500/1762366387_3452909_1392804499_247cc02a96e5d5bc6d33f079e6175161_rle_crop_4022345347_0.png.png imagette282230651762366500/1762366346_3451301_1392804466_acb0c4a4de438ce13b6cc21f7fe57e62_rle_crop_4022344893_0.png.png imagette282230651762366500/1762366387_3452909_1392804499_247cc02a96e5d5bc6d33f079e6175161_rle_crop_4022345346_0.png.png imagette282230651762366500/1762366346_3451301_1392804466_acb0c4a4de438ce13b6cc21f7fe57e62_rle_crop_4022344895_0.png.png imagette282230651762366500/1762366387_3452909_1392804275_3722453385e58f5ce328186fd1fbc30d_rle_crop_4022345432_0.png.png imagette282230651762366500/1762365987_3430559_1392800278_71d1eb16d4dc06ffefb4b1b234bff522_rle_crop_4022336348_0.png.png imagette282230651762366500/1762366106_3437792_1392802475_1b57974d58b2332b25e18b84d878f689_rle_crop_4022339976_0.png.png imagette282230651762366500/1762366387_3452909_1392804278_ee44626b975828066d850c3ecad19d14_rle_crop_4022345423_0.png.png imagette282230651762366500/1762366346_3451301_1392804463_f79b8b07e8ac1c5c556ea108db4f34b3_rle_crop_4022344918_0.png.png imagette282230651762366500/1762365987_3430559_1392800619_3f7d90b92530af3bbcea9c8ea52ab4c1_rle_crop_4022335987_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/338c1cfacc0c0567bf885c4cac8a0228_23407399.png imagette282230651762366500 28223056 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28223056 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392803085: '1762365987_3430559_1392800619_3f7d90b92530af3bbcea9c8ea52ab4c1_rle_crop_4022335979_0.png', 1392803087: '1762365987_3430559_1392800278_71d1eb16d4dc06ffefb4b1b234bff522_rle_crop_4022336347_0.png', 1392804148: '1762366106_3437792_1392802448_3319e3986b5c39650ad3b73a27efefa8_rle_crop_4022340002_0.png', 1392804150: '1762366106_3437792_1392802446_c7b76b83b9a86b7fd5f411185eabfe4f_rle_crop_4022340018_0.png', 1392805587: '1762366406_3453973_1392803011_84fb1d533519877f7a0a56fa6938406e_rle_crop_4022345732_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/f0011763395cbab37d56e500ea56557a_21942279.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/dc64fdd7461073879a6af4e9abe2206c_98489232.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/f748e5118673fda066f7157658c0edf3_13586963.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/b8847e64c08fed9764f53b70af8424f3_39782738.png change filename to text .imagette282230561762366501/ imagette282230561762366501/1762365987_3430559_1392800278_71d1eb16d4dc06ffefb4b1b234bff522_rle_crop_4022336347_0.png.png imagette282230561762366501/1762366406_3453973_1392803011_84fb1d533519877f7a0a56fa6938406e_rle_crop_4022345732_0.png.png imagette282230561762366501/1762366106_3437792_1392802446_c7b76b83b9a86b7fd5f411185eabfe4f_rle_crop_4022340018_0.png.png imagette282230561762366501/1762365987_3430559_1392800619_3f7d90b92530af3bbcea9c8ea52ab4c1_rle_crop_4022335979_0.png.png imagette282230561762366501/1762366106_3437792_1392802448_3319e3986b5c39650ad3b73a27efefa8_rle_crop_4022340002_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/da28226050d2499ac32a39bca14ff451_47794576.png imagette282230561762366501 28223060 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28223060 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392805360: '1762366346_3451301_1392804466_acb0c4a4de438ce13b6cc21f7fe57e62_rle_crop_4022344902_0.png', 1392805478: '1762366387_3452909_1392804282_6a57bca74d122480881f1a6a46fb8f83_rle_crop_4022345415_0.png', 1392805480: '1762366387_3452909_1392804275_3722453385e58f5ce328186fd1fbc30d_rle_crop_4022345435_0.png', 1392805586: '1762366406_3453973_1392803011_84fb1d533519877f7a0a56fa6938406e_rle_crop_4022345737_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/feba4385ba3847f8003f47f30b99c577_77468010.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/5ce3ac431047d904a7ae8895fa34ec2d_70807768.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/9eea9408aab536a8e0e6301d7ee1168b_24867390.png change filename to text .imagette282230601762366502/ imagette282230601762366502/1762366406_3453973_1392803011_84fb1d533519877f7a0a56fa6938406e_rle_crop_4022345737_0.png.png imagette282230601762366502/1762366387_3452909_1392804275_3722453385e58f5ce328186fd1fbc30d_rle_crop_4022345435_0.png.png imagette282230601762366502/1762366346_3451301_1392804466_acb0c4a4de438ce13b6cc21f7fe57e62_rle_crop_4022344902_0.png.png imagette282230601762366502/1762366387_3452909_1392804282_6a57bca74d122480881f1a6a46fb8f83_rle_crop_4022345415_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/f8f7690168996567c559d647f387a6c1_97802622.png imagette282230601762366502 28223063 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28223063 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1392803110: '1762365987_3430559_1392800312_9eebfb8c70abfdbc43b46190fd981287_rle_crop_4022336309_0.png', 1392803132: '1762366027_3432677_1392800317_3352c01221be2cf25d8e1fc85a03b2f5_rle_crop_4022336457_0.png', 1392804169: '1762366106_3437792_1392802448_3319e3986b5c39650ad3b73a27efefa8_rle_crop_4022340006_0.png', 1392805365: '1762366346_3451301_1392804466_acb0c4a4de438ce13b6cc21f7fe57e62_rle_crop_4022344903_0.png', 1392805366: '1762366346_3451301_1392804463_f79b8b07e8ac1c5c556ea108db4f34b3_rle_crop_4022344923_0.png', 1392805588: '1762366406_3453973_1392803011_84fb1d533519877f7a0a56fa6938406e_rle_crop_4022345738_0.png', 1392805589: '1762366406_3453973_1392802968_affee4bf363a5619969be3d5ba960fb8_rle_crop_4022345751_0.png', 1392805590: '1762366406_3453973_1392802934_eca81ffc0c375f3cde0f09f9961e7afd_rle_crop_4022345827_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/432ec33cb478a701b991d4214f8907f8_63820870.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/2f40c3ae31f632a30ef5bbb26b9b2253_24568509.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/13ef8f7ce9f2b0079503af8d4aa0c295_71982712.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/244c00d2eefe5f6b3e8d74a6704e9ac7_9344722.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/d1c04f239a19670c09c32d40292d3bb5_70580091.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/daba5434da66828f1475c3c8afb9321d_13573807.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/4cbdd991ecc0f215594fcbaa7160649b_39932648.png change filename to text .imagette282230631762366502/ imagette282230631762366502/1762366106_3437792_1392802448_3319e3986b5c39650ad3b73a27efefa8_rle_crop_4022340006_0.png.png imagette282230631762366502/1762366027_3432677_1392800317_3352c01221be2cf25d8e1fc85a03b2f5_rle_crop_4022336457_0.png.png imagette282230631762366502/1762365987_3430559_1392800312_9eebfb8c70abfdbc43b46190fd981287_rle_crop_4022336309_0.png.png imagette282230631762366502/1762366346_3451301_1392804463_f79b8b07e8ac1c5c556ea108db4f34b3_rle_crop_4022344923_0.png.png imagette282230631762366502/1762366406_3453973_1392802968_affee4bf363a5619969be3d5ba960fb8_rle_crop_4022345751_0.png.png imagette282230631762366502/1762366346_3451301_1392804466_acb0c4a4de438ce13b6cc21f7fe57e62_rle_crop_4022344903_0.png.png imagette282230631762366502/1762366406_3453973_1392802934_eca81ffc0c375f3cde0f09f9961e7afd_rle_crop_4022345827_0.png.png imagette282230631762366502/1762366406_3453973_1392803011_84fb1d533519877f7a0a56fa6938406e_rle_crop_4022345738_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/f33983de72d9db16884e8596141ddedb_49073677.png imagette282230631762366502 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28223036 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28223068,28223069,28223070,28223071,28223072,28223073,28223074,28223075,28223076,28223077,28223078,28223079?tags=kraft,autre_refus,Carton_gris,mal_croppe,plastique,environnement,Teint_Dans_La_Masse,papier,flou,Carton_brun,metal,cartonnette your option no_mail is active, we will not send the real mail to your client args[1392805642] : ('0.04834750069751047',) no score found for photo 1392805642 We are sending mail with results at report@fotonower.com args[1392805640] : ('0.04834750069751047',) no score found for photo 1392805640 We are sending mail with results at report@fotonower.com args[1392805637] : ('0.04834750069751047',) no score found for photo 1392805637 We are sending mail with results at report@fotonower.com args[1392805619] : ('0.04834750069751047',) no score found for photo 1392805619 We are sending mail with results at report@fotonower.com args[1392805595] : ('0.04834750069751047',) no score found for photo 1392805595 We are sending mail with results at report@fotonower.com args[1392805391] : ('0.04834750069751047',) no score found for photo 1392805391 We are sending mail with results at report@fotonower.com args[1392805388] : ('0.04834750069751047',) no score found for photo 1392805388 We are sending mail with results at report@fotonower.com args[1392805385] : ('0.04834750069751047',) no score found for photo 1392805385 We are sending mail with results at report@fotonower.com args[1392805376] : ('0.04834750069751047',) no score found for photo 1392805376 We are sending mail with results at report@fotonower.com args[1392805371] : ('0.04834750069751047',) no score found for photo 1392805371 We are sending mail with results at report@fotonower.com args[1392805369] : ('0.04834750069751047',) no score found for photo 1392805369 We are sending mail with results at report@fotonower.com refus_total : 0.04834750069751047 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28223036 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_P28223036_05-11-2025_19_14_59.pdf results_Auto_P28223036_05-11-2025_19_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28223036_05-11-2025_19_14_59.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','28223036','results_Auto_P28223036_05-11-2025_19_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28223036_05-11-2025_19_14_59.pdf','pdf','','0.24','0.04834750069751047') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28223036]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1392805642, 1392805640, 1392805637, 1392805619, 1392805595, 1392805391, 1392805388, 1392805385, 1392805376, 1392805371, 1392805369] map_info['map_portfolio_photo'] : {28223036: [1392805642, 1392805640, 1392805637, 1392805619, 1392805595, 1392805391, 1392805388, 1392805385, 1392805376, 1392805371, 1392805369, 1392805234, 1392805232, 1392805214, 1392805022, 1392805018, 1392805011, 1392805006, 1392804988, 1392804969, 1392804499, 1392804466, 1392804463, 1392804460, 1392804458, 1392804322, 1392804291, 1392804287, 1392804282, 1392804278, 1392804275, 1392803626, 1392803560, 1392803496, 1392803443, 1392803089, 1392803047, 1392803011, 1392802968, 1392802934, 1392802523, 1392802475, 1392802448, 1392802446, 1392802427, 1392801999, 1392801995, 1392801991, 1392801974, 1392801626, 1392801574, 1392801474, 1392801408, 1392801327, 1392800619, 1392800317, 1392800312, 1392800297, 1392800278, 1392800275, 1392800095]} final : False mtd_id 4302 list_pids : [1392805642, 1392805640, 1392805637, 1392805619, 1392805595, 1392805391, 1392805388, 1392805385, 1392805376, 1392805371, 1392805369] 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, '4005115') ('4302', '28223036', '1392805642', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805640', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805637', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805619', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805595', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805391', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805388', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805385', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805376', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805371', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805369', None, None, None, None, None, '4005115') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '28223036', '1392805642', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805640', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805637', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805619', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805595', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805391', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805388', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805385', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805376', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805371', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805369', None, None, None, None, None, '4005115')] time used for this insertion : 0.013984203338623047 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.540825128555298 time spend to save output : 0.014231204986572266 total time spend for step 4 : 5.55505633354187 step5:split_time_score Wed Nov 5 19:15:04 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 : ['28223036'] 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 : [('28223036',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28223036) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1392805640: {'path': 'temp/1762366498_3842372_1392805640_5a04cf0378fb4da278bd6c2bcb66c26e.jpg', 'extension': 'jpg'}, 1392805642: {'path': 'temp/1762366498_3842372_1392805642_5c3b1cd5d0fafe5cc387c1877060ed7c.jpg', 'extension': 'jpg'}, 1392805385: {'path': 'temp/1762366498_3842372_1392805385_5004f503fe03ae8dbf00eddf1fceb1a0.jpg', 'extension': 'jpg'}, 1392805388: {'path': 'temp/1762366498_3842372_1392805388_b0deea6e653a2a87027ebfa8e4898500.jpg', 'extension': 'jpg'}, 1392805391: {'path': 'temp/1762366498_3842372_1392805391_2700b9ec760641d542d747e70f749a51.jpg', 'extension': 'jpg'}, 1392805595: {'path': 'temp/1762366498_3842372_1392805595_ca17d10d6915f7c74b7fbb0d4d7dcd8e.jpg', 'extension': 'jpg'}, 1392805619: {'path': 'temp/1762366498_3842372_1392805619_9f17f94f5b927166e11082b9f5895bcc.jpg', 'extension': 'jpg'}, 1392805637: {'path': 'temp/1762366498_3842372_1392805637_4d14840ce5062c8bd1567ddecb3097bc.jpg', 'extension': 'jpg'}, 1392805369: {'path': 'temp/1762366498_3842372_1392805369_45499b67dd9b3c215f38f2090002cdb2.jpg', 'extension': 'jpg'}, 1392805371: {'path': 'temp/1762366498_3842372_1392805371_194a9cfd54e5ec6521a4523778831c96.jpg', 'extension': 'jpg'}, 1392805376: {'path': 'temp/1762366498_3842372_1392805376_96d4260857661eac2c255ba31ce463cc.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 = 28223036; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28223036 group by h (('19', 61),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28223036 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 (28223036) 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 (28223036) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05112025 28223036 Nombre de photos uploadées : 61 / 23040 (0%) 05112025 28223036 Nombre de photos taguées (types de déchets): 0 / 61 (0%) 05112025 28223036 Nombre de photos taguées (volume) : 0 / 61 (0%) [{'photo_id': 1392800095, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/7e46a2635111ae6b670992f07e42de8c.jpg', 'username': None, 'uploaded_at': 1762365667, 'text': 'image_05112025_19_00_04_010136m0.jpg 1e-05 for time 1, id_amount 0 this amount prod time diff : 1e-05'}, {'photo_id': 1392800317, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/3352c01221be2cf25d8e1fc85a03b2f5.jpg', 'username': None, 'uploaded_at': 1762365727, 'text': 'image_05112025_19_00_53_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1392800312, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/9eebfb8c70abfdbc43b46190fd981287.jpg', 'username': None, 'uploaded_at': 1762365727, 'text': 'image_05112025_19_01_03_010162m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1392800297, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/5/b278622660a1dfabf24cc5ccedd6d811.jpg', 'username': None, 'uploaded_at': 1762365727, 'text': 'image_05112025_19_01_14_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0025072097778320312 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28223036, '2025-11-05' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-05' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2512508,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21179962158203125 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= 2512508 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28186038, 'dashboard_result_id': 16862353, '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_P28186038_05-11-2025_06_14_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186050, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28186394, 'dashboard_result_id': 16862354, '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_P28186394_05-11-2025_06_15_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186406, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28187294, 'dashboard_result_id': 16862355, '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_P28187294_05-11-2025_06_16_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28187295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28187296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28187297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28187298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28187299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28187300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28187301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28187302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28187303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28187304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28187305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28187306, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28188183, 'dashboard_result_id': 16862356, '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_P28188183_05-11-2025_06_16_12.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28188184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28188185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28188186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28188187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28188188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28188189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28188190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28188191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28188192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28188193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28188194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28188195, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28189317, 'dashboard_result_id': 16862357, '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_P28189317_05-11-2025_06_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189330, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28189664, 'dashboard_result_id': 16862358, '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_P28189664_05-11-2025_05_47_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189677, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28189717, 'dashboard_result_id': 16862359, '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_P28189717_05-11-2025_06_03_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189731, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28190150, 'dashboard_result_id': 16862360, '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_P28190150_05-11-2025_06_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190173, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190175, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190177, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190179, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190182, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28190820, 'dashboard_result_id': 16862361, '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_P28190820_05-11-2025_06_33_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190836, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28191207, 'dashboard_result_id': 16862362, '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_P28191207_05-11-2025_06_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28191226, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191234, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28191692, 'dashboard_result_id': 16862363, '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_P28191692_05-11-2025_07_03_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28191718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191729, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28192332, 'dashboard_result_id': 16862364, '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_P28192332_05-11-2025_07_18_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28192335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28192337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28192338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28192339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28192340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28192341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28192342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28192343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28192344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28192345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28192346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28192347, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28193155, 'dashboard_result_id': 16862365, '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_P28193155_05-11-2025_07_35_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28193190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28193191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28193192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28193193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28193194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28193195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28193196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28193197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28193198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28193199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28193200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28193201, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28193965, 'dashboard_result_id': 16862366, '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_P28193965_05-11-2025_07_51_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28194004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194013, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28194584, 'dashboard_result_id': 16862367, '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_P28194584_05-11-2025_08_04_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28194585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194596, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28195092, 'dashboard_result_id': 16862368, '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_P28195092_05-11-2025_08_20_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195105, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28195794, 'dashboard_result_id': 16862369, '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_P28195794_05-11-2025_08_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195856, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195863, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28196359, 'dashboard_result_id': 16862370, '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_P28196359_05-11-2025_08_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28196388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28196389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28196390, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28196391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28196392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28196393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28196394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28196395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28196396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28196397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28196398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28196399, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28197077, 'dashboard_result_id': 16862371, '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_P28197077_05-11-2025_09_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28197141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28197142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28197143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28197144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28197145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28197146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28197147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28197148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28197149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28197150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28197151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28197152, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28199380, 'dashboard_result_id': 16862372, '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_P28199380_05-11-2025_09_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28199409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28199410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28199411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28199412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28199413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28199414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28199415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28199416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28199417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28199418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28199419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28199420, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28200141, 'dashboard_result_id': 16862373, '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_P28200141_05-11-2025_10_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28200174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28200176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28200177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28200179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28200180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28200181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28200182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200184, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200185, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28200911, 'dashboard_result_id': 16862374, '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_P28200911_05-11-2025_10_17_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28201000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28201001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28201002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28201003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28201004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28201005, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28201006, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28201755, 'dashboard_result_id': 16862376, '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_P28201755_05-11-2025_10_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28201780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28201781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28201782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28201783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28201784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28201785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28201786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28201787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28201788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28201789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28201790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28201791, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28202496, 'dashboard_result_id': 16862377, '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_P28202496_05-11-2025_10_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28202567, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28202568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28202569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28202570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28202571, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28202572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28202573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28202574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28202575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28202576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28202577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28202578, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28203318, 'dashboard_result_id': 16862378, '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_P28203318_05-11-2025_11_02_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28203369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28203370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28203371, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28203372, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28203373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28203374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28203375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28203376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28203377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28203378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28203379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28203380, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28204048, 'dashboard_result_id': 16862379, '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_P28204048_05-11-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28204102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28204103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28204104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28204105, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28204106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28204107, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28204108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28204109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28204110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28204111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28204112, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28204113, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28204978, 'dashboard_result_id': 16862381, '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_P28204978_05-11-2025_11_33_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28204993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28204994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28204995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28204996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28204997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28204998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28204999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28205000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28205001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28205002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28205003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28205004, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28205788, 'dashboard_result_id': 16862382, '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_P28205788_05-11-2025_11_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28205804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28205805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28205806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28205807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28205808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28205809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28205810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28205811, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28205812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28205813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28205814, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28205815, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28206586, 'dashboard_result_id': 16862383, '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_P28206586_05-11-2025_12_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28206655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28206656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28206657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28206658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28206659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28206660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28206661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28206663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28206664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28206665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28206666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28206667, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28207204, 'dashboard_result_id': 16862384, '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_P28207204_05-11-2025_14_01_08.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28207246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28207247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28207248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28207249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28207250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28207251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28207252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28207253, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28207254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28207255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28207256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28207257, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28209787, 'dashboard_result_id': 16862386, '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_P28209787_05-11-2025_13_48_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28209804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28209805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28209806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28209807, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28209808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28209809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28209810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28209811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28209812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28209813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28209814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28209815, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28210210, 'dashboard_result_id': 16862387, '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_P28210210_05-11-2025_14_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28210213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28210214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28210215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28210216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28210217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28210218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28210219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28210220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28210221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28210222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28210223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28210224, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28210637, 'dashboard_result_id': 16862388, '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_P28210637_05-11-2025_14_17_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28210668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28210669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28210670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28210671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28210672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28210673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28210674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28210675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28210676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28210677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28210678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28210679, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28211264, 'dashboard_result_id': 16862389, '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_P28211264_05-11-2025_14_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28211277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28211278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28211279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28211280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28211281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28211282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28211283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28211284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28211285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28211286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28211287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28211288, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28211794, 'dashboard_result_id': 16862391, '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_P28211794_05-11-2025_14_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28211819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28211820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28211821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28211822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28211823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28211824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28211825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28211826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28211827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28211828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28211829, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28211830, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28212443, 'dashboard_result_id': 16862392, '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_P28212443_05-11-2025_15_05_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28212458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28212459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28212460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28212461, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28212462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28212463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28212464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28212465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28212466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28212467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28212468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28212469, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28212998, 'dashboard_result_id': 16862393, '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_P28212998_05-11-2025_15_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28213010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28213011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28213012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28213013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28213014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28213015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28213016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28213017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28213018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28213019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28213020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28213021, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28213738, 'dashboard_result_id': 16862394, '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_P28213738_05-11-2025_15_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28213747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28213748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28213749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28213750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28213751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28213752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28213753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28213754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28213755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28213756, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28213757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28213758, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28214278, 'dashboard_result_id': 16862395, '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_P28214278_05-11-2025_15_47_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28214334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28214335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28214336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28214337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28214338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28214339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28214340, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28214341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28214342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28214343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28214344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28214345, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28214922, 'dashboard_result_id': 16862396, '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_P28214922_05-11-2025_16_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28214931, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28214932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28214933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28214934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28214935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28214936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28214937, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28214938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28214939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28214940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28214941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28214942, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28215549, 'dashboard_result_id': 16862397, '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_P28215549_05-11-2025_16_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28215568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28215569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28215570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28215571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28215572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28215573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28215574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28215575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28215576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28215577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28215578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28215579, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28216421, 'dashboard_result_id': 16862398, '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_P28216421_05-11-2025_16_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28216470, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28216471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28216472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28216473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28216474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28216475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28216476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28216477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28216478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28216479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28216480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28216481, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28216994, 'dashboard_result_id': 16862399, '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_P28216994_05-11-2025_16_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28217024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28217025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28217026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28217027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28217028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28217029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28217030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28217031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28217032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28217033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28217034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28217035, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28217620, 'dashboard_result_id': 16862400, '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_P28217620_05-11-2025_18_31_10.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28217630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28217631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28217632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28217633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28217634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28217635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28217636, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28217637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28217638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28217639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28217640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28217641, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28218375, 'dashboard_result_id': 16862401, '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_P28218375_05-11-2025_17_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28218385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28218386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28218387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28218388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28218389, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28218390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28218391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28218392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28218393, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28218394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28218395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28218396, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28219362, 'dashboard_result_id': 16862402, '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_P28219362_05-11-2025_18_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28219371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28219372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28219373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28219374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28219375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28219376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28219377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28219378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28219379, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28219380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28219381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28219382, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28220731, 'dashboard_result_id': 16862403, '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_P28220731_05-11-2025_18_17_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28220738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28220739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28220740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28220741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28220742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28220743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28220744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28220745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28220746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28220747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28220748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28220749, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28221367, 'dashboard_result_id': 16862404, '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_P28221367_05-11-2025_18_33_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28221371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28221372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28221373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28221374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28221375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28221376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28221377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28221378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28221379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28221380, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28221381, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28221382, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28221948, 'dashboard_result_id': 16862405, '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_P28221948_05-11-2025_18_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28221976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28221977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28221978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28221979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28221980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28221981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28221982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28221983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28221984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28221985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28221986, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28221987, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28222580, 'dashboard_result_id': 16862406, '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_P28222580_05-11-2025_19_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28222609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28222610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28222611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28222612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28222613, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28222614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28222615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28222616, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28222617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28222618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28222619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28222620, 'pht': 3726}}"}, {'dashboat_entry_day': 2512508, 'dashboard_run_id': 2526830, 'mtr_portfolio_id': 28223036, 'dashboard_result_id': 16862407, '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_P28223036_05-11-2025_19_11_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28223054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28223055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28223056, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28223057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28223058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28223059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28223060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28223061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28223062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28223063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28223064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28223065, '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 = 28186038 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': 4000969, 'mtr_portfolio_id': 28186038, 'created_at': datetime.datetime(2025, 11, 5, 6, 14, 30), 'result': '0.10490548635916874', 'result_long': None, 'result_double': None}] Qualite : 0.10490548635916874 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28186038 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186038_05-11-2025_06_14_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28186038 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_P28186038_05-11-2025_06_14_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186050, 'pht': 3726}}" where mtr_portfolio_id = 28186038 and dashboard_run_id = 2526830 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`=28186038 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862353, 0.10490548635916874, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186038_05-11-2025_06_14_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186043, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186045, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186050, '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 = 28186394 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': 4000970, 'mtr_portfolio_id': 28186394, 'created_at': datetime.datetime(2025, 11, 5, 6, 15, 29), 'result': '0.05826149300923193', 'result_long': None, 'result_double': None}] Qualite : 0.05826149300923193 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28186394 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186394_05-11-2025_06_15_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28186394 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_P28186394_05-11-2025_06_15_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186406, 'pht': 3726}}" where mtr_portfolio_id = 28186394 and dashboard_run_id = 2526830 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`=28186394 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862354, 0.05826149300923193, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28186394_05-11-2025_06_15_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28186395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28186396, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28186397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28186398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28186399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28186400, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28186401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28186402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28186403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28186404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28186405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28186406, '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 = 28187294 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': 4000971, 'mtr_portfolio_id': 28187294, 'created_at': datetime.datetime(2025, 11, 5, 6, 15, 59), 'result': '0.0931771878060378', 'result_long': None, 'result_double': None}] Qualite : 0.0931771878060378 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28187294 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28187294_05-11-2025_06_16_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28187294 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_P28187294_05-11-2025_06_16_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28187295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28187296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28187297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28187298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28187299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28187300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28187301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28187302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28187303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28187304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28187305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28187306, 'pht': 3726}}" where mtr_portfolio_id = 28187294 and dashboard_run_id = 2526830 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`=28187294 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862355, 0.0931771878060378, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28187294_05-11-2025_06_16_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28187295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28187296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28187297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28187298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28187299, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28187300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28187301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28187302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28187303, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28187304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28187305, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28187306, '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 = 28188183 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': 4000972, 'mtr_portfolio_id': 28188183, 'created_at': datetime.datetime(2025, 11, 5, 6, 16, 11), 'result': '0.05647843102246723', 'result_long': None, 'result_double': None}] Qualite : 0.05647843102246723 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28188183 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28188183_05-11-2025_06_16_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28188183 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_P28188183_05-11-2025_06_16_12.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28188184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28188185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28188186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28188187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28188188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28188189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28188190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28188191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28188192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28188193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28188194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28188195, 'pht': 3726}}" where mtr_portfolio_id = 28188183 and dashboard_run_id = 2526830 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`=28188183 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862356, 0.05647843102246723, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28188183_05-11-2025_06_16_12.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28188184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28188185, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28188186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28188187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28188188, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28188189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28188190, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28188191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28188192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28188193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28188194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28188195, '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 = 28189317 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': 4000974, 'mtr_portfolio_id': 28189317, 'created_at': datetime.datetime(2025, 11, 5, 6, 16, 28), 'result': '0.05720052889085852', 'result_long': None, 'result_double': None}] Qualite : 0.05720052889085852 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28189317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189317_05-11-2025_06_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28189317 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_P28189317_05-11-2025_06_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189330, 'pht': 3726}}" where mtr_portfolio_id = 28189317 and dashboard_run_id = 2526830 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`=28189317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862357, 0.05720052889085852, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189317_05-11-2025_06_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189325, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189326, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189327, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189330, '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 = 28189664 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 = 28189664 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 = 28189664 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28189664 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 = 28189664 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 = 28189664 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189664_05-11-2025_05_47_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28189664 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_P28189664_05-11-2025_05_47_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189671, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189674, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189675, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189676, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189677, 'pht': 3726}}" where mtr_portfolio_id = 28189664 and dashboard_run_id = 2526830 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 = 28189717 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': 4001040, 'mtr_portfolio_id': 28189717, 'created_at': datetime.datetime(2025, 11, 5, 6, 3, 29), 'result': '0.054422044536203015', 'result_long': None, 'result_double': None}] Qualite : 0.054422044536203015 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28189717 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189717_05-11-2025_06_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28189717 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_P28189717_05-11-2025_06_03_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189731, 'pht': 3726}}" where mtr_portfolio_id = 28189717 and dashboard_run_id = 2526830 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`=28189717 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862359, 0.054422044536203015, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28189717_05-11-2025_06_03_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28189720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28189721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28189722, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28189723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28189724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28189725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28189726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28189727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28189728, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28189729, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28189730, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28189731, '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 = 28190150 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': 4001101, 'mtr_portfolio_id': 28190150, 'created_at': datetime.datetime(2025, 11, 5, 6, 18, 59), 'result': '0.04157195791823398', 'result_long': None, 'result_double': None}] Qualite : 0.04157195791823398 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28190150 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28190150_05-11-2025_06_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28190150 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_P28190150_05-11-2025_06_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190173, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190175, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190177, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190179, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190182, 'pht': 3726}}" where mtr_portfolio_id = 28190150 and dashboard_run_id = 2526830 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`=28190150 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862360, 0.04157195791823398, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28190150_05-11-2025_06_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190172, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190173, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190175, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190177, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190179, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190182, '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 = 28190820 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': 4001155, 'mtr_portfolio_id': 28190820, 'created_at': datetime.datetime(2025, 11, 5, 6, 33, 32), 'result': '0.04567810037376079', 'result_long': None, 'result_double': None}] Qualite : 0.04567810037376079 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28190820 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28190820_05-11-2025_06_33_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28190820 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_P28190820_05-11-2025_06_33_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190836, 'pht': 3726}}" where mtr_portfolio_id = 28190820 and dashboard_run_id = 2526830 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`=28190820 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862361, 0.04567810037376079, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28190820_05-11-2025_06_33_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28190825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28190826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28190827, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28190828, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28190829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28190830, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28190831, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28190832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28190833, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28190834, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28190835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28190836, '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 = 28191207 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': 4001208, 'mtr_portfolio_id': 28191207, 'created_at': datetime.datetime(2025, 11, 5, 6, 46, 58), 'result': '0.042140180101018006', 'result_long': None, 'result_double': None}] Qualite : 0.042140180101018006 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28191207 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28191207_05-11-2025_06_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28191207 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_P28191207_05-11-2025_06_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28191226, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191234, 'pht': 3726}}" where mtr_portfolio_id = 28191207 and dashboard_run_id = 2526830 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`=28191207 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862362, 0.042140180101018006, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28191207_05-11-2025_06_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191225, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28191226, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191228, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191230, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191234, '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 = 28191692 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': 4001271, 'mtr_portfolio_id': 28191692, 'created_at': datetime.datetime(2025, 11, 5, 7, 3, 28), 'result': '0.040699860032621174', 'result_long': None, 'result_double': None}] Qualite : 0.040699860032621174 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28191692 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28191692_05-11-2025_07_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28191692 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_P28191692_05-11-2025_07_03_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28191718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191729, 'pht': 3726}}" where mtr_portfolio_id = 28191692 and dashboard_run_id = 2526830 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`=28191692 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862363, 0.040699860032621174, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28191692_05-11-2025_07_03_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28191718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28191719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28191720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28191721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28191722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28191723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28191724, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28191725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28191726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28191727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28191728, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28191729, '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 = 28192332 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': 4001368, 'mtr_portfolio_id': 28192332, 'created_at': datetime.datetime(2025, 11, 5, 7, 18, 33), 'result': '0.04510552243820985', 'result_long': None, 'result_double': None}] Qualite : 0.04510552243820985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28192332 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28192332_05-11-2025_07_18_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28192332 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_P28192332_05-11-2025_07_18_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28192335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28192337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28192338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28192339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28192340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28192341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28192342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28192343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28192344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28192345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28192346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28192347, 'pht': 3726}}" where mtr_portfolio_id = 28192332 and dashboard_run_id = 2526830 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`=28192332 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862364, 0.04510552243820985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28192332_05-11-2025_07_18_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28192335, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28192337, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28192338, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28192339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28192340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28192341, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28192342, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28192343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28192344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28192345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28192346, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28192347, '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 = 28193155 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': 4001469, 'mtr_portfolio_id': 28193155, 'created_at': datetime.datetime(2025, 11, 5, 7, 35, 30), 'result': '0.035344376976183166', 'result_long': None, 'result_double': None}] Qualite : 0.035344376976183166 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28193155 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28193155_05-11-2025_07_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28193155 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_P28193155_05-11-2025_07_35_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28193190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28193191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28193192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28193193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28193194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28193195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28193196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28193197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28193198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28193199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28193200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28193201, 'pht': 3726}}" where mtr_portfolio_id = 28193155 and dashboard_run_id = 2526830 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`=28193155 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862365, 0.035344376976183166, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28193155_05-11-2025_07_35_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28193190, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28193191, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28193192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28193193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28193194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28193195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28193196, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28193197, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28193198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28193199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28193200, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28193201, '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 = 28193965 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': 4001542, 'mtr_portfolio_id': 28193965, 'created_at': datetime.datetime(2025, 11, 5, 7, 51, 28), 'result': '0.03492442550408627', 'result_long': None, 'result_double': None}] Qualite : 0.03492442550408627 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28193965 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28193965_05-11-2025_07_51_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28193965 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_P28193965_05-11-2025_07_51_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28194004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194013, 'pht': 3726}}" where mtr_portfolio_id = 28193965 and dashboard_run_id = 2526830 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`=28193965 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862366, 0.03492442550408627, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28193965_05-11-2025_07_51_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28194004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194006, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194008, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194013, '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 = 28194584 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': 4001615, 'mtr_portfolio_id': 28194584, 'created_at': datetime.datetime(2025, 11, 5, 8, 4, 31), 'result': '0.06689196525731245', 'result_long': None, 'result_double': None}] Qualite : 0.06689196525731245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28194584 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28194584_05-11-2025_08_04_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28194584 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_P28194584_05-11-2025_08_04_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28194585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194596, 'pht': 3726}}" where mtr_portfolio_id = 28194584 and dashboard_run_id = 2526830 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`=28194584 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862367, 0.06689196525731245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28194584_05-11-2025_08_04_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28194585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28194586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28194587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28194588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28194589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28194590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28194591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28194592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28194593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28194594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28194595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28194596, '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 = 28195092 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': 4001698, 'mtr_portfolio_id': 28195092, 'created_at': datetime.datetime(2025, 11, 5, 8, 19, 59), 'result': '0.060181082762552726', 'result_long': None, 'result_double': None}] Qualite : 0.060181082762552726 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28195092 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28195092_05-11-2025_08_20_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28195092 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_P28195092_05-11-2025_08_20_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195105, 'pht': 3726}}" where mtr_portfolio_id = 28195092 and dashboard_run_id = 2526830 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`=28195092 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862368, 0.060181082762552726, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28195092_05-11-2025_08_20_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195094, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195097, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195098, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195101, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195104, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195105, '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 = 28195794 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': 4001779, 'mtr_portfolio_id': 28195794, 'created_at': datetime.datetime(2025, 11, 5, 8, 32, 57), 'result': '0.06818243271873463', 'result_long': None, 'result_double': None}] Qualite : 0.06818243271873463 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28195794 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28195794_05-11-2025_08_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28195794 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_P28195794_05-11-2025_08_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195856, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195863, 'pht': 3726}}" where mtr_portfolio_id = 28195794 and dashboard_run_id = 2526830 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`=28195794 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862369, 0.06818243271873463, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28195794_05-11-2025_08_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28195852, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28195853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28195854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28195855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28195856, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28195857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28195858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28195859, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28195860, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28195861, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28195862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28195863, '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 = 28196359 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': 4001848, 'mtr_portfolio_id': 28196359, 'created_at': datetime.datetime(2025, 11, 5, 8, 47), 'result': '0.04766140661514155', 'result_long': None, 'result_double': None}] Qualite : 0.04766140661514155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28196359 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28196359_05-11-2025_08_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28196359 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_P28196359_05-11-2025_08_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28196388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28196389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28196390, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28196391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28196392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28196393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28196394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28196395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28196396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28196397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28196398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28196399, 'pht': 3726}}" where mtr_portfolio_id = 28196359 and dashboard_run_id = 2526830 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`=28196359 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862370, 0.04766140661514155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28196359_05-11-2025_08_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28196388, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28196389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28196390, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28196391, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28196392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28196393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28196394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28196395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28196396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28196397, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28196398, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28196399, '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 = 28197077 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': 4001928, 'mtr_portfolio_id': 28197077, 'created_at': datetime.datetime(2025, 11, 5, 9, 33), 'result': '0.04900076404033409', 'result_long': None, 'result_double': None}] Qualite : 0.04900076404033409 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28197077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28197077_05-11-2025_09_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28197077 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_P28197077_05-11-2025_09_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28197141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28197142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28197143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28197144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28197145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28197146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28197147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28197148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28197149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28197150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28197151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28197152, 'pht': 3726}}" where mtr_portfolio_id = 28197077 and dashboard_run_id = 2526830 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`=28197077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862371, 0.04900076404033409, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28197077_05-11-2025_09_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28197141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28197142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28197143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28197144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28197145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28197146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28197147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28197148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28197149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28197150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28197151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28197152, '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 = 28199380 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': 4002230, 'mtr_portfolio_id': 28199380, 'created_at': datetime.datetime(2025, 11, 5, 9, 46, 58), 'result': '0.06389193113328451', 'result_long': None, 'result_double': None}] Qualite : 0.06389193113328451 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28199380 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28199380_05-11-2025_09_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28199380 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_P28199380_05-11-2025_09_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28199409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28199410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28199411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28199412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28199413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28199414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28199415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28199416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28199417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28199418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28199419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28199420, 'pht': 3726}}" where mtr_portfolio_id = 28199380 and dashboard_run_id = 2526830 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`=28199380 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862372, 0.06389193113328451, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28199380_05-11-2025_09_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28199409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28199410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28199411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28199412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28199413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28199414, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28199415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28199416, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28199417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28199418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28199419, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28199420, '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 = 28200141 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': 4002290, 'mtr_portfolio_id': 28200141, 'created_at': datetime.datetime(2025, 11, 5, 10, 2, 59), 'result': '0.047759217419174355', 'result_long': None, 'result_double': None}] Qualite : 0.047759217419174355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28200141 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28200141_05-11-2025_10_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28200141 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_P28200141_05-11-2025_10_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28200174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28200176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28200177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28200179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28200180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28200181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28200182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200184, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200185, 'pht': 3726}}" where mtr_portfolio_id = 28200141 and dashboard_run_id = 2526830 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`=28200141 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862373, 0.047759217419174355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28200141_05-11-2025_10_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28200174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28200176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28200177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200178, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28200179, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28200180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28200181, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28200182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200184, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200185, '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 = 28200911 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': 4002365, 'mtr_portfolio_id': 28200911, 'created_at': datetime.datetime(2025, 11, 5, 10, 17, 31), 'result': '0.07736636406923199', 'result_long': None, 'result_double': None}] Qualite : 0.07736636406923199 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28200911 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28200911_05-11-2025_10_17_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28200911 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_P28200911_05-11-2025_10_17_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28201000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28201001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28201002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28201003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28201004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28201005, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28201006, 'pht': 3726}}" where mtr_portfolio_id = 28200911 and dashboard_run_id = 2526830 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`=28200911 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862374, 0.07736636406923199, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28200911_05-11-2025_10_17_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28200995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28200996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28200997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28200998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28200999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28201000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28201001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28201002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28201003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28201004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28201005, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28201006, '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 = 28201755 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': 4002455, 'mtr_portfolio_id': 28201755, 'created_at': datetime.datetime(2025, 11, 5, 10, 34, 59), 'result': '0.06977429419581858', 'result_long': None, 'result_double': None}] Qualite : 0.06977429419581858 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28201755 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28201755_05-11-2025_10_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28201755 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_P28201755_05-11-2025_10_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28201780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28201781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28201782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28201783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28201784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28201785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28201786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28201787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28201788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28201789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28201790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28201791, 'pht': 3726}}" where mtr_portfolio_id = 28201755 and dashboard_run_id = 2526830 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`=28201755 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862376, 0.06977429419581858, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28201755_05-11-2025_10_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28201780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28201781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28201782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28201783, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28201784, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28201785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28201786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28201787, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28201788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28201789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28201790, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28201791, '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 = 28202496 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': 4002545, 'mtr_portfolio_id': 28202496, 'created_at': datetime.datetime(2025, 11, 5, 10, 46, 57), 'result': '0.06273645055601144', 'result_long': None, 'result_double': None}] Qualite : 0.06273645055601144 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28202496 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28202496_05-11-2025_10_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28202496 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_P28202496_05-11-2025_10_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28202567, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28202568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28202569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28202570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28202571, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28202572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28202573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28202574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28202575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28202576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28202577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28202578, 'pht': 3726}}" where mtr_portfolio_id = 28202496 and dashboard_run_id = 2526830 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`=28202496 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862377, 0.06273645055601144, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28202496_05-11-2025_10_46_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28202567, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28202568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28202569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28202570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28202571, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28202572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28202573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28202574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28202575, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28202576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28202577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28202578, '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 = 28203318 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': 4002649, 'mtr_portfolio_id': 28203318, 'created_at': datetime.datetime(2025, 11, 5, 11, 2, 57), 'result': '0.06200466522443431', 'result_long': None, 'result_double': None}] Qualite : 0.06200466522443431 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28203318 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28203318_05-11-2025_11_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28203318 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_P28203318_05-11-2025_11_02_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28203369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28203370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28203371, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28203372, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28203373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28203374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28203375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28203376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28203377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28203378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28203379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28203380, 'pht': 3726}}" where mtr_portfolio_id = 28203318 and dashboard_run_id = 2526830 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`=28203318 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862378, 0.06200466522443431, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28203318_05-11-2025_11_02_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28203369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28203370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28203371, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28203372, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28203373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28203374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28203375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28203376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28203377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28203378, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28203379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28203380, '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 = 28204048 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': 4002744, 'mtr_portfolio_id': 28204048, 'created_at': datetime.datetime(2025, 11, 5, 11, 18, 58), 'result': '0.055167291575319986', 'result_long': None, 'result_double': None}] Qualite : 0.055167291575319986 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28204048 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28204048_05-11-2025_11_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28204048 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_P28204048_05-11-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28204102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28204103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28204104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28204105, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28204106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28204107, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28204108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28204109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28204110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28204111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28204112, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28204113, 'pht': 3726}}" where mtr_portfolio_id = 28204048 and dashboard_run_id = 2526830 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`=28204048 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862379, 0.055167291575319986, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28204048_05-11-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28204102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28204103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28204104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28204105, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28204106, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28204107, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28204108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28204109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28204110, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28204111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28204112, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28204113, '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 = 28204978 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': 4002860, 'mtr_portfolio_id': 28204978, 'created_at': datetime.datetime(2025, 11, 5, 11, 33, 31), 'result': '0.05608669758419398', 'result_long': None, 'result_double': None}] Qualite : 0.05608669758419398 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28204978 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28204978_05-11-2025_11_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28204978 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_P28204978_05-11-2025_11_33_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28204993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28204994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28204995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28204996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28204997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28204998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28204999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28205000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28205001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28205002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28205003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28205004, 'pht': 3726}}" where mtr_portfolio_id = 28204978 and dashboard_run_id = 2526830 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`=28204978 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862381, 0.05608669758419398, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28204978_05-11-2025_11_33_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28204993, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28204994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28204995, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28204996, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28204997, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28204998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28204999, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28205000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28205001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28205002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28205003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28205004, '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 = 28205788 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': 4002950, 'mtr_portfolio_id': 28205788, 'created_at': datetime.datetime(2025, 11, 5, 11, 46, 59), 'result': '0.05978757272622658', 'result_long': None, 'result_double': None}] Qualite : 0.05978757272622658 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28205788 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28205788_05-11-2025_11_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28205788 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_P28205788_05-11-2025_11_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28205804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28205805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28205806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28205807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28205808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28205809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28205810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28205811, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28205812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28205813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28205814, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28205815, 'pht': 3726}}" where mtr_portfolio_id = 28205788 and dashboard_run_id = 2526830 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`=28205788 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862382, 0.05978757272622658, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28205788_05-11-2025_11_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28205804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28205805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28205806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28205807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28205808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28205809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28205810, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28205811, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28205812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28205813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28205814, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28205815, '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 = 28206586 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': 4003046, 'mtr_portfolio_id': 28206586, 'created_at': datetime.datetime(2025, 11, 5, 12, 2, 57), 'result': '0.06556309268297209', 'result_long': None, 'result_double': None}] Qualite : 0.06556309268297209 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28206586 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28206586_05-11-2025_12_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28206586 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_P28206586_05-11-2025_12_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28206655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28206656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28206657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28206658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28206659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28206660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28206661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28206663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28206664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28206665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28206666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28206667, 'pht': 3726}}" where mtr_portfolio_id = 28206586 and dashboard_run_id = 2526830 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`=28206586 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862383, 0.06556309268297209, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28206586_05-11-2025_12_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28206655, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28206656, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28206657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28206658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28206659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28206660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28206661, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28206663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28206664, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28206665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28206666, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28206667, '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 = 28207204 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': 4003140, 'mtr_portfolio_id': 28207204, 'created_at': datetime.datetime(2025, 11, 5, 14, 1, 7), 'result': '0.05999779201294223', 'result_long': None, 'result_double': None}] Qualite : 0.05999779201294223 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28207204 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28207204_05-11-2025_14_01_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28207204 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_P28207204_05-11-2025_14_01_08.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28207246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28207247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28207248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28207249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28207250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28207251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28207252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28207253, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28207254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28207255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28207256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28207257, 'pht': 3726}}" where mtr_portfolio_id = 28207204 and dashboard_run_id = 2526830 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`=28207204 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862384, 0.05999779201294223, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28207204_05-11-2025_14_01_08.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28207246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28207247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28207248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28207249, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28207250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28207251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28207252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28207253, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28207254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28207255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28207256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28207257, '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 = 28209787 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': 4003408, 'mtr_portfolio_id': 28209787, 'created_at': datetime.datetime(2025, 11, 5, 13, 48, 57), 'result': '0.04388339640451604', 'result_long': None, 'result_double': None}] Qualite : 0.04388339640451604 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28209787 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28209787_05-11-2025_13_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28209787 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_P28209787_05-11-2025_13_48_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28209804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28209805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28209806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28209807, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28209808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28209809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28209810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28209811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28209812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28209813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28209814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28209815, 'pht': 3726}}" where mtr_portfolio_id = 28209787 and dashboard_run_id = 2526830 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`=28209787 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862386, 0.04388339640451604, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28209787_05-11-2025_13_48_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28209804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28209805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28209806, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28209807, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28209808, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28209809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28209810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28209811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28209812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28209813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28209814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28209815, '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 = 28210210 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': 4003444, 'mtr_portfolio_id': 28210210, 'created_at': datetime.datetime(2025, 11, 5, 14, 2, 57), 'result': '0.039891574117670414', 'result_long': None, 'result_double': None}] Qualite : 0.039891574117670414 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28210210 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28210210_05-11-2025_14_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28210210 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_P28210210_05-11-2025_14_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28210213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28210214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28210215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28210216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28210217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28210218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28210219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28210220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28210221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28210222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28210223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28210224, 'pht': 3726}}" where mtr_portfolio_id = 28210210 and dashboard_run_id = 2526830 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`=28210210 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862387, 0.039891574117670414, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28210210_05-11-2025_14_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28210213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28210214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28210215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28210216, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28210217, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28210218, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28210219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28210220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28210221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28210222, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28210223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28210224, '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 = 28210637 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': 4003511, 'mtr_portfolio_id': 28210637, 'created_at': datetime.datetime(2025, 11, 5, 14, 17), 'result': '0.06360827107620658', 'result_long': None, 'result_double': None}] Qualite : 0.06360827107620658 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28210637 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28210637_05-11-2025_14_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28210637 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_P28210637_05-11-2025_14_17_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28210668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28210669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28210670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28210671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28210672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28210673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28210674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28210675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28210676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28210677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28210678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28210679, 'pht': 3726}}" where mtr_portfolio_id = 28210637 and dashboard_run_id = 2526830 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`=28210637 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862388, 0.06360827107620658, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28210637_05-11-2025_14_17_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28210668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28210669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28210670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28210671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28210672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28210673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28210674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28210675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28210676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28210677, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28210678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28210679, '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 = 28211264 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': 4003580, 'mtr_portfolio_id': 28211264, 'created_at': datetime.datetime(2025, 11, 5, 14, 32, 59), 'result': '0.06469576483377656', 'result_long': None, 'result_double': None}] Qualite : 0.06469576483377656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28211264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28211264_05-11-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28211264 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_P28211264_05-11-2025_14_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28211277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28211278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28211279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28211280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28211281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28211282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28211283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28211284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28211285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28211286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28211287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28211288, 'pht': 3726}}" where mtr_portfolio_id = 28211264 and dashboard_run_id = 2526830 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`=28211264 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862389, 0.06469576483377656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28211264_05-11-2025_14_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28211277, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28211278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28211279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28211280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28211281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28211282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28211283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28211284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28211285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28211286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28211287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28211288, '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 = 28211794 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': 4003648, 'mtr_portfolio_id': 28211794, 'created_at': datetime.datetime(2025, 11, 5, 14, 48, 58), 'result': '0.05009544826027698', 'result_long': None, 'result_double': None}] Qualite : 0.05009544826027698 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28211794 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28211794_05-11-2025_14_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28211794 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_P28211794_05-11-2025_14_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28211819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28211820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28211821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28211822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28211823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28211824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28211825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28211826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28211827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28211828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28211829, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28211830, 'pht': 3726}}" where mtr_portfolio_id = 28211794 and dashboard_run_id = 2526830 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`=28211794 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862391, 0.05009544826027698, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28211794_05-11-2025_14_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28211819, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28211820, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28211821, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28211822, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28211823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28211824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28211825, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28211826, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28211827, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28211828, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28211829, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28211830, '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 = 28212443 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': 4003729, 'mtr_portfolio_id': 28212443, 'created_at': datetime.datetime(2025, 11, 5, 15, 4, 59), 'result': '0.038332499650363', 'result_long': None, 'result_double': None}] Qualite : 0.038332499650363 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28212443 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28212443_05-11-2025_15_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28212443 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_P28212443_05-11-2025_15_05_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28212458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28212459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28212460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28212461, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28212462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28212463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28212464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28212465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28212466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28212467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28212468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28212469, 'pht': 3726}}" where mtr_portfolio_id = 28212443 and dashboard_run_id = 2526830 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`=28212443 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862392, 0.038332499650363, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28212443_05-11-2025_15_05_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28212458, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28212459, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28212460, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28212461, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28212462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28212463, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28212464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28212465, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28212466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28212467, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28212468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28212469, '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 = 28212998 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': 4003819, 'mtr_portfolio_id': 28212998, 'created_at': datetime.datetime(2025, 11, 5, 15, 18, 59), 'result': '0.0455181923059883', 'result_long': None, 'result_double': None}] Qualite : 0.0455181923059883 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28212998 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28212998_05-11-2025_15_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28212998 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_P28212998_05-11-2025_15_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28213010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28213011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28213012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28213013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28213014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28213015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28213016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28213017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28213018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28213019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28213020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28213021, 'pht': 3726}}" where mtr_portfolio_id = 28212998 and dashboard_run_id = 2526830 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`=28212998 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862393, 0.0455181923059883, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28212998_05-11-2025_15_19_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28213010, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28213011, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28213012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28213013, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28213014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28213015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28213016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28213017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28213018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28213019, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28213020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28213021, '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 = 28213738 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': 4003893, 'mtr_portfolio_id': 28213738, 'created_at': datetime.datetime(2025, 11, 5, 15, 32, 59), 'result': '0.0473460051251911', 'result_long': None, 'result_double': None}] Qualite : 0.0473460051251911 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28213738 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28213738_05-11-2025_15_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28213738 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_P28213738_05-11-2025_15_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28213747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28213748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28213749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28213750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28213751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28213752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28213753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28213754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28213755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28213756, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28213757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28213758, 'pht': 3726}}" where mtr_portfolio_id = 28213738 and dashboard_run_id = 2526830 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`=28213738 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862394, 0.0473460051251911, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28213738_05-11-2025_15_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28213747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28213748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28213749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28213750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28213751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28213752, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28213753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28213754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28213755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28213756, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28213757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28213758, '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 = 28214278 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': 4003976, 'mtr_portfolio_id': 28214278, 'created_at': datetime.datetime(2025, 11, 5, 15, 47, 29), 'result': '0.047710640374471744', 'result_long': None, 'result_double': None}] Qualite : 0.047710640374471744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28214278 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28214278_05-11-2025_15_47_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28214278 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_P28214278_05-11-2025_15_47_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28214334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28214335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28214336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28214337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28214338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28214339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28214340, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28214341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28214342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28214343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28214344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28214345, 'pht': 3726}}" where mtr_portfolio_id = 28214278 and dashboard_run_id = 2526830 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`=28214278 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862395, 0.047710640374471744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28214278_05-11-2025_15_47_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28214334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28214335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28214336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28214337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28214338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28214339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28214340, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28214341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28214342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28214343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28214344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28214345, '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 = 28214922 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': 4004071, 'mtr_portfolio_id': 28214922, 'created_at': datetime.datetime(2025, 11, 5, 16, 2, 58), 'result': '0.05686795952779704', 'result_long': None, 'result_double': None}] Qualite : 0.05686795952779704 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28214922 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28214922_05-11-2025_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28214922 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_P28214922_05-11-2025_16_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28214931, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28214932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28214933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28214934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28214935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28214936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28214937, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28214938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28214939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28214940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28214941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28214942, 'pht': 3726}}" where mtr_portfolio_id = 28214922 and dashboard_run_id = 2526830 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`=28214922 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862396, 0.05686795952779704, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28214922_05-11-2025_16_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28214931, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28214932, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28214933, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28214934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28214935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28214936, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28214937, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28214938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28214939, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28214940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28214941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28214942, '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 = 28215549 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': 4004181, 'mtr_portfolio_id': 28215549, 'created_at': datetime.datetime(2025, 11, 5, 16, 18, 59), 'result': '0.05285963189133066', 'result_long': None, 'result_double': None}] Qualite : 0.05285963189133066 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28215549 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28215549_05-11-2025_16_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28215549 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_P28215549_05-11-2025_16_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28215568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28215569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28215570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28215571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28215572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28215573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28215574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28215575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28215576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28215577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28215578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28215579, 'pht': 3726}}" where mtr_portfolio_id = 28215549 and dashboard_run_id = 2526830 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`=28215549 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862397, 0.05285963189133066, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28215549_05-11-2025_16_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28215568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28215569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28215570, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28215571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28215572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28215573, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28215574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28215575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28215576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28215577, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28215578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28215579, '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 = 28216421 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': 4004273, 'mtr_portfolio_id': 28216421, 'created_at': datetime.datetime(2025, 11, 5, 16, 33, 1), 'result': '0.049864512858578694', 'result_long': None, 'result_double': None}] Qualite : 0.049864512858578694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28216421 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28216421_05-11-2025_16_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28216421 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_P28216421_05-11-2025_16_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28216470, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28216471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28216472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28216473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28216474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28216475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28216476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28216477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28216478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28216479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28216480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28216481, 'pht': 3726}}" where mtr_portfolio_id = 28216421 and dashboard_run_id = 2526830 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`=28216421 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862398, 0.049864512858578694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28216421_05-11-2025_16_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28216470, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28216471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28216472, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28216473, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28216474, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28216475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28216476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28216477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28216478, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28216479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28216480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28216481, '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 = 28216994 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': 4004351, 'mtr_portfolio_id': 28216994, 'created_at': datetime.datetime(2025, 11, 5, 16, 46, 57), 'result': '0.07113347209809891', 'result_long': None, 'result_double': None}] Qualite : 0.07113347209809891 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28216994 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28216994_05-11-2025_16_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28216994 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_P28216994_05-11-2025_16_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28217024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28217025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28217026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28217027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28217028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28217029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28217030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28217031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28217032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28217033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28217034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28217035, 'pht': 3726}}" where mtr_portfolio_id = 28216994 and dashboard_run_id = 2526830 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`=28216994 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862399, 0.07113347209809891, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28216994_05-11-2025_16_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28217024, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28217025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28217026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28217027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28217028, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28217029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28217030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28217031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28217032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28217033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28217034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28217035, '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 = 28217620 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': 4004428, 'mtr_portfolio_id': 28217620, 'created_at': datetime.datetime(2025, 11, 5, 18, 31, 9), 'result': '0.03988023908337686', 'result_long': None, 'result_double': None}] Qualite : 0.03988023908337686 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28217620 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28217620_05-11-2025_18_31_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28217620 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_P28217620_05-11-2025_18_31_10.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28217630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28217631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28217632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28217633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28217634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28217635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28217636, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28217637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28217638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28217639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28217640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28217641, 'pht': 3726}}" where mtr_portfolio_id = 28217620 and dashboard_run_id = 2526830 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`=28217620 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862400, 0.03988023908337686, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28217620_05-11-2025_18_31_10.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28217630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28217631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28217632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28217633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28217634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28217635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28217636, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28217637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28217638, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28217639, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28217640, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28217641, '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 = 28218375 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': 4004530, 'mtr_portfolio_id': 28218375, 'created_at': datetime.datetime(2025, 11, 5, 17, 18, 58), 'result': '0.039419260927787185', 'result_long': None, 'result_double': None}] Qualite : 0.039419260927787185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28218375 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28218375_05-11-2025_17_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28218375 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_P28218375_05-11-2025_17_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28218385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28218386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28218387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28218388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28218389, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28218390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28218391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28218392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28218393, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28218394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28218395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28218396, 'pht': 3726}}" where mtr_portfolio_id = 28218375 and dashboard_run_id = 2526830 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`=28218375 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862401, 0.039419260927787185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28218375_05-11-2025_17_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28218385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28218386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28218387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28218388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28218389, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28218390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28218391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28218392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28218393, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28218394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28218395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28218396, '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 = 28219362 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': 4004645, 'mtr_portfolio_id': 28219362, 'created_at': datetime.datetime(2025, 11, 5, 18, 3, 29), 'result': '0.04992920046402664', 'result_long': None, 'result_double': None}] Qualite : 0.04992920046402664 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28219362 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28219362_05-11-2025_18_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28219362 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_P28219362_05-11-2025_18_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28219371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28219372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28219373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28219374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28219375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28219376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28219377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28219378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28219379, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28219380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28219381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28219382, 'pht': 3726}}" where mtr_portfolio_id = 28219362 and dashboard_run_id = 2526830 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`=28219362 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862402, 0.04992920046402664, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28219362_05-11-2025_18_03_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28219371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28219372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28219373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28219374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28219375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28219376, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28219377, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28219378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28219379, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28219380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28219381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28219382, '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 = 28220731 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': 4004817, 'mtr_portfolio_id': 28220731, 'created_at': datetime.datetime(2025, 11, 5, 18, 17, 29), 'result': '0.052413870182962875', 'result_long': None, 'result_double': None}] Qualite : 0.052413870182962875 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28220731 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28220731_05-11-2025_18_17_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28220731 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_P28220731_05-11-2025_18_17_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28220738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28220739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28220740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28220741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28220742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28220743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28220744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28220745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28220746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28220747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28220748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28220749, 'pht': 3726}}" where mtr_portfolio_id = 28220731 and dashboard_run_id = 2526830 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`=28220731 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862403, 0.052413870182962875, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28220731_05-11-2025_18_17_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28220738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28220739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28220740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28220741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28220742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28220743, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28220744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28220745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28220746, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28220747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28220748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28220749, '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 = 28221367 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': 4004875, 'mtr_portfolio_id': 28221367, 'created_at': datetime.datetime(2025, 11, 5, 18, 33, 29), 'result': '0.07072059359032094', 'result_long': None, 'result_double': None}] Qualite : 0.07072059359032094 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28221367 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28221367_05-11-2025_18_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28221367 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_P28221367_05-11-2025_18_33_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28221371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28221372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28221373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28221374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28221375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28221376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28221377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28221378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28221379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28221380, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28221381, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28221382, 'pht': 3726}}" where mtr_portfolio_id = 28221367 and dashboard_run_id = 2526830 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`=28221367 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862404, 0.07072059359032094, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28221367_05-11-2025_18_33_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28221371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28221372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28221373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28221374, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28221375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28221376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28221377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28221378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28221379, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28221380, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28221381, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28221382, '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 = 28221948 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': 4004953, 'mtr_portfolio_id': 28221948, 'created_at': datetime.datetime(2025, 11, 5, 18, 48, 58), 'result': '0.05482523331589983', 'result_long': None, 'result_double': None}] Qualite : 0.05482523331589983 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28221948 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28221948_05-11-2025_18_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28221948 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_P28221948_05-11-2025_18_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28221976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28221977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28221978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28221979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28221980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28221981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28221982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28221983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28221984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28221985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28221986, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28221987, 'pht': 3726}}" where mtr_portfolio_id = 28221948 and dashboard_run_id = 2526830 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`=28221948 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862405, 0.05482523331589983, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28221948_05-11-2025_18_48_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28221976, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28221977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28221978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28221979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28221980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28221981, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28221982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28221983, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28221984, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28221985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28221986, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28221987, '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 = 28222580 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': 4005043, 'mtr_portfolio_id': 28222580, 'created_at': datetime.datetime(2025, 11, 5, 19, 2, 58), 'result': '0.045412151955834264', 'result_long': None, 'result_double': None}] Qualite : 0.045412151955834264 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28222580 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28222580_05-11-2025_19_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28222580 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_P28222580_05-11-2025_19_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28222609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28222610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28222611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28222612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28222613, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28222614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28222615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28222616, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28222617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28222618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28222619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28222620, 'pht': 3726}}" where mtr_portfolio_id = 28222580 and dashboard_run_id = 2526830 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`=28222580 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862406, 0.045412151955834264, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28222580_05-11-2025_19_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28222609, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28222610, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28222611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28222612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28222613, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28222614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28222615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28222616, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28222617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28222618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28222619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28222620, '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 = 28223036 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': 4005115, 'mtr_portfolio_id': 28223036, 'created_at': datetime.datetime(2025, 11, 5, 19, 14, 58), 'result': '0.04834750069751047', 'result_long': None, 'result_double': None}] Qualite : 0.04834750069751047 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28223036 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28223036_05-11-2025_19_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28223036 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_P28223036_05-11-2025_19_14_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28223054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28223055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28223056, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28223057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28223058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28223059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28223060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28223061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28223062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28223063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28223064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28223065, 'pht': 3726}}" where mtr_portfolio_id = 28223036 and dashboard_run_id = 2526830 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`=28223036 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16862407, 0.04834750069751047, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28223036_05-11-2025_19_14_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28223054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28223055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28223056, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28223057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28223058, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28223059, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28223060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28223061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28223062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28223063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28223064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28223065, '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 (28186038,28186394,28187294,28188183,28189317,28189664,28189717,28190150,28190820,28191207,28191692,28192332,28193155,28193965,28194584,28195092,28195794,28196359,28197077,28199380,28200141,28200911,28201755,28202496,28203318,28204048,28204978,28205788,28206586,28207204,28209787,28210210,28210637,28211264,28211794,28212443,28212998,28213738,28214278,28214922,28215549,28216421,28216994,28217620,28218375,28219362,28220731,28221367,28221948,28222580,28223036) result : ((1392617853,), (1392617859,), (1392617861,), (1392618834,), (1392619427,), (1392619646,), (1392619652,), (1392619664,), (1392619771,), (1392619776,), (1392619794,), (1392622575,), (1392624099,), (1392624159,), (1392624315,), (1392624846,), (1392625280,), (1392625705,), (1392625734,), (1392626088,), (1392626189,), (1392626193,), (1392626304,), (1392633920,), (1392636440,), (1392637712,), (1392637787,), (1392638973,), (1392639353,), (1392639501,), (1392639504,), (1392639569,), (1392639809,), (1392646293,), (1392646343,), (1392646492,), (1392646587,), (1392646612,), (1392646668,), (1392646671,), (1392646674,), (1392646746,), (1392656752,), (1392656757,), (1392656803,), (1392656829,), (1392656831,), (1392656855,), (1392656858,), (1392656860,), (1392656957,), (1392656964,), (1392656970,), (1392656978,), (1392657044,), (1392657051,), (1392657054,), (1392657057,), (1392657073,), (1392657076,), (1392657079,), (1392657114,), (1392657116,), (1392657118,), (1392657121,), (1392657140,), (1392657143,), (1392657144,), (1392657145,), (1392657249,), (1392657251,), (1392657252,), (1392657255,), (1392657258,), (1392657262,), (1392657280,), (1392657284,), (1392657286,), (1392657288,), (1392657339,), (1392657343,), (1392657919,), (1392657614,), (1392657918,), (1392657958,), (1392657959,), (1392657963,), (1392657965,), (1392657967,), (1392657970,), (1392657999,), (1392657995,), (1392657997,), (1392658020,), (1392658022,), (1392658023,), (1392658025,), (1392658122,), (1392658124,), (1392658126,), (1392658130,), (1392658134,), (1392658158,), (1392658160,), (1392658162,), (1392658165,), (1392658169,), (1392658171,), (1392658205,), (1392658208,), (1392658211,), (1392658214,), (1392658236,), (1392658239,), (1392658241,), (1392658243,), (1392658246,), (1392658276,), (1392658281,), (1392658285,), (1392658288,), (1392658335,), (1392658336,), (1392658337,), (1392658339,), (1392658341,), (1392658376,), (1392658382,), (1392658385,), (1392658388,), (1392658391,), (1392658393,), (1392658405,), (1392658407,), (1392658408,), (1392658409,), (1392658418,), (1392658421,), (1392658425,), (1392658427,), (1392658430,), (1392658456,), (1392658458,), (1392658460,), (1392658462,), (1392658466,), (1392658470,), (1392658483,), (1392658485,), (1392658486,), (1392658488,), (1392658624,), (1392658627,), (1392658630,), (1392658632,), (1392658634,), (1392658665,), (1392658671,), (1392659587,), (1392659409,), (1392659453,), (1392659501,), (1392659543,), (1392660113,), (1392660121,), (1392660123,), (1392660125,), (1392660128,), (1392660191,), (1392660226,), (1392660262,), (1392660294,), (1392660681,), (1392660718,), (1392660768,), (1392660799,), (1392660832,), (1392661208,), (1392661210,), (1392661213,), (1392661218,), (1392661224,), (1392661231,), (1392661441,), (1392661458,), (1392661503,), (1392661505,), (1392661656,), (1392661658,), (1392661659,), (1392661660,), (1392661662,), (1392661663,), (1392661701,), (1392661702,), (1392661703,), (1392661705,), (1392661721,), (1392661723,), (1392661725,), (1392661766,), (1392661772,), (1392661779,), (1392661789,), (1392661792,), (1392661795,), (1392661848,), (1392661851,), (1392661854,), (1392661855,), (1392661858,), (1392661922,), (1392661925,), (1392661926,), (1392661929,), (1392661933,), (1392661936,), (1392661949,), (1392661952,), (1392661954,), (1392661958,), (1392661962,), (1392662015,), (1392662002,), (1392662006,), (1392662010,), (1392662033,), (1392662035,), (1392662037,), (1392662139,), (1392662144,), (1392662176,), (1392662178,), (1392662255,), (1392662257,), (1392662258,), (1392662308,), (1392662313,), (1392662392,), (1392662403,), (1392662405,), (1392662408,), (1392662414,), (1392662416,), (1392662433,), (1392662437,), (1392662441,), (1392662445,), (1392662449,), (1392662451,), (1392662456,), (1392662457,), (1392662459,), (1392662468,), (1392662470,), (1392662472,), (1392662475,), (1392662482,), (1392662485,), (1392662510,), (1392662512,), (1392662513,), (1392662514,), (1392662515,), (1392662518,), (1392662537,), (1392662539,), (1392662541,), (1392662615,), (1392662618,), (1392662622,), (1392662627,), (1392662631,), (1392662633,), (1392662646,), (1392662648,), (1392662649,), (1392662650,), (1392662687,), (1392662689,), (1392662692,), (1392662694,), (1392662753,), (1392662756,), (1392662759,), (1392662771,), (1392662774,), (1392662749,), (1392662750,), (1392662751,), (1392662795,), (1392662798,), (1392662800,), (1392662802,), (1392662806,), (1392662878,), (1392662887,), (1392662889,), (1392662892,), (1392662895,), (1392662899,), (1392662908,), (1392662909,), (1392662910,), (1392662916,), (1392662919,), (1392662921,), (1392662943,), (1392662944,), (1392662945,), (1392662947,), (1392662980,), (1392662982,), (1392662984,), (1392662986,), (1392663012,), (1392663014,), (1392663016,), (1392663020,), (1392663032,), (1392663043,), (1392663097,), (1392663104,), (1392663112,), (1392663126,), (1392663131,), (1392663162,), (1392663165,), (1392663180,), (1392663186,), (1392663189,), (1392663222,), (1392663224,), (1392663225,), (1392663227,), (1392663229,), (1392663252,), (1392663254,), (1392663280,), (1392663282,), (1392663284,), (1392663287,), (1392663291,), (1392663360,), (1392663363,), (1392663366,), (1392663390,), (1392663395,), (1392663400,), (1392663444,), (1392663447,), (1392663450,), (1392663507,), (1392663498,), (1392663500,), (1392663502,), (1392663505,), (1392663539,), (1392663543,), (1392663545,), (1392663549,), (1392663618,), (1392663620,), (1392663622,), (1392663650,), (1392663653,), (1392663658,), (1392663664,), (1392663688,), (1392663691,), (1392663719,), (1392663721,), (1392663723,), (1392663725,), (1392663759,), (1392664014,), (1392664017,), (1392664134,), (1392664137,), (1392664228,), (1392664263,), (1392664297,), (1392664603,), (1392664567,), (1392665032,), (1392665063,), (1392665098,), (1392665129,), (1392665168,), (1392665462,), (1392665469,), (1392665475,), (1392665487,), (1392665522,), (1392665553,), (1392665690,), (1392665692,), (1392665714,), (1392665716,), (1392665719,), (1392665723,), (1392665761,), (1392665774,), (1392665776,), (1392665778,), (1392665780,), (1392666020,), (1392666052,), (1392666597,), (1392666636,), (1392666669,), (1392666701,), (1392667065,), (1392667078,), (1392667081,), (1392667084,), (1392667111,), (1392667113,), (1392667124,), (1392667154,), (1392667187,), (1392667234,), (1392667564,), (1392667586,), (1392667605,), (1392667607,), (1392667618,), (1392667655,), (1392667794,), (1392667796,), (1392667805,), (1392667946,), (1392667950,), (1392667954,), (1392667957,), (1392667961,), (1392668003,), (1392668026,), (1392668057,), (1392668067,), (1392668070,), (1392668228,), (1392668245,), (1392668249,), (1392668252,), (1392668287,), (1392668284,), (1392668285,), (1392668286,), (1392668338,), (1392668342,), (1392668345,), (1392668350,), (1392668815,), (1392668951,), (1392669167,), (1392669168,), (1392669245,), (1392669248,), (1392669250,), (1392669253,), (1392669291,), (1392669294,), (1392669331,), (1392669335,), (1392669337,), (1392669347,), (1392669364,), (1392669626,), (1392669660,), (1392669661,), (1392669694,), (1392669704,), (1392669715,), (1392669719,), (1392669723,), (1392669925,), (1392669928,), (1392669930,), (1392669933,), (1392669946,), (1392669952,), (1392669851,), (1392669904,), (1392670012,), (1392670183,), (1392670186,), (1392670277,), (1392670423,), (1392670556,), (1392670560,), (1392670677,), (1392670680,), (1392670796,), (1392670797,), (1392670800,), (1392670831,), (1392670834,), (1392670843,), (1392671004,), (1392671035,), (1392671039,), (1392671041,), (1392671066,), (1392671068,), (1392671070,), (1392671080,), (1392671600,), (1392671602,), (1392671667,), (1392671748,), (1392671751,), (1392671978,), (1392671992,), (1392672165,), (1392672166,), (1392672168,), (1392672170,), (1392672196,), (1392672199,), (1392672202,), (1392672205,), (1392672210,), (1392672214,), (1392672236,), (1392672238,), (1392672241,), (1392672278,), (1392672280,), (1392672284,), (1392672287,), (1392672291,), (1392672334,), (1392672337,), (1392672372,), (1392672406,), (1392672443,), (1392672623,), (1392672681,), (1392672695,), (1392672704,), (1392672741,), (1392672743,), (1392672746,), (1392672777,), (1392672779,), (1392672781,), (1392672784,), (1392672814,), (1392672818,), (1392672822,), (1392673003,), (1392673008,), (1392673012,), (1392673167,), (1392673171,), (1392673302,), (1392673321,), (1392673323,), (1392673326,), (1392673329,), (1392673284,), (1392673292,), (1392673299,), (1392673348,), (1392673351,), (1392673353,), (1392673360,), (1392673367,), (1392673369,), (1392673482,), (1392673496,), (1392673500,), (1392673503,), (1392673538,), (1392673541,), (1392673544,), (1392673547,), (1392673552,), (1392673557,), (1392673581,), (1392673584,), (1392673586,), (1392673588,), (1392673591,), (1392673890,), (1392673922,), (1392673961,), (1392673999,), (1392674422,), (1392674455,), (1392674473,), (1392674478,), (1392674481,), (1392674490,), (1392674857,), (1392674893,), (1392674962,), (1392675034,), (1392675113,), (1392675180,), (1392675506,), (1392675510,), (1392675533,), (1392676427,), (1392676431,), (1392676446,), (1392676458,), (1392676593,), (1392676596,), (1392676605,), (1392676611,), (1392676692,), (1392676697,), (1392676702,), (1392676708,), (1392676762,), (1392676750,), (1392676757,), (1392676759,), (1392676896,), (1392676902,), (1392676909,), (1392676918,), (1392676924,), (1392676927,), (1392676955,), (1392676956,), (1392676957,), (1392676958,), (1392676961,), (1392676964,), (1392677009,), (1392677014,), (1392677036,), (1392677139,), (1392677180,), (1392677222,), (1392677255,), (1392677290,), (1392677420,), (1392677428,), (1392677429,), (1392677433,), (1392677706,), (1392677709,), (1392677712,), (1392677716,), (1392677721,), (1392677726,), (1392677763,), (1392677767,), (1392677770,), (1392677773,), (1392677778,), (1392677784,), (1392677801,), (1392677804,), (1392677806,), (1392678162,), (1392678163,), (1392678164,), (1392678167,), (1392678213,), (1392678219,), (1392678221,), (1392678223,), (1392678227,), (1392678299,), (1392678301,), (1392678302,), (1392678304,), (1392678335,), (1392678336,), (1392678337,), (1392678344,), (1392678488,), (1392678491,), (1392678494,), (1392678496,), (1392678498,), (1392678501,), (1392678555,), (1392678557,), (1392678571,), (1392678573,), (1392678576,), (1392678584,), (1392678588,), (1392678547,), (1392678549,), (1392678550,), (1392678552,), (1392678609,), (1392678624,), (1392678636,), (1392678640,), (1392678642,), (1392678652,), (1392678683,), (1392678685,), (1392678687,), (1392678690,), (1392678729,), (1392678732,), (1392678735,), (1392678736,), (1392678738,), (1392678776,), (1392678779,), (1392678781,), (1392678783,), (1392678786,), (1392678788,), (1392678812,), (1392678824,), (1392678839,), (1392678850,), (1392678858,), (1392678973,), (1392678977,), (1392679001,), (1392679013,), (1392679015,), (1392679106,), (1392679125,), (1392679176,), (1392679213,), (1392679271,), (1392679308,), (1392679527,), (1392679530,), (1392679533,), (1392679611,), (1392679614,), (1392679618,), (1392679621,), (1392679625,), (1392679629,), (1392679727,), (1392679744,), (1392679755,), (1392679769,), (1392679797,), (1392679806,), (1392679811,), (1392679814,), (1392679899,), (1392679903,), (1392679920,), (1392679931,), (1392679954,), (1392680114,), (1392680146,), (1392680202,), (1392680252,), (1392680256,), (1392680363,), (1392680402,), (1392680422,), (1392680559,), (1392680546,), (1392680552,), (1392680556,), (1392680623,), (1392680627,), (1392680628,), (1392680630,), (1392680633,), (1392680817,), (1392680856,), (1392680891,), (1392681042,), (1392681044,), (1392681047,), (1392681049,), (1392681054,), (1392681058,), (1392681174,), (1392681196,), (1392681198,), (1392681201,), (1392681204,), (1392681236,), (1392681237,), (1392681239,), (1392681241,), (1392681247,), (1392681251,), (1392681307,), (1392681328,), (1392681332,), (1392681504,), (1392681543,), (1392681591,), (1392681621,), (1392681655,), (1392681691,), (1392681814,), (1392681828,), (1392681836,), (1392681843,), (1392681861,), (1392682003,), (1392682010,), (1392682012,), (1392682016,), (1392682052,), (1392682056,), (1392682059,), (1392682061,), (1392682065,), (1392682086,), (1392682187,), (1392682190,), (1392682192,), (1392682374,), (1392682408,), (1392682437,), (1392682458,), (1392682491,), (1392682525,), (1392682827,), (1392682884,), (1392682934,), (1392682980,), (1392683014,), (1392683047,), (1392683234,), (1392683337,), (1392683407,), (1392683462,), (1392683962,), (1392683994,), (1392684020,), (1392684055,), (1392693860,), (1392694241,), (1392694269,), (1392694419,), (1392694421,), (1392694423,), (1392694433,), (1392694438,), (1392694774,), (1392694795,), (1392694837,), (1392695017,), (1392695043,), (1392695066,), (1392695980,), (1392696059,), (1392696121,), (1392696170,), (1392696205,), (1392696397,), (1392696398,), (1392696399,), (1392696403,), (1392696405,), (1392696408,), (1392696552,), (1392696594,), (1392696645,), (1392696704,), (1392696928,), (1392696934,), (1392696970,), (1392697009,), (1392697066,), (1392697223,), (1392697226,), (1392697229,), (1392697238,), (1392697788,), (1392697790,), (1392697791,), (1392697793,), (1392697796,), (1392697902,), (1392697904,), (1392697933,), (1392697943,), (1392697947,), (1392698005,), (1392698008,), (1392698019,), (1392698075,), (1392698077,), (1392698079,), (1392698081,), (1392698100,), (1392698108,), (1392698126,), (1392698128,), (1392698129,), (1392698137,), (1392698142,), (1392698161,), (1392698386,), (1392698389,), (1392698391,), (1392698807,), (1392698768,), (1392698789,), (1392698932,), (1392698934,), (1392698937,), (1392698998,), (1392699146,), (1392699188,), (1392699680,), (1392699681,), (1392699683,), (1392699911,), (1392699942,), (1392699982,), (1392700015,), (1392700048,), (1392700087,), (1392700719,), (1392700753,), (1392701025,), (1392701087,), (1392701125,), (1392701158,), (1392701387,), (1392701422,), (1392701441,), (1392701872,), (1392701886,), (1392701983,), (1392701986,), (1392701988,), (1392701991,), (1392701994,), (1392701997,), (1392702073,), (1392702078,), (1392702081,), (1392702243,), (1392702232,), (1392702234,), (1392702236,), (1392702239,), (1392702972,), (1392703113,), (1392703159,), (1392703193,), (1392703226,), (1392703241,), (1392703244,), (1392703254,), (1392703256,), (1392703258,), (1392703260,), (1392703395,), (1392703431,), (1392703448,), (1392703745,), (1392703805,), (1392703838,), (1392703887,), (1392703934,), (1392704417,), (1392704454,), (1392704488,), (1392704523,), (1392704562,), (1392704935,), (1392704938,), (1392704945,), (1392705184,), (1392705249,), (1392705319,), (1392705369,), (1392705406,), (1392705419,), (1392705689,), (1392705692,), (1392705699,), (1392705702,), (1392705704,), (1392705709,), (1392705728,), (1392705734,), (1392705736,), (1392705738,), (1392705739,), (1392705745,), (1392705776,), (1392705812,), (1392705848,), (1392705851,), (1392705856,), (1392705859,), (1392705861,), (1392705863,), (1392705865,), (1392705870,), (1392705874,), (1392705933,), (1392705934,), (1392705935,), (1392705936,), (1392705939,), (1392705942,), (1392706418,), (1392706419,), (1392706448,), (1392706923,), (1392706979,), (1392707031,), (1392707095,), (1392707412,), (1392707433,), (1392707436,), (1392707448,), (1392707594,), (1392707588,), (1392707590,), (1392707592,), (1392707982,), (1392708024,), (1392708027,), (1392708234,), (1392708237,), (1392708238,), (1392708242,), (1392708248,), (1392708253,), (1392708336,), (1392708358,), (1392708397,), (1392708403,), (1392708428,), (1392708429,), (1392708432,), (1392708438,), (1392708464,), (1392708505,), (1392708507,), (1392708518,), (1392708524,), (1392708567,), (1392708571,), (1392708575,), (1392708579,), (1392708789,), (1392708836,), (1392708906,), (1392708969,), (1392709194,), (1392709196,), (1392709198,), (1392709201,), (1392709230,), (1392709234,), (1392709238,), (1392709242,), (1392709246,), (1392709328,), (1392709371,), (1392709386,), (1392709390,), (1392709394,), (1392709630,), (1392709651,), (1392710100,), (1392710103,), (1392710149,), (1392710188,), (1392710303,), (1392710308,), (1392710312,), (1392710314,), (1392710316,), (1392710417,), (1392710598,), (1392710639,), (1392710642,), (1392710644,), (1392710648,), (1392710866,), (1392710871,), (1392710874,), (1392710902,), (1392710911,), (1392710943,), (1392710830,), (1392710857,), (1392710861,), (1392710891,), (1392710894,), (1392710895,), (1392710900,), (1392710971,), (1392710974,), (1392710976,), (1392711000,), (1392711035,), (1392711068,), (1392711360,), (1392711365,), (1392711367,), (1392711370,), (1392711579,), (1392711582,), (1392711605,), (1392711647,), (1392711832,), (1392711868,), (1392712144,), (1392712187,), (1392712206,), (1392712212,), (1392712389,), (1392712392,), (1392712397,), (1392712417,), (1392712447,), (1392712481,), (1392712626,), (1392712628,), (1392712634,), (1392712697,), (1392712732,), (1392712767,), (1392712805,), (1392712843,), (1392712880,), (1392712987,), (1392712992,), (1392713002,), (1392713006,), (1392713012,), (1392713019,), (1392713024,), (1392713095,), (1392713107,), (1392713110,), (1392713124,), (1392713136,), (1392713139,), (1392713181,), (1392713189,), (1392713216,), (1392713255,), (1392713625,), (1392713652,), (1392713671,), (1392713687,), (1392713693,), (1392713749,), (1392713751,), (1392713762,), (1392714423,), (1392714327,), (1392714365,), (1392714993,), (1392715055,), (1392715462,), (1392715465,), (1392715469,), (1392715474,), (1392715646,), (1392715679,), (1392715710,), (1392715741,), (1392715776,), (1392717036,), (1392717101,), (1392717148,), (1392717178,), (1392717322,), (1392717356,), (1392717389,), (1392717425,), (1392717566,), (1392717568,), (1392717738,), (1392717781,), (1392717836,), (1392717843,), (1392717871,), (1392717991,), (1392717993,), (1392717994,), (1392718023,), (1392718025,), (1392718028,), (1392718114,), (1392718148,), (1392718163,), (1392718166,), (1392718196,), (1392718206,), (1392718321,), (1392718322,), (1392718443,), (1392718448,), (1392718453,), (1392718456,), (1392718461,), (1392718486,), (1392718490,), (1392718495,), (1392718500,), (1392718564,), (1392718557,), (1392718560,), (1392718616,), (1392718652,), (1392718685,), (1392718720,), (1392718757,), (1392719435,), (1392719498,), (1392719568,), (1392719635,), (1392719703,), (1392720327,), (1392720364,), (1392720419,), (1392720483,), (1392720519,), (1392721275,), (1392721359,), (1392721449,), (1392722359,), (1392722395,), (1392722431,), (1392722471,), (1392722965,), (1392723072,), (1392723086,), (1392723090,), (1392723092,), (1392723128,), (1392723141,), (1392723176,), (1392723441,), (1392723443,), (1392723446,), (1392723449,), (1392723481,), (1392723483,), (1392723485,), (1392723487,), (1392723490,), (1392723494,), (1392723596,), (1392723598,), (1392723599,), (1392723721,), (1392723730,), (1392723737,), (1392723739,), (1392723741,), (1392723743,), (1392723772,), (1392723774,), (1392723776,), (1392723778,), (1392723782,), (1392723785,), (1392723843,), (1392723888,), (1392723933,), (1392723975,), (1392724137,), (1392724140,), (1392724143,), (1392724145,), (1392724223,), (1392724207,), (1392724209,), (1392724212,), (1392724215,), (1392724219,), (1392724260,), (1392724262,), (1392724294,), (1392724329,), (1392724365,), (1392724630,), (1392724685,), (1392724947,), (1392725130,), (1392725132,), (1392725133,), (1392725134,), (1392725145,), (1392725188,), (1392725679,), (1392725688,), (1392725694,), (1392725716,), (1392725755,), (1392725781,), (1392725859,), (1392725862,), (1392725866,), (1392725871,), (1392726296,), (1392726339,), (1392726393,), (1392726418,), (1392726427,), (1392726705,), (1392726711,), (1392726764,), (1392726804,), (1392726820,), (1392726824,), (1392726958,), (1392726968,), (1392726971,), (1392726974,), (1392727056,), (1392727091,), (1392727124,), (1392727148,), (1392727181,), (1392727329,), (1392727332,), (1392727335,), (1392727339,), (1392727345,), (1392727422,), (1392727423,), (1392727613,), (1392727627,), (1392727631,), (1392727661,), (1392727665,), (1392727675,), (1392727815,), (1392727847,), (1392727878,), (1392728129,), (1392728126,), (1392728127,), (1392728128,), (1392728425,), (1392728462,), (1392728507,), (1392728536,), (1392728725,), (1392728741,), (1392728744,), (1392728746,), (1392728773,), (1392728775,), (1392728776,), (1392728779,), (1392728848,), (1392728887,), (1392728906,), (1392729063,), (1392729066,), (1392729068,), (1392729070,), (1392729104,), (1392729105,), (1392729106,), (1392729108,), (1392729111,), (1392729169,), (1392729172,), (1392729177,), (1392729180,), (1392729184,), (1392729186,), (1392729381,), (1392729383,), (1392729385,), (1392729391,), (1392729456,), (1392729457,), (1392729459,), (1392729478,), (1392729482,), (1392729484,), (1392729587,), (1392729602,), (1392729604,), (1392729606,), (1392729610,), (1392729614,), (1392729623,), (1392729625,), (1392729630,), (1392729636,), (1392729638,), (1392729641,), (1392729647,), (1392729652,), (1392729657,), (1392729734,), (1392729735,), (1392729736,), (1392729964,), (1392730013,), (1392730034,), (1392730037,), (1392730065,), (1392730080,), (1392730293,), (1392730312,), (1392730354,), (1392730429,), (1392730420,), (1392730423,), (1392730426,), (1392730492,), (1392730495,), (1392730497,), (1392730564,), (1392730567,), (1392730569,), (1392730576,), (1392730580,), (1392730583,), (1392730631,), (1392730633,), (1392730634,), (1392730637,), (1392730641,), (1392730677,), (1392730691,), (1392730693,), (1392730696,), (1392730700,), (1392730943,), (1392730979,), (1392730989,), (1392730991,), (1392731001,), (1392731004,), (1392731031,), (1392731032,), (1392731044,), (1392731056,), (1392731167,), (1392731206,), (1392731240,), (1392731274,), (1392731309,), (1392731341,), (1392731413,), (1392731427,), (1392731428,), (1392731430,), (1392731518,), (1392731521,), (1392731524,), (1392731526,), (1392731529,), (1392731550,), (1392731552,), (1392731555,), (1392731558,), (1392731566,), (1392731599,), (1392731602,), (1392731604,), (1392731605,), (1392731693,), (1392731706,), (1392731708,), (1392731711,), (1392731715,), (1392731718,), (1392731750,), (1392731756,), (1392731761,), (1392731766,), (1392732222,), (1392732125,), (1392732161,), (1392732192,), (1392732650,), (1392732687,), (1392732692,), (1392733279,), (1392733418,), (1392733545,), (1392733677,), (1392734702,), (1392734770,), (1392734833,), (1392734900,), (1392734960,), (1392735050,), (1392735530,), (1392735693,), (1392735761,), (1392735831,), (1392735901,), (1392735969,), (1392736324,), (1392736343,), (1392736387,), (1392736395,), (1392736447,), (1392736619,), (1392736638,), (1392736697,), (1392736699,), (1392736701,), (1392736703,), (1392736706,), (1392736873,), (1392736910,), (1392749273,), (1392749271,), (1392749286,), (1392749288,), (1392749332,), (1392749353,), (1392749451,), (1392749454,), (1392749517,), (1392749519,), (1392749521,), (1392749524,), (1392749543,), (1392749599,), (1392749600,), (1392749601,), (1392749619,), (1392749622,), (1392749625,), (1392749628,), (1392749674,), (1392749675,), (1392749727,), (1392749732,), (1392749766,), (1392749950,), (1392749955,), (1392749958,), (1392749962,), (1392749965,), (1392750108,), (1392750095,), (1392750098,), (1392750101,), (1392750103,), (1392750106,), (1392750127,), (1392750130,), (1392750132,), (1392750135,), (1392750139,), (1392750197,), (1392750202,), (1392750203,), (1392750205,), (1392750206,), (1392750220,), (1392750221,), (1392750222,), (1392750223,), (1392750225,), (1392750226,), (1392750242,), (1392750244,), (1392750246,), (1392750404,), (1392750420,), (1392750426,), (1392750593,), (1392750594,), (1392750595,), (1392750596,), (1392750613,), (1392750784,), (1392750786,), (1392750789,), (1392750845,), (1392750847,), (1392750849,), (1392750884,), (1392750888,), (1392750891,), (1392751045,), (1392751046,), (1392751047,), (1392751067,), (1392751623,), (1392751660,), (1392751695,), (1392751729,), (1392751762,), (1392751784,), (1392752042,), (1392751911,), (1392751944,), (1392751977,), (1392752010,), (1392752194,), (1392752229,), (1392752261,), (1392752299,), (1392752331,), (1392752753,), (1392752786,), (1392752818,), (1392752851,), (1392753077,), (1392753079,), (1392753081,), (1392753084,), (1392753088,), (1392753406,), (1392753440,), (1392753454,), (1392753457,), (1392753485,), (1392753856,), (1392753893,), (1392753928,), (1392753963,), (1392754390,), (1392754424,), (1392754461,), (1392754497,), (1392754533,), (1392754867,), (1392754899,), (1392754931,), (1392754964,), (1392754999,), (1392755067,), (1392755614,), (1392755649,), (1392755661,), (1392755663,), (1392755879,), (1392755909,), (1392755940,), (1392755973,), (1392756012,), (1392756040,), (1392756176,), (1392756192,), (1392756194,), (1392756196,), (1392756201,), (1392756204,), (1392756234,), (1392756237,), (1392756239,), (1392756242,), (1392756350,), (1392756353,), (1392756354,), (1392756355,), (1392756359,), (1392756434,), (1392756437,), (1392756439,), (1392756441,), (1392756446,), (1392756472,), (1392756474,), (1392756476,), (1392756478,), (1392756482,), (1392756585,), (1392756577,), (1392756580,), (1392756582,), (1392756645,), (1392756647,), (1392756649,), (1392756651,), (1392756655,), (1392756672,), (1392756914,), (1392756916,), (1392756918,), (1392756920,), (1392757078,), (1392757118,), (1392757147,), (1392757149,), (1392757153,), (1392757196,), (1392757198,), (1392757200,), (1392758026,), (1392758020,), (1392758022,), (1392758024,), (1392758051,), (1392758054,), (1392758056,), (1392758291,), (1392758300,), (1392758304,), (1392758393,), (1392758395,), (1392758398,), (1392758401,), (1392758406,), (1392758431,), (1392758435,), (1392758439,), (1392758442,), (1392758500,), (1392758503,), (1392758506,), (1392758610,), (1392758614,), (1392758618,), (1392758620,), (1392758628,), (1392758633,), (1392758674,), (1392758678,), (1392758703,), (1392758800,), (1392758803,), (1392758805,), (1392758808,), (1392758844,), (1392758849,), (1392758852,), (1392758857,), (1392758966,), (1392758975,), (1392758978,), (1392758982,), (1392759055,), (1392759057,), (1392759058,), (1392759061,), (1392759070,), (1392759255,), (1392759264,), (1392759285,), (1392759295,), (1392759326,), (1392759339,), (1392759401,), (1392759515,), (1392759504,), (1392759506,), (1392759508,), (1392759510,), (1392759599,), (1392759600,), (1392759601,), (1392759847,), (1392759857,), (1392759865,), (1392759888,), (1392759891,), (1392759893,), (1392759895,), (1392759899,), (1392759947,), (1392759948,), (1392759949,), (1392759951,), (1392759956,), (1392760252,), (1392760257,), (1392760261,), (1392760267,), (1392760271,), (1392760446,), (1392760448,), (1392760449,), (1392760451,), (1392760455,), (1392760457,), (1392760538,), (1392760551,), (1392760555,), (1392760559,), (1392760639,), (1392760643,), (1392760660,), (1392760662,), (1392760667,), (1392760673,), (1392760918,), (1392760926,), (1392760927,), (1392760928,), (1392760939,), (1392760961,), (1392761003,), (1392761111,), (1392761122,), (1392761139,), (1392761417,), (1392761460,), (1392761512,), (1392761555,), (1392761596,), (1392761613,), (1392761732,), (1392761737,), (1392761740,), (1392761744,), (1392761746,), (1392761749,), (1392761955,), (1392761961,), (1392761965,), (1392761981,), (1392762159,), (1392762161,), (1392762225,), (1392762226,), (1392762273,), (1392762280,), (1392762305,), (1392762312,), (1392763049,), (1392763227,), (1392763582,), (1392763663,), (1392763740,), (1392762815,), (1392762848,), (1392762911,), (1392762976,), (1392763424,), (1392763464,), (1392763509,), (1392765479,), (1392765522,), (1392765561,), (1392765616,), (1392765682,), (1392765720,), (1392766041,), (1392766046,), (1392766050,), (1392766053,), (1392766064,), (1392766132,), (1392766481,), (1392766518,), (1392766549,), (1392766578,), (1392766821,), (1392766839,), (1392766874,), (1392766890,), (1392766895,), (1392767152,), (1392767155,), (1392767157,), (1392767160,), (1392767164,), (1392767167,), (1392767203,), (1392767206,), (1392767209,), (1392767215,), (1392767241,), (1392767244,), (1392767247,), (1392767251,), (1392767256,), (1392767312,), (1392767314,), (1392767316,), (1392767318,), (1392767321,), (1392767426,), (1392767428,), (1392767430,), (1392767551,), (1392767555,), (1392767559,), (1392767566,), (1392767572,), (1392767576,), (1392767622,), (1392767628,), (1392767630,), (1392767631,), (1392767632,), (1392767635,), (1392767664,), (1392767665,), (1392767668,), (1392767671,), (1392767814,), (1392767845,), (1392767853,), (1392767859,), (1392767888,), (1392767747,), (1392767778,), (1392767906,), (1392767908,), (1392767917,), (1392767927,), (1392767932,), (1392768002,), (1392768005,), (1392768008,), (1392768011,), (1392768014,), (1392768019,), (1392768052,), (1392768054,), (1392768057,), (1392768060,), (1392768066,), (1392768095,), (1392768098,), (1392768101,), (1392768104,), (1392768108,), (1392768113,), (1392768140,), (1392768143,), (1392768144,), (1392768145,), (1392768148,), (1392768150,), (1392768179,), (1392768187,), (1392768191,), (1392768193,), (1392768272,), (1392768275,), (1392768277,), (1392768280,), (1392768284,), (1392768316,), (1392768318,), (1392768319,), (1392768320,), (1392768357,), (1392768359,), (1392768361,), (1392768372,), (1392768378,), (1392768449,), (1392768453,), (1392768457,), (1392768461,), (1392768465,), (1392768668,), (1392768678,), (1392768680,), (1392768683,), (1392768884,), (1392768910,), (1392768913,), (1392768917,), (1392768922,), (1392768926,), (1392768994,), (1392768998,), (1392769001,), (1392769006,), (1392769011,), (1392769048,), (1392769050,), (1392769051,), (1392769053,), (1392769057,), (1392769158,), (1392769196,), (1392769198,), (1392769201,), (1392769211,), (1392769215,), (1392769096,), (1392769100,), (1392769105,), (1392769119,), (1392769123,), (1392769234,), (1392769241,), (1392769254,), (1392769330,), (1392769338,), (1392769340,), (1392769341,), (1392769343,), (1392769346,), (1392769386,), (1392769388,), (1392769391,), (1392769394,), (1392769414,), (1392769417,), (1392769420,), (1392769424,), (1392769426,), (1392769525,), (1392769530,), (1392769534,), (1392769552,), (1392769560,), (1392769565,), (1392769621,), (1392769630,), (1392769642,), (1392769697,), (1392769699,), (1392769702,), (1392769704,), (1392769800,), (1392769810,), (1392769817,), (1392769822,), (1392769832,), (1392769836,), (1392769861,), (1392769870,), (1392769901,), (1392769905,), (1392769963,), (1392769970,), (1392770042,), (1392770043,), (1392770044,), (1392770047,), (1392770052,), (1392770267,), (1392770277,), (1392770283,), (1392770468,), (1392770476,), (1392770482,), (1392770489,), (1392770493,), (1392770540,), (1392770528,), (1392770530,), (1392770531,), (1392770618,), (1392770652,), (1392770685,), (1392770716,), (1392770749,), (1392770798,), (1392770912,), (1392770942,), (1392770974,), (1392771006,), (1392771108,), (1392771111,), (1392771114,), (1392771117,), (1392771122,), (1392771153,), (1392771155,), (1392771156,), (1392771158,), (1392771161,), (1392771163,), (1392771213,), (1392771215,), (1392771217,), (1392771270,), (1392771276,), (1392771281,), (1392771286,), (1392771291,), (1392771296,), (1392771440,), (1392771474,), (1392771505,), (1392771542,), (1392771580,), (1392771841,), (1392771848,), (1392771899,), (1392771901,), (1392771903,), (1392771906,), (1392771910,), (1392771912,), (1392771936,), (1392771938,), (1392771940,), (1392771942,), (1392771944,), (1392771971,), (1392771972,), (1392772257,), (1392772262,), (1392772266,), (1392772527,), (1392772461,), (1392773721,), (1392773790,), (1392773853,), (1392773916,), (1392773983,), (1392774059,), (1392774677,), (1392774716,), (1392774781,), (1392774884,), (1392774956,), (1392775000,), (1392775214,), (1392775238,), (1392775532,), (1392775567,), (1392775601,), (1392775637,), (1392775668,), (1392775706,), (1392776002,), (1392776018,), (1392776021,), (1392776025,), (1392776030,), (1392776048,), (1392776238,), (1392776246,), (1392776248,), (1392776263,), (1392776350,), (1392776352,), (1392776384,), (1392776419,), (1392776451,), (1392776553,), (1392776644,), (1392776655,), (1392776661,), (1392776671,), (1392776674,), (1392776708,), (1392776710,), (1392776711,), (1392776830,), (1392776832,), (1392776850,), (1392776858,), (1392776864,), (1392776978,), (1392777011,), (1392777043,), (1392777079,), (1392777370,), (1392777375,), (1392777378,), (1392777380,), (1392777383,), (1392777386,), (1392777419,), (1392777427,), (1392777430,), (1392777454,), (1392777458,), (1392777462,), (1392777465,), (1392777469,), (1392777542,), (1392777518,), (1392777520,), (1392777522,), (1392777538,), (1392777540,), (1392777666,), (1392777674,), (1392777678,), (1392777688,), (1392777816,), (1392777818,), (1392777820,), (1392777822,), (1392777825,), (1392777827,), (1392777871,), (1392777905,), (1392777941,), (1392777975,), (1392778185,), (1392778187,), (1392778214,), (1392778227,), (1392778231,), (1392778235,), (1392778382,), (1392778416,), (1392778447,), (1392778471,), (1392778475,), (1392778479,), (1392778555,), (1392778564,), (1392778575,), (1392778578,), (1392778608,), (1392778610,), (1392778613,), (1392778618,), (1392778623,), (1392778626,), (1392778639,), (1392778641,), (1392778643,), (1392778714,), (1392778716,), (1392778726,), (1392778728,), (1392778731,), (1392778735,), (1392778764,), (1392778770,), (1392778773,), (1392778776,), (1392778807,), (1392778809,), (1392778811,), (1392778819,), (1392778827,), (1392778839,), (1392778948,), (1392778958,), (1392778960,), (1392778964,), (1392779109,), (1392779111,), (1392779114,), (1392779118,), (1392779121,), (1392779156,), (1392779160,), (1392779164,), (1392779166,), (1392779168,), (1392779235,), (1392779238,), (1392779240,), (1392779242,), (1392779251,), (1392779254,), (1392779231,), (1392779233,), (1392779268,), (1392779271,), (1392779272,), (1392779273,), (1392779275,), (1392779284,), (1392779339,), (1392779340,), (1392779342,), (1392779345,), (1392779349,), (1392779354,), (1392779408,), (1392779413,), (1392779417,), (1392779421,), (1392779481,), (1392779483,), (1392779484,), (1392779486,), (1392779502,), (1392779536,), (1392779676,), (1392779682,), (1392779683,), (1392779685,), (1392779688,), (1392779773,), (1392779777,), (1392779784,), (1392779787,), (1392779881,), (1392779884,), (1392779886,), (1392779888,), (1392779891,), (1392779894,), (1392779928,), (1392779930,), (1392779941,), (1392779959,), (1392780065,), (1392780066,), (1392780067,), (1392780069,), (1392780089,), (1392780092,), (1392780097,), (1392780100,), (1392780103,), (1392780107,), (1392780128,), (1392780130,), (1392780133,), (1392780142,), (1392780152,), (1392780249,), (1392780251,), (1392780252,), (1392780258,), (1392780272,), (1392780453,), (1392780458,), (1392780461,), (1392780464,), (1392780468,), (1392780471,), (1392780493,), (1392780498,), (1392780500,), (1392780508,), (1392780511,), (1392780576,), (1392780566,), (1392780568,), (1392780570,), (1392780603,), (1392780604,), (1392780606,), (1392780609,), (1392780613,), (1392780927,), (1392780939,), (1392780948,), (1392780986,), (1392781002,), (1392781063,), (1392781068,), (1392781077,), (1392781369,), (1392781379,), (1392781380,), (1392781382,), (1392781383,), (1392781385,), (1392781430,), (1392781432,), (1392781434,), (1392781518,), (1392781524,), (1392781824,), (1392781862,), (1392781895,), (1392782143,), (1392782145,), (1392782183,), (1392782219,), (1392782260,), (1392782296,), (1392782677,), (1392782725,), (1392782756,), (1392783070,), (1392783073,), (1392783077,), (1392783080,), (1392783219,), (1392783221,), (1392783223,), (1392783225,), (1392783229,), (1392783272,), (1392783279,), (1392783286,), (1392783288,), (1392783300,), (1392783693,), (1392783728,), (1392783731,), (1392783735,), (1392783739,), (1392783743,), (1392784058,), (1392784066,), (1392784099,), (1392784166,), (1392784169,), (1392784182,), (1392784191,), (1392784258,), (1392784260,), (1392784281,), (1392784284,), (1392784287,), (1392784352,), (1392784240,), (1392784241,), (1392784244,), (1392784245,), (1392784247,), (1392784250,), (1392784251,), (1392784253,), (1392784255,), (1392784257,), (1392784273,), (1392784275,), (1392784278,), (1392784569,), (1392784600,), (1392784630,), (1392784665,), (1392784702,), (1392784738,), (1392785080,), (1392785124,), (1392785156,), (1392785192,), (1392785226,), (1392785291,), (1392785295,), (1392785302,), (1392785304,), (1392785327,), (1392785330,), (1392785693,), (1392785736,), (1392785772,), (1392786323,), (1392786353,), (1392786382,), (1392786415,), (1392786452,), (1392787413,), (1392787440,), (1392787441,), (1392787454,), (1392787820,), (1392787873,), (1392787903,), (1392787935,), (1392787966,), (1392788101,), (1392788103,), (1392788106,), (1392788108,), (1392788129,), (1392788137,), (1392788212,), (1392788215,), (1392788217,), (1392788290,), (1392788298,), (1392788302,), (1392788306,), (1392788311,), (1392788314,), (1392788455,), (1392788488,), (1392788523,), (1392788554,), (1392788587,), (1392788741,), (1392788743,), (1392788745,), (1392788774,), (1392788831,), (1392788821,), (1392788823,), (1392788825,), (1392788827,), (1392788875,), (1392788878,), (1392788911,), (1392788935,), (1392788957,), (1392788969,), (1392789042,), (1392789045,), (1392789046,), (1392789049,), (1392789051,), (1392789055,), (1392789277,), (1392789281,), (1392789283,), (1392789285,), (1392789398,), (1392789431,), (1392789455,), (1392789456,), (1392789574,), (1392789609,), (1392789659,), (1392789695,), (1392789732,), (1392789771,), (1392789875,), (1392789888,), (1392789891,), (1392789894,), (1392789896,), (1392789948,), (1392789950,), (1392789953,), (1392789956,), (1392789960,), (1392789963,), (1392790026,), (1392790029,), (1392790033,), (1392790070,), (1392790072,), (1392790074,), (1392790076,), (1392790079,), (1392790107,), (1392790109,), (1392790111,), (1392790113,), (1392790117,), (1392790120,), (1392790152,), (1392790155,), (1392790157,), (1392790221,), (1392790225,), (1392790228,), (1392790231,), (1392790235,), (1392790306,), (1392790309,), (1392790311,), (1392790343,), (1392790347,), (1392790350,), (1392790354,), (1392790357,), (1392790405,), (1392790424,), (1392790429,), (1392790434,), (1392790438,), (1392793229,), (1392793140,), (1392793179,), (1392793646,), (1392793679,), (1392793712,), (1392793744,), (1392793783,), (1392793936,), (1392793953,), (1392794296,), (1392794303,), (1392794331,), (1392794407,), (1392794416,), (1392794417,), (1392794506,), (1392794511,), (1392794516,), (1392794596,), (1392794597,), (1392794598,), (1392794600,), (1392794602,), (1392794642,), (1392794649,), (1392794652,), (1392794692,), (1392794696,), (1392794697,), (1392794699,), (1392794887,), (1392794889,), (1392794976,), (1392794980,), (1392794983,), (1392794986,), (1392794991,), (1392794996,), (1392795031,), (1392795047,), (1392795056,), (1392795057,), (1392795059,), (1392795133,), (1392795147,), (1392795183,), (1392795350,), (1392795353,), (1392795357,), (1392795360,), (1392795363,), (1392795366,), (1392795403,), (1392795394,), (1392795397,), (1392795400,), (1392795434,), (1392795436,), (1392795437,), (1392795438,), (1392795459,), (1392795461,), (1392795561,), (1392795563,), (1392795565,), (1392795568,), (1392795572,), (1392795784,), (1392795807,), (1392795819,), (1392795822,), (1392795931,), (1392795934,), (1392795937,), (1392795945,), (1392795949,), (1392795991,), (1392796037,), (1392796082,), (1392796115,), (1392796164,), (1392796207,), (1392796443,), (1392796444,), (1392796446,), (1392796507,), (1392796510,), (1392796512,), (1392796514,), (1392796517,), (1392796545,), (1392796548,), (1392796550,), (1392796551,), (1392796555,), (1392796616,), (1392796617,), (1392796618,), (1392796620,), (1392796680,), (1392796682,), (1392796685,), (1392796716,), (1392796750,), (1392796796,), (1392796992,), (1392796994,), (1392797008,), (1392797042,), (1392797287,), (1392797288,), (1392797289,), (1392797291,), (1392797294,), (1392797297,), (1392797358,), (1392797359,), (1392797361,), (1392797363,), (1392797406,), (1392797408,), (1392797410,), (1392797412,), (1392797417,), (1392797495,), (1392797497,), (1392797513,), (1392797521,), (1392797532,), (1392797544,), (1392797480,), (1392797483,), (1392797486,), (1392797491,), (1392797579,), (1392797581,), (1392797585,), (1392797617,), (1392797652,), (1392797691,), (1392797693,), (1392797694,), (1392797696,), (1392797700,), (1392797702,), (1392797846,), (1392797849,), (1392797852,), (1392797855,), (1392797859,), (1392797884,), (1392797890,), (1392797891,), (1392797894,), (1392797918,), (1392797921,), (1392797933,), (1392797950,), (1392797961,), (1392797996,), (1392797999,), (1392798003,), (1392798005,), (1392798023,), (1392798027,), (1392798121,), (1392798124,), (1392798126,), (1392798197,), (1392798203,), (1392798213,), (1392798221,), (1392798228,), (1392798237,), (1392798342,), (1392798377,), (1392798410,), (1392798430,), (1392798587,), (1392798621,), (1392798657,), (1392798687,), (1392798721,), (1392798756,), (1392798851,), (1392798855,), (1392798856,), (1392798858,), (1392798910,), (1392798913,), (1392798916,), (1392798919,), (1392798922,), (1392798924,), (1392798941,), (1392798948,), (1392798950,), (1392798952,), (1392798955,), (1392799011,), (1392799017,), (1392799018,), (1392799019,), (1392799066,), (1392799056,), (1392799059,), (1392799061,), (1392799063,), (1392799112,), (1392799121,), (1392799127,), (1392799130,), (1392799181,), (1392799182,), (1392799183,), (1392799281,), (1392799283,), (1392799285,), (1392799316,), (1392799370,), (1392799374,), (1392799377,), (1392799380,), (1392799383,), (1392799407,), (1392799408,), (1392799409,), (1392799411,), (1392799414,), (1392799417,), (1392799434,), (1392799436,), (1392799438,), (1392799484,), (1392799492,), (1392799496,), (1392799500,), (1392799512,), (1392799520,), (1392799562,), (1392799563,), (1392799564,), (1392799566,), (1392799570,), (1392799585,), (1392799588,), (1392799591,), (1392799616,), (1392799617,), (1392799884,), (1392799890,), (1392799895,), (1392799909,), (1392799914,), (1392799916,), (1392799917,), (1392799919,), (1392800098,), (1392800095,), (1392800275,), (1392800278,), (1392800297,), (1392800312,), (1392800317,), (1392800619,), (1392801327,), (1392801408,), (1392801474,), (1392801574,), (1392801626,), (1392801974,), (1392801991,), (1392801995,), (1392801999,), (1392802427,), (1392802446,), (1392802448,), (1392802475,), (1392802523,), (1392802934,), (1392802968,), (1392803011,), (1392803047,), (1392803089,), (1392803443,), (1392803496,), (1392803560,), (1392803626,), (1392804275,), (1392804278,), (1392804282,), (1392804287,), (1392804291,), (1392804322,), (1392804458,), (1392804460,), (1392804463,), (1392804466,), (1392804499,), (1392804969,), (1392804988,), (1392805006,), (1392805011,), (1392805018,), (1392805022,), (1392805214,), (1392805232,), (1392805234,), (1392805369,), (1392805371,), (1392805376,), (1392805385,), (1392805388,), (1392805391,), (1392805595,), (1392805619,), (1392805637,), (1392805640,), (1392805642,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05112025': {'nb_upload': 61, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28223036]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1392805642, 1392805640, 1392805637, 1392805619, 1392805595, 1392805391, 1392805388, 1392805385, 1392805376, 1392805371, 1392805369] map_info['map_portfolio_photo'] : {28223036: [1392805642, 1392805640, 1392805637, 1392805619, 1392805595, 1392805391, 1392805388, 1392805385, 1392805376, 1392805371, 1392805369, 1392805234, 1392805232, 1392805214, 1392805022, 1392805018, 1392805011, 1392805006, 1392804988, 1392804969, 1392804499, 1392804466, 1392804463, 1392804460, 1392804458, 1392804322, 1392804291, 1392804287, 1392804282, 1392804278, 1392804275, 1392803626, 1392803560, 1392803496, 1392803443, 1392803089, 1392803047, 1392803011, 1392802968, 1392802934, 1392802523, 1392802475, 1392802448, 1392802446, 1392802427, 1392801999, 1392801995, 1392801991, 1392801974, 1392801626, 1392801574, 1392801474, 1392801408, 1392801327, 1392800619, 1392800317, 1392800312, 1392800297, 1392800278, 1392800275, 1392800095]} final : True mtd_id 4302 list_pids : [1392805642, 1392805640, 1392805637, 1392805619, 1392805595, 1392805391, 1392805388, 1392805385, 1392805376, 1392805371, 1392805369] Looping around the photos to save general results len do output : 1 /28223036Didn'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, '4005115') ('4302', '28223036', '1392805642', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805640', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805637', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805619', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805595', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805391', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805388', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805385', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805376', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805371', None, None, None, None, None, '4005115') ('4302', None, None, None, None, None, None, None, '4005115') ('4302', '28223036', '1392805369', None, None, None, None, None, '4005115') 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', None, '28223036', 'None', None, None, None, None, '4005115'), ('4302', '28223036', '1392805642', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805640', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805637', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805619', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805595', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805391', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805388', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805385', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805376', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805371', None, None, None, None, None, '4005115'), ('4302', '28223036', '1392805369', None, None, None, None, None, '4005115')] time used for this insertion : 0.013194084167480469 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.1366264820098877 time spend to save output : 0.01339864730834961 total time spend for step 5 : 3.1500251293182373 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 (4005115) 2.30user 2.43system 0:12.69elapsed 37%CPU (0avgtext+0avgdata 159044maxresident)k 136inputs+13872outputs (1major+75934minor)pagefaults 0swaps