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 : 541720 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 (3246862) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3246862) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24692648 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3246862'] with mtr_portfolio_ids : ['24692648'] and first list_photo_ids : [] new path : /proc/541720/ Name: python3 Umask: 0002 State: R (running) Tgid: 541720 Ngid: 0 Pid: 541720 PPid: 541719 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 541720 NSpid: 541720 NSpgid: 541227 NSsid: 541227 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98464 kB VmRSS: 98464 kB RssAnon: 59824 kB RssFile: 38640 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 6/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: 47 nonvoluntary_ctxt_switches: 116 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '541720', 'Ngid': '0', 'Pid': '541720', 'PPid': '541719', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '541720', 'NSpid': '541720', 'NSpgid': '541227', 'NSsid': '541227', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98464 kB', 'VmRSS': '98464 kB', 'RssAnon': '59824 kB', 'RssFile': '38640 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '6/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': '47', 'nonvoluntary_ctxt_switches': '116'} ('datou_batch_current', '541720', '1106868', '0', '1106868', '865620', '98464', b'', 'marlene', '3246862') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (24692648) 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 (3246862 ) ) 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 (24692648) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1371063750, 'portfolio_id': 24692648}, {'photo_id': 1371063743, 'portfolio_id': 24692648}, {'photo_id': 1371063740, 'portfolio_id': 24692648}, {'photo_id': 1371063737, 'portfolio_id': 24692648}, {'photo_id': 1371063733, 'portfolio_id': 24692648}, {'photo_id': 1371063727, 'portfolio_id': 24692648}, {'photo_id': 1371063676, 'portfolio_id': 24692648}, {'photo_id': 1371063671, 'portfolio_id': 24692648}, {'photo_id': 1371063667, 'portfolio_id': 24692648}, {'photo_id': 1371063664, 'portfolio_id': 24692648}, {'photo_id': 1371063662, 'portfolio_id': 24692648}, {'photo_id': 1371063653, 'portfolio_id': 24692648}, {'photo_id': 1371063641, 'portfolio_id': 24692648}, {'photo_id': 1371063640, 'portfolio_id': 24692648}, {'photo_id': 1371063635, 'portfolio_id': 24692648}, {'photo_id': 1371063634, 'portfolio_id': 24692648}, {'photo_id': 1371063629, 'portfolio_id': 24692648}, {'photo_id': 1371063627, 'portfolio_id': 24692648}, {'photo_id': 1371063623, 'portfolio_id': 24692648}, {'photo_id': 1371063622, 'portfolio_id': 24692648}, {'photo_id': 1371063616, 'portfolio_id': 24692648}, {'photo_id': 1371063615, 'portfolio_id': 24692648}, {'photo_id': 1371063611, 'portfolio_id': 24692648}, {'photo_id': 1371063610, 'portfolio_id': 24692648}, {'photo_id': 1371063551, 'portfolio_id': 24692648}, {'photo_id': 1371063549, 'portfolio_id': 24692648}, {'photo_id': 1371063546, 'portfolio_id': 24692648}, {'photo_id': 1371063542, 'portfolio_id': 24692648}, {'photo_id': 1371063537, 'portfolio_id': 24692648}, {'photo_id': 1371063533, 'portfolio_id': 24692648}, {'photo_id': 1371063509, 'portfolio_id': 24692648}, {'photo_id': 1371063504, 'portfolio_id': 24692648}, {'photo_id': 1371063502, 'portfolio_id': 24692648}, {'photo_id': 1371063499, 'portfolio_id': 24692648}, {'photo_id': 1371063496, 'portfolio_id': 24692648}, {'photo_id': 1371063491, 'portfolio_id': 24692648}, {'photo_id': 1371063479, 'portfolio_id': 24692648}, {'photo_id': 1371063476, 'portfolio_id': 24692648}, {'photo_id': 1371063470, 'portfolio_id': 24692648}, {'photo_id': 1371063465, 'portfolio_id': 24692648}, {'photo_id': 1371063459, 'portfolio_id': 24692648}, {'photo_id': 1371063455, 'portfolio_id': 24692648}, {'photo_id': 1371063410, 'portfolio_id': 24692648}, {'photo_id': 1371063405, 'portfolio_id': 24692648}, {'photo_id': 1371063394, 'portfolio_id': 24692648}, {'photo_id': 1371063390, 'portfolio_id': 24692648}, {'photo_id': 1371063385, 'portfolio_id': 24692648}, {'photo_id': 1371063380, 'portfolio_id': 24692648}, {'photo_id': 1371063363, 'portfolio_id': 24692648}, {'photo_id': 1371063357, 'portfolio_id': 24692648}, {'photo_id': 1371063352, 'portfolio_id': 24692648}, {'photo_id': 1371063349, 'portfolio_id': 24692648}, {'photo_id': 1371063346, 'portfolio_id': 24692648}, {'photo_id': 1371063338, 'portfolio_id': 24692648}] map_portfolio_id_photo_id: {24692648: [1371063750, 1371063743, 1371063740, 1371063737, 1371063733, 1371063727, 1371063676, 1371063671, 1371063667, 1371063664, 1371063662, 1371063653, 1371063641, 1371063640, 1371063635, 1371063634, 1371063629, 1371063627, 1371063623, 1371063622, 1371063616, 1371063615, 1371063611, 1371063610, 1371063551, 1371063549, 1371063546, 1371063542, 1371063537, 1371063533, 1371063509, 1371063504, 1371063502, 1371063499, 1371063496, 1371063491, 1371063479, 1371063476, 1371063470, 1371063465, 1371063459, 1371063455, 1371063410, 1371063405, 1371063394, 1371063390, 1371063385, 1371063380, 1371063363, 1371063357, 1371063352, 1371063349, 1371063346, 1371063338]} ##### 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.014323949813842773 #### 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 Mon Jul 7 20:55:27 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 (24692648) 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 : 24692648 get user id for portfolio 24692648 get sub ptf for main ptf 24692648, type 3726 and hashtags ['cartonnette', 'mal_croppe', 'autre_refus', 'metal', 'papier', 'flou', 'environnement', 'Carton_gris', 'plastique', 'kraft', 'Carton_brun', 'Teint_Dans_La_Masse'] 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`=24692648 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','mal_croppe','autre_refus','metal','papier','flou','environnement','Carton_gris','plastique','kraft','Carton_brun','Teint_Dans_La_Masse')) 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`=24692648 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','mal_croppe','autre_refus','metal','papier','flou','environnement','Carton_gris','plastique','kraft','Carton_brun','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 24692648, 'sub_port_id': 24692678, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600835, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 29)}, 'kraft': {'main_port_id': 24692648, 'sub_port_id': 24692679, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600836, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 29)}, 'metal': {'main_port_id': 24692648, 'sub_port_id': 24692680, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600837, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 29)}, 'cartonnette': {'main_port_id': 24692648, 'sub_port_id': 24692681, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600838, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 29)}, 'environnement': {'main_port_id': 24692648, 'sub_port_id': 24692682, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600839, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 29)}, 'mal_croppe': {'main_port_id': 24692648, 'sub_port_id': 24692683, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600840, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 29)}, 'autre_refus': {'main_port_id': 24692648, 'sub_port_id': 24692684, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600841, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 29)}, 'papier': {'main_port_id': 24692648, 'sub_port_id': 24692685, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600842, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 24692648, 'sub_port_id': 24692686, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600843, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 29)}, 'Carton_brun': {'main_port_id': 24692648, 'sub_port_id': 24692687, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600844, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 29)}, 'plastique': {'main_port_id': 24692648, 'sub_port_id': 24692688, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600845, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 29)}, 'flou': {'main_port_id': 24692648, 'sub_port_id': 24692689, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600846, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24692678 , 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=24692648 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 (24692678) result : ((1371063523,), (1371063524,), (1371063525,), (1371063526,), (1371063527,), (1371063637,), (1371063638,), (1371063672,), (1371063759,), (1371063760,), (1371063761,), (1371063763,), (1371063764,), (1371063765,), (1371063766,), (1371063767,), (1371063768,), (1371063769,), (1371063788,), (1371063789,), (1371063790,), (1371063791,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24692648) result : ((1371063338,), (1371063346,), (1371063349,), (1371063352,), (1371063357,), (1371063363,), (1371063380,), (1371063385,), (1371063390,), (1371063394,), (1371063405,), (1371063410,), (1371063455,), (1371063459,), (1371063465,), (1371063470,), (1371063476,), (1371063479,), (1371063491,), (1371063496,), (1371063499,), (1371063502,), (1371063504,), (1371063509,), (1371063533,), (1371063537,), (1371063542,), (1371063546,), (1371063549,), (1371063551,), (1371063610,), (1371063611,), (1371063615,), (1371063616,), (1371063622,), (1371063623,), (1371063627,), (1371063629,), (1371063634,), (1371063635,), (1371063640,), (1371063641,), (1371063653,), (1371063662,), (1371063664,), (1371063667,), (1371063671,), (1371063676,), (1371063727,), (1371063733,), (1371063737,), (1371063740,), (1371063743,), (1371063750,)) 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 24692679 , 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=24692648 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 (24692679) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24692648) result : ((1371063338,), (1371063346,), (1371063349,), (1371063352,), (1371063357,), (1371063363,), (1371063380,), (1371063385,), (1371063390,), (1371063394,), (1371063405,), (1371063410,), (1371063455,), (1371063459,), (1371063465,), (1371063470,), (1371063476,), (1371063479,), (1371063491,), (1371063496,), (1371063499,), (1371063502,), (1371063504,), (1371063509,), (1371063533,), (1371063537,), (1371063542,), (1371063546,), (1371063549,), (1371063551,), (1371063610,), (1371063611,), (1371063615,), (1371063616,), (1371063622,), (1371063623,), (1371063627,), (1371063629,), (1371063634,), (1371063635,), (1371063640,), (1371063641,), (1371063653,), (1371063662,), (1371063664,), (1371063667,), (1371063671,), (1371063676,), (1371063727,), (1371063733,), (1371063737,), (1371063740,), (1371063743,), (1371063750,)) 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 24692680 , 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=24692648 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 (24692680) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24692648) result : ((1371063338,), (1371063346,), (1371063349,), (1371063352,), (1371063357,), (1371063363,), (1371063380,), (1371063385,), (1371063390,), (1371063394,), (1371063405,), (1371063410,), (1371063455,), (1371063459,), (1371063465,), (1371063470,), (1371063476,), (1371063479,), (1371063491,), (1371063496,), (1371063499,), (1371063502,), (1371063504,), (1371063509,), (1371063533,), (1371063537,), (1371063542,), (1371063546,), (1371063549,), (1371063551,), (1371063610,), (1371063611,), (1371063615,), (1371063616,), (1371063622,), (1371063623,), (1371063627,), (1371063629,), (1371063634,), (1371063635,), (1371063640,), (1371063641,), (1371063653,), (1371063662,), (1371063664,), (1371063667,), (1371063671,), (1371063676,), (1371063727,), (1371063733,), (1371063737,), (1371063740,), (1371063743,), (1371063750,)) 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 24692681 , 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=24692648 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 (24692681) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24692648) result : ((1371063338,), (1371063346,), (1371063349,), (1371063352,), (1371063357,), (1371063363,), (1371063380,), (1371063385,), (1371063390,), (1371063394,), (1371063405,), (1371063410,), (1371063455,), (1371063459,), (1371063465,), (1371063470,), (1371063476,), (1371063479,), (1371063491,), (1371063496,), (1371063499,), (1371063502,), (1371063504,), (1371063509,), (1371063533,), (1371063537,), (1371063542,), (1371063546,), (1371063549,), (1371063551,), (1371063610,), (1371063611,), (1371063615,), (1371063616,), (1371063622,), (1371063623,), (1371063627,), (1371063629,), (1371063634,), (1371063635,), (1371063640,), (1371063641,), (1371063653,), (1371063662,), (1371063664,), (1371063667,), (1371063671,), (1371063676,), (1371063727,), (1371063733,), (1371063737,), (1371063740,), (1371063743,), (1371063750,)) 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 24692682 , 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=24692648 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 (24692682) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24692648) result : ((1371063338,), (1371063346,), (1371063349,), (1371063352,), (1371063357,), (1371063363,), (1371063380,), (1371063385,), (1371063390,), (1371063394,), (1371063405,), (1371063410,), (1371063455,), (1371063459,), (1371063465,), (1371063470,), (1371063476,), (1371063479,), (1371063491,), (1371063496,), (1371063499,), (1371063502,), (1371063504,), (1371063509,), (1371063533,), (1371063537,), (1371063542,), (1371063546,), (1371063549,), (1371063551,), (1371063610,), (1371063611,), (1371063615,), (1371063616,), (1371063622,), (1371063623,), (1371063627,), (1371063629,), (1371063634,), (1371063635,), (1371063640,), (1371063641,), (1371063653,), (1371063662,), (1371063664,), (1371063667,), (1371063671,), (1371063676,), (1371063727,), (1371063733,), (1371063737,), (1371063740,), (1371063743,), (1371063750,)) 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 24692683 , 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=24692648 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 (24692683) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24692648) result : ((1371063338,), (1371063346,), (1371063349,), (1371063352,), (1371063357,), (1371063363,), (1371063380,), (1371063385,), (1371063390,), (1371063394,), (1371063405,), (1371063410,), (1371063455,), (1371063459,), (1371063465,), (1371063470,), (1371063476,), (1371063479,), (1371063491,), (1371063496,), (1371063499,), (1371063502,), (1371063504,), (1371063509,), (1371063533,), (1371063537,), (1371063542,), (1371063546,), (1371063549,), (1371063551,), (1371063610,), (1371063611,), (1371063615,), (1371063616,), (1371063622,), (1371063623,), (1371063627,), (1371063629,), (1371063634,), (1371063635,), (1371063640,), (1371063641,), (1371063653,), (1371063662,), (1371063664,), (1371063667,), (1371063671,), (1371063676,), (1371063727,), (1371063733,), (1371063737,), (1371063740,), (1371063743,), (1371063750,)) 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 24692684 , 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=24692648 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 (24692684) result : ((1371063756,), (1371063757,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24692648) result : ((1371063338,), (1371063346,), (1371063349,), (1371063352,), (1371063357,), (1371063363,), (1371063380,), (1371063385,), (1371063390,), (1371063394,), (1371063405,), (1371063410,), (1371063455,), (1371063459,), (1371063465,), (1371063470,), (1371063476,), (1371063479,), (1371063491,), (1371063496,), (1371063499,), (1371063502,), (1371063504,), (1371063509,), (1371063533,), (1371063537,), (1371063542,), (1371063546,), (1371063549,), (1371063551,), (1371063610,), (1371063611,), (1371063615,), (1371063616,), (1371063622,), (1371063623,), (1371063627,), (1371063629,), (1371063634,), (1371063635,), (1371063640,), (1371063641,), (1371063653,), (1371063662,), (1371063664,), (1371063667,), (1371063671,), (1371063676,), (1371063727,), (1371063733,), (1371063737,), (1371063740,), (1371063743,), (1371063750,)) 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 24692685 , 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=24692648 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 (24692685) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24692648) result : ((1371063338,), (1371063346,), (1371063349,), (1371063352,), (1371063357,), (1371063363,), (1371063380,), (1371063385,), (1371063390,), (1371063394,), (1371063405,), (1371063410,), (1371063455,), (1371063459,), (1371063465,), (1371063470,), (1371063476,), (1371063479,), (1371063491,), (1371063496,), (1371063499,), (1371063502,), (1371063504,), (1371063509,), (1371063533,), (1371063537,), (1371063542,), (1371063546,), (1371063549,), (1371063551,), (1371063610,), (1371063611,), (1371063615,), (1371063616,), (1371063622,), (1371063623,), (1371063627,), (1371063629,), (1371063634,), (1371063635,), (1371063640,), (1371063641,), (1371063653,), (1371063662,), (1371063664,), (1371063667,), (1371063671,), (1371063676,), (1371063727,), (1371063733,), (1371063737,), (1371063740,), (1371063743,), (1371063750,)) 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 24692686 , 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=24692648 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 (24692686) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24692648) result : ((1371063338,), (1371063346,), (1371063349,), (1371063352,), (1371063357,), (1371063363,), (1371063380,), (1371063385,), (1371063390,), (1371063394,), (1371063405,), (1371063410,), (1371063455,), (1371063459,), (1371063465,), (1371063470,), (1371063476,), (1371063479,), (1371063491,), (1371063496,), (1371063499,), (1371063502,), (1371063504,), (1371063509,), (1371063533,), (1371063537,), (1371063542,), (1371063546,), (1371063549,), (1371063551,), (1371063610,), (1371063611,), (1371063615,), (1371063616,), (1371063622,), (1371063623,), (1371063627,), (1371063629,), (1371063634,), (1371063635,), (1371063640,), (1371063641,), (1371063653,), (1371063662,), (1371063664,), (1371063667,), (1371063671,), (1371063676,), (1371063727,), (1371063733,), (1371063737,), (1371063740,), (1371063743,), (1371063750,)) 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 24692687 , 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=24692648 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 (24692687) result : ((1371063530,), (1371063531,), (1371063642,), (1371063643,), (1371063673,), (1371063771,), (1371063772,), (1371063773,), (1371063774,), (1371063777,), (1371063779,), (1371063793,), (1371063794,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24692648) result : ((1371063338,), (1371063346,), (1371063349,), (1371063352,), (1371063357,), (1371063363,), (1371063380,), (1371063385,), (1371063390,), (1371063394,), (1371063405,), (1371063410,), (1371063455,), (1371063459,), (1371063465,), (1371063470,), (1371063476,), (1371063479,), (1371063491,), (1371063496,), (1371063499,), (1371063502,), (1371063504,), (1371063509,), (1371063533,), (1371063537,), (1371063542,), (1371063546,), (1371063549,), (1371063551,), (1371063610,), (1371063611,), (1371063615,), (1371063616,), (1371063622,), (1371063623,), (1371063627,), (1371063629,), (1371063634,), (1371063635,), (1371063640,), (1371063641,), (1371063653,), (1371063662,), (1371063664,), (1371063667,), (1371063671,), (1371063676,), (1371063727,), (1371063733,), (1371063737,), (1371063740,), (1371063743,), (1371063750,)) 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 24692688 , 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=24692648 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 (24692688) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24692648) result : ((1371063338,), (1371063346,), (1371063349,), (1371063352,), (1371063357,), (1371063363,), (1371063380,), (1371063385,), (1371063390,), (1371063394,), (1371063405,), (1371063410,), (1371063455,), (1371063459,), (1371063465,), (1371063470,), (1371063476,), (1371063479,), (1371063491,), (1371063496,), (1371063499,), (1371063502,), (1371063504,), (1371063509,), (1371063533,), (1371063537,), (1371063542,), (1371063546,), (1371063549,), (1371063551,), (1371063610,), (1371063611,), (1371063615,), (1371063616,), (1371063622,), (1371063623,), (1371063627,), (1371063629,), (1371063634,), (1371063635,), (1371063640,), (1371063641,), (1371063653,), (1371063662,), (1371063664,), (1371063667,), (1371063671,), (1371063676,), (1371063727,), (1371063733,), (1371063737,), (1371063740,), (1371063743,), (1371063750,)) 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 24692689 , 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=24692648 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 (24692689) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24692648) result : ((1371063338,), (1371063346,), (1371063349,), (1371063352,), (1371063357,), (1371063363,), (1371063380,), (1371063385,), (1371063390,), (1371063394,), (1371063405,), (1371063410,), (1371063455,), (1371063459,), (1371063465,), (1371063470,), (1371063476,), (1371063479,), (1371063491,), (1371063496,), (1371063499,), (1371063502,), (1371063504,), (1371063509,), (1371063533,), (1371063537,), (1371063542,), (1371063546,), (1371063549,), (1371063551,), (1371063610,), (1371063611,), (1371063615,), (1371063616,), (1371063622,), (1371063623,), (1371063627,), (1371063629,), (1371063634,), (1371063635,), (1371063640,), (1371063641,), (1371063653,), (1371063662,), (1371063664,), (1371063667,), (1371063671,), (1371063676,), (1371063727,), (1371063733,), (1371063737,), (1371063740,), (1371063743,), (1371063750,)) 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`=24692648 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','mal_croppe','autre_refus','metal','papier','flou','environnement','Carton_gris','plastique','kraft','Carton_brun','Teint_Dans_La_Masse')) 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`=24692648 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','mal_croppe','autre_refus','metal','papier','flou','environnement','Carton_gris','plastique','kraft','Carton_brun','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 24692648, 'sub_port_id': 24692691, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600847, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 30)}, 'kraft': {'main_port_id': 24692648, 'sub_port_id': 24692692, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600848, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 30)}, 'metal': {'main_port_id': 24692648, 'sub_port_id': 24692693, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600849, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 30)}, 'cartonnette': {'main_port_id': 24692648, 'sub_port_id': 24692694, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600850, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 30)}, 'environnement': {'main_port_id': 24692648, 'sub_port_id': 24692695, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600851, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 30)}, 'mal_croppe': {'main_port_id': 24692648, 'sub_port_id': 24692696, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600852, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 30)}, 'autre_refus': {'main_port_id': 24692648, 'sub_port_id': 24692697, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600853, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 30)}, 'papier': {'main_port_id': 24692648, 'sub_port_id': 24692698, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600854, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 24692648, 'sub_port_id': 24692699, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600855, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 30)}, 'Carton_brun': {'main_port_id': 24692648, 'sub_port_id': 24692700, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600856, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 30)}, 'plastique': {'main_port_id': 24692648, 'sub_port_id': 24692701, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600857, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 30)}, 'flou': {'main_port_id': 24692648, 'sub_port_id': 24692702, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16600858, 'last_updated_at': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_desc': datetime.datetime(2025, 7, 7, 20, 53), 'last_updated_at_asc': datetime.datetime(2025, 7, 7, 20, 49, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24692691,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24692678 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24692692,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24692679 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24692693,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24692680 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24692694,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24692681 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24692695,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24692682 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24692696,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24692683 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24692697,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24692684 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24692698,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24692685 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24692699,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24692686 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24692700,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24692687 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24692701,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24692688 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24692702,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24692689 lien utilise dans velours : https://www.fotonower.com/velours/24692691,24692692,24692693,24692694,24692695,24692696,24692697,24692698,24692699,24692700,24692701,24692702?tags=Carton_gris,kraft,metal,cartonnette,environnement,mal_croppe,autre_refus,papier,Teint_Dans_La_Masse,Carton_brun,plastique,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24692648]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1371063750, 1371063743, 1371063740, 1371063737, 1371063733, 1371063727, 1371063676, 1371063671, 1371063667, 1371063664, 1371063662, 1371063653] map_info['map_portfolio_photo'] : {24692648: [1371063750, 1371063743, 1371063740, 1371063737, 1371063733, 1371063727, 1371063676, 1371063671, 1371063667, 1371063664, 1371063662, 1371063653, 1371063641, 1371063640, 1371063635, 1371063634, 1371063629, 1371063627, 1371063623, 1371063622, 1371063616, 1371063615, 1371063611, 1371063610, 1371063551, 1371063549, 1371063546, 1371063542, 1371063537, 1371063533, 1371063509, 1371063504, 1371063502, 1371063499, 1371063496, 1371063491, 1371063479, 1371063476, 1371063470, 1371063465, 1371063459, 1371063455, 1371063410, 1371063405, 1371063394, 1371063390, 1371063385, 1371063380, 1371063363, 1371063357, 1371063352, 1371063349, 1371063346, 1371063338]} final : False mtd_id 4302 list_pids : [1371063750, 1371063743, 1371063740, 1371063737, 1371063733, 1371063727, 1371063676, 1371063671, 1371063667, 1371063664, 1371063662, 1371063653] Looping around the photos to save general results len do output : 1 /24692648. 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, '3246862') ('4302', '24692648', '1371063750', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063743', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063740', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063737', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063733', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063727', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063676', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063671', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063667', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063664', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063662', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063653', None, None, None, None, None, '3246862') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24692648', "{'Carton_gris': 24692678, 'kraft': 24692679, 'metal': 24692680, 'cartonnette': 24692681, 'environnement': 24692682, 'mal_croppe': 24692683, 'autre_refus': 24692684, 'papier': 24692685, 'Teint_Dans_La_Masse': 24692686, 'Carton_brun': 24692687, 'plastique': 24692688, 'flou': 24692689}", None, None, None, None, '3246862'), ('4302', '24692648', '1371063750', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063743', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063740', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063737', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063733', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063727', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063676', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063671', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063667', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063664', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063662', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063653', None, None, None, None, None, '3246862')] time used for this insertion : 0.014792442321777344 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4943158626556396 time spend to save output : 0.015076637268066406 total time spend for step 1 : 1.509392499923706 step2:final Mon Jul 7 20:55:28 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 (24692648) 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 24692648 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1371063363,1371063357,1371063352,1371063349,1371063346,1371063338,1371063410,1371063405,1371063394,1371063390,1371063385,1371063380,1371063479,1371063476,1371063470,1371063465,1371063459,1371063455,1371063509,1371063504,1371063502,1371063499,1371063496,1371063491,1371063551,1371063549,1371063546,1371063542,1371063537,1371063533,1371063640,1371063641,1371063634,1371063635,1371063627,1371063629,1371063622,1371063623,1371063616,1371063615,1371063611,1371063610,1371063676,1371063671,1371063667,1371063664,1371063662,1371063653,1371063750,1371063743,1371063740,1371063737,1371063733,1371063727); 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([24692648]) Inside saveOutput : final : False verbose : True original output for save of step final : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ('0.024488106422335034',), 1371063727: ('0.024488106422335034',), 1371063676: ('0.024488106422335034',), 1371063671: ('0.024488106422335034',), 1371063667: ('0.024488106422335034',), 1371063664: ('0.024488106422335034',), 1371063662: ('0.024488106422335034',), 1371063653: ('0.024488106422335034',)} new output for save of step final : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ('0.024488106422335034',), 1371063727: ('0.024488106422335034',), 1371063676: ('0.024488106422335034',), 1371063671: ('0.024488106422335034',), 1371063667: ('0.024488106422335034',), 1371063664: ('0.024488106422335034',), 1371063662: ('0.024488106422335034',), 1371063653: ('0.024488106422335034',)} [1371063750, 1371063743, 1371063740, 1371063737, 1371063733, 1371063727, 1371063676, 1371063671, 1371063667, 1371063664, 1371063662, 1371063653] map_info['map_portfolio_photo'] : {24692648: [1371063750, 1371063743, 1371063740, 1371063737, 1371063733, 1371063727, 1371063676, 1371063671, 1371063667, 1371063664, 1371063662, 1371063653, 1371063641, 1371063640, 1371063635, 1371063634, 1371063629, 1371063627, 1371063623, 1371063622, 1371063616, 1371063615, 1371063611, 1371063610, 1371063551, 1371063549, 1371063546, 1371063542, 1371063537, 1371063533, 1371063509, 1371063504, 1371063502, 1371063499, 1371063496, 1371063491, 1371063479, 1371063476, 1371063470, 1371063465, 1371063459, 1371063455, 1371063410, 1371063405, 1371063394, 1371063390, 1371063385, 1371063380, 1371063363, 1371063357, 1371063352, 1371063349, 1371063346, 1371063338]} final : False mtd_id 4302 list_pids : [1371063750, 1371063743, 1371063740, 1371063737, 1371063733, 1371063727, 1371063676, 1371063671, 1371063667, 1371063664, 1371063662, 1371063653] Looping around the photos to save general results len do output : 12 /1371063750.Didn't retrieve data . /1371063743.Didn't retrieve data . /1371063740.Didn't retrieve data . /1371063737.Didn't retrieve data . /1371063733.Didn't retrieve data . /1371063727.Didn't retrieve data . /1371063676.Didn't retrieve data . /1371063671.Didn't retrieve data . /1371063667.Didn't retrieve data . /1371063664.Didn't retrieve data . /1371063662.Didn't retrieve data . /1371063653.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, '3246862') ('4302', '24692648', '1371063750', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063743', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063740', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063737', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063733', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063727', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063676', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063671', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063667', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063664', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063662', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063653', None, None, None, None, None, '3246862') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '24692648', '1371063750', '0.024488106422335034', None, None, None, None, '3246862'), ('4302', '24692648', '1371063743', '0.024488106422335034', None, None, None, None, '3246862'), ('4302', '24692648', '1371063740', '0.024488106422335034', None, None, None, None, '3246862'), ('4302', '24692648', '1371063737', '0.024488106422335034', None, None, None, None, '3246862'), ('4302', '24692648', '1371063733', '0.024488106422335034', None, None, None, None, '3246862'), ('4302', '24692648', '1371063727', '0.024488106422335034', None, None, None, None, '3246862'), ('4302', '24692648', '1371063676', '0.024488106422335034', None, None, None, None, '3246862'), ('4302', '24692648', '1371063671', '0.024488106422335034', None, None, None, None, '3246862'), ('4302', '24692648', '1371063667', '0.024488106422335034', None, None, None, None, '3246862'), ('4302', '24692648', '1371063664', '0.024488106422335034', None, None, None, None, '3246862'), ('4302', '24692648', '1371063662', '0.024488106422335034', None, None, None, None, '3246862'), ('4302', '24692648', '1371063653', '0.024488106422335034', None, None, None, None, '3246862')] time used for this insertion : 0.013437509536743164 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06687355041503906 time spend to save output : 0.014018774032592773 total time spend for step 2 : 0.08089232444763184 step3:velours_tree Mon Jul 7 20:55:28 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 : {24692648: [{'Carton_gris': 24692678, 'kraft': 24692679, 'metal': 24692680, 'cartonnette': 24692681, 'environnement': 24692682, 'mal_croppe': 24692683, 'autre_refus': 24692684, 'papier': 24692685, 'Teint_Dans_La_Masse': 24692686, 'Carton_brun': 24692687, 'plastique': 24692688, 'flou': 24692689}]} input_args_next_step : {24692648: ()} output_args : {24692648: [{'Carton_gris': 24692678, 'kraft': 24692679, 'metal': 24692680, 'cartonnette': 24692681, 'environnement': 24692682, 'mal_croppe': 24692683, 'autre_refus': 24692684, 'papier': 24692685, 'Teint_Dans_La_Masse': 24692686, 'Carton_brun': 24692687, 'plastique': 24692688, 'flou': 24692689}]} args : 24692648 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 24692678, 'kraft': 24692679, 'metal': 24692680, 'cartonnette': 24692681, 'environnement': 24692682, 'mal_croppe': 24692683, 'autre_refus': 24692684, 'papier': 24692685, 'Teint_Dans_La_Masse': 24692686, 'Carton_brun': 24692687, 'plastique': 24692688, 'flou': 24692689},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24692648) 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([24692648]) 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.29065728187561035 time spend to save output : 4.57763671875e-05 total time spend for step 3 : 0.29070305824279785 step4:send_mail_cod Mon Jul 7 20:55:29 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 : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ('0.024488106422335034',), 1371063727: ('0.024488106422335034',), 1371063676: ('0.024488106422335034',), 1371063671: ('0.024488106422335034',), 1371063667: ('0.024488106422335034',), 1371063664: ('0.024488106422335034',), 1371063662: ('0.024488106422335034',), 1371063653: ('0.024488106422335034',)} input_args_next_step : {1371063750: ()} output_args : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ('0.024488106422335034',), 1371063727: ('0.024488106422335034',), 1371063676: ('0.024488106422335034',), 1371063671: ('0.024488106422335034',), 1371063667: ('0.024488106422335034',), 1371063664: ('0.024488106422335034',), 1371063662: ('0.024488106422335034',), 1371063653: ('0.024488106422335034',)} args : 1371063750 depend.output_id : 0 input_args_next_step : {1371063750: ('0.024488106422335034',), 1371063743: ()} output_args : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ('0.024488106422335034',), 1371063727: ('0.024488106422335034',), 1371063676: ('0.024488106422335034',), 1371063671: ('0.024488106422335034',), 1371063667: ('0.024488106422335034',), 1371063664: ('0.024488106422335034',), 1371063662: ('0.024488106422335034',), 1371063653: ('0.024488106422335034',)} args : 1371063743 depend.output_id : 0 input_args_next_step : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ()} output_args : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ('0.024488106422335034',), 1371063727: ('0.024488106422335034',), 1371063676: ('0.024488106422335034',), 1371063671: ('0.024488106422335034',), 1371063667: ('0.024488106422335034',), 1371063664: ('0.024488106422335034',), 1371063662: ('0.024488106422335034',), 1371063653: ('0.024488106422335034',)} args : 1371063740 depend.output_id : 0 input_args_next_step : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ()} output_args : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ('0.024488106422335034',), 1371063727: ('0.024488106422335034',), 1371063676: ('0.024488106422335034',), 1371063671: ('0.024488106422335034',), 1371063667: ('0.024488106422335034',), 1371063664: ('0.024488106422335034',), 1371063662: ('0.024488106422335034',), 1371063653: ('0.024488106422335034',)} args : 1371063737 depend.output_id : 0 input_args_next_step : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ()} output_args : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ('0.024488106422335034',), 1371063727: ('0.024488106422335034',), 1371063676: ('0.024488106422335034',), 1371063671: ('0.024488106422335034',), 1371063667: ('0.024488106422335034',), 1371063664: ('0.024488106422335034',), 1371063662: ('0.024488106422335034',), 1371063653: ('0.024488106422335034',)} args : 1371063733 depend.output_id : 0 input_args_next_step : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ('0.024488106422335034',), 1371063727: ()} output_args : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ('0.024488106422335034',), 1371063727: ('0.024488106422335034',), 1371063676: ('0.024488106422335034',), 1371063671: ('0.024488106422335034',), 1371063667: ('0.024488106422335034',), 1371063664: ('0.024488106422335034',), 1371063662: ('0.024488106422335034',), 1371063653: ('0.024488106422335034',)} args : 1371063727 depend.output_id : 0 input_args_next_step : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ('0.024488106422335034',), 1371063727: ('0.024488106422335034',), 1371063676: ()} output_args : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ('0.024488106422335034',), 1371063727: ('0.024488106422335034',), 1371063676: ('0.024488106422335034',), 1371063671: ('0.024488106422335034',), 1371063667: ('0.024488106422335034',), 1371063664: ('0.024488106422335034',), 1371063662: ('0.024488106422335034',), 1371063653: ('0.024488106422335034',)} args : 1371063676 depend.output_id : 0 input_args_next_step : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ('0.024488106422335034',), 1371063727: ('0.024488106422335034',), 1371063676: ('0.024488106422335034',), 1371063671: ()} output_args : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ('0.024488106422335034',), 1371063727: ('0.024488106422335034',), 1371063676: ('0.024488106422335034',), 1371063671: ('0.024488106422335034',), 1371063667: ('0.024488106422335034',), 1371063664: ('0.024488106422335034',), 1371063662: ('0.024488106422335034',), 1371063653: ('0.024488106422335034',)} args : 1371063671 depend.output_id : 0 input_args_next_step : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ('0.024488106422335034',), 1371063727: ('0.024488106422335034',), 1371063676: ('0.024488106422335034',), 1371063671: ('0.024488106422335034',), 1371063667: ()} output_args : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ('0.024488106422335034',), 1371063727: ('0.024488106422335034',), 1371063676: ('0.024488106422335034',), 1371063671: ('0.024488106422335034',), 1371063667: ('0.024488106422335034',), 1371063664: ('0.024488106422335034',), 1371063662: ('0.024488106422335034',), 1371063653: ('0.024488106422335034',)} args : 1371063667 depend.output_id : 0 input_args_next_step : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ('0.024488106422335034',), 1371063727: ('0.024488106422335034',), 1371063676: ('0.024488106422335034',), 1371063671: ('0.024488106422335034',), 1371063667: ('0.024488106422335034',), 1371063664: ()} output_args : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ('0.024488106422335034',), 1371063727: ('0.024488106422335034',), 1371063676: ('0.024488106422335034',), 1371063671: ('0.024488106422335034',), 1371063667: ('0.024488106422335034',), 1371063664: ('0.024488106422335034',), 1371063662: ('0.024488106422335034',), 1371063653: ('0.024488106422335034',)} args : 1371063664 depend.output_id : 0 input_args_next_step : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ('0.024488106422335034',), 1371063727: ('0.024488106422335034',), 1371063676: ('0.024488106422335034',), 1371063671: ('0.024488106422335034',), 1371063667: ('0.024488106422335034',), 1371063664: ('0.024488106422335034',), 1371063662: ()} output_args : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ('0.024488106422335034',), 1371063727: ('0.024488106422335034',), 1371063676: ('0.024488106422335034',), 1371063671: ('0.024488106422335034',), 1371063667: ('0.024488106422335034',), 1371063664: ('0.024488106422335034',), 1371063662: ('0.024488106422335034',), 1371063653: ('0.024488106422335034',)} args : 1371063662 depend.output_id : 0 input_args_next_step : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ('0.024488106422335034',), 1371063727: ('0.024488106422335034',), 1371063676: ('0.024488106422335034',), 1371063671: ('0.024488106422335034',), 1371063667: ('0.024488106422335034',), 1371063664: ('0.024488106422335034',), 1371063662: ('0.024488106422335034',), 1371063653: ()} output_args : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ('0.024488106422335034',), 1371063727: ('0.024488106422335034',), 1371063676: ('0.024488106422335034',), 1371063671: ('0.024488106422335034',), 1371063667: ('0.024488106422335034',), 1371063664: ('0.024488106422335034',), 1371063662: ('0.024488106422335034',), 1371063653: ('0.024488106422335034',)} args : 1371063653 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 : {24692648: [{'Carton_gris': 24692678, 'kraft': 24692679, 'metal': 24692680, 'cartonnette': 24692681, 'environnement': 24692682, 'mal_croppe': 24692683, 'autre_refus': 24692684, 'papier': 24692685, 'Teint_Dans_La_Masse': 24692686, 'Carton_brun': 24692687, 'plastique': 24692688, 'flou': 24692689}]} input_args_next_step : {1371063750: ('0.024488106422335034',), 1371063743: ('0.024488106422335034',), 1371063740: ('0.024488106422335034',), 1371063737: ('0.024488106422335034',), 1371063733: ('0.024488106422335034',), 1371063727: ('0.024488106422335034',), 1371063676: ('0.024488106422335034',), 1371063671: ('0.024488106422335034',), 1371063667: ('0.024488106422335034',), 1371063664: ('0.024488106422335034',), 1371063662: ('0.024488106422335034',), 1371063653: ('0.024488106422335034',), 24692648: ()} output_args : {24692648: [{'Carton_gris': 24692678, 'kraft': 24692679, 'metal': 24692680, 'cartonnette': 24692681, 'environnement': 24692682, 'mal_croppe': 24692683, 'autre_refus': 24692684, 'papier': 24692685, 'Teint_Dans_La_Masse': 24692686, 'Carton_brun': 24692687, 'plastique': 24692688, 'flou': 24692689}]} args : 24692648 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 :13, first value : ('0.024488106422335034',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24692648) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1371063750,1371063743,1371063740,1371063737,1371063733,1371063727,1371063676,1371063671,1371063667,1371063664,1371063662,1371063653) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1371063653 begin to download photo : 1371063667 begin to download photo : 1371063727 begin to download photo : 1371063740 download finish for photo 1371063653 begin to download photo : 1371063662 download finish for photo 1371063667 begin to download photo : 1371063671 download finish for photo 1371063727 begin to download photo : 1371063733 download finish for photo 1371063740 begin to download photo : 1371063743 download finish for photo 1371063743 begin to download photo : 1371063750 download finish for photo 1371063662 begin to download photo : 1371063664 download finish for photo 1371063671 begin to download photo : 1371063676 download finish for photo 1371063733 begin to download photo : 1371063737 download finish for photo 1371063676 download finish for photo 1371063737 download finish for photo 1371063750 download finish for photo 1371063664 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette246926791751914529/ imagette246926801751914529/ imagette246926811751914529/ imagette246926831751914529/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P24692648_07-07-2025_20_55_29.pdf 24692679 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24692679 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette246926791751914529 24692680 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24692680 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette246926801751914529 24692681 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24692681 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette246926811751914529 24692683 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24692683 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette246926831751914529 24692684 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24692684 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371063756: '1751914405_2730090_1371063635_211d5b87f1da4fd55704e4de4777ed67_rle_crop_3875039718_0.png', 1371063757: '1751914405_2730090_1371063634_9ade8457766a5c04055d9951332ced2c_rle_crop_3875039736_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/d0798b7f78f3b7f8476f400e2915584c_77574180.png change filename to text .imagette246926841751914529/ imagette246926841751914529/1751914405_2730090_1371063635_211d5b87f1da4fd55704e4de4777ed67_rle_crop_3875039718_0.png.png imagette246926841751914529/1751914405_2730090_1371063634_9ade8457766a5c04055d9951332ced2c_rle_crop_3875039736_0.png.png imagette246926881751914529/ imagette246926891751914529/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/d0798b7f78f3b7f8476f400e2915584c_34024529.png imagette246926841751914529 24692688 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24692688 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette246926881751914529 24692689 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24692689 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette246926891751914529 24692678 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24692678 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371063763: '1751914405_2730090_1371063622_6bbb07d9fa59514e110c31af057ef719_rle_crop_3875039812_0.png', 1371063791: '1751914445_1340251_1371063533_101ebf5153974ebd8eb33aca319ebf7f_rle_crop_3875040190_0.png', 1371063790: '1751914445_1340251_1371063537_359333dce45dc82e3605d9a0a5b9691e_rle_crop_3875040176_0.png', 1371063789: '1751914445_1340251_1371063542_e5dca8630110423c7016bcdeb7832631_rle_crop_3875040156_0.png', 1371063788: '1751914445_1340251_1371063546_7d5391e503c6ae27b0803a1915ef0cff_rle_crop_3875040133_0.png', 1371063769: '1751914405_2730090_1371063610_9d1c4dcf1afa6b6a331f61b3229b6193_rle_crop_3875039879_0.png', 1371063768: '1751914405_2730090_1371063611_a90187d80d54dfbbbff14d2acd5a6efe_rle_crop_3875039862_0.png', 1371063767: '1751914405_2730090_1371063615_783197582ce8a180f8de689430112c4a_rle_crop_3875039839_0.png', 1371063766: '1751914405_2730090_1371063615_783197582ce8a180f8de689430112c4a_rle_crop_3875039849_0.png', 1371063765: '1751914405_2730090_1371063616_ca8d9ad83a4dcf29c0e0ed50985dbcb1_rle_crop_3875039822_0.png', 1371063764: '1751914405_2730090_1371063616_ca8d9ad83a4dcf29c0e0ed50985dbcb1_rle_crop_3875039832_0.png', 1371063523: '1751914167_2724412_1371063410_1b469c6c7c322163a55b8b9d7e03b4f4_rle_crop_3875038504_0.png', 1371063761: '1751914405_2730090_1371063623_84adcaea1fd760c090dd8274223af49d_rle_crop_3875039796_0.png', 1371063760: '1751914405_2730090_1371063634_9ade8457766a5c04055d9951332ced2c_rle_crop_3875039747_0.png', 1371063759: '1751914405_2730090_1371063635_211d5b87f1da4fd55704e4de4777ed67_rle_crop_3875039729_0.png', 1371063672: '1751914327_1337331_1371063455_6739bf9459e77abc194a0b792851e2f8_rle_crop_3875039264_0.png', 1371063638: '1751914288_2727285_1371063491_f8df4a5a7f80506b2d18de4046214f95_rle_crop_3875038974_0.png', 1371063637: '1751914288_2727285_1371063496_22d7b42a0702936a1a959decb8a198c1_rle_crop_3875038959_0.png', 1371063527: '1751914167_2724412_1371063380_3cb202f0b8cfe6521d6ec5eba23cada7_rle_crop_3875038596_0.png', 1371063526: '1751914167_2724412_1371063390_4949a8b9f3c9eb3fe4158789df6426c4_rle_crop_3875038557_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/33721d4ab12de33a5880d7189d6f536f_10411107.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/585b55fd08239deda1bf7e31343f79f4_18454135.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/4a1ec4dafc4cd9af3266370145cfc57b_47432761.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/f29ab52d8bcac7a769feeedd976457f1_9826181.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/d850ae2eb1ebc961abfb5da69ed87a9b_39092677.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/e88a00a533855c926421c809cc89805a_89490528.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/e88a00a533855c926421c809cc89805a_76659758.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/17d8d540b37e2cbe34658993fc08d0dc_23980455.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/769f4cb00d933ce232d7f418890e588c_66004853.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/17d8d540b37e2cbe34658993fc08d0dc_63266225.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/769f4cb00d933ce232d7f418890e588c_32020352.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/0444075a4e156d0452b3d0f40e6a6d3b_28309981.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/33721d4ab12de33a5880d7189d6f536f_72188789.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/38c428e7274a8debb4e7f28c5e3bbb0d_47711798.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/38c428e7274a8debb4e7f28c5e3bbb0d_34452964.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/290ed48bb50655105d6be27560b9c449_96849330.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/fb15ac28e06986c003fafba5b1da9267_22500316.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/daa2d9fcf4b9e89fe9dd0b3744f96beb_67924962.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/1cd46c0b9d4ca8550479592a89fd8f77_38272458.png change filename to text .imagette246926781751914529/ imagette246926781751914529/1751914167_2724412_1371063410_1b469c6c7c322163a55b8b9d7e03b4f4_rle_crop_3875038504_0.png.png imagette246926781751914529/1751914167_2724412_1371063380_3cb202f0b8cfe6521d6ec5eba23cada7_rle_crop_3875038596_0.png.png imagette246926781751914529/1751914405_2730090_1371063622_6bbb07d9fa59514e110c31af057ef719_rle_crop_3875039812_0.png.png imagette246926781751914529/1751914405_2730090_1371063635_211d5b87f1da4fd55704e4de4777ed67_rle_crop_3875039729_0.png.png imagette246926781751914529/1751914405_2730090_1371063615_783197582ce8a180f8de689430112c4a_rle_crop_3875039849_0.png.png imagette246926781751914529/1751914327_1337331_1371063455_6739bf9459e77abc194a0b792851e2f8_rle_crop_3875039264_0.png.png imagette246926781751914529/1751914405_2730090_1371063611_a90187d80d54dfbbbff14d2acd5a6efe_rle_crop_3875039862_0.png.png imagette246926781751914529/1751914167_2724412_1371063390_4949a8b9f3c9eb3fe4158789df6426c4_rle_crop_3875038557_0.png.png imagette246926781751914529/1751914405_2730090_1371063623_84adcaea1fd760c090dd8274223af49d_rle_crop_3875039796_0.png.png imagette246926781751914529/1751914405_2730090_1371063616_ca8d9ad83a4dcf29c0e0ed50985dbcb1_rle_crop_3875039832_0.png.png imagette246926781751914529/1751914405_2730090_1371063615_783197582ce8a180f8de689430112c4a_rle_crop_3875039839_0.png.png imagette246926781751914529/1751914445_1340251_1371063533_101ebf5153974ebd8eb33aca319ebf7f_rle_crop_3875040190_0.png.png imagette246926781751914529/1751914445_1340251_1371063546_7d5391e503c6ae27b0803a1915ef0cff_rle_crop_3875040133_0.png.png imagette246926781751914529/1751914288_2727285_1371063491_f8df4a5a7f80506b2d18de4046214f95_rle_crop_3875038974_0.png.png imagette246926781751914529/1751914405_2730090_1371063616_ca8d9ad83a4dcf29c0e0ed50985dbcb1_rle_crop_3875039822_0.png.png imagette246926781751914529/1751914445_1340251_1371063542_e5dca8630110423c7016bcdeb7832631_rle_crop_3875040156_0.png.png imagette246926781751914529/1751914405_2730090_1371063634_9ade8457766a5c04055d9951332ced2c_rle_crop_3875039747_0.png.png imagette246926781751914529/1751914405_2730090_1371063610_9d1c4dcf1afa6b6a331f61b3229b6193_rle_crop_3875039879_0.png.png imagette246926781751914529/1751914288_2727285_1371063496_22d7b42a0702936a1a959decb8a198c1_rle_crop_3875038959_0.png.png imagette246926781751914529/1751914445_1340251_1371063537_359333dce45dc82e3605d9a0a5b9691e_rle_crop_3875040176_0.png.png imagette246926861751914531/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/e3e84d67ddd7a3490e0cf1c272633e31_73927456.png imagette246926781751914529 24692686 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24692686 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette246926861751914531 24692687 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24692687 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371063530: '1751914167_2724412_1371063394_1d3115facd5778137ef4ca42b7cf2851_rle_crop_3875038542_0.png', 1371063531: '1751914167_2724412_1371063390_4949a8b9f3c9eb3fe4158789df6426c4_rle_crop_3875038556_0.png', 1371063642: '1751914288_2727285_1371063509_6aa12c96ca1cb7f5c32b6a26ab3c1cd1_rle_crop_3875038898_0.png', 1371063643: '1751914288_2727285_1371063491_f8df4a5a7f80506b2d18de4046214f95_rle_crop_3875038972_0.png', 1371063673: '1751914327_1337331_1371063470_91a6d314e2faa7f98b9c92172974f18e_rle_crop_3875039215_0.png', 1371063771: '1751914405_2730090_1371063641_04cc4a49b6503999cefcf815472f73d5_rle_crop_3875039691_0.png', 1371063772: '1751914405_2730090_1371063640_76a50563927f9d9df996b3c391af6450_rle_crop_3875039707_0.png', 1371063773: '1751914405_2730090_1371063635_211d5b87f1da4fd55704e4de4777ed67_rle_crop_3875039725_0.png', 1371063774: '1751914405_2730090_1371063634_9ade8457766a5c04055d9951332ced2c_rle_crop_3875039743_0.png', 1371063777: '1751914405_2730090_1371063629_503c94cc1a3e1ec4361fa75e09e82699_rle_crop_3875039758_0.png', 1371063779: '1751914405_2730090_1371063627_6940f0f6fc1309f884bd904165b69ae5_rle_crop_3875039774_0.png', 1371063793: '1751914445_1340251_1371063537_359333dce45dc82e3605d9a0a5b9691e_rle_crop_3875040169_0.png', 1371063794: '1751914445_1340251_1371063533_101ebf5153974ebd8eb33aca319ebf7f_rle_crop_3875040189_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/6da84ea80672d82daa4288d81fb13e81_24783910.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/1dd50c5bca9c0984dbae2d3435b9a499_28671746.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/3c79be5342e8f3c141b231b97d44e0aa_33252040.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/dccb589461dcc712c57a90a02afb3759_38967737.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/73821fed7957fbc9ab9bb60db2bc6e1b_81539631.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/892f177f3b9b560ab819e6db9957a6e2_48956245.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/892f177f3b9b560ab819e6db9957a6e2_1156432.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/c4c9321a29f14e1c7a67dae0e49c3a0d_50161405.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/c4c9321a29f14e1c7a67dae0e49c3a0d_35941251.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/e53d933857840aa297588c366f6d802f_56844563.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/e53d933857840aa297588c366f6d802f_88469383.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/c24a676e95fb859a9f19f4c051519559_38679487.png change filename to text .imagette246926871751914531/ imagette246926871751914531/1751914288_2727285_1371063491_f8df4a5a7f80506b2d18de4046214f95_rle_crop_3875038972_0.png.png imagette246926871751914531/1751914167_2724412_1371063390_4949a8b9f3c9eb3fe4158789df6426c4_rle_crop_3875038556_0.png.png imagette246926871751914531/1751914405_2730090_1371063635_211d5b87f1da4fd55704e4de4777ed67_rle_crop_3875039725_0.png.png imagette246926871751914531/1751914445_1340251_1371063533_101ebf5153974ebd8eb33aca319ebf7f_rle_crop_3875040189_0.png.png imagette246926871751914531/1751914405_2730090_1371063629_503c94cc1a3e1ec4361fa75e09e82699_rle_crop_3875039758_0.png.png imagette246926871751914531/1751914405_2730090_1371063627_6940f0f6fc1309f884bd904165b69ae5_rle_crop_3875039774_0.png.png imagette246926871751914531/1751914405_2730090_1371063641_04cc4a49b6503999cefcf815472f73d5_rle_crop_3875039691_0.png.png imagette246926871751914531/1751914405_2730090_1371063634_9ade8457766a5c04055d9951332ced2c_rle_crop_3875039743_0.png.png imagette246926871751914531/1751914405_2730090_1371063640_76a50563927f9d9df996b3c391af6450_rle_crop_3875039707_0.png.png imagette246926871751914531/1751914327_1337331_1371063470_91a6d314e2faa7f98b9c92172974f18e_rle_crop_3875039215_0.png.png imagette246926871751914531/1751914288_2727285_1371063509_6aa12c96ca1cb7f5c32b6a26ab3c1cd1_rle_crop_3875038898_0.png.png imagette246926871751914531/1751914167_2724412_1371063394_1d3115facd5778137ef4ca42b7cf2851_rle_crop_3875038542_0.png.png imagette246926871751914531/1751914445_1340251_1371063537_359333dce45dc82e3605d9a0a5b9691e_rle_crop_3875040169_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/a71f879b9d0f17de966889530f3e1f4f_75402262.png imagette246926871751914531 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24692648 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24692691,24692692,24692693,24692694,24692695,24692696,24692697,24692698,24692699,24692700,24692701,24692702?tags=Carton_gris,kraft,metal,cartonnette,environnement,mal_croppe,autre_refus,papier,Teint_Dans_La_Masse,Carton_brun,plastique,flou your option no_mail is active, we will not send the real mail to your client args[1371063750] : ('0.024488106422335034',) no score found for photo 1371063750 We are sending mail with results at report@fotonower.com args[1371063743] : ('0.024488106422335034',) no score found for photo 1371063743 We are sending mail with results at report@fotonower.com args[1371063740] : ('0.024488106422335034',) no score found for photo 1371063740 We are sending mail with results at report@fotonower.com args[1371063737] : ('0.024488106422335034',) no score found for photo 1371063737 We are sending mail with results at report@fotonower.com args[1371063733] : ('0.024488106422335034',) no score found for photo 1371063733 We are sending mail with results at report@fotonower.com args[1371063727] : ('0.024488106422335034',) no score found for photo 1371063727 We are sending mail with results at report@fotonower.com args[1371063676] : ('0.024488106422335034',) no score found for photo 1371063676 We are sending mail with results at report@fotonower.com args[1371063671] : ('0.024488106422335034',) no score found for photo 1371063671 We are sending mail with results at report@fotonower.com args[1371063667] : ('0.024488106422335034',) no score found for photo 1371063667 We are sending mail with results at report@fotonower.com args[1371063664] : ('0.024488106422335034',) no score found for photo 1371063664 We are sending mail with results at report@fotonower.com args[1371063662] : ('0.024488106422335034',) no score found for photo 1371063662 We are sending mail with results at report@fotonower.com args[1371063653] : ('0.024488106422335034',) no score found for photo 1371063653 We are sending mail with results at report@fotonower.com refus_total : 0.024488106422335034 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24692648 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_P24692648_07-07-2025_20_55_29.pdf results_Auto_P24692648_07-07-2025_20_55_29.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24692648_07-07-2025_20_55_29.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','24692648','results_Auto_P24692648_07-07-2025_20_55_29.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24692648_07-07-2025_20_55_29.pdf','pdf','','0.17','0.024488106422335034') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24692648]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1371063750, 1371063743, 1371063740, 1371063737, 1371063733, 1371063727, 1371063676, 1371063671, 1371063667, 1371063664, 1371063662, 1371063653] map_info['map_portfolio_photo'] : {24692648: [1371063750, 1371063743, 1371063740, 1371063737, 1371063733, 1371063727, 1371063676, 1371063671, 1371063667, 1371063664, 1371063662, 1371063653, 1371063641, 1371063640, 1371063635, 1371063634, 1371063629, 1371063627, 1371063623, 1371063622, 1371063616, 1371063615, 1371063611, 1371063610, 1371063551, 1371063549, 1371063546, 1371063542, 1371063537, 1371063533, 1371063509, 1371063504, 1371063502, 1371063499, 1371063496, 1371063491, 1371063479, 1371063476, 1371063470, 1371063465, 1371063459, 1371063455, 1371063410, 1371063405, 1371063394, 1371063390, 1371063385, 1371063380, 1371063363, 1371063357, 1371063352, 1371063349, 1371063346, 1371063338]} final : False mtd_id 4302 list_pids : [1371063750, 1371063743, 1371063740, 1371063737, 1371063733, 1371063727, 1371063676, 1371063671, 1371063667, 1371063664, 1371063662, 1371063653] 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, '3246862') ('4302', '24692648', '1371063750', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063743', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063740', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063737', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063733', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063727', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063676', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063671', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063667', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063664', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063662', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063653', None, None, None, None, None, '3246862') 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', '24692648', '1371063750', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063743', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063740', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063737', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063733', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063727', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063676', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063671', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063667', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063664', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063662', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063653', None, None, None, None, None, '3246862')] time used for this insertion : 0.013822793960571289 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.537341833114624 time spend to save output : 0.014077186584472656 total time spend for step 4 : 3.5514190196990967 step5:split_time_score Mon Jul 7 20:55:32 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['24692648'] 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 : [('24692648',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24692648) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1371063667: {'path': 'temp/1751914529_541720_1371063667_b7204f6d083f96dd684d25e9f9930bef.jpg', 'extension': 'jpg'}, 1371063671: {'path': 'temp/1751914529_541720_1371063671_0a24298c1490fd26d8f8e624933cd967.jpg', 'extension': 'jpg'}, 1371063676: {'path': 'temp/1751914529_541720_1371063676_ce83e68a90c85efed39cb650c78b4256.jpg', 'extension': 'jpg'}, 1371063727: {'path': 'temp/1751914529_541720_1371063727_5c8380716034615f2d52212fbfb52bbf.jpg', 'extension': 'jpg'}, 1371063733: {'path': 'temp/1751914529_541720_1371063733_07258e4ed1b1b23c4295a6ce0f867037.jpg', 'extension': 'jpg'}, 1371063737: {'path': 'temp/1751914529_541720_1371063737_3bee7733c7fc9b7e1de9fce665f5b0d9.jpg', 'extension': 'jpg'}, 1371063740: {'path': 'temp/1751914529_541720_1371063740_e80c1447ab58fdf205f7e82a5ba73be4.jpg', 'extension': 'jpg'}, 1371063743: {'path': 'temp/1751914529_541720_1371063743_23a869e39c6931658f0731b3cb5bc804.jpg', 'extension': 'jpg'}, 1371063750: {'path': 'temp/1751914529_541720_1371063750_2fbb4d8961184c2e24d85d0a900ba214.jpg', 'extension': 'jpg'}, 1371063653: {'path': 'temp/1751914529_541720_1371063653_e01018c7867e20971e015d1c506a0ad3.jpg', 'extension': 'jpg'}, 1371063662: {'path': 'temp/1751914529_541720_1371063662_5ed36d003bc74200bb109bf533f3bf2d.jpg', 'extension': 'jpg'}, 1371063664: {'path': 'temp/1751914529_541720_1371063664_a63e6efb50e8e208e6cbe775a26af254.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 = 24692648; (('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 ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 24692648 group by h (('20', 54),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24692648 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 (24692648) 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 (24692648) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07072025 24692648 Nombre de photos uploadées : 54 / 23040 (0%) 07072025 24692648 Nombre de photos taguées (types de déchets): 0 / 54 (0%) 07072025 24692648 Nombre de photos taguées (volume) : 0 / 54 (0%) [{'photo_id': 1371063363, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/2fb765e544ed6fef7c40091bcca245d6.jpg', 'username': None, 'uploaded_at': 1751913977, 'text': 'image_07072025_20_45_04_10137.jpg'}, {'photo_id': 1371063357, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/b1fc0afd0778de7bdfc8417cb12d306a.jpg', 'username': None, 'uploaded_at': 1751913977, 'text': 'image_07072025_20_45_13_9127.jpg'}, {'photo_id': 1371063352, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/61253b0b8765caf8184f2d037f3853d8.jpg', 'username': None, 'uploaded_at': 1751913977, 'text': 'image_07072025_20_45_23_10137.jpg'}, {'photo_id': 1371063349, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/7/5b157eaba7a4fd2cf0c53970eec245a9.jpg', 'username': None, 'uploaded_at': 1751913977, 'text': 'image_07072025_20_45_33_10143.jpg'}] 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.0032324790954589844 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24692648, '2025-07-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1957185,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022409439086914062 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= 1957185 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24661292, 'dashboard_result_id': 12242576, '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_P24661292_07-07-2025_05_16_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24661295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24661296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24661297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24661298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24661299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24661300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24661301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24661302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24661303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24661304, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24661305, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24661306, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24661693, 'dashboard_result_id': 12242577, '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_P24661693_07-07-2025_05_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24661698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24661699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24661700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24661701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24661703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24661704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24661705, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24661707, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24661708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24661709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24661711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24661712, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24662126, 'dashboard_result_id': 12242578, '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_P24662126_07-07-2025_05_46_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24662155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24662156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24662157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24662158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24662159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24662160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24662161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24662162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24662163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24662164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24662165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24662166, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24662593, 'dashboard_result_id': 12242579, '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_P24662593_07-07-2025_06_00_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24662613, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24662614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24662615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24662617, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24662618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24662619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24662621, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24662622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24662623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24662624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24662626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24662627, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24662987, 'dashboard_result_id': 12242580, '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_P24662987_07-07-2025_06_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24663032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24663033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24663034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24663035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24663036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24663037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24663038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24663039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24663040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24663041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24663042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24663043, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24663509, 'dashboard_result_id': 12242581, '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_P24663509_07-07-2025_06_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24663537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24663538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24663539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24663540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24663541, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24663542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24663543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24663544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24663545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24663546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24663547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24663548, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24663935, 'dashboard_result_id': 12242582, '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_P24663935_07-07-2025_06_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24663976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24663977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24663978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24663979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24663980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24663981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24663982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24663983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24663984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24663985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24663986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24663987, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24664395, 'dashboard_result_id': 12242583, '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_P24664395_07-07-2025_07_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24664423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24664424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24664425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24664426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24664427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24664428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24664429, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24664430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24664431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24664432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24664433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24664434, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24664810, 'dashboard_result_id': 12242584, '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_P24664810_07-07-2025_07_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24664895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24664896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24664897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24664898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24664899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24664900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24664901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24664902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24664903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24664904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24664905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24664906, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24665530, 'dashboard_result_id': 12242585, '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_P24665530_07-07-2025_07_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24665557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24665558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24665559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24665560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24665561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24665562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24665563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24665564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24665565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24665566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24665567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24665568, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24666046, 'dashboard_result_id': 12242586, '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_P24666046_07-07-2025_07_46_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24666117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24666119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24666120, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24666121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24666123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24666124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24666125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24666127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24666128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24666129, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24666131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24666132, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24666767, 'dashboard_result_id': 12242587, '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_P24666767_07-07-2025_08_03_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24666796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24666797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24666798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24666799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24666800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24666801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24666802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24666803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24666804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24666805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24666806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24666807, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24667340, 'dashboard_result_id': 12242588, '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_P24667340_07-07-2025_08_17_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24667345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24667346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24667347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24667348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24667349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24667350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24667351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24667352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24667353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24667354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24667355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24667356, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24668039, 'dashboard_result_id': 12242589, '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_P24668039_07-07-2025_08_33_27.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24668043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24668044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24668045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24668046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24668047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24668048, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24668049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24668050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24668051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24668052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24668053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24668054, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24668575, 'dashboard_result_id': 12242590, '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_P24668575_07-07-2025_08_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24668580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24668581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24668582, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24668583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24668584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24668585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24668586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24668587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24668588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24668589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24668590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24668591, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24669145, 'dashboard_result_id': 12242591, '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_P24669145_07-07-2025_09_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24669148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24669149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24669150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24669151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24669152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24669153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24669154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24669155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24669156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24669157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24669158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24669159, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24669610, 'dashboard_result_id': 12242592, '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_P24669610_07-07-2025_09_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24669665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24669666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24669667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24669668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24669669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24669670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24669671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24669672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24669673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24669674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24669675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24669676, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24670302, 'dashboard_result_id': 12242593, '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_P24670302_07-07-2025_09_33_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24670307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24670308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24670309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24670310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24670311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24670312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24670313, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24670314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24670315, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24670316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24670317, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24670318, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24670769, 'dashboard_result_id': 12242594, '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_P24670769_07-07-2025_09_46_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24670802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24670803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24670804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24670805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24670806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24670807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24670808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24670809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24670810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24670811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24670812, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24670813, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24671299, 'dashboard_result_id': 12242595, '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_P24671299_07-07-2025_10_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24671330, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24671331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24671332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24671333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24671334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24671335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24671336, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24671337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24671338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24671339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24671340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24671341, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24671783, 'dashboard_result_id': 12242596, '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_P24671783_07-07-2025_10_16_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24671789, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24671791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24671792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24671793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24671794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24671796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24671797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24671798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24671800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24671801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24671802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24671804, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24672382, 'dashboard_result_id': 12242597, '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_P24672382_07-07-2025_10_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24672397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24672398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24672399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24672400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24672401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24672402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24672403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24672404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24672405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24672406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24672407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24672408, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24672816, 'dashboard_result_id': 12242598, '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_P24672816_07-07-2025_10_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24672849, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24672850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24672851, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24672852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24672853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24672854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24672855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24672856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24672857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24672858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24672859, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24672860, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24673357, 'dashboard_result_id': 12242599, '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_P24673357_07-07-2025_11_00_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24673384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24673385, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24673386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24673387, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24673388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24673389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24673390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24673391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24673392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24673393, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24673394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24673395, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24673871, 'dashboard_result_id': 12242600, '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_P24673871_07-07-2025_11_17_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24673874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24673875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24673876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24673877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24673878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24673879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24673880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24673881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24673882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24673883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24673884, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24673885, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24674412, 'dashboard_result_id': 12242601, '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_P24674412_07-07-2025_11_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24674438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24674439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24674440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24674441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24674442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24674443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24674444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24674445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24674446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24674447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24674448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24674449, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24674756, 'dashboard_result_id': 12242602, '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_P24674756_07-07-2025_11_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24674812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24674813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24674814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24674815, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24674816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24674817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24674818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24674819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24674820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24674821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24674822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24674823, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24675340, 'dashboard_result_id': 12242603, '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_P24675340_07-07-2025_12_02_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24675344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24675345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24675346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24675347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24675348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24675349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24675350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24675351, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24675352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24675353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24675354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24675355, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24675844, 'dashboard_result_id': 12242604, '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_P24675844_07-07-2025_12_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24675911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24675912, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24675913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24675914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24675915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24675916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24675917, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24675918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24675919, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24675920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24675921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24675922, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24676579, 'dashboard_result_id': 12242605, '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_P24676579_07-07-2025_12_32_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24676585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24676586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24676587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24676588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24676590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24676591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24676593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24676594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24676595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24676597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24676598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24676599, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24677001, 'dashboard_result_id': 12242606, '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_P24677001_07-07-2025_12_46_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24677033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24677034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24677035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24677036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24677037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24677038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24677039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24677040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24677041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24677042, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24677043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24677044, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24677579, 'dashboard_result_id': 12242607, '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_P24677579_07-07-2025_13_00_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24677594, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24677595, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24677596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24677597, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24677598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24677600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24677601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24677602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24677604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24677605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24677606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24677608, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24678043, 'dashboard_result_id': 12242608, '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_P24678043_07-07-2025_13_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24678046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24678047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24678048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24678049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24678050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24678051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24678052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24678053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24678054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24678055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24678056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24678057, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24678663, 'dashboard_result_id': 12242609, '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_P24678663_07-07-2025_13_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24678678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24678679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24678680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24678681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24678682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24678683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24678685, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24678686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24678687, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24678688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24678690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24678691, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24679089, 'dashboard_result_id': 12242610, '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_P24679089_07-07-2025_13_46_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24679120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24679121, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24679122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24679123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24679124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24679125, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24679126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24679127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24679128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24679129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24679130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24679131, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24679643, 'dashboard_result_id': 12242611, '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_P24679643_07-07-2025_14_01_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24679669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24679670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24679671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24679672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24679673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24679674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24679675, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24679676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24679677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24679678, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24679679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24679680, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24680121, 'dashboard_result_id': 12242612, '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_P24680121_07-07-2025_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24680124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24680125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24680126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24680127, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24680128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24680129, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24680130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24680131, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24680132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24680133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24680134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24680135, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24680807, 'dashboard_result_id': 12242613, '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_P24680807_07-07-2025_14_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24680834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24680835, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24680836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24680837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24680838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24680839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24680840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24680841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24680842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24680843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24680844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24680845, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24681262, 'dashboard_result_id': 12242614, '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_P24681262_07-07-2025_14_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24681290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24681291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24681292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24681293, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24681294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24681295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24681296, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24681297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24681298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24681299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24681300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24681301, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24681815, 'dashboard_result_id': 12242615, '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_P24681815_07-07-2025_15_03_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24681829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24681830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24681831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24681832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24681833, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24681834, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24681835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24681836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24681837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24681838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24681839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24681840, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24682277, 'dashboard_result_id': 12242616, '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_P24682277_07-07-2025_15_16_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24682305, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24682306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24682307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24682308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24682309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24682310, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24682311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24682312, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24682313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24682314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24682315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24682316, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24683009, 'dashboard_result_id': 12242617, '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_P24683009_07-07-2025_15_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24683037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24683038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24683039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24683040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24683041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24683042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24683043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24683044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24683045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24683046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24683047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24683048, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24683460, 'dashboard_result_id': 12242618, '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_P24683460_07-07-2025_15_46_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24683492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24683493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24683494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24683495, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24683496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24683497, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24683498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24683499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24683500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24683501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24683502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24683503, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24684007, 'dashboard_result_id': 12242619, '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_P24684007_07-07-2025_16_00_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24684034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24684035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24684036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24684037, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24684038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24684039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24684040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24684041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24684042, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24684043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24684044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24684045, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24684510, 'dashboard_result_id': 12242620, '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_P24684510_07-07-2025_16_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24684541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24684542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24684543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24684544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24684545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24684546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24684547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24684548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24684549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24684550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24684551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24684552, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24685111, 'dashboard_result_id': 12242621, '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_P24685111_07-07-2025_16_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24685139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24685140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24685141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24685142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24685143, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24685144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24685145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24685146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24685147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24685148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24685149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24685150, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24685578, 'dashboard_result_id': 12242622, '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_P24685578_07-07-2025_16_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24685608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24685610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24685611, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24685612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24685613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24685614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24685615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24685616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24685617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24685618, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24685619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24685620, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24686139, 'dashboard_result_id': 12242623, '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_P24686139_07-07-2025_17_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24686166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24686167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24686168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24686169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24686170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24686171, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24686172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24686173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24686174, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24686175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24686176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24686177, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24686585, 'dashboard_result_id': 12242624, '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_P24686585_07-07-2025_17_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24686615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24686617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24686618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24686619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24686620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24686621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24686622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24686623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24686624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24686625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24686626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24686627, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24687233, 'dashboard_result_id': 12242625, '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_P24687233_07-07-2025_17_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24687264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24687265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24687266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24687267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24687268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24687269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24687270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24687271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24687272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24687273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24687274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24687275, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24687733, 'dashboard_result_id': 12242626, '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_P24687733_07-07-2025_17_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24687766, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24687767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24687768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24687769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24687770, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24687771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24687772, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24687773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24687774, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24687775, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24687776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24687777, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24688312, 'dashboard_result_id': 12242627, '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_P24688312_07-07-2025_18_00_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24688339, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24688340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24688341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24688342, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24688343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24688344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24688345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24688346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24688347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24688348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24688349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24688350, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24688877, 'dashboard_result_id': 12242628, '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_P24688877_07-07-2025_18_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24688905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24688906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24688907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24688908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24688909, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24688910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24688911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24688912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24688913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24688914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24688915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24688916, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24689491, 'dashboard_result_id': 12242629, '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_P24689491_07-07-2025_18_33_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24689520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24689521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24689522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24689523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24689524, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24689525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24689526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24689527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24689528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24689529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24689530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24689531, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24689937, 'dashboard_result_id': 12242630, '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_P24689937_07-07-2025_18_46_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24689966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24689967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24689968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24689969, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24689970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24689971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24689972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24689973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24689974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24689975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24689976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24689977, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24690455, 'dashboard_result_id': 12242631, '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_P24690455_07-07-2025_19_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24690520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24690521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24690522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24690523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24690524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24690525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24690526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24690527, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24690528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24690529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24690530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24690531, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24692646, 'dashboard_result_id': 12242632, '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_P24692646_07-07-2025_20_49_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24692652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24692653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24692654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24692655, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24692656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24692657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24692658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24692659, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24692660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24692661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24692662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24692663, 'pht': 3726}}"}, {'dashboat_entry_day': 1957185, 'dashboard_run_id': 1967224, 'mtr_portfolio_id': 24692648, 'dashboard_result_id': 12242633, '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_P24692648_07-07-2025_20_53_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24692678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24692679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24692680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24692681, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24692682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24692683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24692684, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24692685, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24692686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24692687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24692688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24692689, '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 = 24661292 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': 3243217, 'mtr_portfolio_id': 24661292, 'created_at': datetime.datetime(2025, 7, 7, 5, 16, 31), 'result': '0.026469756909939753', 'result_long': None, 'result_double': None}] Qualite : 0.026469756909939753 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24661292 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24661292_07-07-2025_05_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24661292 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_P24661292_07-07-2025_05_16_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24661295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24661296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24661297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24661298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24661299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24661300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24661301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24661302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24661303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24661304, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24661305, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24661306, 'pht': 3726}}" where mtr_portfolio_id = 24661292 and dashboard_run_id = 1967224 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`=24661292 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242576, 0.026469756909939753, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24661292_07-07-2025_05_16_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24661295, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24661296, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24661297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24661298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24661299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24661300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24661301, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24661302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24661303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24661304, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24661305, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24661306, '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 = 24661693 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': 3243255, 'mtr_portfolio_id': 24661693, 'created_at': datetime.datetime(2025, 7, 7, 5, 32, 57), 'result': '0.04305026881693731', 'result_long': None, 'result_double': None}] Qualite : 0.04305026881693731 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24661693 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24661693_07-07-2025_05_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24661693 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_P24661693_07-07-2025_05_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24661698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24661699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24661700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24661701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24661703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24661704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24661705, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24661707, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24661708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24661709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24661711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24661712, 'pht': 3726}}" where mtr_portfolio_id = 24661693 and dashboard_run_id = 1967224 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`=24661693 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242577, 0.04305026881693731, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24661693_07-07-2025_05_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24661698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24661699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24661700, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24661701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24661703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24661704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24661705, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24661707, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24661708, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24661709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24661711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24661712, '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 = 24662126 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': 3243302, 'mtr_portfolio_id': 24662126, 'created_at': datetime.datetime(2025, 7, 7, 5, 46, 31), 'result': '0.04328643072415846', 'result_long': None, 'result_double': None}] Qualite : 0.04328643072415846 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24662126 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24662126_07-07-2025_05_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24662126 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_P24662126_07-07-2025_05_46_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24662155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24662156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24662157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24662158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24662159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24662160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24662161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24662162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24662163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24662164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24662165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24662166, 'pht': 3726}}" where mtr_portfolio_id = 24662126 and dashboard_run_id = 1967224 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`=24662126 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242578, 0.04328643072415846, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24662126_07-07-2025_05_46_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24662155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24662156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24662157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24662158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24662159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24662160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24662161, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24662162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24662163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24662164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24662165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24662166, '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 = 24662593 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': 3243347, 'mtr_portfolio_id': 24662593, 'created_at': datetime.datetime(2025, 7, 7, 6, 0, 57), 'result': '0.012108135590933933', 'result_long': None, 'result_double': None}] Qualite : 0.012108135590933933 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24662593 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24662593_07-07-2025_06_00_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24662593 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_P24662593_07-07-2025_06_00_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24662613, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24662614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24662615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24662617, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24662618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24662619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24662621, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24662622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24662623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24662624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24662626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24662627, 'pht': 3726}}" where mtr_portfolio_id = 24662593 and dashboard_run_id = 1967224 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`=24662593 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242579, 0.012108135590933933, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24662593_07-07-2025_06_00_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24662613, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24662614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24662615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24662617, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24662618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24662619, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24662621, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24662622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24662623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24662624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24662626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24662627, '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 = 24662987 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': 3243401, 'mtr_portfolio_id': 24662987, 'created_at': datetime.datetime(2025, 7, 7, 6, 16, 58), 'result': '0.021263400395111164', 'result_long': None, 'result_double': None}] Qualite : 0.021263400395111164 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24662987 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24662987_07-07-2025_06_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24662987 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_P24662987_07-07-2025_06_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24663032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24663033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24663034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24663035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24663036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24663037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24663038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24663039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24663040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24663041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24663042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24663043, 'pht': 3726}}" where mtr_portfolio_id = 24662987 and dashboard_run_id = 1967224 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`=24662987 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242580, 0.021263400395111164, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24662987_07-07-2025_06_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24663032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24663033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24663034, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24663035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24663036, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24663037, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24663038, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24663039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24663040, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24663041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24663042, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24663043, '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 = 24663509 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': 3243444, 'mtr_portfolio_id': 24663509, 'created_at': datetime.datetime(2025, 7, 7, 6, 33), 'result': '0.018414450777497388', 'result_long': None, 'result_double': None}] Qualite : 0.018414450777497388 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24663509 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24663509_07-07-2025_06_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24663509 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_P24663509_07-07-2025_06_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24663537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24663538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24663539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24663540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24663541, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24663542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24663543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24663544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24663545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24663546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24663547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24663548, 'pht': 3726}}" where mtr_portfolio_id = 24663509 and dashboard_run_id = 1967224 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`=24663509 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242581, 0.018414450777497388, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24663509_07-07-2025_06_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24663537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24663538, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24663539, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24663540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24663541, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24663542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24663543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24663544, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24663545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24663546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24663547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24663548, '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 = 24663935 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': 3243483, 'mtr_portfolio_id': 24663935, 'created_at': datetime.datetime(2025, 7, 7, 6, 46, 58), 'result': '0.012495391714311186', 'result_long': None, 'result_double': None}] Qualite : 0.012495391714311186 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24663935 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24663935_07-07-2025_06_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24663935 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_P24663935_07-07-2025_06_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24663976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24663977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24663978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24663979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24663980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24663981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24663982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24663983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24663984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24663985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24663986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24663987, 'pht': 3726}}" where mtr_portfolio_id = 24663935 and dashboard_run_id = 1967224 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`=24663935 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242582, 0.012495391714311186, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24663935_07-07-2025_06_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24663976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24663977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24663978, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24663979, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24663980, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24663981, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24663982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24663983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24663984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24663985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24663986, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24663987, '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 = 24664395 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': 3243529, 'mtr_portfolio_id': 24664395, 'created_at': datetime.datetime(2025, 7, 7, 7, 2, 56), 'result': '0.01052892123831939', 'result_long': None, 'result_double': None}] Qualite : 0.01052892123831939 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24664395 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24664395_07-07-2025_07_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24664395 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_P24664395_07-07-2025_07_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24664423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24664424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24664425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24664426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24664427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24664428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24664429, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24664430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24664431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24664432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24664433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24664434, 'pht': 3726}}" where mtr_portfolio_id = 24664395 and dashboard_run_id = 1967224 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`=24664395 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242583, 0.01052892123831939, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24664395_07-07-2025_07_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24664423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24664424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24664425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24664426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24664427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24664428, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24664429, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24664430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24664431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24664432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24664433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24664434, '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 = 24664810 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': 3243587, 'mtr_portfolio_id': 24664810, 'created_at': datetime.datetime(2025, 7, 7, 7, 16, 58), 'result': '0.009595420853349136', 'result_long': None, 'result_double': None}] Qualite : 0.009595420853349136 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24664810 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24664810_07-07-2025_07_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24664810 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_P24664810_07-07-2025_07_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24664895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24664896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24664897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24664898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24664899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24664900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24664901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24664902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24664903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24664904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24664905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24664906, 'pht': 3726}}" where mtr_portfolio_id = 24664810 and dashboard_run_id = 1967224 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`=24664810 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242584, 0.009595420853349136, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24664810_07-07-2025_07_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24664895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24664896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24664897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24664898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24664899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24664900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24664901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24664902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24664903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24664904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24664905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24664906, '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 = 24665530 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': 3243671, 'mtr_portfolio_id': 24665530, 'created_at': datetime.datetime(2025, 7, 7, 7, 32, 58), 'result': '0.009723190209080246', 'result_long': None, 'result_double': None}] Qualite : 0.009723190209080246 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24665530 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24665530_07-07-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24665530 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_P24665530_07-07-2025_07_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24665557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24665558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24665559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24665560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24665561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24665562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24665563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24665564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24665565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24665566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24665567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24665568, 'pht': 3726}}" where mtr_portfolio_id = 24665530 and dashboard_run_id = 1967224 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`=24665530 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242585, 0.009723190209080246, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24665530_07-07-2025_07_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24665557, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24665558, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24665559, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24665560, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24665561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24665562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24665563, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24665564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24665565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24665566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24665567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24665568, '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 = 24666046 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': 3243745, 'mtr_portfolio_id': 24666046, 'created_at': datetime.datetime(2025, 7, 7, 7, 46, 28), 'result': '0.010690955107287176', 'result_long': None, 'result_double': None}] Qualite : 0.010690955107287176 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24666046 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24666046_07-07-2025_07_46_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24666046 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_P24666046_07-07-2025_07_46_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24666117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24666119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24666120, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24666121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24666123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24666124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24666125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24666127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24666128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24666129, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24666131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24666132, 'pht': 3726}}" where mtr_portfolio_id = 24666046 and dashboard_run_id = 1967224 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`=24666046 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242586, 0.010690955107287176, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24666046_07-07-2025_07_46_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24666117, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24666119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24666120, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24666121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24666123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24666124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24666125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24666127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24666128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24666129, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24666131, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24666132, '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 = 24666767 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': 3243828, 'mtr_portfolio_id': 24666767, 'created_at': datetime.datetime(2025, 7, 7, 8, 3, 28), 'result': '0.008678496998904297', 'result_long': None, 'result_double': None}] Qualite : 0.008678496998904297 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24666767 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24666767_07-07-2025_08_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24666767 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_P24666767_07-07-2025_08_03_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24666796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24666797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24666798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24666799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24666800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24666801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24666802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24666803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24666804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24666805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24666806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24666807, 'pht': 3726}}" where mtr_portfolio_id = 24666767 and dashboard_run_id = 1967224 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`=24666767 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242587, 0.008678496998904297, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24666767_07-07-2025_08_03_29.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24666796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24666797, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24666798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24666799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24666800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24666801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24666802, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24666803, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24666804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24666805, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24666806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24666807, '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 = 24667340 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': 3243907, 'mtr_portfolio_id': 24667340, 'created_at': datetime.datetime(2025, 7, 7, 8, 17, 1), 'result': '0.04015608476947416', 'result_long': None, 'result_double': None}] Qualite : 0.04015608476947416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24667340 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24667340_07-07-2025_08_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24667340 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_P24667340_07-07-2025_08_17_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24667345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24667346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24667347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24667348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24667349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24667350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24667351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24667352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24667353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24667354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24667355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24667356, 'pht': 3726}}" where mtr_portfolio_id = 24667340 and dashboard_run_id = 1967224 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`=24667340 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242588, 0.04015608476947416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24667340_07-07-2025_08_17_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24667345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24667346, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24667347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24667348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24667349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24667350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24667351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24667352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24667353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24667354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24667355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24667356, '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 = 24668039 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': 3243992, 'mtr_portfolio_id': 24668039, 'created_at': datetime.datetime(2025, 7, 7, 8, 33, 27), 'result': '0.03256848211853555', 'result_long': None, 'result_double': None}] Qualite : 0.03256848211853555 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24668039 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24668039_07-07-2025_08_33_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24668039 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_P24668039_07-07-2025_08_33_27.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24668043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24668044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24668045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24668046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24668047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24668048, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24668049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24668050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24668051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24668052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24668053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24668054, 'pht': 3726}}" where mtr_portfolio_id = 24668039 and dashboard_run_id = 1967224 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`=24668039 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242589, 0.03256848211853555, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24668039_07-07-2025_08_33_27.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24668043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24668044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24668045, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24668046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24668047, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24668048, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24668049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24668050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24668051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24668052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24668053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24668054, '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 = 24668575 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': 3244060, 'mtr_portfolio_id': 24668575, 'created_at': datetime.datetime(2025, 7, 7, 8, 46, 59), 'result': '0.021158375268420196', 'result_long': None, 'result_double': None}] Qualite : 0.021158375268420196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24668575 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24668575_07-07-2025_08_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24668575 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_P24668575_07-07-2025_08_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24668580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24668581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24668582, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24668583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24668584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24668585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24668586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24668587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24668588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24668589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24668590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24668591, 'pht': 3726}}" where mtr_portfolio_id = 24668575 and dashboard_run_id = 1967224 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`=24668575 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242590, 0.021158375268420196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24668575_07-07-2025_08_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24668580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24668581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24668582, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24668583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24668584, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24668585, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24668586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24668587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24668588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24668589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24668590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24668591, '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 = 24669145 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': 3244135, 'mtr_portfolio_id': 24669145, 'created_at': datetime.datetime(2025, 7, 7, 9, 2, 59), 'result': '0.014148944608773537', 'result_long': None, 'result_double': None}] Qualite : 0.014148944608773537 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24669145 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24669145_07-07-2025_09_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24669145 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_P24669145_07-07-2025_09_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24669148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24669149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24669150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24669151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24669152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24669153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24669154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24669155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24669156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24669157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24669158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24669159, 'pht': 3726}}" where mtr_portfolio_id = 24669145 and dashboard_run_id = 1967224 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`=24669145 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242591, 0.014148944608773537, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24669145_07-07-2025_09_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24669148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24669149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24669150, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24669151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24669152, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24669153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24669154, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24669155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24669156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24669157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24669158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24669159, '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 = 24669610 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': 3244200, 'mtr_portfolio_id': 24669610, 'created_at': datetime.datetime(2025, 7, 7, 9, 16, 58), 'result': '0.016755775287521434', 'result_long': None, 'result_double': None}] Qualite : 0.016755775287521434 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24669610 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24669610_07-07-2025_09_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24669610 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_P24669610_07-07-2025_09_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24669665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24669666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24669667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24669668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24669669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24669670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24669671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24669672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24669673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24669674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24669675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24669676, 'pht': 3726}}" where mtr_portfolio_id = 24669610 and dashboard_run_id = 1967224 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`=24669610 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242592, 0.016755775287521434, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24669610_07-07-2025_09_16_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24669665, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24669666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24669667, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24669668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24669669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24669670, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24669671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24669672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24669673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24669674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24669675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24669676, '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 = 24670302 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': 3244268, 'mtr_portfolio_id': 24670302, 'created_at': datetime.datetime(2025, 7, 7, 9, 33, 1), 'result': '0.0398289590972627', 'result_long': None, 'result_double': None}] Qualite : 0.0398289590972627 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24670302 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24670302_07-07-2025_09_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24670302 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_P24670302_07-07-2025_09_33_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24670307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24670308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24670309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24670310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24670311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24670312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24670313, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24670314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24670315, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24670316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24670317, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24670318, 'pht': 3726}}" where mtr_portfolio_id = 24670302 and dashboard_run_id = 1967224 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`=24670302 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242593, 0.0398289590972627, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24670302_07-07-2025_09_33_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24670307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24670308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24670309, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24670310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24670311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24670312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24670313, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24670314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24670315, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24670316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24670317, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24670318, '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 = 24670769 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': 3244327, 'mtr_portfolio_id': 24670769, 'created_at': datetime.datetime(2025, 7, 7, 9, 46, 57), 'result': '0.04914104241617187', 'result_long': None, 'result_double': None}] Qualite : 0.04914104241617187 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24670769 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24670769_07-07-2025_09_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24670769 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_P24670769_07-07-2025_09_46_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24670802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24670803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24670804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24670805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24670806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24670807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24670808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24670809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24670810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24670811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24670812, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24670813, 'pht': 3726}}" where mtr_portfolio_id = 24670769 and dashboard_run_id = 1967224 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`=24670769 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242594, 0.04914104241617187, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24670769_07-07-2025_09_46_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24670802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24670803, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24670804, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24670805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24670806, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24670807, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24670808, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24670809, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24670810, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24670811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24670812, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24670813, '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 = 24671299 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': 3244390, 'mtr_portfolio_id': 24671299, 'created_at': datetime.datetime(2025, 7, 7, 10, 1), 'result': '0.023720552680818942', 'result_long': None, 'result_double': None}] Qualite : 0.023720552680818942 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24671299 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24671299_07-07-2025_10_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24671299 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_P24671299_07-07-2025_10_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24671330, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24671331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24671332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24671333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24671334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24671335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24671336, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24671337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24671338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24671339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24671340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24671341, 'pht': 3726}}" where mtr_portfolio_id = 24671299 and dashboard_run_id = 1967224 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`=24671299 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242595, 0.023720552680818942, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24671299_07-07-2025_10_01_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24671330, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24671331, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24671332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24671333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24671334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24671335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24671336, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24671337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24671338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24671339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24671340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24671341, '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 = 24671783 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': 3244461, 'mtr_portfolio_id': 24671783, 'created_at': datetime.datetime(2025, 7, 7, 10, 16, 29), 'result': '0.03348609390962896', 'result_long': None, 'result_double': None}] Qualite : 0.03348609390962896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24671783 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24671783_07-07-2025_10_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24671783 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_P24671783_07-07-2025_10_16_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24671789, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24671791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24671792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24671793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24671794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24671796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24671797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24671798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24671800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24671801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24671802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24671804, 'pht': 3726}}" where mtr_portfolio_id = 24671783 and dashboard_run_id = 1967224 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`=24671783 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242596, 0.03348609390962896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24671783_07-07-2025_10_16_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24671789, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24671791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24671792, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24671793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24671794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24671796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24671797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24671798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24671800, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24671801, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24671802, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24671804, '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 = 24672382 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': 3244525, 'mtr_portfolio_id': 24672382, 'created_at': datetime.datetime(2025, 7, 7, 10, 33), 'result': '0.03591954667274078', 'result_long': None, 'result_double': None}] Qualite : 0.03591954667274078 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24672382 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24672382_07-07-2025_10_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24672382 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_P24672382_07-07-2025_10_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24672397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24672398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24672399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24672400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24672401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24672402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24672403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24672404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24672405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24672406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24672407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24672408, 'pht': 3726}}" where mtr_portfolio_id = 24672382 and dashboard_run_id = 1967224 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`=24672382 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242597, 0.03591954667274078, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24672382_07-07-2025_10_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24672397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24672398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24672399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24672400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24672401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24672402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24672403, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24672404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24672405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24672406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24672407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24672408, '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 = 24672816 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': 3244577, 'mtr_portfolio_id': 24672816, 'created_at': datetime.datetime(2025, 7, 7, 10, 46, 59), 'result': '0.035009480060498796', 'result_long': None, 'result_double': None}] Qualite : 0.035009480060498796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24672816 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24672816_07-07-2025_10_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24672816 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_P24672816_07-07-2025_10_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24672849, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24672850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24672851, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24672852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24672853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24672854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24672855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24672856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24672857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24672858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24672859, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24672860, 'pht': 3726}}" where mtr_portfolio_id = 24672816 and dashboard_run_id = 1967224 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`=24672816 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242598, 0.035009480060498796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24672816_07-07-2025_10_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24672849, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24672850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24672851, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24672852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24672853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24672854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24672855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24672856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24672857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24672858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24672859, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24672860, '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 = 24673357 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': 3244631, 'mtr_portfolio_id': 24673357, 'created_at': datetime.datetime(2025, 7, 7, 11, 0, 58), 'result': '0.013980637330660767', 'result_long': None, 'result_double': None}] Qualite : 0.013980637330660767 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24673357 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24673357_07-07-2025_11_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24673357 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_P24673357_07-07-2025_11_00_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24673384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24673385, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24673386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24673387, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24673388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24673389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24673390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24673391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24673392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24673393, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24673394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24673395, 'pht': 3726}}" where mtr_portfolio_id = 24673357 and dashboard_run_id = 1967224 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`=24673357 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242599, 0.013980637330660767, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24673357_07-07-2025_11_00_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24673384, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24673385, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24673386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24673387, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24673388, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24673389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24673390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24673391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24673392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24673393, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24673394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24673395, '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 = 24673871 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': 3244689, 'mtr_portfolio_id': 24673871, 'created_at': datetime.datetime(2025, 7, 7, 11, 17, 1), 'result': '0.04587616307482051', 'result_long': None, 'result_double': None}] Qualite : 0.04587616307482051 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24673871 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24673871_07-07-2025_11_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24673871 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_P24673871_07-07-2025_11_17_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24673874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24673875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24673876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24673877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24673878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24673879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24673880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24673881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24673882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24673883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24673884, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24673885, 'pht': 3726}}" where mtr_portfolio_id = 24673871 and dashboard_run_id = 1967224 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`=24673871 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242600, 0.04587616307482051, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24673871_07-07-2025_11_17_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24673874, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24673875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24673876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24673877, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24673878, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24673879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24673880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24673881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24673882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24673883, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24673884, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24673885, '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 = 24674412 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': 3244751, 'mtr_portfolio_id': 24674412, 'created_at': datetime.datetime(2025, 7, 7, 11, 32, 58), 'result': '0.02171159453726291', 'result_long': None, 'result_double': None}] Qualite : 0.02171159453726291 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24674412 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24674412_07-07-2025_11_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24674412 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_P24674412_07-07-2025_11_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24674438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24674439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24674440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24674441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24674442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24674443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24674444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24674445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24674446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24674447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24674448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24674449, 'pht': 3726}}" where mtr_portfolio_id = 24674412 and dashboard_run_id = 1967224 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`=24674412 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242601, 0.02171159453726291, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24674412_07-07-2025_11_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24674438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24674439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24674440, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24674441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24674442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24674443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24674444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24674445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24674446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24674447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24674448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24674449, '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 = 24674756 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': 3244810, 'mtr_portfolio_id': 24674756, 'created_at': datetime.datetime(2025, 7, 7, 11, 46, 58), 'result': '0.02829302885188311', 'result_long': None, 'result_double': None}] Qualite : 0.02829302885188311 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24674756 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24674756_07-07-2025_11_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24674756 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_P24674756_07-07-2025_11_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24674812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24674813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24674814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24674815, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24674816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24674817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24674818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24674819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24674820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24674821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24674822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24674823, 'pht': 3726}}" where mtr_portfolio_id = 24674756 and dashboard_run_id = 1967224 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`=24674756 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242602, 0.02829302885188311, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24674756_07-07-2025_11_46_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24674812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24674813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24674814, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24674815, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24674816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24674817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24674818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24674819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24674820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24674821, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24674822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24674823, '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 = 24675340 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': 3244873, 'mtr_portfolio_id': 24675340, 'created_at': datetime.datetime(2025, 7, 7, 12, 2, 56), 'result': '0.046247392705301406', 'result_long': None, 'result_double': None}] Qualite : 0.046247392705301406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24675340 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24675340_07-07-2025_12_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24675340 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_P24675340_07-07-2025_12_02_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24675344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24675345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24675346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24675347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24675348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24675349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24675350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24675351, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24675352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24675353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24675354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24675355, 'pht': 3726}}" where mtr_portfolio_id = 24675340 and dashboard_run_id = 1967224 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`=24675340 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242603, 0.046247392705301406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24675340_07-07-2025_12_02_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24675344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24675345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24675346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24675347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24675348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24675349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24675350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24675351, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24675352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24675353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24675354, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24675355, '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 = 24675844 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': 3244944, 'mtr_portfolio_id': 24675844, 'created_at': datetime.datetime(2025, 7, 7, 12, 16, 58), 'result': '0.047295517936268516', 'result_long': None, 'result_double': None}] Qualite : 0.047295517936268516 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24675844 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24675844_07-07-2025_12_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24675844 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_P24675844_07-07-2025_12_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24675911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24675912, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24675913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24675914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24675915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24675916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24675917, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24675918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24675919, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24675920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24675921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24675922, 'pht': 3726}}" where mtr_portfolio_id = 24675844 and dashboard_run_id = 1967224 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`=24675844 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242604, 0.047295517936268516, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24675844_07-07-2025_12_16_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24675911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24675912, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24675913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24675914, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24675915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24675916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24675917, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24675918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24675919, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24675920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24675921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24675922, '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 = 24676579 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': 3245008, 'mtr_portfolio_id': 24676579, 'created_at': datetime.datetime(2025, 7, 7, 12, 32, 57), 'result': '0.08652140093873754', 'result_long': None, 'result_double': None}] Qualite : 0.08652140093873754 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24676579 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24676579_07-07-2025_12_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24676579 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_P24676579_07-07-2025_12_32_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24676585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24676586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24676587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24676588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24676590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24676591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24676593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24676594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24676595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24676597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24676598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24676599, 'pht': 3726}}" where mtr_portfolio_id = 24676579 and dashboard_run_id = 1967224 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`=24676579 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242605, 0.08652140093873754, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24676579_07-07-2025_12_32_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24676585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24676586, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24676587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24676588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24676590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24676591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24676593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24676594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24676595, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24676597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24676598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24676599, '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 = 24677001 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': 3245072, 'mtr_portfolio_id': 24677001, 'created_at': datetime.datetime(2025, 7, 7, 12, 46, 31), 'result': '0.07729239660490507', 'result_long': None, 'result_double': None}] Qualite : 0.07729239660490507 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24677001 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24677001_07-07-2025_12_46_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24677001 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_P24677001_07-07-2025_12_46_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24677033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24677034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24677035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24677036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24677037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24677038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24677039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24677040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24677041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24677042, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24677043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24677044, 'pht': 3726}}" where mtr_portfolio_id = 24677001 and dashboard_run_id = 1967224 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`=24677001 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242606, 0.07729239660490507, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24677001_07-07-2025_12_46_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24677033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24677034, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24677035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24677036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24677037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24677038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24677039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24677040, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24677041, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24677042, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24677043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24677044, '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 = 24677579 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': 3245127, 'mtr_portfolio_id': 24677579, 'created_at': datetime.datetime(2025, 7, 7, 13, 0, 59), 'result': '0.07469732487560436', 'result_long': None, 'result_double': None}] Qualite : 0.07469732487560436 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24677579 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24677579_07-07-2025_13_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24677579 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_P24677579_07-07-2025_13_00_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24677594, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24677595, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24677596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24677597, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24677598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24677600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24677601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24677602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24677604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24677605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24677606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24677608, 'pht': 3726}}" where mtr_portfolio_id = 24677579 and dashboard_run_id = 1967224 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`=24677579 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242607, 0.07469732487560436, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24677579_07-07-2025_13_00_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24677594, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24677595, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24677596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24677597, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24677598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24677600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24677601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24677602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24677604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24677605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24677606, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24677608, '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 = 24678043 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': 3245189, 'mtr_portfolio_id': 24678043, 'created_at': datetime.datetime(2025, 7, 7, 13, 16, 58), 'result': '0.0781644947577736', 'result_long': None, 'result_double': None}] Qualite : 0.0781644947577736 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24678043 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24678043_07-07-2025_13_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24678043 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_P24678043_07-07-2025_13_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24678046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24678047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24678048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24678049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24678050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24678051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24678052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24678053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24678054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24678055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24678056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24678057, 'pht': 3726}}" where mtr_portfolio_id = 24678043 and dashboard_run_id = 1967224 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`=24678043 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242608, 0.0781644947577736, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24678043_07-07-2025_13_16_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24678046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24678047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24678048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24678049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24678050, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24678051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24678052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24678053, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24678054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24678055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24678056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24678057, '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 = 24678663 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': 3245255, 'mtr_portfolio_id': 24678663, 'created_at': datetime.datetime(2025, 7, 7, 13, 32, 59), 'result': '0.08062492661734161', 'result_long': None, 'result_double': None}] Qualite : 0.08062492661734161 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24678663 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24678663_07-07-2025_13_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24678663 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_P24678663_07-07-2025_13_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24678678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24678679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24678680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24678681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24678682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24678683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24678685, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24678686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24678687, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24678688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24678690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24678691, 'pht': 3726}}" where mtr_portfolio_id = 24678663 and dashboard_run_id = 1967224 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`=24678663 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242609, 0.08062492661734161, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24678663_07-07-2025_13_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24678678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24678679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24678680, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24678681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24678682, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24678683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24678685, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24678686, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24678687, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24678688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24678690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24678691, '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 = 24679089 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': 3245317, 'mtr_portfolio_id': 24679089, 'created_at': datetime.datetime(2025, 7, 7, 13, 46, 56), 'result': '0.05646712127175461', 'result_long': None, 'result_double': None}] Qualite : 0.05646712127175461 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24679089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24679089_07-07-2025_13_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24679089 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_P24679089_07-07-2025_13_46_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24679120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24679121, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24679122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24679123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24679124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24679125, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24679126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24679127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24679128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24679129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24679130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24679131, 'pht': 3726}}" where mtr_portfolio_id = 24679089 and dashboard_run_id = 1967224 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`=24679089 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242610, 0.05646712127175461, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24679089_07-07-2025_13_46_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24679120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24679121, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24679122, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24679123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24679124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24679125, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24679126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24679127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24679128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24679129, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24679130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24679131, '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 = 24679643 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': 3245372, 'mtr_portfolio_id': 24679643, 'created_at': datetime.datetime(2025, 7, 7, 14, 0, 59), 'result': '0.1055989470914268', 'result_long': None, 'result_double': None}] Qualite : 0.1055989470914268 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24679643 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24679643_07-07-2025_14_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24679643 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_P24679643_07-07-2025_14_01_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24679669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24679670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24679671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24679672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24679673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24679674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24679675, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24679676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24679677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24679678, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24679679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24679680, 'pht': 3726}}" where mtr_portfolio_id = 24679643 and dashboard_run_id = 1967224 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`=24679643 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242611, 0.1055989470914268, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24679643_07-07-2025_14_01_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24679669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24679670, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24679671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24679672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24679673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24679674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24679675, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24679676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24679677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24679678, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24679679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24679680, '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 = 24680121 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': 3245441, 'mtr_portfolio_id': 24680121, 'created_at': datetime.datetime(2025, 7, 7, 14, 16, 58), 'result': '0.014884935885728619', 'result_long': None, 'result_double': None}] Qualite : 0.014884935885728619 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24680121 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24680121_07-07-2025_14_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24680121 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_P24680121_07-07-2025_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24680124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24680125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24680126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24680127, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24680128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24680129, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24680130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24680131, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24680132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24680133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24680134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24680135, 'pht': 3726}}" where mtr_portfolio_id = 24680121 and dashboard_run_id = 1967224 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`=24680121 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242612, 0.014884935885728619, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24680121_07-07-2025_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24680124, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24680125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24680126, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24680127, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24680128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24680129, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24680130, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24680131, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24680132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24680133, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24680134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24680135, '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 = 24680807 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': 3245557, 'mtr_portfolio_id': 24680807, 'created_at': datetime.datetime(2025, 7, 7, 14, 32, 57), 'result': '0.039756172029550285', 'result_long': None, 'result_double': None}] Qualite : 0.039756172029550285 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24680807 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24680807_07-07-2025_14_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24680807 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_P24680807_07-07-2025_14_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24680834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24680835, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24680836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24680837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24680838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24680839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24680840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24680841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24680842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24680843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24680844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24680845, 'pht': 3726}}" where mtr_portfolio_id = 24680807 and dashboard_run_id = 1967224 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`=24680807 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242613, 0.039756172029550285, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24680807_07-07-2025_14_32_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24680834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24680835, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24680836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24680837, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24680838, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24680839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24680840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24680841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24680842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24680843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24680844, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24680845, '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 = 24681262 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': 3245610, 'mtr_portfolio_id': 24681262, 'created_at': datetime.datetime(2025, 7, 7, 14, 46, 59), 'result': '0.056236724290394016', 'result_long': None, 'result_double': None}] Qualite : 0.056236724290394016 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24681262 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24681262_07-07-2025_14_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24681262 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_P24681262_07-07-2025_14_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24681290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24681291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24681292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24681293, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24681294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24681295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24681296, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24681297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24681298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24681299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24681300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24681301, 'pht': 3726}}" where mtr_portfolio_id = 24681262 and dashboard_run_id = 1967224 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`=24681262 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242614, 0.056236724290394016, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24681262_07-07-2025_14_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24681290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24681291, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24681292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24681293, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24681294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24681295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24681296, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24681297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24681298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24681299, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24681300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24681301, '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 = 24681815 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': 3245663, 'mtr_portfolio_id': 24681815, 'created_at': datetime.datetime(2025, 7, 7, 15, 3, 28), 'result': '0.05502815240066356', 'result_long': None, 'result_double': None}] Qualite : 0.05502815240066356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24681815 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24681815_07-07-2025_15_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24681815 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_P24681815_07-07-2025_15_03_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24681829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24681830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24681831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24681832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24681833, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24681834, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24681835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24681836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24681837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24681838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24681839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24681840, 'pht': 3726}}" where mtr_portfolio_id = 24681815 and dashboard_run_id = 1967224 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`=24681815 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242615, 0.05502815240066356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24681815_07-07-2025_15_03_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24681829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24681830, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24681831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24681832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24681833, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24681834, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24681835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24681836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24681837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24681838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24681839, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24681840, '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 = 24682277 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': 3245736, 'mtr_portfolio_id': 24682277, 'created_at': datetime.datetime(2025, 7, 7, 15, 16, 56), 'result': '0.030555573453052147', 'result_long': None, 'result_double': None}] Qualite : 0.030555573453052147 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24682277 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24682277_07-07-2025_15_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24682277 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_P24682277_07-07-2025_15_16_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24682305, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24682306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24682307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24682308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24682309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24682310, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24682311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24682312, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24682313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24682314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24682315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24682316, 'pht': 3726}}" where mtr_portfolio_id = 24682277 and dashboard_run_id = 1967224 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`=24682277 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242616, 0.030555573453052147, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24682277_07-07-2025_15_16_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24682305, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24682306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24682307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24682308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24682309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24682310, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24682311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24682312, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24682313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24682314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24682315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24682316, '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 = 24683009 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': 3245803, 'mtr_portfolio_id': 24683009, 'created_at': datetime.datetime(2025, 7, 7, 15, 32, 59), 'result': '0.04348086000734366', 'result_long': None, 'result_double': None}] Qualite : 0.04348086000734366 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24683009 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24683009_07-07-2025_15_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24683009 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_P24683009_07-07-2025_15_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24683037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24683038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24683039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24683040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24683041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24683042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24683043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24683044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24683045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24683046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24683047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24683048, 'pht': 3726}}" where mtr_portfolio_id = 24683009 and dashboard_run_id = 1967224 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`=24683009 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242617, 0.04348086000734366, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24683009_07-07-2025_15_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24683037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24683038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24683039, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24683040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24683041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24683042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24683043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24683044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24683045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24683046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24683047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24683048, '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 = 24683460 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': 3245857, 'mtr_portfolio_id': 24683460, 'created_at': datetime.datetime(2025, 7, 7, 15, 46, 57), 'result': '0.044231787441438214', 'result_long': None, 'result_double': None}] Qualite : 0.044231787441438214 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24683460 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24683460_07-07-2025_15_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24683460 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_P24683460_07-07-2025_15_46_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24683492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24683493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24683494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24683495, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24683496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24683497, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24683498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24683499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24683500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24683501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24683502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24683503, 'pht': 3726}}" where mtr_portfolio_id = 24683460 and dashboard_run_id = 1967224 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`=24683460 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242618, 0.044231787441438214, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24683460_07-07-2025_15_46_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24683492, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24683493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24683494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24683495, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24683496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24683497, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24683498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24683499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24683500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24683501, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24683502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24683503, '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 = 24684007 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': 3245918, 'mtr_portfolio_id': 24684007, 'created_at': datetime.datetime(2025, 7, 7, 16, 0, 58), 'result': '0.04163192120700456', 'result_long': None, 'result_double': None}] Qualite : 0.04163192120700456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24684007 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24684007_07-07-2025_16_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24684007 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_P24684007_07-07-2025_16_00_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24684034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24684035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24684036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24684037, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24684038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24684039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24684040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24684041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24684042, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24684043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24684044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24684045, 'pht': 3726}}" where mtr_portfolio_id = 24684007 and dashboard_run_id = 1967224 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`=24684007 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242619, 0.04163192120700456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24684007_07-07-2025_16_00_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24684034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24684035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24684036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24684037, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24684038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24684039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24684040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24684041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24684042, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24684043, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24684044, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24684045, '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 = 24684510 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': 3245976, 'mtr_portfolio_id': 24684510, 'created_at': datetime.datetime(2025, 7, 7, 16, 16, 59), 'result': '0.029733416880391546', 'result_long': None, 'result_double': None}] Qualite : 0.029733416880391546 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24684510 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24684510_07-07-2025_16_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24684510 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_P24684510_07-07-2025_16_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24684541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24684542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24684543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24684544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24684545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24684546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24684547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24684548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24684549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24684550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24684551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24684552, 'pht': 3726}}" where mtr_portfolio_id = 24684510 and dashboard_run_id = 1967224 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`=24684510 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242620, 0.029733416880391546, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24684510_07-07-2025_16_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24684541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24684542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24684543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24684544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24684545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24684546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24684547, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24684548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24684549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24684550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24684551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24684552, '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 = 24685111 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': 3246038, 'mtr_portfolio_id': 24685111, 'created_at': datetime.datetime(2025, 7, 7, 16, 33), 'result': '0.04267720138059394', 'result_long': None, 'result_double': None}] Qualite : 0.04267720138059394 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24685111 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24685111_07-07-2025_16_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24685111 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_P24685111_07-07-2025_16_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24685139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24685140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24685141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24685142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24685143, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24685144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24685145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24685146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24685147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24685148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24685149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24685150, 'pht': 3726}}" where mtr_portfolio_id = 24685111 and dashboard_run_id = 1967224 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`=24685111 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242621, 0.04267720138059394, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24685111_07-07-2025_16_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24685139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24685140, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24685141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24685142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24685143, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24685144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24685145, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24685146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24685147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24685148, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24685149, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24685150, '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 = 24685578 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': 3246099, 'mtr_portfolio_id': 24685578, 'created_at': datetime.datetime(2025, 7, 7, 16, 46, 59), 'result': '0.042318929248028256', 'result_long': None, 'result_double': None}] Qualite : 0.042318929248028256 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24685578 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24685578_07-07-2025_16_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24685578 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_P24685578_07-07-2025_16_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24685608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24685610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24685611, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24685612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24685613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24685614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24685615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24685616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24685617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24685618, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24685619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24685620, 'pht': 3726}}" where mtr_portfolio_id = 24685578 and dashboard_run_id = 1967224 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`=24685578 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242622, 0.042318929248028256, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24685578_07-07-2025_16_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24685608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24685610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24685611, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24685612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24685613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24685614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24685615, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24685616, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24685617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24685618, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24685619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24685620, '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 = 24686139 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': 3246162, 'mtr_portfolio_id': 24686139, 'created_at': datetime.datetime(2025, 7, 7, 17, 2, 59), 'result': '0.034796700055171624', 'result_long': None, 'result_double': None}] Qualite : 0.034796700055171624 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24686139 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24686139_07-07-2025_17_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24686139 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_P24686139_07-07-2025_17_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24686166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24686167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24686168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24686169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24686170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24686171, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24686172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24686173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24686174, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24686175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24686176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24686177, 'pht': 3726}}" where mtr_portfolio_id = 24686139 and dashboard_run_id = 1967224 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`=24686139 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242623, 0.034796700055171624, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24686139_07-07-2025_17_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24686166, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24686167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24686168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24686169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24686170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24686171, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24686172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24686173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24686174, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24686175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24686176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24686177, '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 = 24686585 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': 3246230, 'mtr_portfolio_id': 24686585, 'created_at': datetime.datetime(2025, 7, 7, 17, 16, 58), 'result': '0.03435221768495862', 'result_long': None, 'result_double': None}] Qualite : 0.03435221768495862 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24686585 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24686585_07-07-2025_17_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24686585 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_P24686585_07-07-2025_17_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24686615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24686617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24686618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24686619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24686620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24686621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24686622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24686623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24686624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24686625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24686626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24686627, 'pht': 3726}}" where mtr_portfolio_id = 24686585 and dashboard_run_id = 1967224 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`=24686585 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242624, 0.03435221768495862, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24686585_07-07-2025_17_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24686615, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24686617, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24686618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24686619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24686620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24686621, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24686622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24686623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24686624, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24686625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24686626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24686627, '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 = 24687233 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': 3246299, 'mtr_portfolio_id': 24687233, 'created_at': datetime.datetime(2025, 7, 7, 17, 33), 'result': '0.05867374205029408', 'result_long': None, 'result_double': None}] Qualite : 0.05867374205029408 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24687233 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24687233_07-07-2025_17_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24687233 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_P24687233_07-07-2025_17_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24687264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24687265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24687266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24687267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24687268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24687269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24687270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24687271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24687272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24687273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24687274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24687275, 'pht': 3726}}" where mtr_portfolio_id = 24687233 and dashboard_run_id = 1967224 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`=24687233 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242625, 0.05867374205029408, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24687233_07-07-2025_17_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24687264, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24687265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24687266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24687267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24687268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24687269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24687270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24687271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24687272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24687273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24687274, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24687275, '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 = 24687733 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': 3246365, 'mtr_portfolio_id': 24687733, 'created_at': datetime.datetime(2025, 7, 7, 17, 46, 58), 'result': '0.009273981147451132', 'result_long': None, 'result_double': None}] Qualite : 0.009273981147451132 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24687733 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24687733_07-07-2025_17_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24687733 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_P24687733_07-07-2025_17_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24687766, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24687767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24687768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24687769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24687770, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24687771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24687772, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24687773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24687774, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24687775, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24687776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24687777, 'pht': 3726}}" where mtr_portfolio_id = 24687733 and dashboard_run_id = 1967224 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`=24687733 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242626, 0.009273981147451132, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24687733_07-07-2025_17_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24687766, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24687767, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24687768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24687769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24687770, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24687771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24687772, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24687773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24687774, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24687775, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24687776, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24687777, '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 = 24688312 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': 3246422, 'mtr_portfolio_id': 24688312, 'created_at': datetime.datetime(2025, 7, 7, 18, 0, 56), 'result': '0.008426270578379148', 'result_long': None, 'result_double': None}] Qualite : 0.008426270578379148 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24688312 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24688312_07-07-2025_18_00_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24688312 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_P24688312_07-07-2025_18_00_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24688339, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24688340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24688341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24688342, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24688343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24688344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24688345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24688346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24688347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24688348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24688349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24688350, 'pht': 3726}}" where mtr_portfolio_id = 24688312 and dashboard_run_id = 1967224 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`=24688312 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242627, 0.008426270578379148, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24688312_07-07-2025_18_00_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24688339, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24688340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24688341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24688342, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24688343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24688344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24688345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24688346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24688347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24688348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24688349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24688350, '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 = 24688877 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': 3246486, 'mtr_portfolio_id': 24688877, 'created_at': datetime.datetime(2025, 7, 7, 18, 16, 59), 'result': '0.0024727648091800772', 'result_long': None, 'result_double': None}] Qualite : 0.0024727648091800772 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24688877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24688877_07-07-2025_18_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24688877 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_P24688877_07-07-2025_18_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24688905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24688906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24688907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24688908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24688909, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24688910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24688911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24688912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24688913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24688914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24688915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24688916, 'pht': 3726}}" where mtr_portfolio_id = 24688877 and dashboard_run_id = 1967224 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`=24688877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242628, 0.0024727648091800772, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24688877_07-07-2025_18_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24688905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24688906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24688907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24688908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24688909, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24688910, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24688911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24688912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24688913, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24688914, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24688915, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24688916, '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 = 24689491 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': 3246540, 'mtr_portfolio_id': 24689491, 'created_at': datetime.datetime(2025, 7, 7, 18, 33, 30), 'result': '0.0056554070608694365', 'result_long': None, 'result_double': None}] Qualite : 0.0056554070608694365 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24689491 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24689491_07-07-2025_18_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24689491 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_P24689491_07-07-2025_18_33_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24689520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24689521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24689522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24689523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24689524, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24689525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24689526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24689527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24689528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24689529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24689530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24689531, 'pht': 3726}}" where mtr_portfolio_id = 24689491 and dashboard_run_id = 1967224 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`=24689491 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242629, 0.0056554070608694365, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24689491_07-07-2025_18_33_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24689520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24689521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24689522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24689523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24689524, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24689525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24689526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24689527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24689528, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24689529, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24689530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24689531, '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 = 24689937 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': 3246598, 'mtr_portfolio_id': 24689937, 'created_at': datetime.datetime(2025, 7, 7, 18, 46, 29), 'result': '0.03017942841189527', 'result_long': None, 'result_double': None}] Qualite : 0.03017942841189527 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24689937 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24689937_07-07-2025_18_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24689937 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_P24689937_07-07-2025_18_46_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24689966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24689967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24689968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24689969, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24689970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24689971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24689972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24689973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24689974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24689975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24689976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24689977, 'pht': 3726}}" where mtr_portfolio_id = 24689937 and dashboard_run_id = 1967224 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`=24689937 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242630, 0.03017942841189527, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24689937_07-07-2025_18_46_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24689966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24689967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24689968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24689969, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24689970, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24689971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24689972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24689973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24689974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24689975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24689976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24689977, '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 = 24690455 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': 3246651, 'mtr_portfolio_id': 24690455, 'created_at': datetime.datetime(2025, 7, 7, 19, 2, 57), 'result': '0.02442091851629089', 'result_long': None, 'result_double': None}] Qualite : 0.02442091851629089 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24690455 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24690455_07-07-2025_19_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24690455 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_P24690455_07-07-2025_19_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24690520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24690521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24690522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24690523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24690524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24690525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24690526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24690527, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24690528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24690529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24690530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24690531, 'pht': 3726}}" where mtr_portfolio_id = 24690455 and dashboard_run_id = 1967224 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`=24690455 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242631, 0.02442091851629089, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24690455_07-07-2025_19_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24690520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24690521, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24690522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24690523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24690524, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24690525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24690526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24690527, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24690528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24690529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24690530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24690531, '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 = 24692646 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 = 24692646 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 = 24692646 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24692646 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 = 24692646 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 = 24692646 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24692646_07-07-2025_20_54_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24692646 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_P24692646_07-07-2025_20_54_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24692652, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24692653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24692654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24692655, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24692656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24692657, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24692658, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24692659, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24692660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24692661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24692662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24692663, 'pht': 3726}}" where mtr_portfolio_id = 24692646 and dashboard_run_id = 1967226 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 = 24692648 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': 3246862, 'mtr_portfolio_id': 24692648, 'created_at': datetime.datetime(2025, 7, 7, 20, 55, 28), 'result': '0.024488106422335034', 'result_long': None, 'result_double': None}] Qualite : 0.024488106422335034 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24692648 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24692648_07-07-2025_20_55_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24692648 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_P24692648_07-07-2025_20_55_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24692678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24692679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24692680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24692681, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24692682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24692683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24692684, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24692685, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24692686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24692687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24692688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24692689, 'pht': 3726}}" where mtr_portfolio_id = 24692648 and dashboard_run_id = 1967226 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`=24692648 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12242633, 0.024488106422335034, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24692648_07-07-2025_20_55_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24692678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24692679, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24692680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24692681, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24692682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24692683, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24692684, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24692685, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24692686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24692687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24692688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24692689, '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 (24661292,24661693,24662126,24662593,24662987,24663509,24663935,24664395,24664810,24665530,24666046,24666767,24667340,24668039,24668575,24669145,24669610,24670302,24670769,24671299,24671783,24672382,24672816,24673357,24673871,24674412,24674756,24675340,24675844,24676579,24677001,24677579,24678043,24678663,24679089,24679643,24680121,24680807,24681262,24681815,24682277,24683009,24683460,24684007,24684510,24685111,24685578,24686139,24686585,24687233,24687733,24688312,24688877,24689491,24689937,24690455,24692646,24692648) result : ((1370981374,), (1370981407,), (1370981443,), (1370981470,), (1370981483,), (1370981635,), (1370981650,), (1370981669,), (1370981674,), (1370981697,), (1370981699,), (1370981711,), (1370981714,), (1370981717,), (1370981720,), (1370981723,), (1370981727,), (1370981735,), (1370981740,), (1370981745,), (1370981748,), (1370981751,), (1370981754,), (1370981760,), (1370981762,), (1370981765,), (1370981767,), (1370981770,), (1370981773,), (1370981789,), (1370981791,), (1370981794,), (1370981795,), (1370981799,), (1370981802,), (1370981814,), (1370981818,), (1370981821,), (1370981823,), (1370981826,), (1370981828,), (1370981837,), (1370981846,), (1370981850,), (1370981853,), (1370981855,), (1370981857,), (1370981868,), (1370981874,), (1370981879,), (1370981882,), (1370981884,), (1370981886,), (1370981898,), (1370981902,), (1370981905,), (1370981910,), (1370981917,), (1370981921,), (1370981944,), (1370981947,), (1370981953,), (1370981956,), (1370981961,), (1370981963,), (1370981982,), (1370981992,), (1370981996,), (1370981998,), (1370982002,), (1370982004,), (1370982018,), (1370982023,), (1370982027,), (1370982029,), (1370982030,), (1370982031,), (1370982050,), (1370982053,), (1370982055,), (1370982056,), (1370982058,), (1370982061,), (1370982073,), (1370982078,), (1370982082,), (1370982085,), (1370982087,), (1370982090,), (1370982103,), (1370982114,), (1370982119,), (1370982124,), (1370982127,), (1370982134,), (1370982146,), (1370982151,), (1370982156,), (1370982159,), (1370982160,), (1370982162,), (1370982173,), (1370982175,), (1370982177,), (1370982179,), (1370982183,), (1370982188,), (1370982204,), (1370982207,), (1370982210,), (1370982214,), (1370982218,), (1370982222,), (1370982236,), (1370982241,), (1370982243,), (1370982250,), (1370982251,), (1370982253,), (1370982269,), (1370982271,), (1370982273,), (1370982274,), (1370982276,), (1370982280,), (1370982293,), (1370982297,), (1370982303,), (1370982305,), (1370982307,), (1370982310,), (1370982337,), (1370982346,), (1370982352,), (1370982355,), (1370982356,), (1370982358,), (1370982406,), (1370982413,), (1370982417,), (1370982421,), (1370982424,), (1370982428,), (1370982446,), (1370982449,), (1370982456,), (1370982459,), (1370982462,), (1370982464,), (1370982477,), (1370982482,), (1370982487,), (1370982494,), (1370982496,), (1370982497,), (1370982521,), (1370982524,), (1370982528,), (1370982533,), (1370982534,), (1370982556,), (1370982574,), (1370982578,), (1370982582,), (1370982593,), (1370982597,), (1370982599,), (1370982611,), (1370982613,), (1370982616,), (1370982617,), (1370982619,), (1370982621,), (1370982636,), (1370982640,), (1370982648,), (1370982651,), (1370982653,), (1370982655,), (1370982668,), (1370982676,), (1370982679,), (1370982685,), (1370982693,), (1370982698,), (1370982708,), (1370982713,), (1370982716,), (1370982718,), (1370982720,), (1370982722,), (1370982741,), (1370982743,), (1370982744,), (1370982745,), (1370982746,), (1370982749,), (1370982766,), (1370982774,), (1370982778,), (1370982780,), (1370982783,), (1370982785,), (1370982791,), (1370982795,), (1370982798,), (1370982804,), (1370982808,), (1370982811,), (1370982823,), (1370982826,), (1370982828,), (1370982830,), (1370982833,), (1370982837,), (1370982848,), (1370982851,), (1370982854,), (1370982857,), (1370982859,), (1370982860,), (1370982863,), (1370982874,), (1370982884,), (1370982888,), (1370982891,), (1370982894,), (1370982907,), (1370982910,), (1370982916,), (1370982920,), (1370982922,), (1370982924,), (1370982933,), (1370982935,), (1370982942,), (1370982950,), (1370982953,), (1370982955,), (1370982970,), (1370982972,), (1370982974,), (1370982977,), (1370982979,), (1370982981,), (1370982991,), (1370982995,), (1370983007,), (1370983010,), (1370983012,), (1370983015,), (1370983031,), (1370983034,), (1370983038,), (1370983039,), (1370983041,), (1370983042,), (1370983058,), (1370983065,), (1370983073,), (1370983076,), (1370983078,), (1370983080,), (1370983094,), (1370983098,), (1370983103,), (1370983107,), (1370983109,), (1370983113,), (1370983122,), (1370983126,), (1370983133,), (1370983142,), (1370983143,), (1370983144,), (1370983156,), (1370983158,), (1370983160,), (1370983161,), (1370983163,), (1370983165,), (1370983177,), (1370983179,), (1370983180,), (1370983181,), (1370983183,), (1370983187,), (1370983200,), (1370983202,), (1370983205,), (1370983207,), (1370983210,), (1370983213,), (1370983227,), (1370983230,), (1370983235,), (1370983236,), (1370983237,), (1370983238,), (1370983253,), (1370983256,), (1370983258,), (1370983260,), (1370983262,), (1370983264,), (1370983273,), (1370983278,), (1370983282,), (1370983284,), (1370983287,), (1370983289,), (1370983301,), (1370983306,), (1370983308,), (1370983311,), (1370983313,), (1370983315,), (1370983324,), (1370983328,), (1370983332,), (1370983335,), (1370983337,), (1370983340,), (1370983345,), (1370983349,), (1370983351,), (1370983354,), (1370983356,), (1370983358,), (1370983370,), (1370983372,), (1370983373,), (1370983374,), (1370983376,), (1370983380,), (1370983390,), (1370983393,), (1370983397,), (1370983399,), (1370983401,), (1370983404,), (1370983407,), (1370983412,), (1370983417,), (1370983422,), (1370983426,), (1370983429,), (1370984327,), (1370984387,), (1370984478,), (1370984541,), (1370984606,), (1370984667,), (1370984958,), (1370984983,), (1370985012,), (1370985021,), (1370985022,), (1370985041,), (1370985045,), (1370985047,), (1370985048,), (1370985052,), (1370985054,), (1370985063,), (1370985067,), (1370985070,), (1370985073,), (1370985076,), (1370985078,), (1370985092,), (1370985098,), (1370985100,), (1370985102,), (1370985104,), (1370985106,), (1370985117,), (1370985118,), (1370985119,), (1370985121,), (1370985125,), (1370985128,), (1370985144,), (1370985148,), (1370985150,), (1370985152,), (1370985157,), (1370985160,), (1370985174,), (1370985178,), (1370985179,), (1370985180,), (1370985182,), (1370985183,), (1370985196,), (1370985200,), (1370985203,), (1370985205,), (1370985208,), (1370985214,), (1370985239,), (1370985244,), (1370985248,), (1370985252,), (1370985257,), (1370985260,), (1370985278,), (1370985285,), (1370985287,), (1370985289,), (1370985293,), (1370985297,), (1370985319,), (1370985323,), (1370985325,), (1370985326,), (1370985328,), (1370985331,), (1370985350,), (1370985353,), (1370985360,), (1370985362,), (1370985365,), (1370985368,), (1370985385,), (1370985386,), (1370985387,), (1370985389,), (1370985392,), (1370985396,), (1370985414,), (1370985426,), (1370985429,), (1370985431,), (1370985433,), (1370985436,), (1370985451,), (1370985455,), (1370985458,), (1370985459,), (1370985462,), (1370985464,), (1370985481,), (1370985482,), (1370985483,), (1370985495,), (1370985502,), (1370985507,), (1370985517,), (1370985520,), (1370985522,), (1370985525,), (1370985528,), (1370985530,), (1370985539,), (1370985544,), (1370985546,), (1370985548,), (1370985551,), (1370985560,), (1370985576,), (1370985585,), (1370985587,), (1370985589,), (1370985592,), (1370985595,), (1370985612,), (1370985618,), (1370985625,), (1370985631,), (1370985641,), (1370985644,), (1370985667,), (1370985674,), (1370985678,), (1370985681,), (1370985682,), (1370985683,), (1370985704,), (1370985720,), (1370985726,), (1370985727,), (1370985728,), (1370985729,), (1370985762,), (1370985766,), (1370985769,), (1370985771,), (1370985774,), (1370985777,), (1370985790,), (1370985806,), (1370985816,), (1370985819,), (1370985822,), (1370985825,), (1370985851,), (1370985856,), (1370985859,), (1370985861,), (1370985863,), (1370985865,), (1370985882,), (1370985887,), (1370985902,), (1370985910,), (1370985913,), (1370985915,), (1370985946,), (1370985949,), (1370985952,), (1370985954,), (1370985958,), (1370985961,), (1370985968,), (1370985973,), (1370985982,), (1370985996,), (1370986006,), (1370986010,), (1370986020,), (1370986039,), (1370986051,), (1370986053,), (1370986055,), (1370986058,), (1370986076,), (1370986080,), (1370986083,), (1370986086,), (1370986090,), (1370986105,), (1370986139,), (1370986150,), (1370986155,), (1370986158,), (1370986161,), (1370986164,), (1370986176,), (1370986180,), (1370986184,), (1370986193,), (1370986206,), (1370986210,), (1370986233,), (1370986247,), (1370986251,), (1370986253,), (1370986255,), (1370986258,), (1370986279,), (1370986285,), (1370986298,), (1370986301,), (1370986304,), (1370986308,), (1370986336,), (1370986341,), (1370986344,), (1370986346,), (1370986349,), (1370986352,), (1370986367,), (1370986369,), (1370986381,), (1370986391,), (1370986394,), (1370986398,), (1370986414,), (1370986428,), (1370986433,), (1370986435,), (1370986438,), (1370986440,), (1370986451,), (1370986453,), (1370986475,), (1370986489,), (1370986493,), (1370986498,), (1370986532,), (1370986534,), (1370986536,), (1370986538,), (1370986542,), (1370986546,), (1370986565,), (1370986568,), (1370986569,), (1370986579,), (1370986590,), (1370986595,), (1370986622,), (1370986626,), (1370986627,), (1370986628,), (1370986631,), (1370986634,), (1370986654,), (1370986661,), (1370986673,), (1370986677,), (1370986681,), (1370986684,), (1370986713,), (1370986723,), (1370986725,), (1370986727,), (1370986729,), (1370986731,), (1370986748,), (1370986752,), (1370986766,), (1370986768,), (1370986769,), (1370986771,), (1370986796,), (1370986802,), (1370986805,), (1370986809,), (1370986814,), (1370986818,), (1370986835,), (1370986836,), (1370986841,), (1370986849,), (1370986852,), (1370986855,), (1370986895,), (1370986897,), (1370986900,), (1370986903,), (1370986908,), (1370986911,), (1370986921,), (1370986925,), (1370986929,), (1370986933,), (1370986938,), (1370986941,), (1370986967,), (1370986980,), (1370986988,), (1370986991,), (1370986993,), (1370986997,), (1370987013,), (1370987019,), (1370987030,), (1370987038,), (1370987040,), (1370987042,), (1370987071,), (1370987074,), (1370987078,), (1370987080,), (1370987084,), (1370987086,), (1370987100,), (1370987119,), (1370987124,), (1370987126,), (1370987127,), (1370987129,), (1370987161,), (1370987164,), (1370987168,), (1370987170,), (1370987174,), (1370987176,), (1370987191,), (1370987201,), (1370987213,), (1370987214,), (1370987216,), (1370987218,), (1370987250,), (1370987252,), (1370987254,), (1370987256,), (1370987259,), (1370987263,), (1370987279,), (1370987284,), (1370987294,), (1370987310,), (1370987320,), (1370987322,), (1370987337,), (1370987342,), (1370987345,), (1370987347,), (1370987350,), (1370987352,), (1370987367,), (1370987371,), (1370987373,), (1370987374,), (1370987395,), (1370987483,), (1370988450,), (1370988487,), (1370988505,), (1370988524,), (1370988527,), (1370988531,), (1370988601,), (1370988631,), (1370988662,), (1370988692,), (1370988724,), (1370988761,), (1370988781,), (1370988812,), (1370988847,), (1370988880,), (1370988913,), (1370989027,), (1370989064,), (1370989096,), (1370989126,), (1370989158,), (1370989197,), (1370989506,), (1370989546,), (1370989561,), (1370989610,), (1370989629,), (1370989663,), (1370989834,), (1370989857,), (1370989873,), (1370989875,), (1370989877,), (1370989879,), (1370989892,), (1370989895,), (1370989897,), (1370989900,), (1370989904,), (1370989908,), (1370989921,), (1370989926,), (1370989929,), (1370989933,), (1370989936,), (1370989938,), (1370989959,), (1370989964,), (1370989967,), (1370989971,), (1370989974,), (1370989978,), (1370989985,), (1370989988,), (1370989990,), (1370989993,), (1370989997,), (1370990000,), (1370990062,), (1370990074,), (1370990081,), (1370990102,), (1370990105,), (1370990108,), (1370990122,), (1370990125,), (1370990129,), (1370990131,), (1370990134,), (1370990137,), (1370990158,), (1370990161,), (1370990163,), (1370990166,), (1370990175,), (1370990179,), (1370990192,), (1370990196,), (1370990200,), (1370990202,), (1370990204,), (1370990207,), (1370990233,), (1370990236,), (1370990246,), (1370990248,), (1370990251,), (1370990253,), (1370990266,), (1370990271,), (1370990276,), (1370990278,), (1370990280,), (1370990282,), (1370990305,), (1370990312,), (1370990316,), (1370990318,), (1370990320,), (1370990321,), (1370990337,), (1370990344,), (1370990348,), (1370990353,), (1370990361,), (1370990366,), (1370990388,), (1370990391,), (1370990394,), (1370990397,), (1370990400,), (1370990404,), (1370990417,), (1370990420,), (1370990423,), (1370990427,), (1370990431,), (1370990434,), (1370990452,), (1370990457,), (1370990459,), (1370990461,), (1370990464,), (1370990467,), (1370990489,), (1370990492,), (1370990496,), (1370990502,), (1370990507,), (1370990511,), (1370990536,), (1370990540,), (1370990543,), (1370990548,), (1370990551,), (1370990555,), (1370990573,), (1370990580,), (1370990582,), (1370990584,), (1370990587,), (1370990589,), (1370990622,), (1370990626,), (1370990644,), (1370990656,), (1370990662,), (1370990670,), (1370990693,), (1370990695,), (1370990697,), (1370990702,), (1370990710,), (1370990712,), (1370990726,), (1370990738,), (1370990743,), (1370990746,), (1370990749,), (1370990752,), (1370990776,), (1370990780,), (1370990783,), (1370990793,), (1370990796,), (1370990800,), (1370990823,), (1370990828,), (1370990831,), (1370990834,), (1370990837,), (1370990845,), (1370990863,), (1370990865,), (1370990867,), (1370990870,), (1370990878,), (1370990884,), (1370990893,), (1370990897,), (1370990901,), (1370990910,), (1370990916,), (1370990920,), (1370990931,), (1370990936,), (1370990940,), (1370990944,), (1370990948,), (1370990954,), (1370990974,), (1370990978,), (1370990980,), (1370990988,), (1370990997,), (1370991000,), (1370991029,), (1370991038,), (1370991044,), (1370991047,), (1370991051,), (1370991056,), (1370991128,), (1370991132,), (1370991135,), (1370991155,), (1370991163,), (1370991166,), (1370991180,), (1370991182,), (1370991184,), (1370991187,), (1370991191,), (1370991196,), (1370991207,), (1370991210,), (1370991213,), (1370991215,), (1370991219,), (1370991223,), (1370991239,), (1370991242,), (1370991245,), (1370991247,), (1370991251,), (1370991254,), (1370991270,), (1370991273,), (1370991274,), (1370991275,), (1370991277,), (1370991279,), (1370991290,), (1370991294,), (1370991298,), (1370991301,), (1370991305,), (1370991309,), (1370991346,), (1370991349,), (1370991351,), (1370991354,), (1370991357,), (1370991360,), (1370991374,), (1370991378,), (1370991382,), (1370991384,), (1370991386,), (1370991389,), (1370991438,), (1370991442,), (1370991444,), (1370991451,), (1370991456,), (1370991457,), (1370991486,), (1370991490,), (1370991496,), (1370991508,), (1370991516,), (1370991518,), (1370991532,), (1370991536,), (1370991548,), (1370991557,), (1370991560,), (1370991571,), (1370991596,), (1370991600,), (1370991603,), (1370991606,), (1370991609,), (1370991612,), (1370991629,), (1370991630,), (1370991632,), (1370991634,), (1370991640,), (1370991672,), (1370991739,), (1370991764,), (1370991778,), (1370991785,), (1370991814,), (1370991821,), (1370991861,), (1370991863,), (1370991866,), (1370991868,), (1370991871,), (1370991874,), (1370991885,), (1370991888,), (1370991890,), (1370991892,), (1370991896,), (1370991900,), (1370991943,), (1370991946,), (1370991949,), (1370991953,), (1370991955,), (1370991958,), (1370991979,), (1370991983,), (1370991986,), (1370991987,), (1370991988,), (1370991989,), (1370992019,), (1370992023,), (1370992026,), (1370992028,), (1370992039,), (1370992047,), (1370992074,), (1370992096,), (1370992103,), (1370992105,), (1370992107,), (1370992109,), (1370992133,), (1370992140,), (1370992144,), (1370992146,), (1370992147,), (1370992148,), (1370992166,), (1370992172,), (1370992177,), (1370992180,), (1370992183,), (1370992194,), (1370992206,), (1370992209,), (1370992220,), (1370992222,), (1370992225,), (1370992229,), (1370992247,), (1370992250,), (1370992252,), (1370992254,), (1370992257,), (1370992261,), (1370992286,), (1370992295,), (1370992298,), (1370992299,), (1370992301,), (1370992303,), (1370992319,), (1370992321,), (1370992323,), (1370992325,), (1370992326,), (1370992329,), (1370992415,), (1370992421,), (1370992425,), (1370992428,), (1370992433,), (1370992438,), (1370992462,), (1370992468,), (1370992497,), (1370992549,), (1370992615,), (1370993290,), (1370993391,), (1370993517,), (1370993614,), (1370993711,), (1370993773,), (1370994186,), (1370994239,), (1370994293,), (1370994360,), (1370994406,), (1370994426,), (1370994514,), (1370994551,), (1370994587,), (1370994618,), (1370994651,), (1370994688,), (1370994795,), (1370994831,), (1370994840,), (1370994844,), (1370994846,), (1370994849,), (1370994864,), (1370994869,), (1370994872,), (1370994873,), (1370994877,), (1370994878,), (1370994896,), (1370994899,), (1370994901,), (1370994903,), (1370994906,), (1370994909,), (1370994920,), (1370994923,), (1370994932,), (1370994940,), (1370994956,), (1370994964,), (1370995031,), (1370995035,), (1370995037,), (1370995040,), (1370995041,), (1370995044,), (1370995065,), (1370995068,), (1370995069,), (1370995071,), (1370995075,), (1370995080,), (1370995113,), (1370995115,), (1370995118,), (1370995120,), (1370995125,), (1370995128,), (1370995147,), (1370995162,), (1370995179,), (1370995182,), (1370995190,), (1370995192,), (1370995217,), (1370995218,), (1370995219,), (1370995221,), (1370995223,), (1370995226,), (1370995245,), (1370995250,), (1370995254,), (1370995256,), (1370995259,), (1370995262,), (1370995285,), (1370995287,), (1370995290,), (1370995291,), (1370995294,), (1370995298,), (1370995314,), (1370995316,), (1370995317,), (1370995319,), (1370995323,), (1370995327,), (1370995380,), (1370995381,), (1370995382,), (1370995384,), (1370995387,), (1370995391,), (1370995403,), (1370995415,), (1370995418,), (1370995420,), (1370995423,), (1370995425,), (1370995457,), (1370995459,), (1370995461,), (1370995464,), (1370995466,), (1370995468,), (1370995486,), (1370995496,), (1370995501,), (1370995503,), (1370995505,), (1370995507,), (1370995533,), (1370995538,), (1370995541,), (1370995542,), (1370995543,), (1370995544,), (1370995563,), (1370995568,), (1370995571,), (1370995574,), (1370995577,), (1370995581,), (1370995600,), (1370995606,), (1370995610,), (1370995615,), (1370995619,), (1370995621,), (1370995631,), (1370995639,), (1370995641,), (1370995643,), (1370995646,), (1370995648,), (1370995663,), (1370995664,), (1370995665,), (1370995667,), (1370995671,), (1370995675,), (1370995693,), (1370995695,), (1370995697,), (1370995700,), (1370995709,), (1370995729,), (1370995778,), (1370995802,), (1370995810,), (1370995824,), (1370995826,), (1370995847,), (1370995860,), (1370995864,), (1370995866,), (1370995869,), (1370995872,), (1370995875,), (1370995891,), (1370995895,), (1370995896,), (1370995897,), (1370995900,), (1370995902,), (1370995919,), (1370995921,), (1370995932,), (1370995933,), (1370995938,), (1370995943,), (1370995978,), (1370995982,), (1370995985,), (1370995990,), (1370995994,), (1370996002,), (1370996022,), (1370996025,), (1370996026,), (1370996027,), (1370996029,), (1370996032,), (1370996060,), (1370996062,), (1370996063,), (1370996065,), (1370996068,), (1370996071,), (1370996081,), (1370996085,), (1370996088,), (1370996091,), (1370996094,), (1370996098,), (1370996132,), (1370996147,), (1370996154,), (1370996169,), (1370996172,), (1370996188,), (1370996205,), (1370996215,), (1370996219,), (1370996221,), (1370996224,), (1370996228,), (1370996251,), (1370996256,), (1370996259,), (1370996261,), (1370996264,), (1370996266,), (1370996281,), (1370996285,), (1370996287,), (1370996288,), (1370996290,), (1370996311,), (1370996334,), (1370996338,), (1370996342,), (1370996344,), (1370996346,), (1370996349,), (1370996362,), (1370996367,), (1370996380,), (1370996383,), (1370996385,), (1370996389,), (1370996413,), (1370996418,), (1370996420,), (1370996421,), (1370996422,), (1370996424,), (1370996443,), (1370996446,), (1370996448,), (1370996460,), (1370996463,), (1370996466,), (1370996491,), (1370996496,), (1370996499,), (1370996502,), (1370996506,), (1370996509,), (1370996524,), (1370996527,), (1370996529,), (1370996530,), (1370996532,), (1370996534,), (1370996561,), (1370996564,), (1370996574,), (1370996580,), (1370996584,), (1370996588,), (1370996604,), (1370996615,), (1370996618,), (1370996621,), (1370996623,), (1370996636,), (1370996667,), (1370996672,), (1370996675,), (1370996676,), (1370996677,), (1370996678,), (1370996690,), (1370996696,), (1370996701,), (1370996704,), (1370996708,), (1370996713,), (1370996732,), (1370996735,), (1370996739,), (1370996742,), (1370996746,), (1370996749,), (1370996761,), (1370996766,), (1370996768,), (1370996779,), (1370996782,), (1370996785,), (1370996809,), (1370996821,), (1370996823,), (1370996826,), (1370996830,), (1370996834,), (1370996842,), (1370996846,), (1370996850,), (1370996853,), (1370996864,), (1370996867,), (1370996885,), (1370996896,), (1370996900,), (1370996904,), (1370996908,), (1370996913,), (1370996924,), (1370996925,), (1370996927,), (1370996930,), (1370996934,), (1370996939,), (1370996956,), (1370996961,), (1370996964,), (1370996975,), (1370996979,), (1370996983,), (1370996995,), (1370997006,), (1370997013,), (1370997014,), (1370997017,), (1370997020,), (1370997037,), (1370997039,), (1370997040,), (1370997042,), (1370997044,), (1370997047,), (1370997057,), (1370997068,), (1370997071,), (1370997075,), (1370997079,), (1370997082,), (1370997399,), (1370997432,), (1370997471,), (1370997505,), (1370997540,), (1370997585,), (1370997823,), (1370997856,), (1370997890,), (1370997924,), (1370997964,), (1370998188,), (1370998223,), (1370998275,), (1370998321,), (1370998325,), (1370998351,), (1370998444,), (1370998503,), (1370998547,), (1370998591,), (1370998639,), (1370998688,), (1370998855,), (1370998889,), (1370998924,), (1370998958,), (1370998992,), (1370999023,), (1370999241,), (1370999277,), (1370999296,), (1370999298,), (1370999300,), (1370999302,), (1370999312,), (1370999316,), (1370999347,), (1370999380,), (1370999414,), (1370999457,), (1370999648,), (1370999663,), (1370999682,), (1370999700,), (1370999726,), (1370999731,), (1370999753,), (1370999766,), (1370999776,), (1370999779,), (1370999792,), (1370999802,), (1370999874,), (1370999888,), (1370999893,), (1370999896,), (1370999899,), (1370999902,), (1370999930,), (1370999933,), (1370999939,), (1370999944,), (1370999948,), (1370999951,), (1370999958,), (1370999963,), (1370999967,), (1370999970,), (1370999974,), (1370999987,), (1371000005,), (1371000009,), (1371000011,), (1371000020,), (1371000021,), (1371000023,), (1371000050,), (1371000061,), (1371000064,), (1371000066,), (1371000069,), (1371000073,), (1371000088,), (1371000091,), (1371000093,), (1371000096,), (1371000099,), (1371000101,), (1371000127,), (1371000132,), (1371000135,), (1371000136,), (1371000137,), (1371000138,), (1371000160,), (1371000164,), (1371000168,), (1371000170,), (1371000173,), (1371000178,), (1371000191,), (1371000202,), (1371000208,), (1371000215,), (1371000226,), (1371000230,), (1371000259,), (1371000264,), (1371000266,), (1371000268,), (1371000270,), (1371000272,), (1371000283,), (1371000288,), (1371000293,), (1371000298,), (1371000303,), (1371000309,), (1371000316,), (1371000328,), (1371000333,), (1371000337,), (1371000341,), (1371000343,), (1371000351,), (1371000355,), (1371000365,), (1371000376,), (1371000383,), (1371000385,), (1371000401,), (1371000404,), (1371000405,), (1371000408,), (1371000412,), (1371000417,), (1371000426,), (1371000431,), (1371000434,), (1371000437,), (1371000441,), (1371000445,), (1371000465,), (1371000471,), (1371000483,), (1371000485,), (1371000487,), (1371000490,), (1371000507,), (1371000515,), (1371000525,), (1371000528,), (1371000531,), (1371000534,), (1371000553,), (1371000557,), (1371000561,), (1371000564,), (1371000567,), (1371000571,), (1371000592,), (1371000599,), (1371000602,), (1371000604,), (1371000607,), (1371000610,), (1371000628,), (1371000632,), (1371000636,), (1371000640,), (1371000644,), (1371000649,), (1371000659,), (1371000666,), (1371000668,), (1371000673,), (1371000678,), (1371000684,), (1371000713,), (1371000715,), (1371000718,), (1371000721,), (1371000724,), (1371000727,), (1371000739,), (1371000741,), (1371000749,), (1371000756,), (1371000760,), (1371000765,), (1371000791,), (1371000795,), (1371000800,), (1371000810,), (1371000820,), (1371000823,), (1371000839,), (1371000844,), (1371000846,), (1371000847,), (1371000848,), (1371000850,), (1371000875,), (1371000879,), (1371000881,), (1371000882,), (1371000884,), (1371000886,), (1371000908,), (1371000911,), (1371000914,), (1371000917,), (1371000919,), (1371000922,), (1371000936,), (1371000938,), (1371000941,), (1371000945,), (1371000950,), (1371000955,), (1371000970,), (1371000974,), (1371000978,), (1371000981,), (1371000985,), (1371000988,), (1371001015,), (1371001018,), (1371001021,), (1371001024,), (1371001026,), (1371001029,), (1371001047,), (1371001052,), (1371001053,), (1371001055,), (1371001060,), (1371001064,), (1371001081,), (1371001083,), (1371001086,), (1371001091,), (1371001095,), (1371001100,), (1371001113,), (1371001121,), (1371001124,), (1371001126,), (1371001130,), (1371001133,), (1371001154,), (1371001157,), (1371001158,), (1371001159,), (1371001161,), (1371001163,), (1371001184,), (1371001198,), (1371001200,), (1371001202,), (1371001205,), (1371001209,), (1371001229,), (1371001233,), (1371001236,), (1371001239,), (1371001242,), (1371001245,), (1371001267,), (1371001275,), (1371001278,), (1371001280,), (1371001284,), (1371001286,), (1371001311,), (1371001314,), (1371001316,), (1371001320,), (1371001323,), (1371001326,), (1371001340,), (1371001347,), (1371001351,), (1371001355,), (1371001358,), (1371001365,), (1371001377,), (1371001381,), (1371001385,), (1371001388,), (1371001390,), (1371001393,), (1371001405,), (1371001407,), (1371001409,), (1371001410,), (1371001413,), (1371001415,), (1371001434,), (1371001436,), (1371001437,), (1371001439,), (1371001443,), (1371001448,), (1371001461,), (1371001469,), (1371001471,), (1371001473,), (1371001477,), (1371001481,), (1371001515,), (1371001518,), (1371001519,), (1371001520,), (1371001523,), (1371001526,), (1371001544,), (1371001547,), (1371001549,), (1371001551,), (1371001554,), (1371001557,), (1371001578,), (1371001583,), (1371001587,), (1371001590,), (1371001595,), (1371001598,), (1371001609,), (1371001612,), (1371001614,), (1371001616,), (1371001619,), (1371001622,), (1371001645,), (1371001649,), (1371001654,), (1371001659,), (1371001665,), (1371001670,), (1371001676,), (1371001680,), (1371001683,), (1371001686,), (1371001692,), (1371001696,), (1371001720,), (1371001724,), (1371001725,), (1371001726,), (1371001728,), (1371001730,), (1371001801,), (1371001830,), (1371001866,), (1371001922,), (1371001974,), (1371002035,), (1371002765,), (1371002814,), (1371002882,), (1371002945,), (1371003012,), (1371003074,), (1371003362,), (1371003427,), (1371003484,), (1371003542,), (1371003574,), (1371003750,), (1371003759,), (1371003769,), (1371003800,), (1371003831,), (1371003867,), (1371004013,), (1371004031,), (1371004039,), (1371004042,), (1371004045,), (1371004048,), (1371004069,), (1371004074,), (1371004077,), (1371004079,), (1371004081,), (1371004083,), (1371004095,), (1371004099,), (1371004102,), (1371004105,), (1371004109,), (1371004112,), (1371004130,), (1371004145,), (1371004150,), (1371004154,), (1371004158,), (1371004160,), (1371004175,), (1371004180,), (1371004183,), (1371004185,), (1371004187,), (1371004189,), (1371004206,), (1371004210,), (1371004212,), (1371004215,), (1371004219,), (1371004223,), (1371004240,), (1371004245,), (1371004249,), (1371004252,), (1371004258,), (1371004263,), (1371004279,), (1371004282,), (1371004284,), (1371004286,), (1371004289,), (1371004292,), (1371004330,), (1371004333,), (1371004335,), (1371004339,), (1371004343,), (1371004348,), (1371004361,), (1371004364,), (1371004368,), (1371004371,), (1371004375,), (1371004379,), (1371004402,), (1371004406,), (1371004407,), (1371004409,), (1371004412,), (1371004415,), (1371004429,), (1371004431,), (1371004433,), (1371004436,), (1371004440,), (1371004443,), (1371004463,), (1371004467,), (1371004471,), (1371004475,), (1371004479,), (1371004483,), (1371004500,), (1371004516,), (1371004519,), (1371004524,), (1371004528,), (1371004540,), (1371004554,), (1371004559,), (1371004564,), (1371004567,), (1371004570,), (1371004573,), (1371004587,), (1371004591,), (1371004594,), (1371004598,), (1371004603,), (1371004609,), (1371004633,), (1371004641,), (1371004647,), (1371004653,), (1371004659,), (1371004663,), (1371004680,), (1371004693,), (1371004700,), (1371004704,), (1371004708,), (1371004711,), (1371004752,), (1371004755,), (1371004757,), (1371004760,), (1371004764,), (1371004769,), (1371004790,), (1371004794,), (1371004797,), (1371004800,), (1371004803,), (1371004807,), (1371004829,), (1371004833,), (1371004839,), (1371004842,), (1371004845,), (1371004849,), (1371004872,), (1371004877,), (1371004881,), (1371004883,), (1371004887,), (1371004890,), (1371004908,), (1371004911,), (1371004913,), (1371004915,), (1371004918,), (1371004921,), (1371004948,), (1371004951,), (1371004955,), (1371004958,), (1371004963,), (1371004967,), (1371004986,), (1371004991,), (1371004995,), (1371004998,), (1371005003,), (1371005006,), (1371005028,), (1371005033,), (1371005035,), (1371005037,), (1371005041,), (1371005045,), (1371005062,), (1371005066,), (1371005068,), (1371005071,), (1371005075,), (1371005080,), (1371005097,), (1371005104,), (1371005110,), (1371005113,), (1371005118,), (1371005124,), (1371005161,), (1371005165,), (1371005169,), (1371005173,), (1371005177,), (1371005181,), (1371005208,), (1371005217,), (1371005220,), (1371005223,), (1371005227,), (1371005232,), (1371005249,), (1371005255,), (1371005259,), (1371005262,), (1371005266,), (1371005269,), (1371005297,), (1371005301,), (1371005304,), (1371005306,), (1371005310,), (1371005314,), (1371005335,), (1371005339,), (1371005341,), (1371005346,), (1371005352,), (1371005358,), (1371005385,), (1371005388,), (1371005392,), (1371005396,), (1371005400,), (1371005404,), (1371005425,), (1371005430,), (1371005434,), (1371005438,), (1371005441,), (1371005445,), (1371005507,), (1371005514,), (1371005525,), (1371005527,), (1371005530,), (1371005533,), (1371005552,), (1371005555,), (1371005558,), (1371005561,), (1371005564,), (1371005569,), (1371005588,), (1371005592,), (1371005598,), (1371005601,), (1371005611,), (1371005615,), (1371005669,), (1371005674,), (1371005677,), (1371005694,), (1371005726,), (1371005757,), (1371005875,), (1371005878,), (1371005888,), (1371005914,), (1371005919,), (1371005924,), (1371005995,), (1371006000,), (1371006002,), (1371006006,), (1371006010,), (1371006014,), (1371006035,), (1371006043,), (1371006053,), (1371006055,), (1371006058,), (1371006061,), (1371006099,), (1371006106,), (1371006108,), (1371006109,), (1371006113,), (1371006116,), (1371006144,), (1371006147,), (1371006158,), (1371006160,), (1371006164,), (1371006167,), (1371006184,), (1371006189,), (1371006194,), (1371006198,), (1371006202,), (1371006206,), (1371006235,), (1371006239,), (1371006243,), (1371006245,), (1371006246,), (1371006248,), (1371006273,), (1371006278,), (1371006282,), (1371006284,), (1371006287,), (1371006289,), (1371006307,), (1371006312,), (1371006320,), (1371006322,), (1371006324,), (1371006326,), (1371006384,), (1371006392,), (1371006396,), (1371006398,), (1371006400,), (1371006402,), (1371006422,), (1371006429,), (1371006435,), (1371006440,), (1371006444,), (1371006449,), (1371006481,), (1371006486,), (1371006491,), (1371006495,), (1371006500,), (1371006503,), (1371006539,), (1371006547,), (1371006551,), (1371006554,), (1371006557,), (1371006560,), (1371006581,), (1371006586,), (1371006590,), (1371006594,), (1371006599,), (1371006605,), (1371006635,), (1371006639,), (1371006645,), (1371006648,), (1371006654,), (1371006660,), (1371006678,), (1371006683,), (1371006687,), (1371006691,), (1371006696,), (1371006700,), (1371006902,), (1371006953,), (1371007017,), (1371007081,), (1371007145,), (1371007215,), (1371007775,), (1371007781,), (1371007787,), (1371007794,), (1371007800,), (1371007804,), (1371007830,), (1371007836,), (1371007840,), (1371007844,), (1371007847,), (1371007980,), (1371008025,), (1371008058,), (1371008090,), (1371008122,), (1371008153,), (1371008369,), (1371008403,), (1371008435,), (1371008469,), (1371008502,), (1371008534,), (1371008586,), (1371008592,), (1371008620,), (1371008653,), (1371008686,), (1371008720,), (1371008851,), (1371008859,), (1371008876,), (1371008913,), (1371008929,), (1371008932,), (1371008946,), (1371008952,), (1371008970,), (1371008979,), (1371008984,), (1371008987,), (1371009016,), (1371009021,), (1371009028,), (1371009032,), (1371009041,), (1371009050,), (1371009129,), (1371009149,), (1371009154,), (1371009159,), (1371009188,), (1371009203,), (1371009229,), (1371009232,), (1371009235,), (1371009239,), (1371009243,), (1371009249,), (1371009272,), (1371009282,), (1371009287,), (1371009292,), (1371009299,), (1371009304,), (1371009343,), (1371009348,), (1371009350,), (1371009352,), (1371009356,), (1371009359,), (1371009378,), (1371009382,), (1371009384,), (1371009386,), (1371009392,), (1371009397,), (1371009413,), (1371009417,), (1371009421,), (1371009424,), (1371009428,), (1371009431,), (1371009457,), (1371009463,), (1371009465,), (1371009467,), (1371009470,), (1371009473,), (1371009498,), (1371009502,), (1371009507,), (1371009511,), (1371009515,), (1371009520,), (1371009537,), (1371009550,), (1371009556,), (1371009562,), (1371009567,), (1371009569,), (1371009587,), (1371009591,), (1371009594,), (1371009597,), (1371009602,), (1371009606,), (1371009618,), (1371009623,), (1371009626,), (1371009630,), (1371009635,), (1371009638,), (1371009659,), (1371009663,), (1371009665,), (1371009667,), (1371009669,), (1371009673,), (1371009697,), (1371009700,), (1371009702,), (1371009705,), (1371009710,), (1371009716,), (1371009768,), (1371009773,), (1371009776,), (1371009779,), (1371009783,), (1371009785,), (1371009811,), (1371009814,), (1371009818,), (1371009820,), (1371009823,), (1371009825,), (1371009863,), (1371009868,), (1371009871,), (1371009873,), (1371009875,), (1371009876,), (1371009903,), (1371009908,), (1371009911,), (1371009914,), (1371009917,), (1371009920,), (1371009937,), (1371009942,), (1371009945,), (1371009947,), (1371009952,), (1371009955,), (1371009982,), (1371009986,), (1371009988,), (1371009992,), (1371009994,), (1371009999,), (1371010023,), (1371010025,), (1371010027,), (1371010033,), (1371010036,), (1371010039,), (1371010052,), (1371010059,), (1371010063,), (1371010066,), (1371010070,), (1371010072,), (1371010092,), (1371010097,), (1371010101,), (1371010103,), (1371010105,), (1371010106,), (1371010129,), (1371010134,), (1371010136,), (1371010139,), (1371010143,), (1371010146,), (1371010181,), (1371010186,), (1371010190,), (1371010191,), (1371010192,), (1371010195,), (1371010222,), (1371010226,), (1371010228,), (1371010231,), (1371010234,), (1371010236,), (1371010254,), (1371010260,), (1371010271,), (1371010281,), (1371010284,), (1371010288,), (1371010304,), (1371010309,), (1371010313,), (1371010317,), (1371010321,), (1371010324,), (1371010369,), (1371010383,), (1371010396,), (1371010400,), (1371010407,), (1371010413,), (1371010427,), (1371010430,), (1371010434,), (1371010437,), (1371010442,), (1371010446,), (1371010463,), (1371010467,), (1371010469,), (1371010472,), (1371010475,), (1371010478,), (1371010502,), (1371010505,), (1371010507,), (1371010512,), (1371010521,), (1371010527,), (1371010547,), (1371010552,), (1371010555,), (1371010560,), (1371010563,), (1371010566,), (1371010587,), (1371010592,), (1371010596,), (1371010598,), (1371010600,), (1371010602,), (1371010631,), (1371010636,), (1371010640,), (1371010643,), (1371010646,), (1371010650,), (1371010678,), (1371010686,), (1371010690,), (1371010694,), (1371010697,), (1371010699,), (1371010724,), (1371010730,), (1371010736,), (1371010738,), (1371010740,), (1371010742,), (1371010766,), (1371010777,), (1371010781,), (1371010784,), (1371010787,), (1371010791,), (1371010805,), (1371010813,), (1371010817,), (1371010822,), (1371010827,), (1371010830,), (1371010852,), (1371010857,), (1371010860,), (1371010863,), (1371010867,), (1371010871,), (1371010914,), (1371010918,), (1371010921,), (1371010924,), (1371010928,), (1371010931,), (1371010947,), (1371010953,), (1371010957,), (1371010960,), (1371010965,), (1371010968,), (1371010986,), (1371010990,), (1371010994,), (1371010996,), (1371010997,), (1371011001,), (1371011033,), (1371011039,), (1371011042,), (1371011043,), (1371011047,), (1371011050,), (1371011076,), (1371011080,), (1371011083,), (1371011085,), (1371011088,), (1371011092,), (1371011109,), (1371011120,), (1371011124,), (1371011126,), (1371011130,), (1371011132,), (1371011154,), (1371011159,), (1371011162,), (1371011163,), (1371011164,), (1371011168,), (1371011194,), (1371011196,), (1371011197,), (1371011200,), (1371011203,), (1371011207,), (1371011228,), (1371011232,), (1371011238,), (1371011240,), (1371011243,), (1371011246,), (1371011268,), (1371011272,), (1371011275,), (1371011276,), (1371011278,), (1371011280,), (1371011308,), (1371011311,), (1371011316,), (1371011318,), (1371011321,), (1371011325,), (1371011342,), (1371011348,), (1371011352,), (1371011354,), (1371011383,), (1371011416,), (1371012392,), (1371012425,), (1371012517,), (1371012598,), (1371012678,), (1371012740,), (1371012902,), (1371012964,), (1371013053,), (1371013106,), (1371013161,), (1371013235,), (1371013266,), (1371013294,), (1371013302,), (1371013304,), (1371013307,), (1371013324,), (1371013333,), (1371013342,), (1371013346,), (1371013350,), (1371013354,), (1371013374,), (1371013380,), (1371013386,), (1371013391,), (1371013396,), (1371013399,), (1371013414,), (1371013418,), (1371013422,), (1371013426,), (1371013431,), (1371013434,), (1371013447,), (1371013453,), (1371013458,), (1371013461,), (1371013464,), (1371013467,), (1371013482,), (1371013489,), (1371013494,), (1371013498,), (1371013503,), (1371013506,), (1371013531,), (1371013536,), (1371013541,), (1371013546,), (1371013570,), (1371013596,), (1371013638,), (1371013650,), (1371013688,), (1371013701,), (1371013706,), (1371013711,), (1371013736,), (1371013742,), (1371013744,), (1371013746,), (1371013761,), (1371013768,), (1371013840,), (1371013842,), (1371013844,), (1371013877,), (1371013882,), (1371013888,), (1371013946,), (1371013951,), (1371013954,), (1371013959,), (1371013963,), (1371013984,), (1371014053,), (1371014056,), (1371014058,), (1371014060,), (1371014071,), (1371014075,), (1371014302,), (1371014320,), (1371014322,), (1371014325,), (1371014330,), (1371014361,), (1371014501,), (1371014506,), (1371014511,), (1371014515,), (1371014537,), (1371014569,), (1371014618,), (1371014623,), (1371014626,), (1371014648,), (1371014681,), (1371014713,), (1371014743,), (1371014757,), (1371014767,), (1371014779,), (1371014788,), (1371014791,), (1371014815,), (1371014820,), (1371014824,), (1371014829,), (1371014834,), (1371014837,), (1371014857,), (1371014890,), (1371014929,), (1371014972,), (1371015009,), (1371015042,), (1371015252,), (1371015256,), (1371015259,), (1371015263,), (1371015268,), (1371015272,), (1371015332,), (1371015343,), (1371015350,), (1371015353,), (1371015359,), (1371015366,), (1371015383,), (1371015385,), (1371015386,), (1371015388,), (1371015393,), (1371015399,), (1371015420,), (1371015421,), (1371015422,), (1371015424,), (1371015429,), (1371015433,), (1371015482,), (1371015484,), (1371015487,), (1371015489,), (1371015506,), (1371015511,), (1371015542,), (1371015554,), (1371015562,), (1371015563,), (1371015566,), (1371015568,), (1371015615,), (1371015619,), (1371015620,), (1371015622,), (1371015626,), (1371015631,), (1371015649,), (1371015653,), (1371015657,), (1371015658,), (1371015661,), (1371015663,), (1371015706,), (1371015709,), (1371015711,), (1371015712,), (1371015715,), (1371015719,), (1371015746,), (1371015763,), (1371015764,), (1371015766,), (1371015770,), (1371015774,), (1371015812,), (1371015814,), (1371015817,), (1371015819,), (1371015823,), (1371015830,), (1371015857,), (1371015871,), (1371015874,), (1371015877,), (1371015880,), (1371015884,), (1371015942,), (1371015946,), (1371015950,), (1371015959,), (1371015977,), (1371015982,), (1371016140,), (1371016152,), (1371016162,), (1371016164,), (1371016167,), (1371016172,), (1371016210,), (1371016214,), (1371016216,), (1371016217,), (1371016219,), (1371016222,), (1371016257,), (1371016269,), (1371016271,), (1371016273,), (1371016278,), (1371016282,), (1371016323,), (1371016327,), (1371016329,), (1371016333,), (1371016335,), (1371016339,), (1371016369,), (1371016381,), (1371016383,), (1371016384,), (1371016387,), (1371016390,), (1371016428,), (1371016432,), (1371016435,), (1371016438,), (1371016441,), (1371016445,), (1371016469,), (1371016491,), (1371016502,), (1371016506,), (1371016511,), (1371016516,), (1371016532,), (1371016536,), (1371016539,), (1371016542,), (1371016545,), (1371016548,), (1371016579,), (1371016592,), (1371016596,), (1371016602,), (1371016607,), (1371016612,), (1371016636,), (1371016641,), (1371016646,), (1371016649,), (1371016652,), (1371016656,), (1371016679,), (1371016691,), (1371016694,), (1371016696,), (1371016699,), (1371016702,), (1371016734,), (1371016738,), (1371016741,), (1371016744,), (1371016748,), (1371016752,), (1371016779,), (1371016792,), (1371016801,), (1371016816,), (1371016822,), (1371016826,), (1371016899,), (1371016904,), (1371016907,), (1371016911,), (1371016915,), (1371016921,), (1371016938,), (1371016951,), (1371016955,), (1371016967,), (1371016970,), (1371016974,), (1371017013,), (1371017017,), (1371017020,), (1371017023,), (1371017026,), (1371017031,), (1371017051,), (1371017055,), (1371017060,), (1371017063,), (1371017069,), (1371017073,), (1371017100,), (1371017105,), (1371017107,), (1371017109,), (1371017112,), (1371017115,), (1371017131,), (1371017142,), (1371017145,), (1371017149,), (1371017157,), (1371017162,), (1371017194,), (1371017198,), (1371017202,), (1371017204,), (1371017208,), (1371017211,), (1371017234,), (1371017248,), (1371017250,), (1371017251,), (1371017254,), (1371017255,), (1371017291,), (1371017295,), (1371017296,), (1371017298,), (1371017301,), (1371017305,), (1371017327,), (1371017339,), (1371017342,), (1371017344,), (1371017348,), (1371017350,), (1371017391,), (1371017395,), (1371017396,), (1371017397,), (1371017399,), (1371017402,), (1371017427,), (1371017431,), (1371017433,), (1371017435,), (1371017438,), (1371017442,), (1371017469,), (1371017475,), (1371017479,), (1371017481,), (1371017485,), (1371017487,), (1371017506,), (1371017528,), (1371017564,), (1371017597,), (1371017630,), (1371017666,), (1371018373,), (1371018478,), (1371018571,), (1371018664,), (1371018760,), (1371018831,), (1371019328,), (1371019411,), (1371019493,), (1371019548,), (1371019582,), (1371019826,), (1371019897,), (1371019963,), (1371020025,), (1371020094,), (1371020158,), (1371020337,), (1371020367,), (1371020369,), (1371020386,), (1371020415,), (1371020426,), (1371020612,), (1371020645,), (1371020674,), (1371020708,), (1371020745,), (1371020770,), (1371020891,), (1371020897,), (1371020918,), (1371020947,), (1371020957,), (1371020959,), (1371020985,), (1371021000,), (1371021001,), (1371021002,), (1371021005,), (1371021008,), (1371021050,), (1371021053,), (1371021054,), (1371021056,), (1371021059,), (1371021064,), (1371021079,), (1371021083,), (1371021087,), (1371021090,), (1371021095,), (1371021098,), (1371021132,), (1371021137,), (1371021141,), (1371021143,), (1371021147,), (1371021151,), (1371021176,), (1371021189,), (1371021194,), (1371021197,), (1371021202,), (1371021206,), (1371021263,), (1371021267,), (1371021271,), (1371021274,), (1371021279,), (1371021283,), (1371021311,), (1371021322,), (1371021324,), (1371021326,), (1371021330,), (1371021334,), (1371021376,), (1371021379,), (1371021383,), (1371021388,), (1371021395,), (1371021400,), (1371021419,), (1371021429,), (1371021434,), (1371021437,), (1371021443,), (1371021448,), (1371021483,), (1371021486,), (1371021488,), (1371021489,), (1371021493,), (1371021495,), (1371021527,), (1371021535,), (1371021546,), (1371021558,), (1371021563,), (1371021572,), (1371021619,), (1371021623,), (1371021625,), (1371021627,), (1371021628,), (1371021630,), (1371021651,), (1371021663,), (1371021670,), (1371021673,), (1371021676,), (1371021679,), (1371021706,), (1371021710,), (1371021713,), (1371021716,), (1371021719,), (1371021725,), (1371021746,), (1371021761,), (1371021766,), (1371021769,), (1371021773,), (1371021778,), (1371021807,), (1371021812,), (1371021816,), (1371021822,), (1371021825,), (1371021831,), (1371021852,), (1371021864,), (1371021867,), (1371021871,), (1371021876,), (1371021880,), (1371021911,), (1371021916,), (1371021921,), (1371021925,), (1371021929,), (1371021934,), (1371021963,), (1371021974,), (1371021980,), (1371021983,), (1371021987,), (1371021989,), (1371022015,), (1371022021,), (1371022024,), (1371022027,), (1371022031,), (1371022034,), (1371022049,), (1371022052,), (1371022056,), (1371022060,), (1371022065,), (1371022071,), (1371022096,), (1371022102,), (1371022107,), (1371022112,), (1371022116,), (1371022120,), (1371022148,), (1371022154,), (1371022158,), (1371022164,), (1371022168,), (1371022174,), (1371022200,), (1371022203,), (1371022207,), (1371022211,), (1371022214,), (1371022218,), (1371022236,), (1371022247,), (1371022252,), (1371022255,), (1371022260,), (1371022262,), (1371022300,), (1371022303,), (1371022313,), (1371022322,), (1371022324,), (1371022326,), (1371022344,), (1371022357,), (1371022361,), (1371022365,), (1371022368,), (1371022369,), (1371022398,), (1371022404,), (1371022408,), (1371022411,), (1371022413,), (1371022415,), (1371022437,), (1371022447,), (1371022450,), (1371022453,), (1371022456,), (1371022460,), (1371022470,), (1371022481,), (1371022484,), (1371022487,), (1371022493,), (1371022496,), (1371022566,), (1371022587,), (1371022620,), (1371022639,), (1371022644,), (1371022650,), (1371022685,), (1371022688,), (1371022690,), (1371022705,), (1371022714,), (1371022718,), (1371022785,), (1371022815,), (1371022825,), (1371022832,), (1371022839,), (1371022844,), (1371022942,), (1371022950,), (1371022958,), (1371022963,), (1371022982,), (1371022984,), (1371023003,), (1371023038,), (1371023071,), (1371023104,), (1371023137,), (1371023172,), (1371023444,), (1371023462,), (1371023466,), (1371023489,), (1371023495,), (1371023498,), (1371023521,), (1371023531,), (1371023536,), (1371023545,), (1371023548,), (1371023551,), (1371023573,), (1371023576,), (1371023583,), (1371023586,), (1371023589,), (1371023620,), (1371023654,), (1371023664,), (1371023667,), (1371023669,), (1371023674,), (1371023677,), (1371023712,), (1371023717,), (1371023719,), (1371023721,), (1371023724,), (1371023727,), (1371023745,), (1371023748,), (1371023750,), (1371023752,), (1371023755,), (1371023758,), (1371023775,), (1371023779,), (1371023782,), (1371023783,), (1371023785,), (1371023787,), (1371023803,), (1371023804,), (1371023806,), (1371023808,), (1371023812,), (1371023816,), (1371023834,), (1371023839,), (1371023843,), (1371023846,), (1371023849,), (1371023851,), (1371023871,), (1371023875,), (1371023877,), (1371023878,), (1371023881,), (1371023883,), (1371023918,), (1371023921,), (1371023924,), (1371023929,), (1371023935,), (1371023938,), (1371023951,), (1371023955,), (1371023958,), (1371023961,), (1371023965,), (1371023968,), (1371023990,), (1371023993,), (1371023996,), (1371023997,), (1371024000,), (1371024002,), (1371024022,), (1371024027,), (1371024029,), (1371024030,), (1371024033,), (1371024035,), (1371024057,), (1371024059,), (1371024060,), (1371024062,), (1371024066,), (1371024071,), (1371024112,), (1371024120,), (1371024122,), (1371024123,), (1371024126,), (1371024129,), (1371024159,), (1371024164,), (1371024166,), (1371024168,), (1371024171,), (1371024174,), (1371024198,), (1371024199,), (1371024200,), (1371024201,), (1371024205,), (1371024209,), (1371024402,), (1371024443,), (1371024476,), (1371024511,), (1371024544,), (1371024580,), (1371024938,), (1371025002,), (1371025067,), (1371025129,), (1371025190,), (1371025711,), (1371025758,), (1371025791,), (1371025822,), (1371025880,), (1371025974,), (1371026427,), (1371026491,), (1371026541,), (1371026600,), (1371026674,), (1371026714,), (1371026757,), (1371026760,), (1371026762,), (1371026767,), (1371026798,), (1371026832,), (1371027024,), (1371027027,), (1371027029,), (1371027058,), (1371027094,), (1371027097,), (1371027150,), (1371027154,), (1371027156,), (1371027158,), (1371027161,), (1371027164,), (1371027186,), (1371027190,), (1371027193,), (1371027196,), (1371027199,), (1371027202,), (1371027216,), (1371027219,), (1371027222,), (1371027225,), (1371027228,), (1371027231,), (1371027247,), (1371027251,), (1371027254,), (1371027257,), (1371027261,), (1371027264,), (1371027290,), (1371027305,), (1371027327,), (1371027332,), (1371027335,), (1371027339,), (1371027440,), (1371027473,), (1371027508,), (1371027533,), (1371027535,), (1371027537,), (1371027724,), (1371027792,), (1371027823,), (1371027824,), (1371027849,), (1371027863,), (1371027968,), (1371027971,), (1371027973,), (1371027974,), (1371027991,), (1371028022,), (1371028162,), (1371028190,), (1371028205,), (1371028213,), (1371028245,), (1371028286,), (1371028360,), (1371028396,), (1371028426,), (1371028437,), (1371028444,), (1371028448,), (1371028508,), (1371028525,), (1371028526,), (1371028527,), (1371028528,), (1371028532,), (1371028549,), (1371028551,), (1371028554,), (1371028555,), (1371028559,), (1371028560,), (1371028572,), (1371028575,), (1371028577,), (1371028579,), (1371028581,), (1371028585,), (1371028608,), (1371028614,), (1371028617,), (1371028619,), (1371028623,), (1371028627,), (1371028670,), (1371028673,), (1371028675,), (1371028677,), (1371028681,), (1371028685,), (1371028870,), (1371028888,), (1371028903,), (1371028934,), (1371028975,), (1371029010,), (1371029219,), (1371029230,), (1371029233,), (1371029236,), (1371029240,), (1371029243,), (1371029262,), (1371029266,), (1371029270,), (1371029273,), (1371029278,), (1371029283,), (1371029299,), (1371029304,), (1371029307,), (1371029309,), (1371029314,), (1371029316,), (1371029337,), (1371029340,), (1371029343,), (1371029344,), (1371029346,), (1371029349,), (1371029374,), (1371029376,), (1371029380,), (1371029382,), (1371029385,), (1371029389,), (1371029408,), (1371029413,), (1371029418,), (1371029423,), (1371029426,), (1371029429,), (1371029432,), (1371029433,), (1371029435,), (1371029438,), (1371029444,), (1371029448,), (1371029475,), (1371029477,), (1371029479,), (1371029482,), (1371029484,), (1371029486,), (1371029500,), (1371029504,), (1371029508,), (1371029512,), (1371029514,), (1371029518,), (1371029531,), (1371029535,), (1371029538,), (1371029543,), (1371029570,), (1371029587,), (1371029596,), (1371029606,), (1371029609,), (1371029612,), (1371029616,), (1371029621,), (1371029648,), (1371029653,), (1371029655,), (1371029658,), (1371029663,), (1371029669,), (1371029699,), (1371029703,), (1371029708,), (1371029714,), (1371029718,), (1371029722,), (1371029740,), (1371029748,), (1371029750,), (1371029752,), (1371029757,), (1371029762,), (1371029794,), (1371029795,), (1371029796,), (1371029798,), (1371029803,), (1371029807,), (1371029832,), (1371029836,), (1371029840,), (1371029844,), (1371029860,), (1371029894,), (1371030120,), (1371030153,), (1371030186,), (1371030208,), (1371030212,), (1371030215,), (1371030233,), (1371030235,), (1371030236,), (1371030238,), (1371030244,), (1371030249,), (1371030276,), (1371030279,), (1371030281,), (1371030284,), (1371030288,), (1371030292,), (1371030316,), (1371030320,), (1371030322,), (1371030323,), (1371030326,), (1371030329,), (1371030360,), (1371030363,), (1371030365,), (1371030367,), (1371030370,), (1371030375,), (1371030414,), (1371030420,), (1371030424,), (1371030427,), (1371030432,), (1371030435,), (1371030453,), (1371030457,), (1371030459,), (1371030460,), (1371030462,), (1371030463,), (1371030491,), (1371030501,), (1371030505,), (1371030508,), (1371030511,), (1371030515,), (1371030561,), (1371030566,), (1371030572,), (1371030577,), (1371030581,), (1371030587,), (1371030616,), (1371030627,), (1371030641,), (1371030655,), (1371030659,), (1371030661,), (1371030790,), (1371030791,), (1371030792,), (1371030793,), (1371030795,), (1371030798,), (1371030843,), (1371030865,), (1371030868,), (1371030870,), (1371030873,), (1371030877,), (1371030905,), (1371030910,), (1371030913,), (1371030915,), (1371030918,), (1371030921,), (1371030945,), (1371030950,), (1371030953,), (1371030955,), (1371030957,), (1371030959,), (1371030998,), (1371031003,), (1371031007,), (1371031011,), (1371031013,), (1371031016,), (1371031045,), (1371031052,), (1371031057,), (1371031060,), (1371031063,), (1371031064,), (1371031095,), (1371031101,), (1371031106,), (1371031109,), (1371031110,), (1371031111,), (1371031139,), (1371031151,), (1371031156,), (1371031159,), (1371031162,), (1371031165,), (1371031196,), (1371031202,), (1371031206,), (1371031211,), (1371031216,), (1371031218,), (1371031232,), (1371031236,), (1371031240,), (1371031242,), (1371031245,), (1371031248,), (1371031266,), (1371031272,), (1371031275,), (1371031280,), (1371031284,), (1371031287,), (1371031337,), (1371031390,), (1371031466,), (1371031528,), (1371031589,), (1371031653,), (1371032486,), (1371032527,), (1371032574,), (1371032640,), (1371032724,), (1371032792,), (1371033052,), (1371033085,), (1371033141,), (1371033182,), (1371033233,), (1371033363,), (1371033395,), (1371033429,), (1371033462,), (1371033495,), (1371033529,), (1371033666,), (1371033701,), (1371033731,), (1371033737,), (1371033742,), (1371033748,), (1371033757,), (1371033762,), (1371033767,), (1371033783,), (1371033817,), (1371033851,), (1371034066,), (1371034071,), (1371034072,), (1371034091,), (1371034123,), (1371034157,), (1371034234,), (1371034239,), (1371034244,), (1371034247,), (1371034251,), (1371034255,), (1371034287,), (1371034293,), (1371034299,), (1371034302,), (1371034305,), (1371034308,), (1371034336,), (1371034341,), (1371034346,), (1371034361,), (1371034393,), (1371034400,), (1371034581,), (1371034591,), (1371034638,), (1371034664,), (1371034670,), (1371034676,), (1371034701,), (1371034705,), (1371034711,), (1371034715,), (1371034718,), (1371034723,), (1371034757,), (1371034763,), (1371034766,), (1371034769,), (1371034775,), (1371034780,), (1371035018,), (1371035058,), (1371035113,), (1371035165,), (1371035205,), (1371035247,), (1371035418,), (1371035420,), (1371035423,), (1371035432,), (1371035443,), (1371035457,), (1371035497,), (1371035502,), (1371035506,), (1371035510,), (1371035516,), (1371035520,), (1371035559,), (1371035561,), (1371035576,), (1371035586,), (1371035591,), (1371035595,), (1371035636,), (1371035642,), (1371035646,), (1371035649,), (1371035655,), (1371035660,), (1371035687,), (1371035690,), (1371035692,), (1371035726,), (1371035765,), (1371035796,), (1371035911,), (1371035915,), (1371035919,), (1371035922,), (1371035926,), (1371035930,), (1371035964,), (1371035969,), (1371035970,), (1371035971,), (1371035974,), (1371035977,), (1371036081,), (1371036094,), (1371036115,), (1371036120,), (1371036126,), (1371036131,), (1371036160,), (1371036173,), (1371036177,), (1371036180,), (1371036185,), (1371036188,), (1371036226,), (1371036233,), (1371036239,), (1371036246,), (1371036251,), (1371036255,), (1371036274,), (1371036278,), (1371036282,), (1371036290,), (1371036298,), (1371036302,), (1371036330,), (1371036335,), (1371036339,), (1371036342,), (1371036349,), (1371036352,), (1371036377,), (1371036380,), (1371036382,), (1371036383,), (1371036385,), (1371036389,), (1371036417,), (1371036419,), (1371036420,), (1371036422,), (1371036426,), (1371036430,), (1371036459,), (1371036464,), (1371036470,), (1371036473,), (1371036478,), (1371036482,), (1371036500,), (1371036505,), (1371036511,), (1371036515,), (1371036520,), (1371036523,), (1371036550,), (1371036555,), (1371036559,), (1371036562,), (1371036568,), (1371036572,), (1371036592,), (1371036599,), (1371036603,), (1371036610,), (1371036615,), (1371036616,), (1371036643,), (1371036657,), (1371036661,), (1371036663,), (1371036667,), (1371036670,), (1371036723,), (1371036727,), (1371036730,), (1371036733,), (1371036737,), (1371036742,), (1371036769,), (1371036772,), (1371036778,), (1371036783,), (1371036786,), (1371036793,), (1371036822,), (1371036827,), (1371036831,), (1371036833,), (1371036837,), (1371036840,), (1371036868,), (1371036873,), (1371036877,), (1371036881,), (1371036885,), (1371036887,), (1371036908,), (1371036915,), (1371036920,), (1371036924,), (1371036929,), (1371036933,), (1371036953,), (1371036959,), (1371036963,), (1371036965,), (1371036969,), (1371036971,), (1371036993,), (1371036997,), (1371037000,), (1371037004,), (1371037008,), (1371037012,), (1371037043,), (1371037048,), (1371037053,), (1371037058,), (1371037067,), (1371037071,), (1371037110,), (1371037117,), (1371037122,), (1371037131,), (1371037133,), (1371037135,), (1371037165,), (1371037175,), (1371037180,), (1371037183,), (1371037192,), (1371037194,), (1371037248,), (1371037255,), (1371037261,), (1371037265,), (1371037275,), (1371037276,), (1371037324,), (1371037350,), (1371037363,), (1371037365,), (1371037373,), (1371037374,), (1371037473,), (1371037516,), (1371037551,), (1371037555,), (1371037564,), (1371037568,), (1371037669,), (1371037676,), (1371037682,), (1371037687,), (1371037697,), (1371037732,), (1371037818,), (1371037830,), (1371037834,), (1371037836,), (1371037847,), (1371037849,), (1371037890,), (1371037900,), (1371037911,), (1371037926,), (1371037934,), (1371037938,), (1371037964,), (1371037976,), (1371037982,), (1371037985,), (1371037994,), (1371037996,), (1371038024,), (1371038033,), (1371038036,), (1371038038,), (1371038046,), (1371038048,), (1371038087,), (1371038092,), (1371038096,), (1371038106,), (1371038108,), (1371038111,), (1371038144,), (1371038157,), (1371038161,), (1371038162,), (1371038169,), (1371038170,), (1371038215,), (1371038226,), (1371038233,), (1371038236,), (1371038244,), (1371038247,), (1371038279,), (1371038293,), (1371038299,), (1371038303,), (1371038312,), (1371038314,), (1371038348,), (1371038355,), (1371038360,), (1371038361,), (1371038368,), (1371038369,), (1371038409,), (1371038413,), (1371038416,), (1371038418,), (1371038426,), (1371038428,), (1371038459,), (1371038470,), (1371038473,), (1371038476,), (1371038486,), (1371038491,), (1371038516,), (1371038526,), (1371038528,), (1371038530,), (1371038538,), (1371038539,), (1371038571,), (1371038574,), (1371038578,), (1371038583,), (1371038600,), (1371038632,), (1371038921,), (1371038973,), (1371039041,), (1371039102,), (1371039147,), (1371039195,), (1371040057,), (1371040123,), (1371040190,), (1371040224,), (1371040295,), (1371040333,), (1371040424,), (1371040445,), (1371040481,), (1371040517,), (1371040556,), (1371040684,), (1371040718,), (1371040726,), (1371040730,), (1371040741,), (1371040745,), (1371040762,), (1371040772,), (1371040777,), (1371040781,), (1371040792,), (1371040796,), (1371040825,), (1371040835,), (1371040839,), (1371040841,), (1371040849,), (1371040851,), (1371040871,), (1371040881,), (1371040885,), (1371040890,), (1371040895,), (1371040905,), (1371040929,), (1371040934,), (1371040941,), (1371040944,), (1371040954,), (1371040958,), (1371040993,), (1371040999,), (1371041002,), (1371041005,), (1371041015,), (1371041018,), (1371041059,), (1371041065,), (1371041067,), (1371041071,), (1371041079,), (1371041084,), (1371041119,), (1371041127,), (1371041132,), (1371041139,), (1371041150,), (1371041168,), (1371041215,), (1371041253,), (1371041262,), (1371041268,), (1371041276,), (1371041278,), (1371041398,), (1371041408,), (1371041411,), (1371041413,), (1371041423,), (1371041426,), (1371041454,), (1371041465,), (1371041469,), (1371041473,), (1371041483,), (1371041488,), (1371041527,), (1371041535,), (1371041539,), (1371041550,), (1371041553,), (1371041557,), (1371041603,), (1371041616,), (1371041642,), (1371041652,), (1371041663,), (1371041670,), (1371041706,), (1371041719,), (1371041723,), (1371041725,), (1371041735,), (1371041736,), (1371041779,), (1371041784,), (1371041794,), (1371041796,), (1371041805,), (1371041808,), (1371041847,), (1371041857,), (1371041863,), (1371041866,), (1371041875,), (1371041877,), (1371041903,), (1371041914,), (1371041918,), (1371041921,), (1371041930,), (1371041932,), (1371041972,), (1371041976,), (1371041979,), (1371041981,), (1371041991,), (1371041993,), (1371042020,), (1371042029,), (1371042032,), (1371042035,), (1371042038,), (1371042048,), (1371042088,), (1371042099,), (1371042102,), (1371042104,), (1371042114,), (1371042116,), (1371042167,), (1371042182,), (1371042186,), (1371042206,), (1371042215,), (1371042217,), (1371042249,), (1371042259,), (1371042261,), (1371042263,), (1371042272,), (1371042275,), (1371042313,), (1371042324,), (1371042327,), (1371042329,), (1371042337,), (1371042340,), (1371042372,), (1371042376,), (1371042379,), (1371042382,), (1371042392,), (1371042394,), (1371042424,), (1371042429,), (1371042434,), (1371042439,), (1371042449,), (1371042451,), (1371042483,), (1371042487,), (1371042490,), (1371042491,), (1371042498,), (1371042499,), (1371042520,), (1371042531,), (1371042536,), (1371042540,), (1371042551,), (1371042554,), (1371042593,), (1371042598,), (1371042602,), (1371042611,), (1371042614,), (1371042617,), (1371042650,), (1371042655,), (1371042661,), (1371042663,), (1371042672,), (1371042673,), (1371042726,), (1371042734,), (1371042738,), (1371042740,), (1371042749,), (1371042752,), (1371042780,), (1371042792,), (1371042798,), (1371042801,), (1371042811,), (1371042812,), (1371042838,), (1371042851,), (1371042855,), (1371042856,), (1371042863,), (1371042864,), (1371042902,), (1371042906,), (1371042909,), (1371042911,), (1371042919,), (1371042922,), (1371042947,), (1371042959,), (1371042964,), (1371042968,), (1371042978,), (1371042981,), (1371043012,), (1371043017,), (1371043019,), (1371043020,), (1371043028,), (1371043030,), (1371043075,), (1371043079,), (1371043083,), (1371043086,), (1371043096,), (1371043098,), (1371043124,), (1371043130,), (1371043133,), (1371043136,), (1371043145,), (1371043147,), (1371043180,), (1371043192,), (1371043197,), (1371043200,), (1371043208,), (1371043209,), (1371043231,), (1371043241,), (1371043243,), (1371043245,), (1371043255,), (1371043258,), (1371043326,), (1371043330,), (1371043335,), (1371043347,), (1371043350,), (1371043352,), (1371043373,), (1371043384,), (1371043388,), (1371043389,), (1371043397,), (1371043399,), (1371043464,), (1371043474,), (1371043476,), (1371043478,), (1371043487,), (1371043491,), (1371043523,), (1371043529,), (1371043534,), (1371043537,), (1371043548,), (1371043551,), (1371043576,), (1371043579,), (1371043585,), (1371043587,), (1371043597,), (1371043600,), (1371043628,), (1371043638,), (1371043641,), (1371043646,), (1371043656,), (1371043661,), (1371043688,), (1371043699,), (1371043704,), (1371043709,), (1371043718,), (1371043721,), (1371043758,), (1371043768,), (1371043770,), (1371043771,), (1371043779,), (1371043781,), (1371043813,), (1371043824,), (1371043829,), (1371043834,), (1371043844,), (1371043848,), (1371043871,), (1371043881,), (1371043884,), (1371043887,), (1371043898,), (1371043901,), (1371043964,), (1371043970,), (1371043972,), (1371043974,), (1371043984,), (1371043988,), (1371044026,), (1371044029,), (1371044030,), (1371044032,), (1371044042,), (1371044047,), (1371044073,), (1371044083,), (1371044085,), (1371044087,), (1371044098,), (1371044101,), (1371044140,), (1371044147,), (1371044150,), (1371044153,), (1371044161,), (1371044163,), (1371044199,), (1371044203,), (1371044206,), (1371044209,), (1371044219,), (1371044224,), (1371044255,), (1371044261,), (1371044266,), (1371044271,), (1371044282,), (1371044285,), (1371044315,), (1371044320,), (1371044323,), (1371044325,), (1371044334,), (1371044337,), (1371044372,), (1371044387,), (1371044419,), (1371044452,), (1371044491,), (1371044525,), (1371045499,), (1371045574,), (1371045661,), (1371045765,), (1371045867,), (1371045964,), (1371046262,), (1371046355,), (1371046401,), (1371046451,), (1371046509,), (1371046648,), (1371046681,), (1371046713,), (1371046753,), (1371046790,), (1371046826,), (1371046934,), (1371046967,), (1371047007,), (1371047043,), (1371047080,), (1371047120,), (1371047289,), (1371047329,), (1371047381,), (1371047436,), (1371047471,), (1371047534,), (1371047687,), (1371047730,), (1371047734,), (1371047746,), (1371047783,), (1371047795,), (1371047818,), (1371047828,), (1371047832,), (1371047836,), (1371047847,), (1371047851,), (1371047870,), (1371047881,), (1371047883,), (1371047887,), (1371047897,), (1371047901,), (1371047922,), (1371047932,), (1371047935,), (1371047939,), (1371047949,), (1371047953,), (1371047979,), (1371047989,), (1371047992,), (1371047996,), (1371048005,), (1371048008,), (1371048027,), (1371048037,), (1371048040,), (1371048044,), (1371048054,), (1371048059,), (1371048092,), (1371048100,), (1371048105,), (1371048110,), (1371048119,), (1371048122,), (1371048174,), (1371048180,), (1371048183,), (1371048185,), (1371048193,), (1371048195,), (1371048229,), (1371048239,), (1371048244,), (1371048248,), (1371048258,), (1371048262,), (1371048287,), (1371048299,), (1371048303,), (1371048306,), (1371048316,), (1371048320,), (1371048348,), (1371048360,), (1371048363,), (1371048365,), (1371048374,), (1371048376,), (1371048407,), (1371048416,), (1371048417,), (1371048418,), (1371048428,), (1371048430,), (1371048473,), (1371048483,), (1371048485,), (1371048488,), (1371048500,), (1371048504,), (1371048605,), (1371048609,), (1371048614,), (1371048635,), (1371048645,), (1371048647,), (1371048676,), (1371048682,), (1371048686,), (1371048687,), (1371048694,), (1371048695,), (1371048722,), (1371048732,), (1371048734,), (1371048738,), (1371048747,), (1371048749,), (1371048773,), (1371048784,), (1371048788,), (1371048792,), (1371048801,), (1371048803,), (1371048830,), (1371048840,), (1371048844,), (1371048846,), (1371048847,), (1371048854,), (1371048880,), (1371048890,), (1371048896,), (1371048900,), (1371048909,), (1371048911,), (1371048939,), (1371048945,), (1371048950,), (1371048952,), (1371048960,), (1371048962,), (1371048979,), (1371048998,), (1371049002,), (1371049005,), (1371049006,), (1371049013,), (1371049038,), (1371049048,), (1371049052,), (1371049054,), (1371049062,), (1371049065,), (1371049099,), (1371049104,), (1371049109,), (1371049113,), (1371049115,), (1371049124,), (1371049146,), (1371049159,), (1371049164,), (1371049167,), (1371049175,), (1371049176,), (1371049211,), (1371049224,), (1371049227,), (1371049230,), (1371049239,), (1371049243,), (1371049284,), (1371049290,), (1371049297,), (1371049301,), (1371049311,), (1371049314,), (1371049342,), (1371049349,), (1371049352,), (1371049354,), (1371049362,), (1371049365,), (1371049399,), (1371049405,), (1371049410,), (1371049422,), (1371049426,), (1371049430,), (1371049447,), (1371049458,), (1371049463,), (1371049467,), (1371049472,), (1371049480,), (1371049519,), (1371049524,), (1371049526,), (1371049527,), (1371049535,), (1371049537,), (1371049564,), (1371049568,), (1371049572,), (1371049576,), (1371049588,), (1371049590,), (1371049619,), (1371049623,), (1371049624,), (1371049625,), (1371049633,), (1371049636,), (1371049666,), (1371049676,), (1371049679,), (1371049683,), (1371049692,), (1371049695,), (1371049716,), (1371049720,), (1371049725,), (1371049727,), (1371049737,), (1371049738,), (1371049759,), (1371049765,), (1371049768,), (1371049770,), (1371049778,), (1371049780,), (1371049807,), (1371049813,), (1371049815,), (1371049816,), (1371049824,), (1371049825,), (1371049851,), (1371049853,), (1371049855,), (1371049857,), (1371049867,), (1371049870,), (1371049903,), (1371049908,), (1371049913,), (1371049920,), (1371049936,), (1371049940,), (1371050024,), (1371050036,), (1371050041,), (1371050046,), (1371050075,), (1371050079,), (1371050107,), (1371050111,), (1371050120,), (1371050123,), (1371050132,), (1371050134,), (1371050153,), (1371050159,), (1371050162,), (1371050163,), (1371050169,), (1371050171,), (1371050190,), (1371050191,), (1371050194,), (1371050196,), (1371050205,), (1371050209,), (1371050228,), (1371050232,), (1371050236,), (1371050239,), (1371050249,), (1371050253,), (1371050278,), (1371050284,), (1371050293,), (1371050294,), (1371050302,), (1371050304,), (1371050327,), (1371050331,), (1371050333,), (1371050336,), (1371050345,), (1371050348,), (1371050367,), (1371050374,), (1371050377,), (1371050379,), (1371050387,), (1371050391,), (1371050409,), (1371050413,), (1371050416,), (1371050418,), (1371050426,), (1371050428,), (1371050480,), (1371050483,), (1371050486,), (1371050489,), (1371050500,), (1371050502,), (1371050518,), (1371050524,), (1371050527,), (1371050529,), (1371050536,), (1371050539,), (1371050571,), (1371050577,), (1371050582,), (1371050585,), (1371050595,), (1371050597,), (1371050614,), (1371050619,), (1371050623,), (1371050624,), (1371050632,), (1371050634,), (1371050659,), (1371050663,), (1371050666,), (1371050669,), (1371050678,), (1371050681,), (1371050697,), (1371050703,), (1371050709,), (1371050712,), (1371050723,), (1371050725,), (1371050752,), (1371050787,), (1371050818,), (1371050856,), (1371050924,), (1371050990,), (1371051282,), (1371051319,), (1371051374,), (1371051414,), (1371051431,), (1371051460,), (1371051994,), (1371052039,), (1371052080,), (1371052115,), (1371052141,), (1371052146,), (1371052184,), (1371052220,), (1371052257,), (1371052291,), (1371052329,), (1371052461,), (1371052495,), (1371052502,), (1371052505,), (1371052515,), (1371052520,), (1371052535,), (1371052540,), (1371052546,), (1371052548,), (1371052555,), (1371052558,), (1371052576,), (1371052583,), (1371052586,), (1371052590,), (1371052597,), (1371052602,), (1371052620,), (1371052628,), (1371052634,), (1371052639,), (1371052649,), (1371052651,), (1371052666,), (1371052672,), (1371052677,), (1371052680,), (1371052689,), (1371052692,), (1371052714,), (1371052719,), (1371052724,), (1371052734,), (1371052737,), (1371052740,), (1371052753,), (1371052757,), (1371052763,), (1371052777,), (1371052786,), (1371052800,), (1371052849,), (1371052854,), (1371052857,), (1371052860,), (1371052869,), (1371052871,), (1371052893,), (1371052897,), (1371052899,), (1371052900,), (1371052908,), (1371052911,), (1371052950,), (1371052954,), (1371052958,), (1371052961,), (1371052970,), (1371052973,), (1371053005,), (1371053025,), (1371053028,), (1371053030,), (1371053037,), (1371053039,), (1371053058,), (1371053063,), (1371053065,), (1371053067,), (1371053076,), (1371053078,), (1371053100,), (1371053104,), (1371053108,), (1371053110,), (1371053119,), (1371053122,), (1371053142,), (1371053148,), (1371053150,), (1371053158,), (1371053162,), (1371053167,), (1371053188,), (1371053191,), (1371053196,), (1371053198,), (1371053206,), (1371053209,), (1371053227,), (1371053231,), (1371053235,), (1371053238,), (1371053249,), (1371053252,), (1371053266,), (1371053271,), (1371053276,), (1371053279,), (1371053288,), (1371053291,), (1371053311,), (1371053316,), (1371053318,), (1371053319,), (1371053327,), (1371053329,), (1371053351,), (1371053355,), (1371053360,), (1371053365,), (1371053369,), (1371053378,), (1371053391,), (1371053397,), (1371053401,), (1371053403,), (1371053412,), (1371053414,), (1371053430,), (1371053435,), (1371053438,), (1371053442,), (1371053451,), (1371053454,), (1371053468,), (1371053473,), (1371053477,), (1371053485,), (1371053488,), (1371053490,), (1371053509,), (1371053513,), (1371053517,), (1371053519,), (1371053527,), (1371053529,), (1371053535,), (1371053542,), (1371053545,), (1371053548,), (1371053557,), (1371053559,), (1371053575,), (1371053578,), (1371053581,), (1371053584,), (1371053595,), (1371053598,), (1371053606,), (1371053611,), (1371053614,), (1371053617,), (1371053627,), (1371053629,), (1371053647,), (1371053650,), (1371053651,), (1371053652,), (1371053659,), (1371053660,), (1371053670,), (1371053673,), (1371053676,), (1371053680,), (1371053691,), (1371053694,), (1371053711,), (1371053717,), (1371053721,), (1371053725,), (1371053734,), (1371053738,), (1371053768,), (1371053772,), (1371053776,), (1371053785,), (1371053788,), (1371053790,), (1371053808,), (1371053812,), (1371053816,), (1371053818,), (1371053826,), (1371053827,), (1371053844,), (1371053847,), (1371053849,), (1371053851,), (1371053859,), (1371053861,), (1371053880,), (1371053885,), (1371053891,), (1371053894,), (1371053904,), (1371053905,), (1371053913,), (1371053919,), (1371053923,), (1371053925,), (1371053935,), (1371053937,), (1371053958,), (1371053963,), (1371053965,), (1371053966,), (1371053974,), (1371053977,), (1371053999,), (1371054002,), (1371054004,), (1371054008,), (1371054018,), (1371054022,), (1371054048,), (1371054052,), (1371054054,), (1371054057,), (1371054065,), (1371054067,), (1371054076,), (1371054080,), (1371054084,), (1371054087,), (1371054096,), (1371054099,), (1371054122,), (1371054125,), (1371054126,), (1371054129,), (1371054139,), (1371054142,), (1371054165,), (1371054169,), (1371054172,), (1371054175,), (1371054186,), (1371054189,), (1371054210,), (1371054216,), (1371054218,), (1371054221,), (1371054230,), (1371054232,), (1371054253,), (1371054258,), (1371054259,), (1371054260,), (1371054268,), (1371054270,), (1371054295,), (1371054298,), (1371054300,), (1371054305,), (1371054313,), (1371054315,), (1371054333,), (1371054341,), (1371054346,), (1371054350,), (1371054360,), (1371054362,), (1371054388,), (1371054398,), (1371054404,), (1371054405,), (1371054412,), (1371054413,), (1371054429,), (1371054432,), (1371054436,), (1371054439,), (1371054448,), (1371054450,), (1371054480,), (1371054500,), (1371054508,), (1371054521,), (1371054529,), (1371054542,), (1371054560,), (1371054564,), (1371054566,), (1371054574,), (1371054576,), (1371054579,), (1371054599,), (1371054601,), (1371054603,), (1371054605,), (1371054614,), (1371054615,), (1371054630,), (1371054636,), (1371054640,), (1371054643,), (1371054654,), (1371054655,), (1371054671,), (1371054676,), (1371054679,), (1371054680,), (1371054688,), (1371054689,), (1371054710,), (1371054714,), (1371054717,), (1371054721,), (1371054731,), (1371054733,), (1371054749,), (1371054756,), (1371054760,), (1371054764,), (1371054772,), (1371054773,), (1371054793,), (1371054795,), (1371054797,), (1371054798,), (1371054806,), (1371054808,), (1371054824,), (1371054827,), (1371054829,), (1371054831,), (1371054841,), (1371054844,), (1371054868,), (1371054870,), (1371054874,), (1371054883,), (1371054886,), (1371054889,), (1371054899,), (1371054903,), (1371054906,), (1371054911,), (1371054921,), (1371054926,), (1371055820,), (1371055895,), (1371055956,), (1371055993,), (1371056033,), (1371056065,), (1371056276,), (1371056313,), (1371056364,), (1371056409,), (1371056458,), (1371063421,), (1371063428,), (1371063433,), (1371063437,), (1371063441,), (1371063446,), (1371063570,), (1371063579,), (1371063588,), (1371063594,), (1371063600,), (1371063603,), (1371063689,), (1371063696,), (1371063702,), (1371063707,), (1371063710,), (1371063718,), (1371063338,), (1371063346,), (1371063349,), (1371063352,), (1371063357,), (1371063363,), (1371063380,), (1371063385,), (1371063390,), (1371063394,), (1371063405,), (1371063410,), (1371063455,), (1371063459,), (1371063465,), (1371063470,), (1371063476,), (1371063479,), (1371063491,), (1371063496,), (1371063499,), (1371063502,), (1371063504,), (1371063509,), (1371063533,), (1371063537,), (1371063542,), (1371063546,), (1371063549,), (1371063551,), (1371063610,), (1371063611,), (1371063615,), (1371063616,), (1371063622,), (1371063623,), (1371063627,), (1371063629,), (1371063634,), (1371063635,), (1371063640,), (1371063641,), (1371063653,), (1371063662,), (1371063664,), (1371063667,), (1371063671,), (1371063676,), (1371063727,), (1371063733,), (1371063737,), (1371063740,), (1371063743,), (1371063750,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07072025': {'nb_upload': 54, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24692648]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1371063750, 1371063743, 1371063740, 1371063737, 1371063733, 1371063727, 1371063676, 1371063671, 1371063667, 1371063664, 1371063662, 1371063653] map_info['map_portfolio_photo'] : {24692648: [1371063750, 1371063743, 1371063740, 1371063737, 1371063733, 1371063727, 1371063676, 1371063671, 1371063667, 1371063664, 1371063662, 1371063653, 1371063641, 1371063640, 1371063635, 1371063634, 1371063629, 1371063627, 1371063623, 1371063622, 1371063616, 1371063615, 1371063611, 1371063610, 1371063551, 1371063549, 1371063546, 1371063542, 1371063537, 1371063533, 1371063509, 1371063504, 1371063502, 1371063499, 1371063496, 1371063491, 1371063479, 1371063476, 1371063470, 1371063465, 1371063459, 1371063455, 1371063410, 1371063405, 1371063394, 1371063390, 1371063385, 1371063380, 1371063363, 1371063357, 1371063352, 1371063349, 1371063346, 1371063338]} final : True mtd_id 4302 list_pids : [1371063750, 1371063743, 1371063740, 1371063737, 1371063733, 1371063727, 1371063676, 1371063671, 1371063667, 1371063664, 1371063662, 1371063653] Looping around the photos to save general results len do output : 1 /24692648Didn'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, '3246862') ('4302', '24692648', '1371063750', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063743', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063740', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063737', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063733', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063727', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063676', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063671', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063667', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063664', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063662', None, None, None, None, None, '3246862') ('4302', None, None, None, None, None, None, None, '3246862') ('4302', '24692648', '1371063653', None, None, None, None, None, '3246862') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24692648', 'None', None, None, None, None, '3246862'), ('4302', '24692648', '1371063750', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063743', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063740', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063737', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063733', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063727', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063676', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063671', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063667', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063664', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063662', None, None, None, None, None, '3246862'), ('4302', '24692648', '1371063653', None, None, None, None, None, '3246862')] time used for this insertion : 0.014457464218139648 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.4071240425109863 time spend to save output : 0.014689207077026367 total time spend for step 5 : 3.4218132495880127 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 (3246862) 2.28user 2.34system 0:11.66elapsed 39%CPU (0avgtext+0avgdata 161224maxresident)k 256inputs+12072outputs (5major+75817minor)pagefaults 0swaps