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 : 2349267 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 (4186947) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4186947) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29196118 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4186947'] with mtr_portfolio_ids : ['29196118'] and first list_photo_ids : [] new path : /proc/2349267/ Name: python3 Umask: 0002 State: R (running) Tgid: 2349267 Ngid: 0 Pid: 2349267 PPid: 2349266 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2349267 NSpid: 2349267 NSpgid: 2347309 NSsid: 2347309 VmPeak: 1113376 kB VmSize: 1113376 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104428 kB VmRSS: 104428 kB RssAnon: 66320 kB RssFile: 38108 kB RssShmem: 0 kB VmData: 872104 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 55 nonvoluntary_ctxt_switches: 96 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2349267', 'Ngid': '0', 'Pid': '2349267', 'PPid': '2349266', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2349267', 'NSpid': '2349267', 'NSpgid': '2347309', 'NSsid': '2347309', 'VmPeak': '1113376 kB', 'VmSize': '1113376 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104428 kB', 'VmRSS': '104428 kB', 'RssAnon': '66320 kB', 'RssFile': '38108 kB', 'RssShmem': '0 kB', 'VmData': '872104 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '55', 'nonvoluntary_ctxt_switches': '96'} ('datou_batch_current', '2349267', '1113376', '0', '1113376', '872104', '104428', b'', 'marlene', '4186947') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29196118) 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 (4186947 ) ) 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 (29196118) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1397913586, 'portfolio_id': 29196118}, {'photo_id': 1397913583, 'portfolio_id': 29196118}, {'photo_id': 1397913581, 'portfolio_id': 29196118}, {'photo_id': 1397913527, 'portfolio_id': 29196118}, {'photo_id': 1397913513, 'portfolio_id': 29196118}, {'photo_id': 1397913493, 'portfolio_id': 29196118}, {'photo_id': 1397913484, 'portfolio_id': 29196118}, {'photo_id': 1397913457, 'portfolio_id': 29196118}, {'photo_id': 1397913414, 'portfolio_id': 29196118}, {'photo_id': 1397913185, 'portfolio_id': 29196118}, {'photo_id': 1397913182, 'portfolio_id': 29196118}, {'photo_id': 1397913162, 'portfolio_id': 29196118}, {'photo_id': 1397913129, 'portfolio_id': 29196118}, {'photo_id': 1397913101, 'portfolio_id': 29196118}, {'photo_id': 1397912901, 'portfolio_id': 29196118}, {'photo_id': 1397912865, 'portfolio_id': 29196118}, {'photo_id': 1397912830, 'portfolio_id': 29196118}, {'photo_id': 1397912776, 'portfolio_id': 29196118}, {'photo_id': 1397912742, 'portfolio_id': 29196118}, {'photo_id': 1397912711, 'portfolio_id': 29196118}, {'photo_id': 1397912518, 'portfolio_id': 29196118}, {'photo_id': 1397912515, 'portfolio_id': 29196118}, {'photo_id': 1397912513, 'portfolio_id': 29196118}, {'photo_id': 1397912512, 'portfolio_id': 29196118}, {'photo_id': 1397912507, 'portfolio_id': 29196118}, {'photo_id': 1397912110, 'portfolio_id': 29196118}, {'photo_id': 1397912087, 'portfolio_id': 29196118}, {'photo_id': 1397912056, 'portfolio_id': 29196118}, {'photo_id': 1397911577, 'portfolio_id': 29196118}, {'photo_id': 1397911249, 'portfolio_id': 29196118}, {'photo_id': 1397910897, 'portfolio_id': 29196118}, {'photo_id': 1397910162, 'portfolio_id': 29196118}, {'photo_id': 1397909723, 'portfolio_id': 29196118}, {'photo_id': 1397909722, 'portfolio_id': 29196118}, {'photo_id': 1397909721, 'portfolio_id': 29196118}, {'photo_id': 1397909709, 'portfolio_id': 29196118}, {'photo_id': 1397909706, 'portfolio_id': 29196118}, {'photo_id': 1397909693, 'portfolio_id': 29196118}, {'photo_id': 1397909689, 'portfolio_id': 29196118}, {'photo_id': 1397909686, 'portfolio_id': 29196118}, {'photo_id': 1397909682, 'portfolio_id': 29196118}, {'photo_id': 1397909678, 'portfolio_id': 29196118}, {'photo_id': 1397909676, 'portfolio_id': 29196118}, {'photo_id': 1397909647, 'portfolio_id': 29196118}, {'photo_id': 1397909644, 'portfolio_id': 29196118}, {'photo_id': 1397909643, 'portfolio_id': 29196118}, {'photo_id': 1397909642, 'portfolio_id': 29196118}, {'photo_id': 1397909636, 'portfolio_id': 29196118}, {'photo_id': 1397909594, 'portfolio_id': 29196118}, {'photo_id': 1397909560, 'portfolio_id': 29196118}, {'photo_id': 1397909526, 'portfolio_id': 29196118}, {'photo_id': 1397909492, 'portfolio_id': 29196118}, {'photo_id': 1397909486, 'portfolio_id': 29196118}, {'photo_id': 1397909184, 'portfolio_id': 29196118}, {'photo_id': 1397909182, 'portfolio_id': 29196118}, {'photo_id': 1397909168, 'portfolio_id': 29196118}] map_portfolio_id_photo_id: {29196118: [1397913586, 1397913583, 1397913581, 1397913527, 1397913513, 1397913493, 1397913484, 1397913457, 1397913414, 1397913185, 1397913182, 1397913162, 1397913129, 1397913101, 1397912901, 1397912865, 1397912830, 1397912776, 1397912742, 1397912711, 1397912518, 1397912515, 1397912513, 1397912512, 1397912507, 1397912110, 1397912087, 1397912056, 1397911577, 1397911249, 1397910897, 1397910162, 1397909723, 1397909722, 1397909721, 1397909709, 1397909706, 1397909693, 1397909689, 1397909686, 1397909682, 1397909678, 1397909676, 1397909647, 1397909644, 1397909643, 1397909642, 1397909636, 1397909594, 1397909560, 1397909526, 1397909492, 1397909486, 1397909184, 1397909182, 1397909168]} ##### 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.01933741569519043 #### 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 Thu Dec 4 21:30:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29196118) 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 : 29196118 get user id for portfolio 29196118 get sub ptf for main ptf 29196118, type 3726 and hashtags ['Carton_brun', 'papier', 'kraft', 'metal', 'Teint_Dans_La_Masse', 'plastique', 'cartonnette', 'environnement', 'Carton_gris', 'autre_refus', 'mal_croppe', 'flou'] 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`=29196118 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','papier','kraft','metal','Teint_Dans_La_Masse','plastique','cartonnette','environnement','Carton_gris','autre_refus','mal_croppe','flou')) 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`=29196118 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','papier','kraft','metal','Teint_Dans_La_Masse','plastique','cartonnette','environnement','Carton_gris','autre_refus','mal_croppe','flou')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 29196118, 'sub_port_id': 29196121, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852025, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 16, 59)}, 'papier': {'main_port_id': 29196118, 'sub_port_id': 29196122, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852026, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 16, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 29196118, 'sub_port_id': 29196123, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852027, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 16, 59)}, 'environnement': {'main_port_id': 29196118, 'sub_port_id': 29196124, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852028, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 16, 59)}, 'kraft': {'main_port_id': 29196118, 'sub_port_id': 29196125, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852029, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 16, 59)}, 'mal_croppe': {'main_port_id': 29196118, 'sub_port_id': 29196126, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852030, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 16, 59)}, 'plastique': {'main_port_id': 29196118, 'sub_port_id': 29196127, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852031, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 16, 59)}, 'autre_refus': {'main_port_id': 29196118, 'sub_port_id': 29196128, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852032, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 16, 59)}, 'Carton_brun': {'main_port_id': 29196118, 'sub_port_id': 29196129, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852033, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 16, 59)}, 'metal': {'main_port_id': 29196118, 'sub_port_id': 29196130, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852034, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 16, 59)}, 'flou': {'main_port_id': 29196118, 'sub_port_id': 29196131, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852035, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 16, 59)}, 'Carton_gris': {'main_port_id': 29196118, 'sub_port_id': 29196132, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852036, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 16, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29196121 , 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=29196118 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 (29196121) result : ((1397909610,), (1397909611,), (1397909695,), (1397910724,), (1397910727,), (1397911545,), (1397912366,), (1397913594,), (1397913595,), (1397913596,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29196118) result : ((1397909168,), (1397909182,), (1397909184,), (1397909486,), (1397909492,), (1397909526,), (1397909560,), (1397909594,), (1397909636,), (1397909642,), (1397909643,), (1397909644,), (1397909647,), (1397909676,), (1397909678,), (1397909682,), (1397909686,), (1397909689,), (1397909693,), (1397909706,), (1397909709,), (1397909721,), (1397909722,), (1397909723,), (1397910162,), (1397910897,), (1397911249,), (1397911577,), (1397912056,), (1397912087,), (1397912110,), (1397912507,), (1397912512,), (1397912513,), (1397912515,), (1397912518,), (1397912711,), (1397912742,), (1397912776,), (1397912830,), (1397912865,), (1397912901,), (1397913101,), (1397913129,), (1397913162,), (1397913182,), (1397913185,), (1397913414,), (1397913457,), (1397913484,), (1397913493,), (1397913513,), (1397913527,), (1397913581,), (1397913583,), (1397913586,)) 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 29196122 , 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=29196118 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 (29196122) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29196118) result : ((1397909168,), (1397909182,), (1397909184,), (1397909486,), (1397909492,), (1397909526,), (1397909560,), (1397909594,), (1397909636,), (1397909642,), (1397909643,), (1397909644,), (1397909647,), (1397909676,), (1397909678,), (1397909682,), (1397909686,), (1397909689,), (1397909693,), (1397909706,), (1397909709,), (1397909721,), (1397909722,), (1397909723,), (1397910162,), (1397910897,), (1397911249,), (1397911577,), (1397912056,), (1397912087,), (1397912110,), (1397912507,), (1397912512,), (1397912513,), (1397912515,), (1397912518,), (1397912711,), (1397912742,), (1397912776,), (1397912830,), (1397912865,), (1397912901,), (1397913101,), (1397913129,), (1397913162,), (1397913182,), (1397913185,), (1397913414,), (1397913457,), (1397913484,), (1397913493,), (1397913513,), (1397913527,), (1397913581,), (1397913583,), (1397913586,)) 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 29196123 , 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=29196118 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 (29196123) result : ((1397909607,), (1397909608,), (1397909692,), (1397909710,), (1397909711,), (1397910417,), (1397910420,), (1397910666,), (1397910669,), (1397910672,), (1397910675,), (1397911381,), (1397912344,), (1397912346,), (1397912975,), (1397913530,), (1397913531,), (1397913532,), (1397913585,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29196118) result : ((1397909168,), (1397909182,), (1397909184,), (1397909486,), (1397909492,), (1397909526,), (1397909560,), (1397909594,), (1397909636,), (1397909642,), (1397909643,), (1397909644,), (1397909647,), (1397909676,), (1397909678,), (1397909682,), (1397909686,), (1397909689,), (1397909693,), (1397909706,), (1397909709,), (1397909721,), (1397909722,), (1397909723,), (1397910162,), (1397910897,), (1397911249,), (1397911577,), (1397912056,), (1397912087,), (1397912110,), (1397912507,), (1397912512,), (1397912513,), (1397912515,), (1397912518,), (1397912711,), (1397912742,), (1397912776,), (1397912830,), (1397912865,), (1397912901,), (1397913101,), (1397913129,), (1397913162,), (1397913182,), (1397913185,), (1397913414,), (1397913457,), (1397913484,), (1397913493,), (1397913513,), (1397913527,), (1397913581,), (1397913583,), (1397913586,)) 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 29196124 , 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=29196118 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 (29196124) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29196118) result : ((1397909168,), (1397909182,), (1397909184,), (1397909486,), (1397909492,), (1397909526,), (1397909560,), (1397909594,), (1397909636,), (1397909642,), (1397909643,), (1397909644,), (1397909647,), (1397909676,), (1397909678,), (1397909682,), (1397909686,), (1397909689,), (1397909693,), (1397909706,), (1397909709,), (1397909721,), (1397909722,), (1397909723,), (1397910162,), (1397910897,), (1397911249,), (1397911577,), (1397912056,), (1397912087,), (1397912110,), (1397912507,), (1397912512,), (1397912513,), (1397912515,), (1397912518,), (1397912711,), (1397912742,), (1397912776,), (1397912830,), (1397912865,), (1397912901,), (1397913101,), (1397913129,), (1397913162,), (1397913182,), (1397913185,), (1397913414,), (1397913457,), (1397913484,), (1397913493,), (1397913513,), (1397913527,), (1397913581,), (1397913583,), (1397913586,)) 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 29196125 , 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=29196118 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 (29196125) result : ((1397913560,), (1397913562,), (1397913603,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29196118) result : ((1397909168,), (1397909182,), (1397909184,), (1397909486,), (1397909492,), (1397909526,), (1397909560,), (1397909594,), (1397909636,), (1397909642,), (1397909643,), (1397909644,), (1397909647,), (1397909676,), (1397909678,), (1397909682,), (1397909686,), (1397909689,), (1397909693,), (1397909706,), (1397909709,), (1397909721,), (1397909722,), (1397909723,), (1397910162,), (1397910897,), (1397911249,), (1397911577,), (1397912056,), (1397912087,), (1397912110,), (1397912507,), (1397912512,), (1397912513,), (1397912515,), (1397912518,), (1397912711,), (1397912742,), (1397912776,), (1397912830,), (1397912865,), (1397912901,), (1397913101,), (1397913129,), (1397913162,), (1397913182,), (1397913185,), (1397913414,), (1397913457,), (1397913484,), (1397913493,), (1397913513,), (1397913527,), (1397913581,), (1397913583,), (1397913586,)) 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 29196126 , 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=29196118 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 (29196126) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29196118) result : ((1397909168,), (1397909182,), (1397909184,), (1397909486,), (1397909492,), (1397909526,), (1397909560,), (1397909594,), (1397909636,), (1397909642,), (1397909643,), (1397909644,), (1397909647,), (1397909676,), (1397909678,), (1397909682,), (1397909686,), (1397909689,), (1397909693,), (1397909706,), (1397909709,), (1397909721,), (1397909722,), (1397909723,), (1397910162,), (1397910897,), (1397911249,), (1397911577,), (1397912056,), (1397912087,), (1397912110,), (1397912507,), (1397912512,), (1397912513,), (1397912515,), (1397912518,), (1397912711,), (1397912742,), (1397912776,), (1397912830,), (1397912865,), (1397912901,), (1397913101,), (1397913129,), (1397913162,), (1397913182,), (1397913185,), (1397913414,), (1397913457,), (1397913484,), (1397913493,), (1397913513,), (1397913527,), (1397913581,), (1397913583,), (1397913586,)) 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 29196127 , 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=29196118 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 (29196127) result : ((1397909717,), (1397912378,), (1397913547,), (1397913549,), (1397913600,), (1397913601,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29196118) result : ((1397909168,), (1397909182,), (1397909184,), (1397909486,), (1397909492,), (1397909526,), (1397909560,), (1397909594,), (1397909636,), (1397909642,), (1397909643,), (1397909644,), (1397909647,), (1397909676,), (1397909678,), (1397909682,), (1397909686,), (1397909689,), (1397909693,), (1397909706,), (1397909709,), (1397909721,), (1397909722,), (1397909723,), (1397910162,), (1397910897,), (1397911249,), (1397911577,), (1397912056,), (1397912087,), (1397912110,), (1397912507,), (1397912512,), (1397912513,), (1397912515,), (1397912518,), (1397912711,), (1397912742,), (1397912776,), (1397912830,), (1397912865,), (1397912901,), (1397913101,), (1397913129,), (1397913162,), (1397913182,), (1397913185,), (1397913414,), (1397913457,), (1397913484,), (1397913493,), (1397913513,), (1397913527,), (1397913581,), (1397913583,), (1397913586,)) 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 29196128 , 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=29196118 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 (29196128) result : ((1397909713,), (1397909714,), (1397909715,), (1397910694,), (1397910697,), (1397912361,), (1397912363,), (1397912364,), (1397912365,), (1397912984,), (1397913533,), (1397913534,), (1397913587,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29196118) result : ((1397909168,), (1397909182,), (1397909184,), (1397909486,), (1397909492,), (1397909526,), (1397909560,), (1397909594,), (1397909636,), (1397909642,), (1397909643,), (1397909644,), (1397909647,), (1397909676,), (1397909678,), (1397909682,), (1397909686,), (1397909689,), (1397909693,), (1397909706,), (1397909709,), (1397909721,), (1397909722,), (1397909723,), (1397910162,), (1397910897,), (1397911249,), (1397911577,), (1397912056,), (1397912087,), (1397912110,), (1397912507,), (1397912512,), (1397912513,), (1397912515,), (1397912518,), (1397912711,), (1397912742,), (1397912776,), (1397912830,), (1397912865,), (1397912901,), (1397913101,), (1397913129,), (1397913162,), (1397913182,), (1397913185,), (1397913414,), (1397913457,), (1397913484,), (1397913493,), (1397913513,), (1397913527,), (1397913581,), (1397913583,), (1397913586,)) 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 29196129 , 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=29196118 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 (29196129) result : ((1397909612,), (1397909696,), (1397909698,), (1397909699,), (1397909700,), (1397910747,), (1397910750,), (1397911553,), (1397912370,), (1397912999,), (1397913598,), (1397913599,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29196118) result : ((1397909168,), (1397909182,), (1397909184,), (1397909486,), (1397909492,), (1397909526,), (1397909560,), (1397909594,), (1397909636,), (1397909642,), (1397909643,), (1397909644,), (1397909647,), (1397909676,), (1397909678,), (1397909682,), (1397909686,), (1397909689,), (1397909693,), (1397909706,), (1397909709,), (1397909721,), (1397909722,), (1397909723,), (1397910162,), (1397910897,), (1397911249,), (1397911577,), (1397912056,), (1397912087,), (1397912110,), (1397912507,), (1397912512,), (1397912513,), (1397912515,), (1397912518,), (1397912711,), (1397912742,), (1397912776,), (1397912830,), (1397912865,), (1397912901,), (1397913101,), (1397913129,), (1397913162,), (1397913182,), (1397913185,), (1397913414,), (1397913457,), (1397913484,), (1397913493,), (1397913513,), (1397913527,), (1397913581,), (1397913583,), (1397913586,)) 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 29196130 , 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=29196118 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 (29196130) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29196118) result : ((1397909168,), (1397909182,), (1397909184,), (1397909486,), (1397909492,), (1397909526,), (1397909560,), (1397909594,), (1397909636,), (1397909642,), (1397909643,), (1397909644,), (1397909647,), (1397909676,), (1397909678,), (1397909682,), (1397909686,), (1397909689,), (1397909693,), (1397909706,), (1397909709,), (1397909721,), (1397909722,), (1397909723,), (1397910162,), (1397910897,), (1397911249,), (1397911577,), (1397912056,), (1397912087,), (1397912110,), (1397912507,), (1397912512,), (1397912513,), (1397912515,), (1397912518,), (1397912711,), (1397912742,), (1397912776,), (1397912830,), (1397912865,), (1397912901,), (1397913101,), (1397913129,), (1397913162,), (1397913182,), (1397913185,), (1397913414,), (1397913457,), (1397913484,), (1397913493,), (1397913513,), (1397913527,), (1397913581,), (1397913583,), (1397913586,)) 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 29196131 , 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=29196118 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 (29196131) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29196118) result : ((1397909168,), (1397909182,), (1397909184,), (1397909486,), (1397909492,), (1397909526,), (1397909560,), (1397909594,), (1397909636,), (1397909642,), (1397909643,), (1397909644,), (1397909647,), (1397909676,), (1397909678,), (1397909682,), (1397909686,), (1397909689,), (1397909693,), (1397909706,), (1397909709,), (1397909721,), (1397909722,), (1397909723,), (1397910162,), (1397910897,), (1397911249,), (1397911577,), (1397912056,), (1397912087,), (1397912110,), (1397912507,), (1397912512,), (1397912513,), (1397912515,), (1397912518,), (1397912711,), (1397912742,), (1397912776,), (1397912830,), (1397912865,), (1397912901,), (1397913101,), (1397913129,), (1397913162,), (1397913182,), (1397913185,), (1397913414,), (1397913457,), (1397913484,), (1397913493,), (1397913513,), (1397913527,), (1397913581,), (1397913583,), (1397913586,)) 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 29196132 , 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=29196118 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 (29196132) result : ((1397909609,), (1397909694,), (1397910439,), (1397912992,), (1397913536,), (1397913590,), (1397913591,), (1397913592,), (1397913593,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29196118) result : ((1397909168,), (1397909182,), (1397909184,), (1397909486,), (1397909492,), (1397909526,), (1397909560,), (1397909594,), (1397909636,), (1397909642,), (1397909643,), (1397909644,), (1397909647,), (1397909676,), (1397909678,), (1397909682,), (1397909686,), (1397909689,), (1397909693,), (1397909706,), (1397909709,), (1397909721,), (1397909722,), (1397909723,), (1397910162,), (1397910897,), (1397911249,), (1397911577,), (1397912056,), (1397912087,), (1397912110,), (1397912507,), (1397912512,), (1397912513,), (1397912515,), (1397912518,), (1397912711,), (1397912742,), (1397912776,), (1397912830,), (1397912865,), (1397912901,), (1397913101,), (1397913129,), (1397913162,), (1397913182,), (1397913185,), (1397913414,), (1397913457,), (1397913484,), (1397913493,), (1397913513,), (1397913527,), (1397913581,), (1397913583,), (1397913586,)) 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`=29196118 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','papier','kraft','metal','Teint_Dans_La_Masse','plastique','cartonnette','environnement','Carton_gris','autre_refus','mal_croppe','flou')) 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`=29196118 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','papier','kraft','metal','Teint_Dans_La_Masse','plastique','cartonnette','environnement','Carton_gris','autre_refus','mal_croppe','flou')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 29196118, 'sub_port_id': 29196133, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852037, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 17, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 17, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 17, 1)}, 'papier': {'main_port_id': 29196118, 'sub_port_id': 29196134, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852038, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 17, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 17, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 17, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 29196118, 'sub_port_id': 29196135, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852039, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 17, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 17, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 17, 1)}, 'environnement': {'main_port_id': 29196118, 'sub_port_id': 29196136, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852040, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 17, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 17, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 17, 1)}, 'kraft': {'main_port_id': 29196118, 'sub_port_id': 29196137, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852041, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 17, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 17, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 17, 1)}, 'mal_croppe': {'main_port_id': 29196118, 'sub_port_id': 29196138, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852042, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 17, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 17, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 17, 1)}, 'plastique': {'main_port_id': 29196118, 'sub_port_id': 29196139, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852043, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 17, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 17, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 17, 1)}, 'autre_refus': {'main_port_id': 29196118, 'sub_port_id': 29196140, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852044, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 17, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 17, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 17, 1)}, 'Carton_brun': {'main_port_id': 29196118, 'sub_port_id': 29196141, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852045, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 17, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 17, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 17, 1)}, 'metal': {'main_port_id': 29196118, 'sub_port_id': 29196142, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852046, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 17, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 17, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 17, 1)}, 'flou': {'main_port_id': 29196118, 'sub_port_id': 29196143, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852047, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 17, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 17, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 17, 1)}, 'Carton_gris': {'main_port_id': 29196118, 'sub_port_id': 29196144, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19852048, 'last_updated_at': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 21, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 21, 17, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29196133,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29196121 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29196134,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29196122 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29196135,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29196123 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29196136,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29196124 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29196137,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29196125 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29196138,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29196126 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29196139,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29196127 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29196140,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29196128 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29196141,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29196129 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29196142,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29196130 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29196143,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29196131 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29196144,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29196132 lien utilise dans velours : https://marlene.fotonower.com/velours/29196133,29196134,29196135,29196136,29196137,29196138,29196139,29196140,29196141,29196142,29196143,29196144?tags=cartonnette,papier,Teint_Dans_La_Masse,environnement,kraft,mal_croppe,plastique,autre_refus,Carton_brun,metal,flou,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29196118]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1397913586, 1397913583, 1397913581, 1397913527, 1397913513, 1397913493, 1397913484, 1397913457, 1397913414, 1397913185, 1397913182, 1397913162, 1397913129, 1397913101] map_info['map_portfolio_photo'] : {29196118: [1397913586, 1397913583, 1397913581, 1397913527, 1397913513, 1397913493, 1397913484, 1397913457, 1397913414, 1397913185, 1397913182, 1397913162, 1397913129, 1397913101, 1397912901, 1397912865, 1397912830, 1397912776, 1397912742, 1397912711, 1397912518, 1397912515, 1397912513, 1397912512, 1397912507, 1397912110, 1397912087, 1397912056, 1397911577, 1397911249, 1397910897, 1397910162, 1397909723, 1397909722, 1397909721, 1397909709, 1397909706, 1397909693, 1397909689, 1397909686, 1397909682, 1397909678, 1397909676, 1397909647, 1397909644, 1397909643, 1397909642, 1397909636, 1397909594, 1397909560, 1397909526, 1397909492, 1397909486, 1397909184, 1397909182, 1397909168]} final : False mtd_id 4302 list_pids : [1397913586, 1397913583, 1397913581, 1397913527, 1397913513, 1397913493, 1397913484, 1397913457, 1397913414, 1397913185, 1397913182, 1397913162, 1397913129, 1397913101] Looping around the photos to save general results len do output : 1 /29196118. 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, '4186947') ('4302', '29196118', '1397913586', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913583', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913581', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913527', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913513', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913493', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913484', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913457', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913414', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913185', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913182', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913162', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913129', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913101', None, None, None, None, None, '4186947') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '29196118', "{'cartonnette': 29196121, 'papier': 29196122, 'Teint_Dans_La_Masse': 29196123, 'environnement': 29196124, 'kraft': 29196125, 'mal_croppe': 29196126, 'plastique': 29196127, 'autre_refus': 29196128, 'Carton_brun': 29196129, 'metal': 29196130, 'flou': 29196131, 'Carton_gris': 29196132}", None, None, None, None, '4186947'), ('4302', '29196118', '1397913586', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913583', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913581', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913527', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913513', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913493', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913484', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913457', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913414', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913185', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913182', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913162', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913129', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913101', None, None, None, None, None, '4186947')] time used for this insertion : 0.019210100173950195 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9384653568267822 time spend to save output : 0.019608736038208008 total time spend for step 1 : 1.9580740928649902 step2:final Thu Dec 4 21:30:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29196118) 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 29196118 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1397909184,1397909182,1397909168,1397909594,1397909560,1397909526,1397909492,1397909486,1397909709,1397909647,1397909706,1397909644,1397909693,1397909643,1397909642,1397909689,1397909636,1397909686,1397909682,1397909678,1397909676,1397909723,1397909722,1397909721,1397910162,1397910897,1397911577,1397911249,1397912110,1397912087,1397912056,1397912518,1397912515,1397912513,1397912512,1397912507,1397912901,1397912865,1397912830,1397912776,1397912742,1397912711,1397913586,1397913185,1397913182,1397913583,1397913162,1397913581,1397913129,1397913527,1397913513,1397913101,1397913493,1397913484,1397913457,1397913414); 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([29196118]) Inside saveOutput : final : False verbose : True original output for save of step final : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ('0.05066092467062015',), 1397913185: ('0.05066092467062015',), 1397913182: ('0.05066092467062015',), 1397913162: ('0.05066092467062015',), 1397913129: ('0.05066092467062015',), 1397913101: ('0.05066092467062015',)} new output for save of step final : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ('0.05066092467062015',), 1397913185: ('0.05066092467062015',), 1397913182: ('0.05066092467062015',), 1397913162: ('0.05066092467062015',), 1397913129: ('0.05066092467062015',), 1397913101: ('0.05066092467062015',)} [1397913586, 1397913583, 1397913581, 1397913527, 1397913513, 1397913493, 1397913484, 1397913457, 1397913414, 1397913185, 1397913182, 1397913162, 1397913129, 1397913101] map_info['map_portfolio_photo'] : {29196118: [1397913586, 1397913583, 1397913581, 1397913527, 1397913513, 1397913493, 1397913484, 1397913457, 1397913414, 1397913185, 1397913182, 1397913162, 1397913129, 1397913101, 1397912901, 1397912865, 1397912830, 1397912776, 1397912742, 1397912711, 1397912518, 1397912515, 1397912513, 1397912512, 1397912507, 1397912110, 1397912087, 1397912056, 1397911577, 1397911249, 1397910897, 1397910162, 1397909723, 1397909722, 1397909721, 1397909709, 1397909706, 1397909693, 1397909689, 1397909686, 1397909682, 1397909678, 1397909676, 1397909647, 1397909644, 1397909643, 1397909642, 1397909636, 1397909594, 1397909560, 1397909526, 1397909492, 1397909486, 1397909184, 1397909182, 1397909168]} final : False mtd_id 4302 list_pids : [1397913586, 1397913583, 1397913581, 1397913527, 1397913513, 1397913493, 1397913484, 1397913457, 1397913414, 1397913185, 1397913182, 1397913162, 1397913129, 1397913101] Looping around the photos to save general results len do output : 14 /1397913586.Didn't retrieve data . /1397913583.Didn't retrieve data . /1397913581.Didn't retrieve data . /1397913527.Didn't retrieve data . /1397913513.Didn't retrieve data . /1397913493.Didn't retrieve data . /1397913484.Didn't retrieve data . /1397913457.Didn't retrieve data . /1397913414.Didn't retrieve data . /1397913185.Didn't retrieve data . /1397913182.Didn't retrieve data . /1397913162.Didn't retrieve data . /1397913129.Didn't retrieve data . /1397913101.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, '4186947') ('4302', '29196118', '1397913586', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913583', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913581', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913527', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913513', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913493', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913484', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913457', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913414', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913185', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913182', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913162', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913129', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913101', None, None, None, None, None, '4186947') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '29196118', '1397913586', '0.05066092467062015', None, None, None, None, '4186947'), ('4302', '29196118', '1397913583', '0.05066092467062015', None, None, None, None, '4186947'), ('4302', '29196118', '1397913581', '0.05066092467062015', None, None, None, None, '4186947'), ('4302', '29196118', '1397913527', '0.05066092467062015', None, None, None, None, '4186947'), ('4302', '29196118', '1397913513', '0.05066092467062015', None, None, None, None, '4186947'), ('4302', '29196118', '1397913493', '0.05066092467062015', None, None, None, None, '4186947'), ('4302', '29196118', '1397913484', '0.05066092467062015', None, None, None, None, '4186947'), ('4302', '29196118', '1397913457', '0.05066092467062015', None, None, None, None, '4186947'), ('4302', '29196118', '1397913414', '0.05066092467062015', None, None, None, None, '4186947'), ('4302', '29196118', '1397913185', '0.05066092467062015', None, None, None, None, '4186947'), ('4302', '29196118', '1397913182', '0.05066092467062015', None, None, None, None, '4186947'), ('4302', '29196118', '1397913162', '0.05066092467062015', None, None, None, None, '4186947'), ('4302', '29196118', '1397913129', '0.05066092467062015', None, None, None, None, '4186947'), ('4302', '29196118', '1397913101', '0.05066092467062015', None, None, None, None, '4186947')] time used for this insertion : 0.017683029174804688 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08933663368225098 time spend to save output : 0.018355846405029297 total time spend for step 2 : 0.10769248008728027 step3:velours_tree Thu Dec 4 21:30:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29196118: [{'cartonnette': 29196121, 'papier': 29196122, 'Teint_Dans_La_Masse': 29196123, 'environnement': 29196124, 'kraft': 29196125, 'mal_croppe': 29196126, 'plastique': 29196127, 'autre_refus': 29196128, 'Carton_brun': 29196129, 'metal': 29196130, 'flou': 29196131, 'Carton_gris': 29196132}]} input_args_next_step : {29196118: ()} output_args : {29196118: [{'cartonnette': 29196121, 'papier': 29196122, 'Teint_Dans_La_Masse': 29196123, 'environnement': 29196124, 'kraft': 29196125, 'mal_croppe': 29196126, 'plastique': 29196127, 'autre_refus': 29196128, 'Carton_brun': 29196129, 'metal': 29196130, 'flou': 29196131, 'Carton_gris': 29196132}]} args : 29196118 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 : ({'cartonnette': 29196121, 'papier': 29196122, 'Teint_Dans_La_Masse': 29196123, 'environnement': 29196124, 'kraft': 29196125, 'mal_croppe': 29196126, 'plastique': 29196127, 'autre_refus': 29196128, 'Carton_brun': 29196129, 'metal': 29196130, 'flou': 29196131, 'Carton_gris': 29196132},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29196118) 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([29196118]) 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.27207040786743164 time spend to save output : 7.128715515136719e-05 total time spend for step 3 : 0.272141695022583 step4:send_mail_cod Thu Dec 4 21:30:59 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 : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ('0.05066092467062015',), 1397913185: ('0.05066092467062015',), 1397913182: ('0.05066092467062015',), 1397913162: ('0.05066092467062015',), 1397913129: ('0.05066092467062015',), 1397913101: ('0.05066092467062015',)} input_args_next_step : {1397913586: ()} output_args : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ('0.05066092467062015',), 1397913185: ('0.05066092467062015',), 1397913182: ('0.05066092467062015',), 1397913162: ('0.05066092467062015',), 1397913129: ('0.05066092467062015',), 1397913101: ('0.05066092467062015',)} args : 1397913586 depend.output_id : 0 input_args_next_step : {1397913586: ('0.05066092467062015',), 1397913583: ()} output_args : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ('0.05066092467062015',), 1397913185: ('0.05066092467062015',), 1397913182: ('0.05066092467062015',), 1397913162: ('0.05066092467062015',), 1397913129: ('0.05066092467062015',), 1397913101: ('0.05066092467062015',)} args : 1397913583 depend.output_id : 0 input_args_next_step : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ()} output_args : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ('0.05066092467062015',), 1397913185: ('0.05066092467062015',), 1397913182: ('0.05066092467062015',), 1397913162: ('0.05066092467062015',), 1397913129: ('0.05066092467062015',), 1397913101: ('0.05066092467062015',)} args : 1397913581 depend.output_id : 0 input_args_next_step : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ()} output_args : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ('0.05066092467062015',), 1397913185: ('0.05066092467062015',), 1397913182: ('0.05066092467062015',), 1397913162: ('0.05066092467062015',), 1397913129: ('0.05066092467062015',), 1397913101: ('0.05066092467062015',)} args : 1397913527 depend.output_id : 0 input_args_next_step : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ()} output_args : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ('0.05066092467062015',), 1397913185: ('0.05066092467062015',), 1397913182: ('0.05066092467062015',), 1397913162: ('0.05066092467062015',), 1397913129: ('0.05066092467062015',), 1397913101: ('0.05066092467062015',)} args : 1397913513 depend.output_id : 0 input_args_next_step : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ()} output_args : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ('0.05066092467062015',), 1397913185: ('0.05066092467062015',), 1397913182: ('0.05066092467062015',), 1397913162: ('0.05066092467062015',), 1397913129: ('0.05066092467062015',), 1397913101: ('0.05066092467062015',)} args : 1397913493 depend.output_id : 0 input_args_next_step : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ()} output_args : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ('0.05066092467062015',), 1397913185: ('0.05066092467062015',), 1397913182: ('0.05066092467062015',), 1397913162: ('0.05066092467062015',), 1397913129: ('0.05066092467062015',), 1397913101: ('0.05066092467062015',)} args : 1397913484 depend.output_id : 0 input_args_next_step : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ()} output_args : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ('0.05066092467062015',), 1397913185: ('0.05066092467062015',), 1397913182: ('0.05066092467062015',), 1397913162: ('0.05066092467062015',), 1397913129: ('0.05066092467062015',), 1397913101: ('0.05066092467062015',)} args : 1397913457 depend.output_id : 0 input_args_next_step : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ()} output_args : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ('0.05066092467062015',), 1397913185: ('0.05066092467062015',), 1397913182: ('0.05066092467062015',), 1397913162: ('0.05066092467062015',), 1397913129: ('0.05066092467062015',), 1397913101: ('0.05066092467062015',)} args : 1397913414 depend.output_id : 0 input_args_next_step : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ('0.05066092467062015',), 1397913185: ()} output_args : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ('0.05066092467062015',), 1397913185: ('0.05066092467062015',), 1397913182: ('0.05066092467062015',), 1397913162: ('0.05066092467062015',), 1397913129: ('0.05066092467062015',), 1397913101: ('0.05066092467062015',)} args : 1397913185 depend.output_id : 0 input_args_next_step : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ('0.05066092467062015',), 1397913185: ('0.05066092467062015',), 1397913182: ()} output_args : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ('0.05066092467062015',), 1397913185: ('0.05066092467062015',), 1397913182: ('0.05066092467062015',), 1397913162: ('0.05066092467062015',), 1397913129: ('0.05066092467062015',), 1397913101: ('0.05066092467062015',)} args : 1397913182 depend.output_id : 0 input_args_next_step : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ('0.05066092467062015',), 1397913185: ('0.05066092467062015',), 1397913182: ('0.05066092467062015',), 1397913162: ()} output_args : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ('0.05066092467062015',), 1397913185: ('0.05066092467062015',), 1397913182: ('0.05066092467062015',), 1397913162: ('0.05066092467062015',), 1397913129: ('0.05066092467062015',), 1397913101: ('0.05066092467062015',)} args : 1397913162 depend.output_id : 0 input_args_next_step : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ('0.05066092467062015',), 1397913185: ('0.05066092467062015',), 1397913182: ('0.05066092467062015',), 1397913162: ('0.05066092467062015',), 1397913129: ()} output_args : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ('0.05066092467062015',), 1397913185: ('0.05066092467062015',), 1397913182: ('0.05066092467062015',), 1397913162: ('0.05066092467062015',), 1397913129: ('0.05066092467062015',), 1397913101: ('0.05066092467062015',)} args : 1397913129 depend.output_id : 0 input_args_next_step : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ('0.05066092467062015',), 1397913185: ('0.05066092467062015',), 1397913182: ('0.05066092467062015',), 1397913162: ('0.05066092467062015',), 1397913129: ('0.05066092467062015',), 1397913101: ()} output_args : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ('0.05066092467062015',), 1397913185: ('0.05066092467062015',), 1397913182: ('0.05066092467062015',), 1397913162: ('0.05066092467062015',), 1397913129: ('0.05066092467062015',), 1397913101: ('0.05066092467062015',)} args : 1397913101 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 : {29196118: [{'cartonnette': 29196121, 'papier': 29196122, 'Teint_Dans_La_Masse': 29196123, 'environnement': 29196124, 'kraft': 29196125, 'mal_croppe': 29196126, 'plastique': 29196127, 'autre_refus': 29196128, 'Carton_brun': 29196129, 'metal': 29196130, 'flou': 29196131, 'Carton_gris': 29196132}]} input_args_next_step : {1397913586: ('0.05066092467062015',), 1397913583: ('0.05066092467062015',), 1397913581: ('0.05066092467062015',), 1397913527: ('0.05066092467062015',), 1397913513: ('0.05066092467062015',), 1397913493: ('0.05066092467062015',), 1397913484: ('0.05066092467062015',), 1397913457: ('0.05066092467062015',), 1397913414: ('0.05066092467062015',), 1397913185: ('0.05066092467062015',), 1397913182: ('0.05066092467062015',), 1397913162: ('0.05066092467062015',), 1397913129: ('0.05066092467062015',), 1397913101: ('0.05066092467062015',), 29196118: ()} output_args : {29196118: [{'cartonnette': 29196121, 'papier': 29196122, 'Teint_Dans_La_Masse': 29196123, 'environnement': 29196124, 'kraft': 29196125, 'mal_croppe': 29196126, 'plastique': 29196127, 'autre_refus': 29196128, 'Carton_brun': 29196129, 'metal': 29196130, 'flou': 29196131, 'Carton_gris': 29196132}]} args : 29196118 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 :15, first value : ('0.05066092467062015',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29196118) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1397913586,1397913583,1397913581,1397913527,1397913513,1397913493,1397913484,1397913457,1397913414,1397913185,1397913182,1397913162,1397913129,1397913101) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1397913101 begin to download photo : 1397913182 begin to download photo : 1397913457 begin to download photo : 1397913513 begin to download photo : 1397913583 download finish for photo 1397913513 begin to download photo : 1397913527 download finish for photo 1397913101 begin to download photo : 1397913129 download finish for photo 1397913457 begin to download photo : 1397913484 download finish for photo 1397913583 begin to download photo : 1397913586 download finish for photo 1397913182 begin to download photo : 1397913185 download finish for photo 1397913527 begin to download photo : 1397913581 download finish for photo 1397913484 begin to download photo : 1397913493 download finish for photo 1397913586 download finish for photo 1397913129 begin to download photo : 1397913162 download finish for photo 1397913185 begin to download photo : 1397913414 download finish for photo 1397913581 download finish for photo 1397913493 download finish for photo 1397913162 download finish for photo 1397913414 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P29196118_04-12-2025_21_30_59.pdf 29196121 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29196121 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397909610: '1764879425_2862443_1397909184_b39a1cc7bdfcef31d3f363658b4e42da_rle_crop_4059010955_0.png', 1397909611: '1764879425_2862443_1397909182_90626292d632c4650107ecf63ea28de1_rle_crop_4059011186_0.png', 1397909695: '1764879545_2868119_1397909647_4041dda95e55ad973d905e85564e6575_rle_crop_4059013414_0.png', 1397910724: '1764879686_2874336_1397909723_a31fe7783c8697c4732bf774cb09cc70_rle_crop_4059017232_0.png', 1397910727: '1764879686_2874336_1397909676_32f5835bec95f4a2786b61173ec80a33_rle_crop_4059017257_0.png', 1397911545: '1764879806_2880254_1397909709_5dcbb4f3440c8e98b47d503a8a00ab9b_rle_crop_4059020319_0.png', 1397912366: '1764879905_2885378_1397909682_5bcb79123e6b34ccae4f6b3dc39e4348_rle_crop_4059020480_0.png', 1397913594: '1764880165_2897525_1397912830_b62c2cb8cb413b53af12c1e6d5ecb8a9_rle_crop_4059026014_0.png', 1397913595: '1764880165_2897525_1397912776_496cf81ff85a4424a41164e2ae713f81_rle_crop_4059026034_0.png', 1397913596: '1764880165_2897525_1397912711_1fff6e05717b4731743412641018be5e_rle_crop_4059026051_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/ec09dcf9af3c679698c60bb7e4bcb5fd_32854549.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/b7bd1a58f3c688cce6b37c780c58db68_51553963.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/594f4132c7a09363cd5beba59b2623b4_55868199.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/16a6e0050d6b7d0df432dc4c9a5be1ce_32917365.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/04119ab075662a135fcd6b2fc6475347_74451505.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/594f4132c7a09363cd5beba59b2623b4_46782227.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/bbf66117e9b8521d0d107dcc5db4ffeb_59927200.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/c6287a47f08237e0f454d1e540410ad3_41407817.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/78c6e1e11e739e2be4ada050ac4c6979_9560352.png change filename to text .imagette291961211764880259/ imagette291961211764880259/1764880165_2897525_1397912776_496cf81ff85a4424a41164e2ae713f81_rle_crop_4059026034_0.png.png imagette291961211764880259/1764879425_2862443_1397909184_b39a1cc7bdfcef31d3f363658b4e42da_rle_crop_4059010955_0.png.png imagette291961211764880259/1764879905_2885378_1397909682_5bcb79123e6b34ccae4f6b3dc39e4348_rle_crop_4059020480_0.png.png imagette291961211764880259/1764880165_2897525_1397912711_1fff6e05717b4731743412641018be5e_rle_crop_4059026051_0.png.png imagette291961211764880259/1764879686_2874336_1397909723_a31fe7783c8697c4732bf774cb09cc70_rle_crop_4059017232_0.png.png imagette291961211764880259/1764879686_2874336_1397909676_32f5835bec95f4a2786b61173ec80a33_rle_crop_4059017257_0.png.png imagette291961211764880259/1764879545_2868119_1397909647_4041dda95e55ad973d905e85564e6575_rle_crop_4059013414_0.png.png imagette291961211764880259/1764879425_2862443_1397909182_90626292d632c4650107ecf63ea28de1_rle_crop_4059011186_0.png.png imagette291961211764880259/1764879806_2880254_1397909709_5dcbb4f3440c8e98b47d503a8a00ab9b_rle_crop_4059020319_0.png.png imagette291961211764880259/1764880165_2897525_1397912830_b62c2cb8cb413b53af12c1e6d5ecb8a9_rle_crop_4059026014_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/dad116a1cf7ff517752ee3371472bfe6_93805200.png imagette291961211764880259 29196125 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29196125 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397913560: '1764880145_2897082_1397913182_84be245510034efabf5bc97ca47edb41_rle_crop_4059025766_0.png', 1397913562: '1764880145_2897082_1397913129_34d057652d7652763f3d01d331bd2185_rle_crop_4059025795_0.png', 1397913603: '1764880165_2897525_1397912742_298ed89d302dc7a0ff43a128e7506dd0_rle_crop_4059026043_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/e44cf2e77071b01276acce7181d0f34f_25185626.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/957a5b790cce1bea12cfdd326b3ca67d_64650896.png change filename to text .imagette291961251764880260/ imagette291961251764880260/1764880145_2897082_1397913182_84be245510034efabf5bc97ca47edb41_rle_crop_4059025766_0.png.png imagette291961251764880260/1764880145_2897082_1397913129_34d057652d7652763f3d01d331bd2185_rle_crop_4059025795_0.png.png imagette291961251764880260/1764880165_2897525_1397912742_298ed89d302dc7a0ff43a128e7506dd0_rle_crop_4059026043_0.png.png imagette291961261764880260/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/73b9b93a7df9da6c3b9fc21ea025cd1b_88860205.png imagette291961251764880260 29196126 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29196126 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291961261764880260 29196127 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29196127 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397909717: '1764879567_2868766_1397909642_5af540799bc2d048b5c850c57fa86fc7_rle_crop_4059015754_0.png', 1397912378: '1764879905_2885378_1397909689_0d70cf06f6facef5821e7f73e6e59dc7_rle_crop_4059020463_0.png', 1397913547: '1764880145_2897082_1397913162_d6156519d29dea627e3b2539f5eca729_rle_crop_4059025784_0.png', 1397913549: '1764880145_2897082_1397913129_34d057652d7652763f3d01d331bd2185_rle_crop_4059025797_0.png', 1397913600: '1764880165_2897525_1397913185_2b5d4690af64c5cb35b22ba3ce627490_rle_crop_4059025991_0.png', 1397913601: '1764880165_2897525_1397912711_1fff6e05717b4731743412641018be5e_rle_crop_4059026056_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/c3cf419d8ff8f1c4cc85dba0b41922d5_37786516.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/c3cf419d8ff8f1c4cc85dba0b41922d5_29877924.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/a98fc918a86af7df9e60233487afc339_64014956.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/56cfe4a2f17364217a84391a08027b47_42233782.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/ae1fae11e887b131278f12d1a22e857c_12514566.png change filename to text .imagette291961271764880260/ imagette291961271764880260/1764880165_2897525_1397913185_2b5d4690af64c5cb35b22ba3ce627490_rle_crop_4059025991_0.png.png imagette291961271764880260/1764880145_2897082_1397913129_34d057652d7652763f3d01d331bd2185_rle_crop_4059025797_0.png.png imagette291961271764880260/1764880165_2897525_1397912711_1fff6e05717b4731743412641018be5e_rle_crop_4059026056_0.png.png imagette291961271764880260/1764879567_2868766_1397909642_5af540799bc2d048b5c850c57fa86fc7_rle_crop_4059015754_0.png.png imagette291961271764880260/1764880145_2897082_1397913162_d6156519d29dea627e3b2539f5eca729_rle_crop_4059025784_0.png.png imagette291961271764880260/1764879905_2885378_1397909689_0d70cf06f6facef5821e7f73e6e59dc7_rle_crop_4059020463_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/c488205834cd5ef110428616f0ab77ae_34612965.png imagette291961271764880260 29196128 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29196128 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397909713: '1764879567_2868766_1397909642_5af540799bc2d048b5c850c57fa86fc7_rle_crop_4059015755_0.png', 1397909714: '1764879567_2868766_1397909642_5af540799bc2d048b5c850c57fa86fc7_rle_crop_4059015756_0.png', 1397909715: '1764879567_2868766_1397909636_6fb5fcced35009eebb57133146632fe5_rle_crop_4059015765_0.png', 1397910694: '1764879686_2874336_1397909678_5a9781644d39bf40f2eb3cc46f50e9a6_rle_crop_4059017244_0.png', 1397910697: '1764879686_2874336_1397909676_32f5835bec95f4a2786b61173ec80a33_rle_crop_4059017261_0.png', 1397912361: '1764879905_2885378_1397909689_0d70cf06f6facef5821e7f73e6e59dc7_rle_crop_4059020464_0.png', 1397912363: '1764879905_2885378_1397909689_0d70cf06f6facef5821e7f73e6e59dc7_rle_crop_4059020465_0.png', 1397912364: '1764879905_2885378_1397909686_f6ab47b4cc56b418422534b69498ea37_rle_crop_4059020474_0.png', 1397912365: '1764879905_2885378_1397909682_5bcb79123e6b34ccae4f6b3dc39e4348_rle_crop_4059020488_0.png', 1397912984: '1764880027_2891227_1397912507_beb670bac9d2666eb14c0129a70e4897_rle_crop_4059024590_0.png', 1397913533: '1764880145_2897082_1397913182_84be245510034efabf5bc97ca47edb41_rle_crop_4059025768_0.png', 1397913534: '1764880145_2897082_1397913129_34d057652d7652763f3d01d331bd2185_rle_crop_4059025796_0.png', 1397913587: '1764880165_2897525_1397913185_2b5d4690af64c5cb35b22ba3ce627490_rle_crop_4059025985_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/c527fed3189c880a6ed1cc6a68d59d1d_75431759.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/93afd15734dc62c29a0121da71d01cb7_55740170.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/d987305e9b60d3d6c4f6a335e4308fca_53072744.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/6dfea21bb42209979d25fd9d199287af_18420168.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/dd53305b57f7a201b602d2d6a5c44734_86698167.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/c527fed3189c880a6ed1cc6a68d59d1d_15264828.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/93afd15734dc62c29a0121da71d01cb7_23125576.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/d987305e9b60d3d6c4f6a335e4308fca_55528945.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/9386c4e53845fc4b82254352c2f19eb9_44064772.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/cc86077f05e477832c752909c0d9de70_39023940.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/5741d61f37ea23bb922e8602ecda8436_18710624.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/037c0e0ded1b32e3fc81840b8e325675_76913478.png change filename to text .imagette291961281764880261/ imagette291961281764880261/1764879567_2868766_1397909642_5af540799bc2d048b5c850c57fa86fc7_rle_crop_4059015755_0.png.png imagette291961281764880261/1764880165_2897525_1397913185_2b5d4690af64c5cb35b22ba3ce627490_rle_crop_4059025985_0.png.png imagette291961281764880261/1764879686_2874336_1397909676_32f5835bec95f4a2786b61173ec80a33_rle_crop_4059017261_0.png.png imagette291961281764880261/1764879905_2885378_1397909689_0d70cf06f6facef5821e7f73e6e59dc7_rle_crop_4059020464_0.png.png imagette291961281764880261/1764879686_2874336_1397909678_5a9781644d39bf40f2eb3cc46f50e9a6_rle_crop_4059017244_0.png.png imagette291961281764880261/1764880145_2897082_1397913182_84be245510034efabf5bc97ca47edb41_rle_crop_4059025768_0.png.png imagette291961281764880261/1764880027_2891227_1397912507_beb670bac9d2666eb14c0129a70e4897_rle_crop_4059024590_0.png.png imagette291961281764880261/1764879905_2885378_1397909686_f6ab47b4cc56b418422534b69498ea37_rle_crop_4059020474_0.png.png imagette291961281764880261/1764879905_2885378_1397909682_5bcb79123e6b34ccae4f6b3dc39e4348_rle_crop_4059020488_0.png.png imagette291961281764880261/1764879567_2868766_1397909636_6fb5fcced35009eebb57133146632fe5_rle_crop_4059015765_0.png.png imagette291961281764880261/1764879567_2868766_1397909642_5af540799bc2d048b5c850c57fa86fc7_rle_crop_4059015756_0.png.png imagette291961281764880261/1764880145_2897082_1397913129_34d057652d7652763f3d01d331bd2185_rle_crop_4059025796_0.png.png imagette291961281764880261/1764879905_2885378_1397909689_0d70cf06f6facef5821e7f73e6e59dc7_rle_crop_4059020465_0.png.png imagette291961301764880262/ imagette291961311764880262/ wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/ee1f7f8ea007b1871534da5384ddd6ec_6117302.png imagette291961281764880261 29196130 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29196130 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291961301764880262 29196131 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29196131 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291961311764880262 29196123 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29196123 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397910672: '1764879686_2874336_1397909678_5a9781644d39bf40f2eb3cc46f50e9a6_rle_crop_4059017248_0.png', 1397913585: '1764880165_2897525_1397912830_b62c2cb8cb413b53af12c1e6d5ecb8a9_rle_crop_4059026018_0.png', 1397913532: '1764880145_2897082_1397913129_34d057652d7652763f3d01d331bd2185_rle_crop_4059025804_0.png', 1397913531: '1764880145_2897082_1397913162_d6156519d29dea627e3b2539f5eca729_rle_crop_4059025790_0.png', 1397913530: '1764880145_2897082_1397913182_84be245510034efabf5bc97ca47edb41_rle_crop_4059025777_0.png', 1397912975: '1764880027_2891227_1397912512_b9357d2fac2ea791f68cb6d215a306b7_rle_crop_4059024582_0.png', 1397912346: '1764879905_2885378_1397909689_0d70cf06f6facef5821e7f73e6e59dc7_rle_crop_4059020460_0.png', 1397912344: '1764879905_2885378_1397909693_f6e5051d9865430590d36e61e2d7023e_rle_crop_4059020452_0.png', 1397911381: '1764879786_2879856_1397910162_912a8ba5429aa9253cde885f75db13cc_rle_crop_4059020280_0.png', 1397910675: '1764879686_2874336_1397909676_32f5835bec95f4a2786b61173ec80a33_rle_crop_4059017262_0.png', 1397909607: '1764879425_2862443_1397909184_b39a1cc7bdfcef31d3f363658b4e42da_rle_crop_4059010961_0.png', 1397910669: '1764879686_2874336_1397909723_a31fe7783c8697c4732bf774cb09cc70_rle_crop_4059017234_0.png', 1397910666: '1764879686_2874336_1397909723_a31fe7783c8697c4732bf774cb09cc70_rle_crop_4059017237_0.png', 1397910420: '1764879667_2873860_1397909721_be76c3241a699862f4d0d9019a44832d_rle_crop_4059017045_0.png', 1397910417: '1764879667_2873860_1397909722_fbf1e87991073c4355f606f635866a08_rle_crop_4059017039_0.png', 1397909711: '1764879567_2868766_1397909642_5af540799bc2d048b5c850c57fa86fc7_rle_crop_4059015751_0.png', 1397909710: '1764879567_2868766_1397909643_541e0181fdc95d6aa9326c63cef1b8c1_rle_crop_4059015743_0.png', 1397909692: '1764879545_2868119_1397909526_52ce105dcec0d40896da1f8baae4a81f_rle_crop_4059013435_0.png', 1397909608: '1764879425_2862443_1397909182_90626292d632c4650107ecf63ea28de1_rle_crop_4059011188_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/ee8fa9919ff86f9a6e2bee516a6eff3c_20829966.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/ba61257f70f097c96044e0d0d705c18d_55464805.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/b936d69e98c997e9b2ca76e8ace93ee0_58055446.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/2f9dec5058ab18aa1dd483d3c44dff62_76758040.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/bf97a2024ee662865eadf455858a8758_80644781.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/4eb67573086f512f10a8018b3be447e7_19130627.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/6990993e9f947944d19dc7c4526dcf59_63046020.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/94f1d93506b46e444cb8245f11c6ba28_95238345.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/6950f7bfa377b76b8f1ba706b3af5472_30798765.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/ab911008000545bcc066ad81d97bf32c_76251434.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/7b550065b10697c245f040264c732fee_68774051.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/60165a16a02c1999d43d738d9b36dcec_81641836.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/9fac6211b6cd82cea330cbade4f526f8_35694449.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/f9b5e571c3ca133019d30bbbe5258aa2_70867449.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/e22e1bc206e99d91ff36b83d81c6df7b_2815992.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/6990993e9f947944d19dc7c4526dcf59_13632169.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/94f1d93506b46e444cb8245f11c6ba28_44869163.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/6150ded7cbbc81a846c823a1dedd9488_80725233.png change filename to text .imagette291961231764880262/ imagette291961231764880262/1764880145_2897082_1397913129_34d057652d7652763f3d01d331bd2185_rle_crop_4059025804_0.png.png imagette291961231764880262/1764879905_2885378_1397909693_f6e5051d9865430590d36e61e2d7023e_rle_crop_4059020452_0.png.png imagette291961231764880262/1764879425_2862443_1397909184_b39a1cc7bdfcef31d3f363658b4e42da_rle_crop_4059010961_0.png.png imagette291961231764880262/1764879425_2862443_1397909182_90626292d632c4650107ecf63ea28de1_rle_crop_4059011188_0.png.png imagette291961231764880262/1764879786_2879856_1397910162_912a8ba5429aa9253cde885f75db13cc_rle_crop_4059020280_0.png.png imagette291961231764880262/1764880165_2897525_1397912830_b62c2cb8cb413b53af12c1e6d5ecb8a9_rle_crop_4059026018_0.png.png imagette291961231764880262/1764879686_2874336_1397909676_32f5835bec95f4a2786b61173ec80a33_rle_crop_4059017262_0.png.png imagette291961231764880262/1764879686_2874336_1397909723_a31fe7783c8697c4732bf774cb09cc70_rle_crop_4059017234_0.png.png imagette291961231764880262/1764879667_2873860_1397909722_fbf1e87991073c4355f606f635866a08_rle_crop_4059017039_0.png.png imagette291961231764880262/1764880145_2897082_1397913182_84be245510034efabf5bc97ca47edb41_rle_crop_4059025777_0.png.png imagette291961231764880262/1764879686_2874336_1397909723_a31fe7783c8697c4732bf774cb09cc70_rle_crop_4059017237_0.png.png imagette291961231764880262/1764879545_2868119_1397909526_52ce105dcec0d40896da1f8baae4a81f_rle_crop_4059013435_0.png.png imagette291961231764880262/1764880145_2897082_1397913162_d6156519d29dea627e3b2539f5eca729_rle_crop_4059025790_0.png.png imagette291961231764880262/1764879686_2874336_1397909678_5a9781644d39bf40f2eb3cc46f50e9a6_rle_crop_4059017248_0.png.png imagette291961231764880262/1764879567_2868766_1397909643_541e0181fdc95d6aa9326c63cef1b8c1_rle_crop_4059015743_0.png.png imagette291961231764880262/1764880027_2891227_1397912512_b9357d2fac2ea791f68cb6d215a306b7_rle_crop_4059024582_0.png.png imagette291961231764880262/1764879567_2868766_1397909642_5af540799bc2d048b5c850c57fa86fc7_rle_crop_4059015751_0.png.png imagette291961231764880262/1764879905_2885378_1397909689_0d70cf06f6facef5821e7f73e6e59dc7_rle_crop_4059020460_0.png.png imagette291961231764880262/1764879667_2873860_1397909721_be76c3241a699862f4d0d9019a44832d_rle_crop_4059017045_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/438cc70a24e0baa3d90f2e28c06cbc64_19294717.png imagette291961231764880262 29196129 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29196129 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397909612: '1764879425_2862443_1397909184_b39a1cc7bdfcef31d3f363658b4e42da_rle_crop_4059010957_0.png', 1397909696: '1764879545_2868119_1397909647_4041dda95e55ad973d905e85564e6575_rle_crop_4059013417_0.png', 1397909698: '1764879545_2868119_1397909560_58938c32bb9fd5d21255b55931c718c3_rle_crop_4059013425_0.png', 1397909699: '1764879545_2868119_1397909526_52ce105dcec0d40896da1f8baae4a81f_rle_crop_4059013434_0.png', 1397909700: '1764879545_2868119_1397909486_af87542c1836e0d231538ae5a3fb8be2_rle_crop_4059013456_0.png', 1397910747: '1764879686_2874336_1397909678_5a9781644d39bf40f2eb3cc46f50e9a6_rle_crop_4059017250_0.png', 1397910750: '1764879686_2874336_1397909676_32f5835bec95f4a2786b61173ec80a33_rle_crop_4059017260_0.png', 1397911553: '1764879806_2880254_1397909709_5dcbb4f3440c8e98b47d503a8a00ab9b_rle_crop_4059020322_0.png', 1397912370: '1764879905_2885378_1397909682_5bcb79123e6b34ccae4f6b3dc39e4348_rle_crop_4059020483_0.png', 1397912999: '1764880027_2891227_1397912507_beb670bac9d2666eb14c0129a70e4897_rle_crop_4059024596_0.png', 1397913598: '1764880165_2897525_1397913185_2b5d4690af64c5cb35b22ba3ce627490_rle_crop_4059025990_0.png', 1397913599: '1764880165_2897525_1397912865_35dc6fcab601769b584ad28ab2b7d2f7_rle_crop_4059026010_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/a0187c73282682642972fda3b085f2fb_76454999.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/1de1fca9e5a050b643011589c7f870b1_25064508.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/948d083771a7cd5c185d68674c827a65_45838516.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/0de9d6dd95b96c860ce52089457c39b2_30128383.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/a45e8cf59568cd9ea1637db188d817de_60674766.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/2694f7324ebd47863a51bd1ce966976d_50394995.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/0a7bc17496659d20455b0ca18092fef0_80213793.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/1de1fca9e5a050b643011589c7f870b1_2132653.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/324918561c6ad74952c5a0a08e68f24b_89704815.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/ceb30820d531b7c792a5be2ad72a836c_91455572.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/ba2983862989ee7c1213403916f56fa9_12700810.png change filename to text .imagette291961291764880264/ imagette291961291764880264/1764879545_2868119_1397909486_af87542c1836e0d231538ae5a3fb8be2_rle_crop_4059013456_0.png.png imagette291961291764880264/1764880165_2897525_1397913185_2b5d4690af64c5cb35b22ba3ce627490_rle_crop_4059025990_0.png.png imagette291961291764880264/1764879905_2885378_1397909682_5bcb79123e6b34ccae4f6b3dc39e4348_rle_crop_4059020483_0.png.png imagette291961291764880264/1764880027_2891227_1397912507_beb670bac9d2666eb14c0129a70e4897_rle_crop_4059024596_0.png.png imagette291961291764880264/1764879545_2868119_1397909647_4041dda95e55ad973d905e85564e6575_rle_crop_4059013417_0.png.png imagette291961291764880264/1764879545_2868119_1397909560_58938c32bb9fd5d21255b55931c718c3_rle_crop_4059013425_0.png.png imagette291961291764880264/1764879545_2868119_1397909526_52ce105dcec0d40896da1f8baae4a81f_rle_crop_4059013434_0.png.png imagette291961291764880264/1764879806_2880254_1397909709_5dcbb4f3440c8e98b47d503a8a00ab9b_rle_crop_4059020322_0.png.png imagette291961291764880264/1764879686_2874336_1397909676_32f5835bec95f4a2786b61173ec80a33_rle_crop_4059017260_0.png.png imagette291961291764880264/1764879425_2862443_1397909184_b39a1cc7bdfcef31d3f363658b4e42da_rle_crop_4059010957_0.png.png imagette291961291764880264/1764880165_2897525_1397912865_35dc6fcab601769b584ad28ab2b7d2f7_rle_crop_4059026010_0.png.png imagette291961291764880264/1764879686_2874336_1397909678_5a9781644d39bf40f2eb3cc46f50e9a6_rle_crop_4059017250_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/24ac4d98b30716a37d3901100f8430ac_12444829.png imagette291961291764880264 29196132 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29196132 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397909609: '1764879425_2862443_1397909182_90626292d632c4650107ecf63ea28de1_rle_crop_4059011185_0.png', 1397909694: '1764879545_2868119_1397909486_af87542c1836e0d231538ae5a3fb8be2_rle_crop_4059013451_0.png', 1397910439: '1764879667_2873860_1397909721_be76c3241a699862f4d0d9019a44832d_rle_crop_4059017044_0.png', 1397912992: '1764880027_2891227_1397912507_beb670bac9d2666eb14c0129a70e4897_rle_crop_4059024592_0.png', 1397913536: '1764880145_2897082_1397913182_84be245510034efabf5bc97ca47edb41_rle_crop_4059025771_0.png', 1397913590: '1764880165_2897525_1397913185_2b5d4690af64c5cb35b22ba3ce627490_rle_crop_4059025988_0.png', 1397913591: '1764880165_2897525_1397912830_b62c2cb8cb413b53af12c1e6d5ecb8a9_rle_crop_4059026015_0.png', 1397913592: '1764880165_2897525_1397912776_496cf81ff85a4424a41164e2ae713f81_rle_crop_4059026030_0.png', 1397913593: '1764880165_2897525_1397912711_1fff6e05717b4731743412641018be5e_rle_crop_4059026055_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/1d337198b3e69525c0c74f0b44188fb8_10178626.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/266ea64c4b523ff5c383ad7a421eaae8_74149113.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/85d5d11216d96879ae960472496b2273_67557635.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/6adbf16a15385ca7f0c03d153a2c6d08_24767456.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/8e5eca3c7620bcf7a7153d08f94a6f6b_58569978.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/638b0772617fc2e65cc3f295c84bdd92_82624743.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/f985052c7c74369782c877eacb206116_615712.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/3157e0d8646f8eb76cc3df75c8bd9efb_87601286.png change filename to text .imagette291961321764880265/ imagette291961321764880265/1764880145_2897082_1397913182_84be245510034efabf5bc97ca47edb41_rle_crop_4059025771_0.png.png imagette291961321764880265/1764880027_2891227_1397912507_beb670bac9d2666eb14c0129a70e4897_rle_crop_4059024592_0.png.png imagette291961321764880265/1764880165_2897525_1397913185_2b5d4690af64c5cb35b22ba3ce627490_rle_crop_4059025988_0.png.png imagette291961321764880265/1764879425_2862443_1397909182_90626292d632c4650107ecf63ea28de1_rle_crop_4059011185_0.png.png imagette291961321764880265/1764879667_2873860_1397909721_be76c3241a699862f4d0d9019a44832d_rle_crop_4059017044_0.png.png imagette291961321764880265/1764880165_2897525_1397912711_1fff6e05717b4731743412641018be5e_rle_crop_4059026055_0.png.png imagette291961321764880265/1764880165_2897525_1397912830_b62c2cb8cb413b53af12c1e6d5ecb8a9_rle_crop_4059026015_0.png.png imagette291961321764880265/1764879545_2868119_1397909486_af87542c1836e0d231538ae5a3fb8be2_rle_crop_4059013451_0.png.png imagette291961321764880265/1764880165_2897525_1397912776_496cf81ff85a4424a41164e2ae713f81_rle_crop_4059026030_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/3361ac4aa066db1700af66cbbfc64ea7_57300689.png imagette291961321764880265 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29196118 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29196133,29196134,29196135,29196136,29196137,29196138,29196139,29196140,29196141,29196142,29196143,29196144?tags=cartonnette,papier,Teint_Dans_La_Masse,environnement,kraft,mal_croppe,plastique,autre_refus,Carton_brun,metal,flou,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1397913586] : ('0.05066092467062015',) no score found for photo 1397913586 We are sending mail with results at report@fotonower.com args[1397913583] : ('0.05066092467062015',) no score found for photo 1397913583 We are sending mail with results at report@fotonower.com args[1397913581] : ('0.05066092467062015',) no score found for photo 1397913581 We are sending mail with results at report@fotonower.com args[1397913527] : ('0.05066092467062015',) no score found for photo 1397913527 We are sending mail with results at report@fotonower.com args[1397913513] : ('0.05066092467062015',) no score found for photo 1397913513 We are sending mail with results at report@fotonower.com args[1397913493] : ('0.05066092467062015',) no score found for photo 1397913493 We are sending mail with results at report@fotonower.com args[1397913484] : ('0.05066092467062015',) no score found for photo 1397913484 We are sending mail with results at report@fotonower.com args[1397913457] : ('0.05066092467062015',) no score found for photo 1397913457 We are sending mail with results at report@fotonower.com args[1397913414] : ('0.05066092467062015',) no score found for photo 1397913414 We are sending mail with results at report@fotonower.com args[1397913185] : ('0.05066092467062015',) no score found for photo 1397913185 We are sending mail with results at report@fotonower.com args[1397913182] : ('0.05066092467062015',) no score found for photo 1397913182 We are sending mail with results at report@fotonower.com args[1397913162] : ('0.05066092467062015',) no score found for photo 1397913162 We are sending mail with results at report@fotonower.com args[1397913129] : ('0.05066092467062015',) no score found for photo 1397913129 We are sending mail with results at report@fotonower.com args[1397913101] : ('0.05066092467062015',) no score found for photo 1397913101 We are sending mail with results at report@fotonower.com refus_total : 0.05066092467062015 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29196118 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_P29196118_04-12-2025_21_30_59.pdf results_Auto_P29196118_04-12-2025_21_30_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29196118_04-12-2025_21_30_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29196118','results_Auto_P29196118_04-12-2025_21_30_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29196118_04-12-2025_21_30_59.pdf','pdf','','0.37','0.05066092467062015') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29196118]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1397913586, 1397913583, 1397913581, 1397913527, 1397913513, 1397913493, 1397913484, 1397913457, 1397913414, 1397913185, 1397913182, 1397913162, 1397913129, 1397913101] map_info['map_portfolio_photo'] : {29196118: [1397913586, 1397913583, 1397913581, 1397913527, 1397913513, 1397913493, 1397913484, 1397913457, 1397913414, 1397913185, 1397913182, 1397913162, 1397913129, 1397913101, 1397912901, 1397912865, 1397912830, 1397912776, 1397912742, 1397912711, 1397912518, 1397912515, 1397912513, 1397912512, 1397912507, 1397912110, 1397912087, 1397912056, 1397911577, 1397911249, 1397910897, 1397910162, 1397909723, 1397909722, 1397909721, 1397909709, 1397909706, 1397909693, 1397909689, 1397909686, 1397909682, 1397909678, 1397909676, 1397909647, 1397909644, 1397909643, 1397909642, 1397909636, 1397909594, 1397909560, 1397909526, 1397909492, 1397909486, 1397909184, 1397909182, 1397909168]} final : False mtd_id 4302 list_pids : [1397913586, 1397913583, 1397913581, 1397913527, 1397913513, 1397913493, 1397913484, 1397913457, 1397913414, 1397913185, 1397913182, 1397913162, 1397913129, 1397913101] 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, '4186947') ('4302', '29196118', '1397913586', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913583', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913581', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913527', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913513', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913493', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913484', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913457', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913414', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913185', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913182', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913162', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913129', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913101', None, None, None, None, None, '4186947') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29196118', '1397913586', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913583', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913581', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913527', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913513', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913493', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913484', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913457', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913414', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913185', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913182', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913162', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913129', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913101', None, None, None, None, None, '4186947')] time used for this insertion : 0.015326976776123047 save_final save missing photos in datou_result : time spend for datou_step_exec : 8.231003046035767 time spend to save output : 0.015604496002197266 total time spend for step 4 : 8.246607542037964 step5:split_time_score Thu Dec 4 21:31:07 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 : ['29196118'] 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 : [('29196118',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29196118) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1397913583: {'path': 'temp/1764880259_2349267_1397913583_ffc13f0209d2eb28100fb68198b68557.jpg', 'extension': 'jpg'}, 1397913586: {'path': 'temp/1764880259_2349267_1397913586_43846f66dbe64c8aa2064fdf219afcea.jpg', 'extension': 'jpg'}, 1397913513: {'path': 'temp/1764880259_2349267_1397913513_c25931e38887f807b84e49555c344ebd.jpg', 'extension': 'jpg'}, 1397913527: {'path': 'temp/1764880259_2349267_1397913527_58dc3ed0efc2999e742b32b00d8aacc8.jpg', 'extension': 'jpg'}, 1397913581: {'path': 'temp/1764880259_2349267_1397913581_d72fe64dfee8ba3fed6fb7f7bc61edd0.jpg', 'extension': 'jpg'}, 1397913457: {'path': 'temp/1764880259_2349267_1397913457_e554130df243764ee338e77d6c03754e.jpg', 'extension': 'jpg'}, 1397913484: {'path': 'temp/1764880259_2349267_1397913484_51a659c2b57d936a2a32cf087c22842d.jpg', 'extension': 'jpg'}, 1397913493: {'path': 'temp/1764880259_2349267_1397913493_2aa49444a5aa9ee59a34167574ba1b48.jpg', 'extension': 'jpg'}, 1397913101: {'path': 'temp/1764880259_2349267_1397913101_b5d4daf1dff1cd6a62d4a83c74971d37.jpg', 'extension': 'jpg'}, 1397913129: {'path': 'temp/1764880259_2349267_1397913129_34d057652d7652763f3d01d331bd2185.jpg', 'extension': 'jpg'}, 1397913162: {'path': 'temp/1764880259_2349267_1397913162_d6156519d29dea627e3b2539f5eca729.jpg', 'extension': 'jpg'}, 1397913182: {'path': 'temp/1764880259_2349267_1397913182_84be245510034efabf5bc97ca47edb41.jpg', 'extension': 'jpg'}, 1397913185: {'path': 'temp/1764880259_2349267_1397913185_2b5d4690af64c5cb35b22ba3ce627490.jpg', 'extension': 'jpg'}, 1397913414: {'path': 'temp/1764880259_2349267_1397913414_35cec42e49f0fcfe2942cc5887e32ad5.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 = 29196118; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29196118 group by h (('21', 56),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29196118 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 (29196118) 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 (29196118) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04122025 29196118 Nombre de photos uploadées : 56 / 23040 (0%) 04122025 29196118 Nombre de photos taguées (types de déchets): 0 / 56 (0%) 04122025 29196118 Nombre de photos taguées (volume) : 0 / 56 (0%) [{'photo_id': 1397909184, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/b39a1cc7bdfcef31d3f363658b4e42da.jpg', 'username': None, 'uploaded_at': 1764879368, 'text': 'image_04122025_21_15_03_010160m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1397909182, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/90626292d632c4650107ecf63ea28de1.jpg', 'username': None, 'uploaded_at': 1764879368, 'text': 'image_04122025_21_15_13_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1397909168, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/a4cb941ed8b49b1e6af5cf13b1242840.jpg', 'username': None, 'uploaded_at': 1764879368, 'text': 'image_04122025_21_15_24_010143m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1397909594, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/f614f6c35345eefe28ad9e67d00d2f2c.jpg', 'username': None, 'uploaded_at': 1764879427, 'text': 'image_04122025_21_15_54_010139m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.5299530029296875e-06 ???????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002607583999633789 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29196118, '2025-12-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-04' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2690577,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2493600845336914 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= 2690577 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29164250, 'dashboard_result_id': 18085183, '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_P29164250_04-12-2025_06_18_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164264, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164269, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29164732, 'dashboard_result_id': 18085184, '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_P29164732_04-12-2025_06_19_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164759, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29165106, 'dashboard_result_id': 18085185, '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_P29165106_04-12-2025_06_20_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165145, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29165583, 'dashboard_result_id': 18085186, '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_P29165583_04-12-2025_06_20_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165593, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165601, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29166634, 'dashboard_result_id': 18085187, '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_P29166634_04-12-2025_06_20_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29166646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166647, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29166944, 'dashboard_result_id': 18085188, '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_P29166944_04-12-2025_06_21_15.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29166950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166961, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29167317, 'dashboard_result_id': 18085189, '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_P29167317_04-12-2025_06_21_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29167348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167357, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29167848, 'dashboard_result_id': 18085190, '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_P29167848_04-12-2025_06_22_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29167849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167860, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29168406, 'dashboard_result_id': 18085191, '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_P29168406_04-12-2025_06_22_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29168450, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29168945, 'dashboard_result_id': 18085192, '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_P29168945_04-12-2025_06_23_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29168970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168975, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168981, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29169363, 'dashboard_result_id': 18085193, '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_P29169363_04-12-2025_06_24_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169386, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29169812, 'dashboard_result_id': 18085194, '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_P29169812_04-12-2025_06_24_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169856, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29170360, 'dashboard_result_id': 18085195, '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_P29170360_04-12-2025_06_25_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170397, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29170831, 'dashboard_result_id': 18085196, '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_P29170831_04-12-2025_06_25_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170842, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170850, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29171165, 'dashboard_result_id': 18085197, '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_P29171165_04-12-2025_06_25_40.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29171193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29171194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29171195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29171196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29171197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29171198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29171199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29171200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29171201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29171202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29171203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29171204, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29172002, 'dashboard_result_id': 18085198, '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_P29172002_04-12-2025_06_26_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172016, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172019, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29172388, 'dashboard_result_id': 18085199, '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_P29172388_04-12-2025_06_26_14.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172403, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29172801, 'dashboard_result_id': 18085200, '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_P29172801_04-12-2025_05_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172809, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172815, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172817, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29173230, 'dashboard_result_id': 18085201, '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_P29173230_04-12-2025_06_03_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29173247, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29173539, 'dashboard_result_id': 18085202, '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_P29173539_04-12-2025_06_19_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29173543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173554, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29174089, 'dashboard_result_id': 18085203, '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_P29174089_04-12-2025_06_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29174102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29174103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29174104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29174105, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29174106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29174107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29174108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29174109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29174110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29174111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29174112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29174113, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29174520, 'dashboard_result_id': 18085204, '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_P29174520_04-12-2025_06_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29174552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29174553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29174554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29174555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29174556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29174557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29174558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29174559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29174560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29174561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29174562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29174563, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29175025, 'dashboard_result_id': 18085205, '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_P29175025_04-12-2025_07_02_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29175050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29175051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29175052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29175053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29175054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29175055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29175056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29175057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29175058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29175059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29175060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29175061, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29175420, 'dashboard_result_id': 18085206, '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_P29175420_04-12-2025_07_25_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29175433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29175434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29175435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29175436, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29175437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29175438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29175439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29175440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29175441, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29175442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29175443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29175444, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29176081, 'dashboard_result_id': 18085207, '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_P29176081_04-12-2025_07_35_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29176094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176105, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29176341, 'dashboard_result_id': 18085208, '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_P29176341_04-12-2025_07_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29176342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29176349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176353, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29176418, 'dashboard_result_id': 18085209, '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_P29176418_04-12-2025_09_31_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29176421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176432, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29176753, 'dashboard_result_id': 18085210, '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_P29176753_04-12-2025_08_19_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176759, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29176760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176763, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176765, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176766, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29177339, 'dashboard_result_id': 18085211, '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_P29177339_04-12-2025_08_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29177364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29177365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29177366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29177367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29177368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29177369, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29177370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29177371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29177372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29177373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29177374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29177375, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29177792, 'dashboard_result_id': 18085212, '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_P29177792_04-12-2025_08_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29177805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29177806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29177807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29177808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29177809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29177810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29177811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29177812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29177813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29177814, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29177815, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29177816, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29178343, 'dashboard_result_id': 18085213, '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_P29178343_04-12-2025_09_32_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29178349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29178350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29178351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29178352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29178353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29178354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29178355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29178356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29178357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29178358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29178359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29178360, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29179002, 'dashboard_result_id': 18085214, '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_P29179002_04-12-2025_09_48_56.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179017, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29179437, 'dashboard_result_id': 18085215, '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_P29179437_04-12-2025_10_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179455, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29179810, 'dashboard_result_id': 18085216, '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_P29179810_04-12-2025_10_16_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179833, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29180409, 'dashboard_result_id': 18085217, '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_P29180409_04-12-2025_10_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29180418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29180419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29180420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29180421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29180422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29180423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29180424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29180425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29180426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29180427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29180428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29180429, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29181139, 'dashboard_result_id': 18085218, '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_P29181139_04-12-2025_14_00_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29181147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29181148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29181149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29181150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29181151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29181152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29181154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29181155, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29181157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29181158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29181159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29181161, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29183382, 'dashboard_result_id': 18085219, '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_P29183382_04-12-2025_14_16_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29183385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29183386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29183387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29183388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29183389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29183390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29183391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29183392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29183393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29183394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29183395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29183396, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29183842, 'dashboard_result_id': 18085220, '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_P29183842_04-12-2025_14_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29183849, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29183850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29183851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29183852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29183853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29183854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29183855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29183856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29183857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29183858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29183859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29183860, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29184178, 'dashboard_result_id': 18085221, '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_P29184178_04-12-2025_14_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29184192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29184193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29184194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29184195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29184196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29184197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29184198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29184199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29184200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29184201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29184202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29184203, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29184666, 'dashboard_result_id': 18085222, '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_P29184666_04-12-2025_15_04_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29184688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29184689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29184690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29184691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29184692, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29184693, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29184694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29184695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29184696, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29184697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29184698, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29184699, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29185282, 'dashboard_result_id': 18085223, '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_P29185282_04-12-2025_15_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29185287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29185288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29185289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29185290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29185291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29185292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29185293, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29185294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29185295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29185296, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29185297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29185298, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29185658, 'dashboard_result_id': 18085224, '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_P29185658_04-12-2025_15_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29185662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29185663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29185664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29185665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29185666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29185667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29185668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29185669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29185670, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29185671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29185672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29185673, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29186013, 'dashboard_result_id': 18085225, '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_P29186013_04-12-2025_15_47_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29186031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29186032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29186033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29186034, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29186035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29186036, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29186037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29186038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29186039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29186040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29186041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29186042, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29186446, 'dashboard_result_id': 18085226, '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_P29186446_04-12-2025_16_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29186449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29186450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29186451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29186452, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29186453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29186454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29186455, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29186456, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29186457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29186458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29186459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29186460, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29186716, 'dashboard_result_id': 18085227, '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_P29186716_04-12-2025_16_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29186730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29186731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29186732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29186733, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29186734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29186735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29186736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29186737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29186738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29186739, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29186740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29186741, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29187185, 'dashboard_result_id': 18085228, '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_P29187185_04-12-2025_16_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29187190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29187191, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29187192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29187193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29187194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29187195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29187196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29187198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29187199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29187200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29187201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29187202, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29187552, 'dashboard_result_id': 18085229, '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_P29187552_04-12-2025_16_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29187566, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29187567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29187568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29187569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29187570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29187571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29187572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29187573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29187574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29187575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29187576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29187577, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29187947, 'dashboard_result_id': 18085230, '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_P29187947_04-12-2025_17_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29187955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29187956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29187957, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29187958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29187959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29187960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29187961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29187962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29187963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29187964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29187965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29187966, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29188391, 'dashboard_result_id': 18085231, '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_P29188391_04-12-2025_17_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29188409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29188410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29188411, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29188412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29188413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29188414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29188415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29188416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29188417, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29188418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29188419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29188420, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29188913, 'dashboard_result_id': 18085232, '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_P29188913_04-12-2025_17_52_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29188957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29188958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29188959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29188960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29188961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29188962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29188963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29188964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29188965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29188966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29188967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29188968, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29189919, 'dashboard_result_id': 18085233, '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_P29189919_04-12-2025_18_19_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29189946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29189947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29189948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29189949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29189950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29189951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29189952, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29189953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29189954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29189955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29189956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29189957, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29190242, 'dashboard_result_id': 18085234, '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_P29190242_04-12-2025_18_32_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29190247, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29190248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29190249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29190250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29190251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29190252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29190253, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29190254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29190255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29190256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29190257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29190258, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29190686, 'dashboard_result_id': 18085235, '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_P29190686_04-12-2025_18_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29190703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29190704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29190705, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29190706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29190707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29190708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29190709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29190710, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29190711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29190712, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29190713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29190714, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29191265, 'dashboard_result_id': 18085236, '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_P29191265_04-12-2025_19_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29191269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29191270, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29191271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29191272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29191273, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29191274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29191275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29191276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29191277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29191278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29191279, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29191280, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29191610, 'dashboard_result_id': 18085237, '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_P29191610_04-12-2025_19_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29191651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29191652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29191653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29191654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29191655, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29191656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29191657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29191659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29191660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29191661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29191663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29191664, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29192334, 'dashboard_result_id': 18085238, '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_P29192334_04-12-2025_19_33_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29192357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29192358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29192359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29192360, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29192361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29192362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29192363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29192364, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29192365, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29192366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29192367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29192368, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29192845, 'dashboard_result_id': 18085239, '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_P29192845_04-12-2025_19_51_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29192854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29192855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29192856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29192857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29192858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29192859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29192860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29192861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29192862, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29192863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29192864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29192865, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29193440, 'dashboard_result_id': 18085240, '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_P29193440_04-12-2025_20_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29193446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29193447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29193448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29193449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29193450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29193451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29193452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29193453, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29193454, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29193455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29193456, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29193457, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29193727, 'dashboard_result_id': 18085241, '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_P29193727_04-12-2025_20_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29193761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29193762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29193763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29193764, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29193765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29193766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29193767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29193768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29193769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29193770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29193771, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29193772, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29194351, 'dashboard_result_id': 18085242, '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_P29194351_04-12-2025_20_32_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29194359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29194360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29194361, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29194362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29194363, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29194365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29194366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29194367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29194368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29194369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29194370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29194371, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29194887, 'dashboard_result_id': 18085243, '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_P29194887_04-12-2025_21_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29194894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29194895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29194896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29194897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29194898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29194899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29194900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29194901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29194902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29194903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29194904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29194905, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29195625, 'dashboard_result_id': 18085244, '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_P29195625_04-12-2025_21_17_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29195626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29195627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29195628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29195629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29195630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29195631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29195632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29195633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29195634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29195635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29195636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29195637, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2703231, 'mtr_portfolio_id': 29196118, 'dashboard_result_id': 18085245, '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_P29196118_04-12-2025_21_27_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29196121, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29196122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29196123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29196124, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29196125, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29196126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29196127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29196128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29196129, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29196130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29196131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29196132, '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 = 29164250 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': 4183584, 'mtr_portfolio_id': 29164250, 'created_at': datetime.datetime(2025, 12, 4, 6, 18, 29), 'result': '0.039691814632383166', 'result_long': None, 'result_double': None}] Qualite : 0.039691814632383166 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29164250 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29164250_04-12-2025_06_18_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29164250 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_P29164250_04-12-2025_06_18_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164264, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164269, 'pht': 3726}}" where mtr_portfolio_id = 29164250 and dashboard_run_id = 2703231 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`=29164250 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085183, 0.039691814632383166, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29164250_04-12-2025_06_18_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164264, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164269, '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 = 29164732 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': 4183585, 'mtr_portfolio_id': 29164732, 'created_at': datetime.datetime(2025, 12, 4, 6, 19, 30), 'result': '0.04191147181602513', 'result_long': None, 'result_double': None}] Qualite : 0.04191147181602513 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29164732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29164732_04-12-2025_06_19_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29164732 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_P29164732_04-12-2025_06_19_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164759, 'pht': 3726}}" where mtr_portfolio_id = 29164732 and dashboard_run_id = 2703231 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`=29164732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085184, 0.04191147181602513, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29164732_04-12-2025_06_19_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164759, '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 = 29165106 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': 4183586, 'mtr_portfolio_id': 29165106, 'created_at': datetime.datetime(2025, 12, 4, 6, 19, 57), 'result': '0.03563083105827624', 'result_long': None, 'result_double': None}] Qualite : 0.03563083105827624 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29165106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29165106_04-12-2025_06_20_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29165106 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_P29165106_04-12-2025_06_20_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165145, 'pht': 3726}}" where mtr_portfolio_id = 29165106 and dashboard_run_id = 2703231 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`=29165106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085185, 0.03563083105827624, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29165106_04-12-2025_06_20_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165145, '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 = 29165583 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': 4183587, 'mtr_portfolio_id': 29165583, 'created_at': datetime.datetime(2025, 12, 4, 6, 20, 29), 'result': '0.04070277561029388', 'result_long': None, 'result_double': None}] Qualite : 0.04070277561029388 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29165583 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29165583_04-12-2025_06_20_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29165583 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_P29165583_04-12-2025_06_20_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165593, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165601, 'pht': 3726}}" where mtr_portfolio_id = 29165583 and dashboard_run_id = 2703231 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`=29165583 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085186, 0.04070277561029388, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29165583_04-12-2025_06_20_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165593, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165601, '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 = 29166634 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': 4183588, 'mtr_portfolio_id': 29166634, 'created_at': datetime.datetime(2025, 12, 4, 6, 20, 39), 'result': '0.021804988093340173', 'result_long': None, 'result_double': None}] Qualite : 0.021804988093340173 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29166634 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29166634_04-12-2025_06_20_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29166634 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_P29166634_04-12-2025_06_20_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29166646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166647, 'pht': 3726}}" where mtr_portfolio_id = 29166634 and dashboard_run_id = 2703231 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`=29166634 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085187, 0.021804988093340173, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29166634_04-12-2025_06_20_42.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29166646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166647, '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 = 29166944 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': 4183589, 'mtr_portfolio_id': 29166944, 'created_at': datetime.datetime(2025, 12, 4, 6, 21, 13), 'result': '0.04765577064209144', 'result_long': None, 'result_double': None}] Qualite : 0.04765577064209144 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29166944 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29166944_04-12-2025_06_21_15.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29166944 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_P29166944_04-12-2025_06_21_15.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29166950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166961, 'pht': 3726}}" where mtr_portfolio_id = 29166944 and dashboard_run_id = 2703231 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`=29166944 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085188, 0.04765577064209144, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29166944_04-12-2025_06_21_15.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29166950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166961, '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 = 29167317 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': 4183590, 'mtr_portfolio_id': 29167317, 'created_at': datetime.datetime(2025, 12, 4, 6, 21, 29), 'result': '0.0533162779279352', 'result_long': None, 'result_double': None}] Qualite : 0.0533162779279352 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29167317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29167317_04-12-2025_06_21_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29167317 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_P29167317_04-12-2025_06_21_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29167348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167357, 'pht': 3726}}" where mtr_portfolio_id = 29167317 and dashboard_run_id = 2703231 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`=29167317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085189, 0.0533162779279352, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29167317_04-12-2025_06_21_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29167348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167357, '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 = 29167848 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': 4183591, 'mtr_portfolio_id': 29167848, 'created_at': datetime.datetime(2025, 12, 4, 6, 21, 59), 'result': '0.05454299083044137', 'result_long': None, 'result_double': None}] Qualite : 0.05454299083044137 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29167848 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29167848_04-12-2025_06_22_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29167848 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_P29167848_04-12-2025_06_22_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29167849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167860, 'pht': 3726}}" where mtr_portfolio_id = 29167848 and dashboard_run_id = 2703231 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`=29167848 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085190, 0.05454299083044137, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29167848_04-12-2025_06_22_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29167849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167860, '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 = 29168406 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': 4183592, 'mtr_portfolio_id': 29168406, 'created_at': datetime.datetime(2025, 12, 4, 6, 22, 27), 'result': '0.04351345317316067', 'result_long': None, 'result_double': None}] Qualite : 0.04351345317316067 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29168406 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29168406_04-12-2025_06_22_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29168406 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_P29168406_04-12-2025_06_22_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29168450, 'pht': 3726}}" where mtr_portfolio_id = 29168406 and dashboard_run_id = 2703231 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`=29168406 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085191, 0.04351345317316067, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29168406_04-12-2025_06_22_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29168450, '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 = 29168945 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': 4183593, 'mtr_portfolio_id': 29168945, 'created_at': datetime.datetime(2025, 12, 4, 6, 23, 28), 'result': '0.058779092602812714', 'result_long': None, 'result_double': None}] Qualite : 0.058779092602812714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29168945 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29168945_04-12-2025_06_23_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29168945 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_P29168945_04-12-2025_06_23_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29168970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168975, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168981, 'pht': 3726}}" where mtr_portfolio_id = 29168945 and dashboard_run_id = 2703231 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`=29168945 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085192, 0.058779092602812714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29168945_04-12-2025_06_23_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29168970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168975, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168981, '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 = 29169363 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': 4183594, 'mtr_portfolio_id': 29169363, 'created_at': datetime.datetime(2025, 12, 4, 6, 23, 58), 'result': '0.05984584230622193', 'result_long': None, 'result_double': None}] Qualite : 0.05984584230622193 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29169363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29169363_04-12-2025_06_24_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29169363 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_P29169363_04-12-2025_06_24_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169386, 'pht': 3726}}" where mtr_portfolio_id = 29169363 and dashboard_run_id = 2703231 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`=29169363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085193, 0.05984584230622193, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29169363_04-12-2025_06_24_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169386, '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 = 29169812 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': 4183595, 'mtr_portfolio_id': 29169812, 'created_at': datetime.datetime(2025, 12, 4, 6, 24, 30), 'result': '0.03764803485049883', 'result_long': None, 'result_double': None}] Qualite : 0.03764803485049883 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29169812 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29169812_04-12-2025_06_24_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29169812 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_P29169812_04-12-2025_06_24_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169856, 'pht': 3726}}" where mtr_portfolio_id = 29169812 and dashboard_run_id = 2703231 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`=29169812 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085194, 0.03764803485049883, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29169812_04-12-2025_06_24_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169856, '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 = 29170360 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': 4183596, 'mtr_portfolio_id': 29170360, 'created_at': datetime.datetime(2025, 12, 4, 6, 25), 'result': '0.044726143932483295', 'result_long': None, 'result_double': None}] Qualite : 0.044726143932483295 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29170360 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29170360_04-12-2025_06_25_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29170360 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_P29170360_04-12-2025_06_25_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170397, 'pht': 3726}}" where mtr_portfolio_id = 29170360 and dashboard_run_id = 2703231 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`=29170360 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085195, 0.044726143932483295, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29170360_04-12-2025_06_25_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170397, '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 = 29170831 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': 4183597, 'mtr_portfolio_id': 29170831, 'created_at': datetime.datetime(2025, 12, 4, 6, 25, 32), 'result': '0.043621951418468405', 'result_long': None, 'result_double': None}] Qualite : 0.043621951418468405 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29170831 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29170831_04-12-2025_06_25_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29170831 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_P29170831_04-12-2025_06_25_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170842, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170850, 'pht': 3726}}" where mtr_portfolio_id = 29170831 and dashboard_run_id = 2703231 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`=29170831 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085196, 0.043621951418468405, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29170831_04-12-2025_06_25_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170842, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170850, '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 = 29171165 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': 4183598, 'mtr_portfolio_id': 29171165, 'created_at': datetime.datetime(2025, 12, 4, 6, 25, 38), 'result': '0.05725304174549657', 'result_long': None, 'result_double': None}] Qualite : 0.05725304174549657 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29171165 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29171165_04-12-2025_06_25_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29171165 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_P29171165_04-12-2025_06_25_40.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29171193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29171194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29171195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29171196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29171197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29171198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29171199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29171200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29171201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29171202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29171203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29171204, 'pht': 3726}}" where mtr_portfolio_id = 29171165 and dashboard_run_id = 2703231 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`=29171165 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085197, 0.05725304174549657, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29171165_04-12-2025_06_25_40.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29171193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29171194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29171195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29171196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29171197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29171198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29171199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29171200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29171201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29171202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29171203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29171204, '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 = 29172002 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': 4183600, 'mtr_portfolio_id': 29172002, 'created_at': datetime.datetime(2025, 12, 4, 6, 26, 1), 'result': '0.04546848021720859', 'result_long': None, 'result_double': None}] Qualite : 0.04546848021720859 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29172002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172002_04-12-2025_06_26_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29172002 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_P29172002_04-12-2025_06_26_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172016, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172019, 'pht': 3726}}" where mtr_portfolio_id = 29172002 and dashboard_run_id = 2703231 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`=29172002 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085198, 0.04546848021720859, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172002_04-12-2025_06_26_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172016, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172019, '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 = 29172388 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': 4183601, 'mtr_portfolio_id': 29172388, 'created_at': datetime.datetime(2025, 12, 4, 6, 26, 9), 'result': '0.04045687581541578', 'result_long': None, 'result_double': None}] Qualite : 0.04045687581541578 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29172388 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172388_04-12-2025_06_26_14.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29172388 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_P29172388_04-12-2025_06_26_14.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172403, 'pht': 3726}}" where mtr_portfolio_id = 29172388 and dashboard_run_id = 2703231 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`=29172388 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085199, 0.04045687581541578, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172388_04-12-2025_06_26_14.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172403, '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 = 29172801 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': 4183500, 'mtr_portfolio_id': 29172801, 'created_at': datetime.datetime(2025, 12, 4, 5, 49), 'result': '0.041410680116186045', 'result_long': None, 'result_double': None}] Qualite : 0.041410680116186045 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29172801 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172801_04-12-2025_05_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29172801 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_P29172801_04-12-2025_05_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172809, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172815, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172817, 'pht': 3726}}" where mtr_portfolio_id = 29172801 and dashboard_run_id = 2703231 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`=29172801 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085200, 0.041410680116186045, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172801_04-12-2025_05_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172809, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172815, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172817, '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 = 29173230 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': 4183692, 'mtr_portfolio_id': 29173230, 'created_at': datetime.datetime(2025, 12, 4, 6, 3, 31), 'result': '0.044687640590459966', 'result_long': None, 'result_double': None}] Qualite : 0.044687640590459966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29173230 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29173230_04-12-2025_06_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29173230 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_P29173230_04-12-2025_06_03_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29173247, 'pht': 3726}}" where mtr_portfolio_id = 29173230 and dashboard_run_id = 2703231 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`=29173230 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085201, 0.044687640590459966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29173230_04-12-2025_06_03_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29173247, '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 = 29173539 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': 4183763, 'mtr_portfolio_id': 29173539, 'created_at': datetime.datetime(2025, 12, 4, 6, 19, 32), 'result': '0.036736345683720854', 'result_long': None, 'result_double': None}] Qualite : 0.036736345683720854 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29173539 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29173539_04-12-2025_06_19_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29173539 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_P29173539_04-12-2025_06_19_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29173543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173554, 'pht': 3726}}" where mtr_portfolio_id = 29173539 and dashboard_run_id = 2703231 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`=29173539 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085202, 0.036736345683720854, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29173539_04-12-2025_06_19_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29173543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173554, '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 = 29174089 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': 4183828, 'mtr_portfolio_id': 29174089, 'created_at': datetime.datetime(2025, 12, 4, 6, 32, 57), 'result': '0.03499223475861187', 'result_long': None, 'result_double': None}] Qualite : 0.03499223475861187 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29174089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29174089_04-12-2025_06_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29174089 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_P29174089_04-12-2025_06_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29174102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29174103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29174104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29174105, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29174106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29174107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29174108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29174109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29174110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29174111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29174112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29174113, 'pht': 3726}}" where mtr_portfolio_id = 29174089 and dashboard_run_id = 2703231 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`=29174089 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085203, 0.03499223475861187, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29174089_04-12-2025_06_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29174102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29174103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29174104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29174105, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29174106, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29174107, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29174108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29174109, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29174110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29174111, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29174112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29174113, '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 = 29174520 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': 4183886, 'mtr_portfolio_id': 29174520, 'created_at': datetime.datetime(2025, 12, 4, 6, 48, 59), 'result': '0.04063444148832028', 'result_long': None, 'result_double': None}] Qualite : 0.04063444148832028 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29174520 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29174520_04-12-2025_06_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29174520 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_P29174520_04-12-2025_06_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29174552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29174553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29174554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29174555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29174556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29174557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29174558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29174559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29174560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29174561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29174562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29174563, 'pht': 3726}}" where mtr_portfolio_id = 29174520 and dashboard_run_id = 2703231 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`=29174520 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085204, 0.04063444148832028, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29174520_04-12-2025_06_48_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29174552, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29174553, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29174554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29174555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29174556, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29174557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29174558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29174559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29174560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29174561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29174562, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29174563, '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 = 29175025 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': 4183949, 'mtr_portfolio_id': 29175025, 'created_at': datetime.datetime(2025, 12, 4, 7, 2, 30), 'result': '0.06460510968595502', 'result_long': None, 'result_double': None}] Qualite : 0.06460510968595502 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29175025 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29175025_04-12-2025_07_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29175025 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_P29175025_04-12-2025_07_02_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29175050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29175051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29175052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29175053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29175054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29175055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29175056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29175057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29175058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29175059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29175060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29175061, 'pht': 3726}}" where mtr_portfolio_id = 29175025 and dashboard_run_id = 2703231 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`=29175025 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085205, 0.06460510968595502, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29175025_04-12-2025_07_02_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29175050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29175051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29175052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29175053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29175054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29175055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29175056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29175057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29175058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29175059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29175060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29175061, '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 = 29175420 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': 4184015, 'mtr_portfolio_id': 29175420, 'created_at': datetime.datetime(2025, 12, 4, 7, 25, 59), 'result': '0.05051586573513665', 'result_long': None, 'result_double': None}] Qualite : 0.05051586573513665 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29175420 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29175420_04-12-2025_07_25_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29175420 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_P29175420_04-12-2025_07_25_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29175433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29175434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29175435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29175436, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29175437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29175438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29175439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29175440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29175441, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29175442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29175443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29175444, 'pht': 3726}}" where mtr_portfolio_id = 29175420 and dashboard_run_id = 2703231 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`=29175420 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085206, 0.05051586573513665, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29175420_04-12-2025_07_25_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29175433, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29175434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29175435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29175436, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29175437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29175438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29175439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29175440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29175441, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29175442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29175443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29175444, '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 = 29176081 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': 4184095, 'mtr_portfolio_id': 29176081, 'created_at': datetime.datetime(2025, 12, 4, 7, 35, 30), 'result': '0.04537591886046993', 'result_long': None, 'result_double': None}] Qualite : 0.04537591886046993 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29176081 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176081_04-12-2025_07_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29176081 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_P29176081_04-12-2025_07_35_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29176094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176105, 'pht': 3726}}" where mtr_portfolio_id = 29176081 and dashboard_run_id = 2703231 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`=29176081 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085207, 0.04537591886046993, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176081_04-12-2025_07_35_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29176094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176095, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176104, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176105, '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 = 29176341 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': 4184129, 'mtr_portfolio_id': 29176341, 'created_at': datetime.datetime(2025, 12, 4, 7, 49), 'result': '0.016339218376193666', 'result_long': None, 'result_double': None}] Qualite : 0.016339218376193666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29176341 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176341_04-12-2025_07_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29176341 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_P29176341_04-12-2025_07_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29176342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29176349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176353, 'pht': 3726}}" where mtr_portfolio_id = 29176341 and dashboard_run_id = 2703231 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`=29176341 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085208, 0.016339218376193666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176341_04-12-2025_07_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29176342, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29176349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176352, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176353, '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 = 29176418 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': 4184146, 'mtr_portfolio_id': 29176418, 'created_at': datetime.datetime(2025, 12, 4, 9, 30, 58), 'result': '0.07982821617861312', 'result_long': None, 'result_double': None}] Qualite : 0.07982821617861312 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29176418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176418_04-12-2025_09_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29176418 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_P29176418_04-12-2025_09_31_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29176421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176432, 'pht': 3726}}" where mtr_portfolio_id = 29176418 and dashboard_run_id = 2703231 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`=29176418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085209, 0.07982821617861312, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176418_04-12-2025_09_31_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29176421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176422, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176423, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176424, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176428, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176432, '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 = 29176753 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': 4184204, 'mtr_portfolio_id': 29176753, 'created_at': datetime.datetime(2025, 12, 4, 8, 19, 29), 'result': '0.052545314512877625', 'result_long': None, 'result_double': None}] Qualite : 0.052545314512877625 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29176753 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176753_04-12-2025_08_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29176753 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_P29176753_04-12-2025_08_19_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176759, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29176760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176763, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176765, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176766, 'pht': 3726}}" where mtr_portfolio_id = 29176753 and dashboard_run_id = 2703231 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`=29176753 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085210, 0.052545314512877625, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29176753_04-12-2025_08_19_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29176755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29176756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29176757, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29176758, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29176759, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29176760, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29176761, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29176762, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29176763, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29176764, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29176765, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29176766, '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 = 29177339 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': 4184269, 'mtr_portfolio_id': 29177339, 'created_at': datetime.datetime(2025, 12, 4, 8, 32, 58), 'result': '0.0420912092155339', 'result_long': None, 'result_double': None}] Qualite : 0.0420912092155339 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29177339 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29177339_04-12-2025_08_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29177339 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_P29177339_04-12-2025_08_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29177364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29177365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29177366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29177367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29177368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29177369, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29177370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29177371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29177372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29177373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29177374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29177375, 'pht': 3726}}" where mtr_portfolio_id = 29177339 and dashboard_run_id = 2703231 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`=29177339 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085211, 0.0420912092155339, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29177339_04-12-2025_08_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29177364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29177365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29177366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29177367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29177368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29177369, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29177370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29177371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29177372, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29177373, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29177374, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29177375, '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 = 29177792 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': 4184328, 'mtr_portfolio_id': 29177792, 'created_at': datetime.datetime(2025, 12, 4, 8, 48, 59), 'result': '0.04753595531864046', 'result_long': None, 'result_double': None}] Qualite : 0.04753595531864046 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29177792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29177792_04-12-2025_08_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29177792 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_P29177792_04-12-2025_08_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29177805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29177806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29177807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29177808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29177809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29177810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29177811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29177812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29177813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29177814, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29177815, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29177816, 'pht': 3726}}" where mtr_portfolio_id = 29177792 and dashboard_run_id = 2703231 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`=29177792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085212, 0.04753595531864046, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29177792_04-12-2025_08_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29177805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29177806, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29177807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29177808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29177809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29177810, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29177811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29177812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29177813, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29177814, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29177815, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29177816, '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 = 29178343 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': 4184395, 'mtr_portfolio_id': 29178343, 'created_at': datetime.datetime(2025, 12, 4, 9, 32, 29), 'result': '0.05307360697439451', 'result_long': None, 'result_double': None}] Qualite : 0.05307360697439451 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29178343 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29178343_04-12-2025_09_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29178343 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_P29178343_04-12-2025_09_32_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29178349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29178350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29178351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29178352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29178353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29178354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29178355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29178356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29178357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29178358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29178359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29178360, 'pht': 3726}}" where mtr_portfolio_id = 29178343 and dashboard_run_id = 2703231 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`=29178343 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085213, 0.05307360697439451, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29178343_04-12-2025_09_32_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29178349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29178350, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29178351, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29178352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29178353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29178354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29178355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29178356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29178357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29178358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29178359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29178360, '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 = 29179002 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': 4184538, 'mtr_portfolio_id': 29179002, 'created_at': datetime.datetime(2025, 12, 4, 9, 48, 56), 'result': '0.06274148051775401', 'result_long': None, 'result_double': None}] Qualite : 0.06274148051775401 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29179002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179002_04-12-2025_09_48_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29179002 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_P29179002_04-12-2025_09_48_56.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179017, 'pht': 3726}}" where mtr_portfolio_id = 29179002 and dashboard_run_id = 2703231 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`=29179002 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085214, 0.06274148051775401, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179002_04-12-2025_09_48_56.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179007, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179008, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179011, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179013, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179014, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179017, '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 = 29179437 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': 4184584, 'mtr_portfolio_id': 29179437, 'created_at': datetime.datetime(2025, 12, 4, 10, 3), 'result': '0.04924474664599317', 'result_long': None, 'result_double': None}] Qualite : 0.04924474664599317 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29179437 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179437_04-12-2025_10_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29179437 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_P29179437_04-12-2025_10_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179455, 'pht': 3726}}" where mtr_portfolio_id = 29179437 and dashboard_run_id = 2703231 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`=29179437 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085215, 0.04924474664599317, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179437_04-12-2025_10_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179452, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179454, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179455, '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 = 29179810 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': 4184659, 'mtr_portfolio_id': 29179810, 'created_at': datetime.datetime(2025, 12, 4, 10, 16, 57), 'result': '0.05443569296976892', 'result_long': None, 'result_double': None}] Qualite : 0.05443569296976892 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29179810 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179810_04-12-2025_10_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29179810 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_P29179810_04-12-2025_10_16_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179833, 'pht': 3726}}" where mtr_portfolio_id = 29179810 and dashboard_run_id = 2703231 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`=29179810 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085216, 0.05443569296976892, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29179810_04-12-2025_10_16_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29179822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29179823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29179824, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29179825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29179826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29179827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29179828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29179829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29179830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29179831, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29179832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29179833, '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 = 29180409 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': 4184734, 'mtr_portfolio_id': 29180409, 'created_at': datetime.datetime(2025, 12, 4, 10, 32, 59), 'result': '0.04300339363385803', 'result_long': None, 'result_double': None}] Qualite : 0.04300339363385803 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29180409 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29180409_04-12-2025_10_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29180409 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_P29180409_04-12-2025_10_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29180418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29180419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29180420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29180421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29180422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29180423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29180424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29180425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29180426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29180427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29180428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29180429, 'pht': 3726}}" where mtr_portfolio_id = 29180409 and dashboard_run_id = 2703231 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`=29180409 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085217, 0.04300339363385803, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29180409_04-12-2025_10_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29180418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29180419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29180420, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29180421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29180422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29180423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29180424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29180425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29180426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29180427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29180428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29180429, '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 = 29181139 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': 4184822, 'mtr_portfolio_id': 29181139, 'created_at': datetime.datetime(2025, 12, 4, 14, 0, 2), 'result': '0.04122219974552667', 'result_long': None, 'result_double': None}] Qualite : 0.04122219974552667 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29181139 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29181139_04-12-2025_14_00_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29181139 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_P29181139_04-12-2025_14_00_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29181147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29181148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29181149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29181150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29181151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29181152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29181154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29181155, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29181157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29181158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29181159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29181161, 'pht': 3726}}" where mtr_portfolio_id = 29181139 and dashboard_run_id = 2703231 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`=29181139 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085218, 0.04122219974552667, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29181139_04-12-2025_14_00_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29181147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29181148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29181149, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29181150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29181151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29181152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29181154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29181155, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29181157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29181158, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29181159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29181161, '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 = 29183382 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': 4185259, 'mtr_portfolio_id': 29183382, 'created_at': datetime.datetime(2025, 12, 4, 14, 16, 56), 'result': '0.04391911476135046', 'result_long': None, 'result_double': None}] Qualite : 0.04391911476135046 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29183382 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29183382_04-12-2025_14_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29183382 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_P29183382_04-12-2025_14_16_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29183385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29183386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29183387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29183388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29183389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29183390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29183391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29183392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29183393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29183394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29183395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29183396, 'pht': 3726}}" where mtr_portfolio_id = 29183382 and dashboard_run_id = 2703231 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`=29183382 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085219, 0.04391911476135046, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29183382_04-12-2025_14_16_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29183385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29183386, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29183387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29183388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29183389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29183390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29183391, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29183392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29183393, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29183394, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29183395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29183396, '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 = 29183842 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': 4185295, 'mtr_portfolio_id': 29183842, 'created_at': datetime.datetime(2025, 12, 4, 14, 32, 59), 'result': '0.04830291602633908', 'result_long': None, 'result_double': None}] Qualite : 0.04830291602633908 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29183842 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29183842_04-12-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29183842 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_P29183842_04-12-2025_14_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29183849, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29183850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29183851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29183852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29183853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29183854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29183855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29183856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29183857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29183858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29183859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29183860, 'pht': 3726}}" where mtr_portfolio_id = 29183842 and dashboard_run_id = 2703231 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`=29183842 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085220, 0.04830291602633908, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29183842_04-12-2025_14_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29183849, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29183850, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29183851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29183852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29183853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29183854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29183855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29183856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29183857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29183858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29183859, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29183860, '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 = 29184178 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': 4185346, 'mtr_portfolio_id': 29184178, 'created_at': datetime.datetime(2025, 12, 4, 14, 46, 58), 'result': '0.0443698879458488', 'result_long': None, 'result_double': None}] Qualite : 0.0443698879458488 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29184178 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29184178_04-12-2025_14_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29184178 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_P29184178_04-12-2025_14_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29184192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29184193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29184194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29184195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29184196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29184197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29184198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29184199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29184200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29184201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29184202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29184203, 'pht': 3726}}" where mtr_portfolio_id = 29184178 and dashboard_run_id = 2703231 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`=29184178 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085221, 0.0443698879458488, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29184178_04-12-2025_14_46_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29184192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29184193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29184194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29184195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29184196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29184197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29184198, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29184199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29184200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29184201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29184202, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29184203, '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 = 29184666 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': 4185394, 'mtr_portfolio_id': 29184666, 'created_at': datetime.datetime(2025, 12, 4, 15, 4, 57), 'result': '0.03767958240155871', 'result_long': None, 'result_double': None}] Qualite : 0.03767958240155871 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29184666 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29184666_04-12-2025_15_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29184666 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_P29184666_04-12-2025_15_04_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29184688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29184689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29184690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29184691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29184692, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29184693, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29184694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29184695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29184696, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29184697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29184698, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29184699, 'pht': 3726}}" where mtr_portfolio_id = 29184666 and dashboard_run_id = 2703231 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`=29184666 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085222, 0.03767958240155871, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29184666_04-12-2025_15_04_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29184688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29184689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29184690, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29184691, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29184692, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29184693, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29184694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29184695, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29184696, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29184697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29184698, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29184699, '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 = 29185282 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': 4185482, 'mtr_portfolio_id': 29185282, 'created_at': datetime.datetime(2025, 12, 4, 15, 18, 59), 'result': '0.03792078455609117', 'result_long': None, 'result_double': None}] Qualite : 0.03792078455609117 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29185282 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29185282_04-12-2025_15_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29185282 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_P29185282_04-12-2025_15_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29185287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29185288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29185289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29185290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29185291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29185292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29185293, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29185294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29185295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29185296, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29185297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29185298, 'pht': 3726}}" where mtr_portfolio_id = 29185282 and dashboard_run_id = 2703231 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`=29185282 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085223, 0.03792078455609117, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29185282_04-12-2025_15_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29185287, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29185288, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29185289, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29185290, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29185291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29185292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29185293, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29185294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29185295, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29185296, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29185297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29185298, '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 = 29185658 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': 4185523, 'mtr_portfolio_id': 29185658, 'created_at': datetime.datetime(2025, 12, 4, 15, 32, 57), 'result': '0.05201420383222816', 'result_long': None, 'result_double': None}] Qualite : 0.05201420383222816 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29185658 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29185658_04-12-2025_15_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29185658 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_P29185658_04-12-2025_15_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29185662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29185663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29185664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29185665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29185666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29185667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29185668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29185669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29185670, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29185671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29185672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29185673, 'pht': 3726}}" where mtr_portfolio_id = 29185658 and dashboard_run_id = 2703231 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`=29185658 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085224, 0.05201420383222816, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29185658_04-12-2025_15_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29185662, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29185663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29185664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29185665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29185666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29185667, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29185668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29185669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29185670, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29185671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29185672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29185673, '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 = 29186013 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': 4185577, 'mtr_portfolio_id': 29186013, 'created_at': datetime.datetime(2025, 12, 4, 15, 47, 1), 'result': '0.031449136973250406', 'result_long': None, 'result_double': None}] Qualite : 0.031449136973250406 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29186013 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29186013_04-12-2025_15_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29186013 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_P29186013_04-12-2025_15_47_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29186031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29186032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29186033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29186034, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29186035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29186036, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29186037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29186038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29186039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29186040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29186041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29186042, 'pht': 3726}}" where mtr_portfolio_id = 29186013 and dashboard_run_id = 2703231 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`=29186013 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085225, 0.031449136973250406, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29186013_04-12-2025_15_47_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29186031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29186032, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29186033, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29186034, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29186035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29186036, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29186037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29186038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29186039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29186040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29186041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29186042, '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 = 29186446 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': 4185635, 'mtr_portfolio_id': 29186446, 'created_at': datetime.datetime(2025, 12, 4, 16, 3), 'result': '0.050967710265675696', 'result_long': None, 'result_double': None}] Qualite : 0.050967710265675696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29186446 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29186446_04-12-2025_16_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29186446 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_P29186446_04-12-2025_16_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29186449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29186450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29186451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29186452, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29186453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29186454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29186455, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29186456, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29186457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29186458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29186459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29186460, 'pht': 3726}}" where mtr_portfolio_id = 29186446 and dashboard_run_id = 2703231 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`=29186446 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085226, 0.050967710265675696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29186446_04-12-2025_16_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29186449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29186450, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29186451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29186452, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29186453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29186454, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29186455, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29186456, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29186457, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29186458, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29186459, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29186460, '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 = 29186716 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': 4185678, 'mtr_portfolio_id': 29186716, 'created_at': datetime.datetime(2025, 12, 4, 16, 18, 58), 'result': '0.03230379728652559', 'result_long': None, 'result_double': None}] Qualite : 0.03230379728652559 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29186716 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29186716_04-12-2025_16_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29186716 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_P29186716_04-12-2025_16_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29186730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29186731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29186732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29186733, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29186734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29186735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29186736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29186737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29186738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29186739, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29186740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29186741, 'pht': 3726}}" where mtr_portfolio_id = 29186716 and dashboard_run_id = 2703231 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`=29186716 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085227, 0.03230379728652559, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29186716_04-12-2025_16_18_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29186730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29186731, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29186732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29186733, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29186734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29186735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29186736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29186737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29186738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29186739, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29186740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29186741, '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 = 29187185 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': 4185725, 'mtr_portfolio_id': 29187185, 'created_at': datetime.datetime(2025, 12, 4, 16, 32, 58), 'result': '0.051303253559249584', 'result_long': None, 'result_double': None}] Qualite : 0.051303253559249584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29187185 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29187185_04-12-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29187185 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_P29187185_04-12-2025_16_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29187190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29187191, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29187192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29187193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29187194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29187195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29187196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29187198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29187199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29187200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29187201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29187202, 'pht': 3726}}" where mtr_portfolio_id = 29187185 and dashboard_run_id = 2703231 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`=29187185 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085228, 0.051303253559249584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29187185_04-12-2025_16_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29187190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29187191, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29187192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29187193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29187194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29187195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29187196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29187198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29187199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29187200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29187201, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29187202, '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 = 29187552 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': 4185775, 'mtr_portfolio_id': 29187552, 'created_at': datetime.datetime(2025, 12, 4, 16, 46, 59), 'result': '0.04323301420772909', 'result_long': None, 'result_double': None}] Qualite : 0.04323301420772909 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29187552 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29187552_04-12-2025_16_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29187552 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_P29187552_04-12-2025_16_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29187566, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29187567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29187568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29187569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29187570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29187571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29187572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29187573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29187574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29187575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29187576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29187577, 'pht': 3726}}" where mtr_portfolio_id = 29187552 and dashboard_run_id = 2703231 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`=29187552 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085229, 0.04323301420772909, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29187552_04-12-2025_16_46_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29187566, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29187567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29187568, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29187569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29187570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29187571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29187572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29187573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29187574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29187575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29187576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29187577, '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 = 29187947 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': 4185839, 'mtr_portfolio_id': 29187947, 'created_at': datetime.datetime(2025, 12, 4, 17, 2, 59), 'result': '0.03755848366329293', 'result_long': None, 'result_double': None}] Qualite : 0.03755848366329293 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29187947 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29187947_04-12-2025_17_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29187947 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_P29187947_04-12-2025_17_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29187955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29187956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29187957, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29187958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29187959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29187960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29187961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29187962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29187963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29187964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29187965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29187966, 'pht': 3726}}" where mtr_portfolio_id = 29187947 and dashboard_run_id = 2703231 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`=29187947 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085230, 0.03755848366329293, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29187947_04-12-2025_17_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29187955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29187956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29187957, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29187958, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29187959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29187960, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29187961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29187962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29187963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29187964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29187965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29187966, '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 = 29188391 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': 4185916, 'mtr_portfolio_id': 29188391, 'created_at': datetime.datetime(2025, 12, 4, 17, 18, 59), 'result': '0.05189440860520692', 'result_long': None, 'result_double': None}] Qualite : 0.05189440860520692 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29188391 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29188391_04-12-2025_17_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29188391 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_P29188391_04-12-2025_17_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29188409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29188410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29188411, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29188412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29188413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29188414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29188415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29188416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29188417, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29188418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29188419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29188420, 'pht': 3726}}" where mtr_portfolio_id = 29188391 and dashboard_run_id = 2703231 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`=29188391 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085231, 0.05189440860520692, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29188391_04-12-2025_17_19_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29188409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29188410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29188411, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29188412, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29188413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29188414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29188415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29188416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29188417, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29188418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29188419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29188420, '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 = 29188913 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': 4185991, 'mtr_portfolio_id': 29188913, 'created_at': datetime.datetime(2025, 12, 4, 17, 52, 30), 'result': '0.04934475917996423', 'result_long': None, 'result_double': None}] Qualite : 0.04934475917996423 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29188913 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29188913_04-12-2025_17_52_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29188913 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_P29188913_04-12-2025_17_52_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29188957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29188958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29188959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29188960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29188961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29188962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29188963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29188964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29188965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29188966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29188967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29188968, 'pht': 3726}}" where mtr_portfolio_id = 29188913 and dashboard_run_id = 2703231 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`=29188913 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085232, 0.04934475917996423, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29188913_04-12-2025_17_52_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29188957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29188958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29188959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29188960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29188961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29188962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29188963, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29188964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29188965, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29188966, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29188967, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29188968, '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 = 29189919 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': 4186131, 'mtr_portfolio_id': 29189919, 'created_at': datetime.datetime(2025, 12, 4, 18, 19, 31), 'result': '0.04431823244850879', 'result_long': None, 'result_double': None}] Qualite : 0.04431823244850879 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29189919 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29189919_04-12-2025_18_19_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29189919 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_P29189919_04-12-2025_18_19_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29189946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29189947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29189948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29189949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29189950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29189951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29189952, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29189953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29189954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29189955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29189956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29189957, 'pht': 3726}}" where mtr_portfolio_id = 29189919 and dashboard_run_id = 2703231 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`=29189919 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085233, 0.04431823244850879, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29189919_04-12-2025_18_19_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29189946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29189947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29189948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29189949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29189950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29189951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29189952, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29189953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29189954, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29189955, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29189956, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29189957, '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 = 29190242 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': 4186180, 'mtr_portfolio_id': 29190242, 'created_at': datetime.datetime(2025, 12, 4, 18, 32, 56), 'result': '0.04020181482240559', 'result_long': None, 'result_double': None}] Qualite : 0.04020181482240559 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29190242 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29190242_04-12-2025_18_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29190242 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_P29190242_04-12-2025_18_32_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29190247, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29190248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29190249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29190250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29190251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29190252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29190253, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29190254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29190255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29190256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29190257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29190258, 'pht': 3726}}" where mtr_portfolio_id = 29190242 and dashboard_run_id = 2703231 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`=29190242 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085234, 0.04020181482240559, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29190242_04-12-2025_18_32_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29190247, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29190248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29190249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29190250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29190251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29190252, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29190253, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29190254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29190255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29190256, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29190257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29190258, '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 = 29190686 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': 4186241, 'mtr_portfolio_id': 29190686, 'created_at': datetime.datetime(2025, 12, 4, 18, 46, 58), 'result': '0.06590272979406502', 'result_long': None, 'result_double': None}] Qualite : 0.06590272979406502 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29190686 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29190686_04-12-2025_18_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29190686 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_P29190686_04-12-2025_18_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29190703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29190704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29190705, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29190706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29190707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29190708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29190709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29190710, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29190711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29190712, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29190713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29190714, 'pht': 3726}}" where mtr_portfolio_id = 29190686 and dashboard_run_id = 2703231 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`=29190686 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085235, 0.06590272979406502, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29190686_04-12-2025_18_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29190703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29190704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29190705, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29190706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29190707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29190708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29190709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29190710, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29190711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29190712, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29190713, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29190714, '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 = 29191265 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': 4186316, 'mtr_portfolio_id': 29191265, 'created_at': datetime.datetime(2025, 12, 4, 19, 2, 59), 'result': '0.036284960920956004', 'result_long': None, 'result_double': None}] Qualite : 0.036284960920956004 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29191265 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29191265_04-12-2025_19_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29191265 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_P29191265_04-12-2025_19_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29191269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29191270, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29191271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29191272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29191273, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29191274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29191275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29191276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29191277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29191278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29191279, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29191280, 'pht': 3726}}" where mtr_portfolio_id = 29191265 and dashboard_run_id = 2703231 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`=29191265 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085236, 0.036284960920956004, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29191265_04-12-2025_19_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29191269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29191270, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29191271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29191272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29191273, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29191274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29191275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29191276, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29191277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29191278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29191279, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29191280, '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 = 29191610 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': 4186391, 'mtr_portfolio_id': 29191610, 'created_at': datetime.datetime(2025, 12, 4, 19, 19), 'result': '0.03949139517342587', 'result_long': None, 'result_double': None}] Qualite : 0.03949139517342587 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29191610 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29191610_04-12-2025_19_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29191610 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_P29191610_04-12-2025_19_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29191651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29191652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29191653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29191654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29191655, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29191656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29191657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29191659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29191660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29191661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29191663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29191664, 'pht': 3726}}" where mtr_portfolio_id = 29191610 and dashboard_run_id = 2703231 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`=29191610 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085237, 0.03949139517342587, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29191610_04-12-2025_19_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29191651, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29191652, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29191653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29191654, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29191655, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29191656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29191657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29191659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29191660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29191661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29191663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29191664, '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 = 29192334 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': 4186474, 'mtr_portfolio_id': 29192334, 'created_at': datetime.datetime(2025, 12, 4, 19, 33, 33), 'result': '0.054944141516817646', 'result_long': None, 'result_double': None}] Qualite : 0.054944141516817646 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29192334 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29192334_04-12-2025_19_33_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29192334 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_P29192334_04-12-2025_19_33_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29192357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29192358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29192359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29192360, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29192361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29192362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29192363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29192364, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29192365, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29192366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29192367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29192368, 'pht': 3726}}" where mtr_portfolio_id = 29192334 and dashboard_run_id = 2703231 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`=29192334 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085238, 0.054944141516817646, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29192334_04-12-2025_19_33_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29192357, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29192358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29192359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29192360, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29192361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29192362, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29192363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29192364, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29192365, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29192366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29192367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29192368, '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 = 29192845 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': 4186528, 'mtr_portfolio_id': 29192845, 'created_at': datetime.datetime(2025, 12, 4, 19, 50, 59), 'result': '0.037691146231981484', 'result_long': None, 'result_double': None}] Qualite : 0.037691146231981484 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29192845 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29192845_04-12-2025_19_51_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29192845 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_P29192845_04-12-2025_19_51_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29192854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29192855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29192856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29192857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29192858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29192859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29192860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29192861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29192862, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29192863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29192864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29192865, 'pht': 3726}}" where mtr_portfolio_id = 29192845 and dashboard_run_id = 2703231 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`=29192845 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085239, 0.037691146231981484, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29192845_04-12-2025_19_51_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29192854, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29192855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29192856, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29192857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29192858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29192859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29192860, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29192861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29192862, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29192863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29192864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29192865, '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 = 29193440 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': 4186609, 'mtr_portfolio_id': 29193440, 'created_at': datetime.datetime(2025, 12, 4, 20, 2, 58), 'result': '0.038465797902632264', 'result_long': None, 'result_double': None}] Qualite : 0.038465797902632264 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29193440 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29193440_04-12-2025_20_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29193440 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_P29193440_04-12-2025_20_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29193446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29193447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29193448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29193449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29193450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29193451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29193452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29193453, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29193454, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29193455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29193456, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29193457, 'pht': 3726}}" where mtr_portfolio_id = 29193440 and dashboard_run_id = 2703231 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`=29193440 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085240, 0.038465797902632264, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29193440_04-12-2025_20_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29193446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29193447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29193448, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29193449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29193450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29193451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29193452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29193453, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29193454, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29193455, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29193456, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29193457, '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 = 29193727 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': 4186672, 'mtr_portfolio_id': 29193727, 'created_at': datetime.datetime(2025, 12, 4, 20, 18, 57), 'result': '0.03835899509345431', 'result_long': None, 'result_double': None}] Qualite : 0.03835899509345431 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29193727 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29193727_04-12-2025_20_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29193727 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_P29193727_04-12-2025_20_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29193761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29193762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29193763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29193764, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29193765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29193766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29193767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29193768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29193769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29193770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29193771, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29193772, 'pht': 3726}}" where mtr_portfolio_id = 29193727 and dashboard_run_id = 2703231 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`=29193727 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085241, 0.03835899509345431, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29193727_04-12-2025_20_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29193761, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29193762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29193763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29193764, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29193765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29193766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29193767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29193768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29193769, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29193770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29193771, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29193772, '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 = 29194351 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': 4186737, 'mtr_portfolio_id': 29194351, 'created_at': datetime.datetime(2025, 12, 4, 20, 32, 30), 'result': '0.056804233249563456', 'result_long': None, 'result_double': None}] Qualite : 0.056804233249563456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29194351 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29194351_04-12-2025_20_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29194351 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_P29194351_04-12-2025_20_32_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29194359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29194360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29194361, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29194362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29194363, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29194365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29194366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29194367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29194368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29194369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29194370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29194371, 'pht': 3726}}" where mtr_portfolio_id = 29194351 and dashboard_run_id = 2703231 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`=29194351 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085242, 0.056804233249563456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29194351_04-12-2025_20_32_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29194359, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29194360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29194361, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29194362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29194363, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29194365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29194366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29194367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29194368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29194369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29194370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29194371, '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 = 29194887 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': 4186805, 'mtr_portfolio_id': 29194887, 'created_at': datetime.datetime(2025, 12, 4, 21, 2, 59), 'result': '0.018112021644578254', 'result_long': None, 'result_double': None}] Qualite : 0.018112021644578254 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29194887 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29194887_04-12-2025_21_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29194887 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_P29194887_04-12-2025_21_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29194894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29194895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29194896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29194897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29194898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29194899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29194900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29194901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29194902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29194903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29194904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29194905, 'pht': 3726}}" where mtr_portfolio_id = 29194887 and dashboard_run_id = 2703233 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`=29194887 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085243, 0.018112021644578254, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29194887_04-12-2025_21_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29194894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29194895, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29194896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29194897, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29194898, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29194899, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29194900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29194901, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29194902, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29194903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29194904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29194905, '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 = 29195625 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': 4186924, 'mtr_portfolio_id': 29195625, 'created_at': datetime.datetime(2025, 12, 4, 21, 17, 30), 'result': '0.042929139743230885', 'result_long': None, 'result_double': None}] Qualite : 0.042929139743230885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29195625 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29195625_04-12-2025_21_17_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29195625 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_P29195625_04-12-2025_21_17_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29195626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29195627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29195628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29195629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29195630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29195631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29195632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29195633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29195634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29195635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29195636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29195637, 'pht': 3726}}" where mtr_portfolio_id = 29195625 and dashboard_run_id = 2703233 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`=29195625 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085244, 0.042929139743230885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29195625_04-12-2025_21_17_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29195626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29195627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29195628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29195629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29195630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29195631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29195632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29195633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29195634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29195635, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29195636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29195637, '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 = 29196118 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': 4186947, 'mtr_portfolio_id': 29196118, 'created_at': datetime.datetime(2025, 12, 4, 21, 30, 58), 'result': '0.05066092467062015', 'result_long': None, 'result_double': None}] Qualite : 0.05066092467062015 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29196118 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29196118_04-12-2025_21_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29196118 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_P29196118_04-12-2025_21_30_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29196121, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29196122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29196123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29196124, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29196125, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29196126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29196127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29196128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29196129, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29196130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29196131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29196132, 'pht': 3726}}" where mtr_portfolio_id = 29196118 and dashboard_run_id = 2703233 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`=29196118 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18085245, 0.05066092467062015, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29196118_04-12-2025_21_30_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29196121, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29196122, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29196123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29196124, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29196125, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29196126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29196127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29196128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29196129, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29196130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29196131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29196132, '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 (29164250,29164732,29165106,29165583,29166634,29166944,29167317,29167848,29168406,29168945,29169363,29169812,29170360,29170831,29171165,29172002,29172388,29172801,29173230,29173539,29174089,29174520,29175025,29175420,29176081,29176341,29176418,29176753,29177339,29177792,29178343,29179002,29179437,29179810,29180409,29181139,29183382,29183842,29184178,29184666,29185282,29185658,29186013,29186446,29186716,29187185,29187552,29187947,29188391,29188913,29189919,29190242,29190686,29191265,29191610,29192334,29192845,29193440,29193727,29194351,29194887,29195625,29196118) result : ((1397754704,), (1397754746,), (1397754775,), (1397754811,), (1397755183,), (1397755250,), (1397755317,), (1397755363,), (1397755398,), (1397755783,), (1397755857,), (1397755927,), (1397755994,), (1397757030,), (1397757127,), (1397757226,), (1397757284,), (1397757320,), (1397757805,), (1397757841,), (1397757873,), (1397757921,), (1397757943,), (1397758207,), (1397758258,), (1397758323,), (1397758383,), (1397758780,), (1397758800,), (1397758802,), (1397758803,), (1397758805,), (1397758807,), (1397758825,), (1397758826,), (1397759084,), (1397759085,), (1397759086,), (1397759241,), (1397759256,), (1397759259,), (1397759260,), (1397759276,), (1397759277,), (1397759278,), (1397759279,), (1397759281,), (1397759282,), (1397759291,), (1397759294,), (1397759296,), (1397759299,), (1397759302,), (1397759324,), (1397759322,), (1397759323,), (1397759331,), (1397759332,), (1397759336,), (1397759337,), (1397759339,), (1397759341,), (1397759388,), (1397759395,), (1397759406,), (1397759412,), (1397759437,), (1397759612,), (1397759618,), (1397759625,), (1397759626,), (1397759652,), (1397759653,), (1397759654,), (1397759655,), (1397759657,), (1397759671,), (1397759672,), (1397759673,), (1397759674,), (1397759705,), (1397759987,), (1397759988,), (1397759989,), (1397759990,), (1397759992,), (1397760018,), (1397760020,), (1397760021,), (1397760028,), (1397760030,), (1397760032,), (1397760035,), (1397760038,), (1397760052,), (1397760053,), (1397760054,), (1397760055,), (1397760056,), (1397760058,), (1397760069,), (1397760070,), (1397760071,), (1397760073,), (1397760075,), (1397760077,), (1397760103,), (1397760106,), (1397760107,), (1397760135,), (1397760136,), (1397760137,), (1397760140,), (1397760143,), (1397760162,), (1397760165,), (1397760166,), (1397760167,), (1397760168,), (1397760169,), (1397760152,), (1397760153,), (1397760155,), (1397760157,), (1397760160,), (1397760170,), (1397760172,), (1397760180,), (1397760190,), (1397760192,), (1397760195,), (1397760197,), (1397760199,), (1397760213,), (1397760220,), (1397760224,), (1397760225,), (1397760227,), (1397760229,), (1397760308,), (1397760342,), (1397760374,), (1397760405,), (1397760832,), (1397760866,), (1397760900,), (1397760935,), (1397760948,), (1397760950,), (1397760954,), (1397760955,), (1397760985,), (1397761023,), (1397761058,), (1397761091,), (1397761219,), (1397761258,), (1397761268,), (1397761276,), (1397761304,), (1397761306,), (1397761388,), (1397761389,), (1397761391,), (1397761415,), (1397761448,), (1397761449,), (1397761458,), (1397761459,), (1397761460,), (1397761461,), (1397761464,), (1397761465,), (1397761468,), (1397761469,), (1397761472,), (1397761473,), (1397761477,), (1397761478,), (1397761479,), (1397761481,), (1397761483,), (1397761484,), (1397761489,), (1397761490,), (1397761491,), (1397761492,), (1397761493,), (1397761517,), (1397761518,), (1397761519,), (1397761522,), (1397761529,), (1397761535,), (1397761536,), (1397761537,), (1397761538,), (1397761558,), (1397761559,), (1397761560,), (1397761582,), (1397761583,), (1397761593,), (1397761602,), (1397761607,), (1397761610,), (1397761633,), (1397761626,), (1397761627,), (1397761628,), (1397761629,), (1397761631,), (1397761638,), (1397761639,), (1397761640,), (1397761641,), (1397761658,), (1397761659,), (1397761660,), (1397761661,), (1397761668,), (1397761669,), (1397761670,), (1397761671,), (1397761673,), (1397761675,), (1397761697,), (1397761698,), (1397761699,), (1397761700,), (1397761702,), (1397761708,), (1397761709,), (1397761710,), (1397761711,), (1397761724,), (1397761725,), (1397761726,), (1397761727,), (1397761729,), (1397761731,), (1397761748,), (1397761768,), (1397761773,), (1397761774,), (1397761776,), (1397761793,), (1397761794,), (1397761795,), (1397761802,), (1397761804,), (1397761806,), (1397761809,), (1397761812,), (1397761815,), (1397761827,), (1397761828,), (1397761829,), (1397761830,), (1397761869,), (1397761870,), (1397761871,), (1397761872,), (1397761885,), (1397761886,), (1397761894,), (1397761904,), (1397761906,), (1397768205,), (1397768742,), (1397768743,), (1397768744,), (1397768746,), (1397768748,), (1397768753,), (1397768773,), (1397768780,), (1397768781,), (1397768782,), (1397768783,), (1397768794,), (1397768795,), (1397768796,), (1397768797,), (1397768814,), (1397768815,), (1397768816,), (1397768818,), (1397768820,), (1397768831,), (1397768842,), (1397768857,), (1397768872,), (1397768873,), (1397768877,), (1397768894,), (1397768896,), (1397768899,), (1397768903,), (1397768906,), (1397768954,), (1397768967,), (1397768978,), (1397768979,), (1397768982,), (1397768985,), (1397768997,), (1397768998,), (1397768999,), (1397769000,), (1397769002,), (1397769024,), (1397769025,), (1397769026,), (1397769027,), (1397769049,), (1397769050,), (1397769051,), (1397769052,), (1397769054,), (1397769061,), (1397769062,), (1397769064,), (1397769065,), (1397769096,), (1397769089,), (1397769090,), (1397769091,), (1397769092,), (1397769094,), (1397769101,), (1397769102,), (1397769103,), (1397769104,), (1397769106,), (1397769145,), (1397769147,), (1397769148,), (1397769162,), (1397769186,), (1397769217,), (1397769255,), (1397769292,), (1397769328,), (1397769562,), (1397769677,), (1397769709,), (1397769747,), (1397769790,), (1397769823,), (1397769830,), (1397769853,), (1397769885,), (1397770066,), (1397770096,), (1397770097,), (1397770098,), (1397770120,), (1397770161,), (1397770164,), (1397770166,), (1397770180,), (1397770184,), (1397770245,), (1397770250,), (1397770251,), (1397770297,), (1397770299,), (1397770301,), (1397770303,), (1397770305,), (1397770307,), (1397770324,), (1397770325,), (1397770331,), (1397770332,), (1397770365,), (1397770366,), (1397770381,), (1397770411,), (1397770419,), (1397770421,), (1397770426,), (1397770876,), (1397770867,), (1397770869,), (1397770871,), (1397770873,), (1397771055,), (1397771061,), (1397771063,), (1397771087,), (1397771088,), (1397771089,), (1397771090,), (1397771104,), (1397771105,), (1397771106,), (1397771107,), (1397771137,), (1397771147,), (1397771148,), (1397771149,), (1397771151,), (1397771161,), (1397771162,), (1397771163,), (1397771171,), (1397771172,), (1397771173,), (1397771174,), (1397771193,), (1397771194,), (1397771195,), (1397771196,), (1397771199,), (1397771203,), (1397771404,), (1397771440,), (1397771474,), (1397771511,), (1397771547,), (1397771586,), (1397771738,), (1397771780,), (1397771823,), (1397771858,), (1397771890,), (1397771928,), (1397772042,), (1397772043,), (1397772076,), (1397772077,), (1397772215,), (1397772216,), (1397772217,), (1397772407,), (1397772438,), (1397772499,), (1397773283,), (1397773323,), (1397773358,), (1397773400,), (1397773463,), (1397773797,), (1397773798,), (1397773824,), (1397773854,), (1397774486,), (1397774536,), (1397774598,), (1397774632,), (1397774669,), (1397775021,), (1397775018,), (1397775019,), (1397775020,), (1397775207,), (1397775209,), (1397775211,), (1397775246,), (1397775299,), (1397775300,), (1397775301,), (1397775303,), (1397775305,), (1397775307,), (1397775311,), (1397775312,), (1397775314,), (1397775316,), (1397775323,), (1397775325,), (1397775328,), (1397775329,), (1397775330,), (1397775331,), (1397775332,), (1397775333,), (1397775335,), (1397775337,), (1397775339,), (1397775353,), (1397775355,), (1397775357,), (1397775362,), (1397775415,), (1397775422,), (1397775423,), (1397775424,), (1397775436,), (1397775437,), (1397775438,), (1397775439,), (1397775441,), (1397775447,), (1397775448,), (1397775449,), (1397775450,), (1397775452,), (1397775463,), (1397775464,), (1397775478,), (1397775479,), (1397775483,), (1397775484,), (1397775486,), (1397775488,), (1397775544,), (1397775546,), (1397775547,), (1397775549,), (1397775551,), (1397775553,), (1397775588,), (1397775593,), (1397775594,), (1397775596,), (1397775598,), (1397775600,), (1397775609,), (1397775614,), (1397775617,), (1397775619,), (1397775621,), (1397775622,), (1397775625,), (1397775627,), (1397775629,), (1397775631,), (1397775633,), (1397775653,), (1397775654,), (1397775655,), (1397775656,), (1397775664,), (1397775665,), (1397775666,), (1397775667,), (1397775683,), (1397775684,), (1397775685,), (1397775686,), (1397775688,), (1397775690,), (1397775702,), (1397775703,), (1397775709,), (1397775710,), (1397775711,), (1397775713,), (1397775732,), (1397775737,), (1397775738,), (1397775739,), (1397775755,), (1397775781,), (1397775782,), (1397775783,), (1397775785,), (1397775787,), (1397775788,), (1397775792,), (1397775793,), (1397775794,), (1397775796,), (1397775798,), (1397775800,), (1397775810,), (1397775811,), (1397775812,), (1397775818,), (1397775821,), (1397775822,), (1397775826,), (1397775827,), (1397775829,), (1397775831,), (1397775833,), (1397775835,), (1397775837,), (1397775838,), (1397775841,), (1397775842,), (1397775844,), (1397775845,), (1397775846,), (1397775847,), (1397775848,), (1397775850,), (1397775852,), (1397775854,), (1397775874,), (1397775875,), (1397775876,), (1397775877,), (1397775884,), (1397775885,), (1397775886,), (1397775887,), (1397775889,), (1397775891,), (1397775933,), (1397775934,), (1397775935,), (1397775942,), (1397775952,), (1397775956,), (1397775983,), (1397776009,), (1397776011,), (1397776044,), (1397776039,), (1397776040,), (1397776041,), (1397776042,), (1397776050,), (1397776051,), (1397776052,), (1397776053,), (1397776073,), (1397776074,), (1397776075,), (1397776077,), (1397776079,), (1397776081,), (1397776086,), (1397776087,), (1397776089,), (1397776091,), (1397776093,), (1397776095,), (1397776109,), (1397776110,), (1397776111,), (1397776115,), (1397776126,), (1397776129,), (1397776130,), (1397776132,), (1397776134,), (1397776136,), (1397776138,), (1397776139,), (1397776140,), (1397776141,), (1397776157,), (1397776162,), (1397776163,), (1397776164,), (1397776166,), (1397776168,), (1397776185,), (1397776193,), (1397776195,), (1397776260,), (1397776268,), (1397776270,), (1397776273,), (1397776276,), (1397776279,), (1397776283,), (1397776284,), (1397776285,), (1397776286,), (1397776310,), (1397776320,), (1397776324,), (1397776325,), (1397776327,), (1397776332,), (1397776333,), (1397776334,), (1397776335,), (1397776337,), (1397776339,), (1397776357,), (1397776358,), (1397776359,), (1397776361,), (1397776363,), (1397776365,), (1397776381,), (1397776383,), (1397776393,), (1397776399,), (1397776401,), (1397776403,), (1397776412,), (1397776435,), (1397776437,), (1397776439,), (1397776441,), (1397776443,), (1397776686,), (1397776724,), (1397776761,), (1397776878,), (1397776913,), (1397776571,), (1397776605,), (1397776649,), (1397777044,), (1397777077,), (1397777118,), (1397777149,), (1397777184,), (1397777221,), (1397777489,), (1397777521,), (1397777554,), (1397777938,), (1397777969,), (1397778001,), (1397778032,), (1397778714,), (1397778777,), (1397778847,), (1397778900,), (1397779081,), (1397779116,), (1397779179,), (1397779219,), (1397779260,), (1397779294,), (1397779467,), (1397779470,), (1397779471,), (1397779472,), (1397779474,), (1397779506,), (1397779507,), (1397779508,), (1397779510,), (1397779512,), (1397779514,), (1397779522,), (1397779525,), (1397779528,), (1397779531,), (1397779538,), (1397779547,), (1397779554,), (1397779555,), (1397779556,), (1397779557,), (1397779558,), (1397779559,), (1397779563,), (1397779564,), (1397779566,), (1397779568,), (1397779569,), (1397779570,), (1397779571,), (1397779572,), (1397779573,), (1397779574,), (1397779588,), (1397779589,), (1397779590,), (1397779591,), (1397779593,), (1397779606,), (1397779607,), (1397779608,), (1397779609,), (1397779611,), (1397779613,), (1397779622,), (1397779623,), (1397779624,), (1397779627,), (1397779641,), (1397779652,), (1397779653,), (1397779655,), (1397779682,), (1397779679,), (1397779680,), (1397779681,), (1397779702,), (1397779710,), (1397779712,), (1397779715,), (1397779718,), (1397779727,), (1397779729,), (1397779731,), (1397779734,), (1397779737,), (1397779740,), (1397779745,), (1397779747,), (1397779750,), (1397779756,), (1397779759,), (1397779761,), (1397779762,), (1397779763,), (1397779764,), (1397779765,), (1397779766,), (1397779768,), (1397779770,), (1397779771,), (1397779784,), (1397779785,), (1397779786,), (1397779787,), (1397779789,), (1397779790,), (1397779800,), (1397779810,), (1397779811,), (1397779813,), (1397779819,), (1397779820,), (1397779821,), (1397779822,), (1397779824,), (1397779846,), (1397779847,), (1397779860,), (1397779861,), (1397779864,), (1397779915,), (1397779920,), (1397779921,), (1397779929,), (1397779930,), (1397779931,), (1397779932,), (1397779934,), (1397779947,), (1397779948,), (1397779961,), (1397779962,), (1397779963,), (1397779979,), (1397779980,), (1397779981,), (1397779982,), (1397780041,), (1397780042,), (1397780043,), (1397780044,), (1397780047,), (1397780049,), (1397780057,), (1397780055,), (1397780056,), (1397780064,), (1397780065,), (1397780066,), (1397780067,), (1397780080,), (1397780082,), (1397780084,), (1397780087,), (1397780090,), (1397780100,), (1397780101,), (1397780102,), (1397780103,), (1397780105,), (1397780111,), (1397780112,), (1397780113,), (1397780142,), (1397780143,), (1397780144,), (1397780145,), (1397780152,), (1397780162,), (1397780164,), (1397780166,), (1397780173,), (1397780214,), (1397780215,), (1397780216,), (1397780218,), (1397780220,), (1397780222,), (1397780229,), (1397780230,), (1397780232,), (1397780234,), (1397780237,), (1397780239,), (1397780242,), (1397780243,), (1397780249,), (1397780253,), (1397780254,), (1397780256,), (1397780258,), (1397780260,), (1397780262,), (1397780278,), (1397780279,), (1397780280,), (1397780315,), (1397780316,), (1397780317,), (1397780323,), (1397780324,), (1397780325,), (1397780389,), (1397780396,), (1397780397,), (1397780398,), (1397780400,), (1397780407,), (1397780408,), (1397780409,), (1397780410,), (1397780425,), (1397780418,), (1397780419,), (1397780420,), (1397780421,), (1397780423,), (1397780448,), (1397780449,), (1397780450,), (1397780507,), (1397780508,), (1397780509,), (1397780510,), (1397780517,), (1397780518,), (1397780519,), (1397780529,), (1397780530,), (1397780531,), (1397780532,), (1397780534,), (1397780541,), (1397780542,), (1397780543,), (1397780544,), (1397780546,), (1397780558,), (1397780559,), (1397780566,), (1397780568,), (1397780570,), (1397780573,), (1397780576,), (1397780680,), (1397780681,), (1397780682,), (1397780683,), (1397780690,), (1397780691,), (1397780692,), (1397780693,), (1397780695,), (1397780704,), (1397780707,), (1397780709,), (1397780711,), (1397780713,), (1397780715,), (1397781060,), (1397781093,), (1397781106,), (1397781109,), (1397781111,), (1397781113,), (1397781174,), (1397781212,), (1397781244,), (1397781250,), (1397781251,), (1397781281,), (1397781347,), (1397781382,), (1397781415,), (1397781561,), (1397781598,), (1397781651,), (1397781321,), (1397781322,), (1397781323,), (1397781767,), (1397781800,), (1397781830,), (1397782180,), (1397782205,), (1397782207,), (1397782210,), (1397782213,), (1397782275,), (1397782339,), (1397783075,), (1397783113,), (1397783172,), (1397783226,), (1397783264,), (1397783611,), (1397783654,), (1397783686,), (1397783695,), (1397783697,), (1397783734,), (1397783772,), (1397783807,), (1397783839,), (1397784013,), (1397784014,), (1397784015,), (1397784017,), (1397784030,), (1397784054,), (1397784060,), (1397784061,), (1397784063,), (1397784065,), (1397784067,), (1397784069,), (1397784075,), (1397784076,), (1397784091,), (1397784092,), (1397785806,), (1397785773,), (1397786282,), (1397786316,), (1397786742,), (1397786906,), (1397786941,), (1397786964,), (1397787055,), (1397787061,), (1397787062,), (1397787063,), (1397787064,), (1397787078,), (1397787079,), (1397787080,), (1397787082,), (1397787084,), (1397787086,), (1397787091,), (1397787093,), (1397787094,), (1397787096,), (1397787099,), (1397787101,), (1397787104,), (1397787105,), (1397787106,), (1397787107,), (1397787108,), (1397787109,), (1397787113,), (1397787115,), (1397787117,), (1397787119,), (1397787120,), (1397787121,), (1397787122,), (1397787123,), (1397787125,), (1397787127,), (1397787129,), (1397787135,), (1397787143,), (1397787144,), (1397787146,), (1397787148,), (1397787154,), (1397787155,), (1397787156,), (1397787157,), (1397787158,), (1397787185,), (1397787186,), (1397787187,), (1397787188,), (1397787190,), (1397787196,), (1397787197,), (1397787198,), (1397787199,), (1397787201,), (1397787222,), (1397787215,), (1397787216,), (1397787217,), (1397787218,), (1397787220,), (1397787227,), (1397787228,), (1397787229,), (1397787230,), (1397787250,), (1397787251,), (1397787252,), (1397787254,), (1397787256,), (1397787258,), (1397787263,), (1397787265,), (1397787268,), (1397787273,), (1397787276,), (1397787279,), (1397787282,), (1397787283,), (1397787284,), (1397787285,), (1397787286,), (1397787287,), (1397787291,), (1397787292,), (1397787294,), (1397787296,), (1397787298,), (1397787299,), (1397787300,), (1397787301,), (1397787302,), (1397787303,), (1397787305,), (1397787307,), (1397787332,), (1397787333,), (1397787334,), (1397787335,), (1397787337,), (1397787338,), (1397787347,), (1397787349,), (1397787354,), (1397787355,), (1397787421,), (1397787427,), (1397787430,), (1397787433,), (1397787437,), (1397787439,), (1397787446,), (1397787447,), (1397787448,), (1397787449,), (1397787467,), (1397787468,), (1397787469,), (1397787470,), (1397787472,), (1397787474,), (1397787478,), (1397787479,), (1397787480,), (1397787481,), (1397787511,), (1397787512,), (1397787513,), (1397787515,), (1397787517,), (1397787519,), (1397787523,), (1397787524,), (1397787526,), (1397787528,), (1397787530,), (1397787532,), (1397787543,), (1397787546,), (1397787547,), (1397787548,), (1397787550,), (1397787551,), (1397787555,), (1397787556,), (1397787558,), (1397787560,), (1397787562,), (1397787569,), (1397787600,), (1397787602,), (1397787604,), (1397787594,), (1397787595,), (1397787626,), (1397787627,), (1397787628,), (1397787629,), (1397787631,), (1397787637,), (1397787638,), (1397787639,), (1397787640,), (1397787642,), (1397787644,), (1397787662,), (1397787670,), (1397787681,), (1397787682,), (1397787689,), (1397787691,), (1397787693,), (1397787696,), (1397787699,), (1397787702,), (1397787709,), (1397787717,), (1397787718,), (1397787719,), (1397787726,), (1397787727,), (1397787728,), (1397787729,), (1397787731,), (1397787733,), (1397787747,), (1397787748,), (1397787749,), (1397787750,), (1397787752,), (1397787758,), (1397787759,), (1397787760,), (1397787761,), (1397787782,), (1397787786,), (1397787787,), (1397787788,), (1397787790,), (1397787792,), (1397787797,), (1397787798,), (1397787799,), (1397787800,), (1397787824,), (1397787832,), (1397787835,), (1397787836,), (1397787838,), (1397787840,), (1397787844,), (1397787845,), (1397787846,), (1397787847,), (1397787849,), (1397787873,), (1397787874,), (1397787875,), (1397787876,), (1397787878,), (1397787880,), (1397787885,), (1397787887,), (1397787888,), (1397787889,), (1397787914,), (1397787909,), (1397787910,), (1397787911,), (1397787912,), (1397787920,), (1397787921,), (1397787922,), (1397787923,), (1397787947,), (1397787954,), (1397787955,), (1397787963,), (1397787964,), (1397787965,), (1397787966,), (1397787968,), (1397787974,), (1397787975,), (1397787976,), (1397787977,), (1397787997,), (1397788003,), (1397788004,), (1397788005,), (1397788007,), (1397788012,), (1397788014,), (1397788017,), (1397788019,), (1397788022,), (1397788033,), (1397788034,), (1397788035,), (1397788036,), (1397788038,), (1397788040,), (1397788044,), (1397788045,), (1397788046,), (1397788047,), (1397788058,), (1397788059,), (1397788060,), (1397788061,), (1397788063,), (1397788069,), (1397788070,), (1397788071,), (1397788072,), (1397788090,), (1397788091,), (1397788092,), (1397788093,), (1397788095,), (1397788318,), (1397788354,), (1397788387,), (1397788422,), (1397788457,), (1397788491,), (1397788639,), (1397788671,), (1397788705,), (1397788731,), (1397788747,), (1397788734,), (1397788736,), (1397788738,), (1397788740,), (1397789081,), (1397789158,), (1397789193,), (1397789226,), (1397789278,), (1397789329,), (1397789669,), (1397789703,), (1397789737,), (1397789870,), (1397789902,), (1397789924,), (1397789928,), (1397789930,), (1397789954,), (1397790002,), (1397790003,), (1397790004,), (1397790022,), (1397790023,), (1397790024,), (1397790025,), (1397790027,), (1397790029,), (1397790035,), (1397790036,), (1397790037,), (1397790038,), (1397790040,), (1397790042,), (1397790057,), (1397790058,), (1397790059,), (1397790060,), (1397790067,), (1397790068,), (1397790069,), (1397790070,), (1397790072,), (1397790074,), (1397790087,), (1397790096,), (1397790101,), (1397790102,), (1397790108,), (1397790109,), (1397790110,), (1397790112,), (1397790114,), (1397790116,), (1397790130,), (1397790131,), (1397790132,), (1397790133,), (1397790135,), (1397790137,), (1397790142,), (1397790143,), (1397790144,), (1397790145,), (1397790153,), (1397790154,), (1397790155,), (1397790156,), (1397790158,), (1397790160,), (1397790172,), (1397790174,), (1397790175,), (1397790176,), (1397790210,), (1397790194,), (1397790203,), (1397790205,), (1397790206,), (1397790208,), (1397790215,), (1397790216,), (1397790217,), (1397790218,), (1397790219,), (1397790236,), (1397790237,), (1397790238,), (1397790239,), (1397790241,), (1397790243,), (1397790251,), (1397790253,), (1397790256,), (1397790259,), (1397790262,), (1397790265,), (1397790277,), (1397790278,), (1397790279,), (1397790280,), (1397790283,), (1397790285,), (1397790288,), (1397790291,), (1397790294,), (1397790297,), (1397790298,), (1397790299,), (1397790337,), (1397790339,), (1397790346,), (1397790355,), (1397790357,), (1397790359,), (1397790371,), (1397790374,), (1397790375,), (1397790376,), (1397790402,), (1397790403,), (1397790404,), (1397790405,), (1397790407,), (1397790413,), (1397790414,), (1397790415,), (1397790416,), (1397790418,), (1397790420,), (1397790436,), (1397790440,), (1397790441,), (1397790442,), (1397790456,), (1397790457,), (1397790458,), (1397790459,), (1397790460,), (1397790461,), (1397790479,), (1397790484,), (1397790485,), (1397790486,), (1397790500,), (1397790494,), (1397790495,), (1397790496,), (1397790497,), (1397790499,), (1397790523,), (1397790524,), (1397790525,), (1397790526,), (1397790536,), (1397790542,), (1397790543,), (1397790544,), (1397790546,), (1397790548,), (1397790561,), (1397790564,), (1397790565,), (1397790566,), (1397790575,), (1397790576,), (1397790577,), (1397790578,), (1397790580,), (1397790594,), (1397790595,), (1397790596,), (1397790597,), (1397790599,), (1397790601,), (1397790612,), (1397790614,), (1397790616,), (1397790619,), (1397790641,), (1397790646,), (1397790647,), (1397790648,), (1397790650,), (1397790652,), (1397790657,), (1397790658,), (1397790659,), (1397790661,), (1397790663,), (1397790665,), (1397790677,), (1397790678,), (1397790679,), (1397790682,), (1397790689,), (1397790690,), (1397790691,), (1397790693,), (1397790695,), (1397790697,), (1397790706,), (1397790707,), (1397790708,), (1397790709,), (1397790711,), (1397790744,), (1397790745,), (1397790746,), (1397790747,), (1397790749,), (1397790751,), (1397790758,), (1397790759,), (1397790760,), (1397790761,), (1397790763,), (1397790765,), (1397790770,), (1397790771,), (1397790772,), (1397790787,), (1397790788,), (1397790790,), (1397790791,), (1397790793,), (1397790821,), (1397790816,), (1397790817,), (1397790818,), (1397790819,), (1397790827,), (1397790829,), (1397790831,), (1397790834,), (1397790841,), (1397790844,), (1397790848,), (1397790850,), (1397790858,), (1397790883,), (1397790884,), (1397790885,), (1397790886,), (1397790887,), (1397790889,), (1397790905,), (1397790907,), (1397790909,), (1397790911,), (1397790913,), (1397790916,), (1397790917,), (1397790919,), (1397790921,), (1397790923,), (1397790927,), (1397790928,), (1397790929,), (1397790930,), (1397790931,), (1397790932,), (1397790933,), (1397790934,), (1397790935,), (1397790936,), (1397790937,), (1397790938,), (1397790942,), (1397790943,), (1397790945,), (1397790981,), (1397790982,), (1397790983,), (1397790984,), (1397790986,), (1397790988,), (1397791000,), (1397791001,), (1397791002,), (1397791003,), (1397791005,), (1397791026,), (1397791027,), (1397791028,), (1397791029,), (1397791031,), (1397791037,), (1397791038,), (1397791039,), (1397791040,), (1397791047,), (1397791048,), (1397791049,), (1397791050,), (1397791282,), (1397791316,), (1397791483,), (1397791478,), (1397791927,), (1397791959,), (1397791992,), (1397792408,), (1397792441,), (1397792552,), (1397792585,), (1397792617,), (1397792650,), (1397792856,), (1397792857,), (1397792858,), (1397792859,), (1397792861,), (1397792862,), (1397792868,), (1397792869,), (1397792870,), (1397792871,), (1397792873,), (1397792882,), (1397792883,), (1397792884,), (1397792885,), (1397792944,), (1397792945,), (1397792946,), (1397793314,), (1397793315,), (1397793480,), (1397793479,), (1397793502,), (1397793509,), (1397793533,), (1397793534,), (1397793535,), (1397793536,), (1397793538,), (1397793540,), (1397793545,), (1397793546,), (1397793547,), (1397793548,), (1397793550,), (1397793564,), (1397793565,), (1397793572,), (1397793574,), (1397793659,), (1397793658,), (1397793666,), (1397793667,), (1397793668,), (1397793669,), (1397793686,), (1397793711,), (1397793776,), (1397793774,), (1397793775,), (1397793783,), (1397793784,), (1397793785,), (1397793786,), (1397793793,), (1397793794,), (1397793795,), (1397793796,), (1397793810,), (1397793811,), (1397793812,), (1397793813,), (1397793815,), (1397793817,), (1397793822,), (1397793823,), (1397793824,), (1397793845,), (1397793846,), (1397793847,), (1397793848,), (1397793850,), (1397793851,), (1397793857,), (1397793858,), (1397793859,), (1397793860,), (1397793861,), (1397793863,), (1397793882,), (1397793890,), (1397793891,), (1397793892,), (1397793899,), (1397793900,), (1397793901,), (1397793902,), (1397793904,), (1397793919,), (1397793920,), (1397793921,), (1397793922,), (1397793924,), (1397793930,), (1397793931,), (1397793932,), (1397793934,), (1397793955,), (1397793956,), (1397793957,), (1397793958,), (1397793960,), (1397793962,), (1397793976,), (1397793979,), (1397793981,), (1397793983,), (1397793985,), (1397793987,), (1397793991,), (1397793992,), (1397793993,), (1397793994,), (1397793995,), (1397794006,), (1397794007,), (1397794009,), (1397794011,), (1397794013,), (1397794015,), (1397793998,), (1397794000,), (1397794002,), (1397794004,), (1397794029,), (1397794030,), (1397794032,), (1397794034,), (1397794164,), (1397794194,), (1397794231,), (1397794260,), (1397794291,), (1397794329,), (1397794756,), (1397794825,), (1397794884,), (1397794946,), (1397795008,), (1397795501,), (1397795502,), (1397795503,), (1397795504,), (1397795778,), (1397795809,), (1397795861,), (1397795905,), (1397795938,), (1397796126,), (1397796157,), (1397796189,), (1397796228,), (1397796544,), (1397796577,), (1397796607,), (1397796642,), (1397796675,), (1397796987,), (1397796988,), (1397797009,), (1397797010,), (1397797011,), (1397797012,), (1397797072,), (1397797105,), (1397797140,), (1397797225,), (1397797280,), (1397797330,), (1397797363,), (1397797424,), (1397797460,), (1397797466,), (1397797468,), (1397797470,), (1397797597,), (1397797631,), (1397797662,), (1397797697,), (1397797729,), (1397797762,), (1397798077,), (1397798111,), (1397798150,), (1397798179,), (1397798547,), (1397798548,), (1397798549,), (1397798559,), (1397798569,), (1397798576,), (1397798748,), (1397798749,), (1397798777,), (1397798799,), (1397798802,), (1397798870,), (1397798865,), (1397798866,), (1397798867,), (1397798868,), (1397798876,), (1397798877,), (1397798878,), (1397798879,), (1397798881,), (1397798925,), (1397798926,), (1397798927,), (1397798928,), (1397798936,), (1397798940,), (1397798973,), (1397799005,), (1397799040,), (1397799075,), (1397799216,), (1397799217,), (1397799228,), (1397799252,), (1397799329,), (1397799331,), (1397799333,), (1397799336,), (1397799339,), (1397799342,), (1397799350,), (1397799351,), (1397799352,), (1397799353,), (1397799355,), (1397799361,), (1397799362,), (1397799363,), (1397799364,), (1397799378,), (1397799379,), (1397799380,), (1397799381,), (1397799383,), (1397799385,), (1397799390,), (1397799391,), (1397799392,), (1397799394,), (1397799396,), (1397799408,), (1397799409,), (1397799410,), (1397799411,), (1397799413,), (1397799415,), (1397799431,), (1397799437,), (1397799438,), (1397799453,), (1397799454,), (1397799455,), (1397799456,), (1397799458,), (1397799459,), (1397799465,), (1397799466,), (1397799467,), (1397799469,), (1397799471,), (1397799473,), (1397799479,), (1397799480,), (1397799481,), (1397799489,), (1397799491,), (1397799493,), (1397799495,), (1397799497,), (1397799499,), (1397799501,), (1397799504,), (1397799522,), (1397799515,), (1397799516,), (1397799517,), (1397799518,), (1397799520,), (1397799554,), (1397799555,), (1397799556,), (1397799557,), (1397799564,), (1397799565,), (1397799566,), (1397799567,), (1397799569,), (1397799589,), (1397799590,), (1397799591,), (1397799592,), (1397799594,), (1397799596,), (1397799619,), (1397799620,), (1397799623,), (1397799628,), (1397800762,), (1397800843,), (1397800845,), (1397801109,), (1397801078,), (1397801084,), (1397801085,), (1397801086,), (1397801089,), (1397801252,), (1397801258,), (1397801287,), (1397801288,), (1397801332,), (1397801341,), (1397801342,), (1397801364,), (1397801396,), (1397801680,), (1397801713,), (1397801743,), (1397801778,), (1397801795,), (1397801798,), (1397801814,), (1397801815,), (1397801816,), (1397801817,), (1397801824,), (1397801828,), (1397801829,), (1397801831,), (1397801833,), (1397801836,), (1397801837,), (1397801838,), (1397801839,), (1397801841,), (1397801843,), (1397801865,), (1397801878,), (1397801882,), (1397801886,), (1397801890,), (1397801894,), (1397801898,), (1397801902,), (1397801906,), (1397802030,), (1397802044,), (1397802052,), (1397802058,), (1397802067,), (1397802078,), (1397802104,), (1397802105,), (1397802106,), (1397802107,), (1397802138,), (1397802139,), (1397802140,), (1397802141,), (1397802144,), (1397802145,), (1397802162,), (1397802163,), (1397802165,), (1397802167,), (1397802191,), (1397802194,), (1397802197,), (1397802200,), (1397802344,), (1397802356,), (1397802360,), (1397802381,), (1397803372,), (1397803389,), (1397803390,), (1397803392,), (1397803394,), (1397803396,), (1397803413,), (1397803415,), (1397803417,), (1397803439,), (1397803440,), (1397803441,), (1397803442,), (1397803469,), (1397803470,), (1397803472,), (1397803474,), (1397803477,), (1397803480,), (1397803519,), (1397803520,), (1397803521,), (1397803522,), (1397803542,), (1397803544,), (1397803546,), (1397803548,), (1397803551,), (1397803554,), (1397803583,), (1397803591,), (1397803596,), (1397803602,), (1397803661,), (1397803689,), (1397803691,), (1397803693,), (1397803695,), (1397803728,), (1397803735,), (1397803766,), (1397803767,), (1397803768,), (1397803769,), (1397803874,), (1397803875,), (1397803877,), (1397803899,), (1397803900,), (1397803941,), (1397803943,), (1397803945,), (1397803947,), (1397803998,), (1397804000,), (1397804002,), (1397804003,), (1397804005,), (1397804232,), (1397804195,), (1397804226,), (1397804228,), (1397804229,), (1397804329,), (1397804339,), (1397804370,), (1397804393,), (1397804396,), (1397804417,), (1397804419,), (1397804421,), (1397804423,), (1397804545,), (1397804578,), (1397804610,), (1397804641,), (1397804674,), (1397804711,), (1397804781,), (1397804782,), (1397804783,), (1397804784,), (1397804786,), (1397804788,), (1397804805,), (1397804806,), (1397804808,), (1397804846,), (1397804848,), (1397804850,), (1397804852,), (1397804854,), (1397804878,), (1397804880,), (1397804881,), (1397804918,), (1397804919,), (1397804920,), (1397804921,), (1397804923,), (1397804926,), (1397804943,), (1397804945,), (1397804947,), (1397804949,), (1397804952,), (1397804974,), (1397804977,), (1397804981,), (1397804982,), (1397804984,), (1397805051,), (1397805053,), (1397805055,), (1397805057,), (1397805060,), (1397805083,), (1397805084,), (1397805085,), (1397805086,), (1397805089,), (1397805114,), (1397805115,), (1397805119,), (1397805124,), (1397805128,), (1397805131,), (1397805265,), (1397805296,), (1397805327,), (1397805361,), (1397805649,), (1397805500,), (1397805542,), (1397805576,), (1397805613,), (1397805766,), (1397805769,), (1397805796,), (1397805860,), (1397806447,), (1397806480,), (1397806515,), (1397806550,), (1397806859,), (1397806860,), (1397806875,), (1397806907,), (1397806940,), (1397806972,), (1397807401,), (1397807464,), (1397807525,), (1397807592,), (1397807838,), (1397807861,), (1397807896,), (1397807939,), (1397807984,), (1397808037,), (1397808239,), (1397808246,), (1397808269,), (1397808276,), (1397808434,), (1397808466,), (1397808503,), (1397808539,), (1397808571,), (1397808620,), (1397809294,), (1397809330,), (1397809363,), (1397809378,), (1397809382,), (1397809387,), (1397809400,), (1397809402,), (1397809404,), (1397809405,), (1397809472,), (1397809529,), (1397809567,), (1397809601,), (1397809638,), (1397809928,), (1397810032,), (1397810131,), (1397810224,), (1397810300,), (1397810731,), (1397810733,), (1397810736,), (1397810739,), (1397810968,), (1397810972,), (1397811010,), (1397811018,), (1397811022,), (1397811244,), (1397811277,), (1397811321,), (1397811366,), (1397811406,), (1397811812,), (1397811846,), (1397811875,), (1397811878,), (1397811884,), (1397812085,), (1397812026,), (1397812059,), (1397812080,), (1397812082,), (1397812249,), (1397812252,), (1397812255,), (1397812259,), (1397812264,), (1397812371,), (1397812373,), (1397812377,), (1397812382,), (1397812386,), (1397812412,), (1397812413,), (1397812416,), (1397812420,), (1397812425,), (1397812430,), (1397812453,), (1397812460,), (1397812471,), (1397812474,), (1397812507,), (1397812847,), (1397812848,), (1397812851,), (1397812854,), (1397812858,), (1397812881,), (1397812888,), (1397812894,), (1397812897,), (1397812901,), (1397812927,), (1397812934,), (1397812958,), (1397812960,), (1397813879,), (1397813881,), (1397813884,), (1397813909,), (1397813911,), (1397813912,), (1397813913,), (1397814196,), (1397814198,), (1397814215,), (1397814232,), (1397814250,), (1397814286,), (1397814282,), (1397814284,), (1397814315,), (1397814317,), (1397814318,), (1397814342,), (1397814369,), (1397814371,), (1397815955,), (1397843501,), (1397845876,), (1397846719,), (1397846757,), (1397846771,), (1397846960,), (1397846998,), (1397847034,), (1397847069,), (1397847265,), (1397847272,), (1397847361,), (1397847363,), (1397847365,), (1397847367,), (1397848016,), (1397848105,), (1397848106,), (1397848149,), (1397848205,), (1397848303,), (1397848621,), (1397848624,), (1397848627,), (1397848629,), (1397848660,), (1397848663,), (1397848666,), (1397848668,), (1397848671,), (1397848673,), (1397848698,), (1397848700,), (1397848701,), (1397848707,), (1397848739,), (1397848843,), (1397848859,), (1397848862,), (1397848893,), (1397848955,), (1397849201,), (1397849203,), (1397849205,), (1397849207,), (1397849210,), (1397849213,), (1397849230,), (1397849232,), (1397849233,), (1397849234,), (1397849237,), (1397849264,), (1397849261,), (1397849262,), (1397849289,), (1397849297,), (1397849381,), (1397849417,), (1397849577,), (1397849609,), (1397849642,), (1397849675,), (1397849813,), (1397850273,), (1397850274,), (1397850276,), (1397850295,), (1397850297,), (1397850299,), (1397850330,), (1397850332,), (1397850335,), (1397850337,), (1397850367,), (1397850354,), (1397850361,), (1397850363,), (1397850390,), (1397850391,), (1397850392,), (1397850393,), (1397850396,), (1397850399,), (1397850415,), (1397850417,), (1397850419,), (1397850421,), (1397850424,), (1397850438,), (1397850440,), (1397850442,), (1397850491,), (1397850492,), (1397850493,), (1397850494,), (1397850497,), (1397850521,), (1397850523,), (1397850525,), (1397850527,), (1397850530,), (1397850532,), (1397850556,), (1397850580,), (1397850582,), (1397850699,), (1397850700,), (1397850717,), (1397850723,), (1397850726,), (1397850729,), (1397850991,), (1397850994,), (1397850998,), (1397851002,), (1397851006,), (1397851010,), (1397851027,), (1397851032,), (1397851034,), (1397851036,), (1397851038,), (1397851040,), (1397851043,), (1397851047,), (1397851051,), (1397851056,), (1397851118,), (1397851150,), (1397851185,), (1397851226,), (1397851266,), (1397851490,), (1397851492,), (1397851493,), (1397851495,), (1397851503,), (1397851645,), (1397851646,), (1397851647,), (1397851648,), (1397851715,), (1397851718,), (1397851721,), (1397851723,), (1397851727,), (1397851891,), (1397851914,), (1397851919,), (1397851924,), (1397851936,), (1397852109,), (1397852041,), (1397852086,), (1397852197,), (1397852199,), (1397852200,), (1397852207,), (1397852214,), (1397852244,), (1397852266,), (1397852285,), (1397852286,), (1397852288,), (1397852290,), (1397852350,), (1397852352,), (1397852354,), (1397852356,), (1397852359,), (1397852362,), (1397852377,), (1397852379,), (1397852382,), (1397852383,), (1397852385,), (1397852386,), (1397852391,), (1397852392,), (1397852395,), (1397852399,), (1397852425,), (1397852426,), (1397852427,), (1397852428,), (1397852462,), (1397852463,), (1397852465,), (1397852467,), (1397852506,), (1397852507,), (1397852616,), (1397852618,), (1397852639,), (1397852670,), (1397852703,), (1397852850,), (1397852868,), (1397852878,), (1397852879,), (1397852974,), (1397852976,), (1397852978,), (1397852980,), (1397853048,), (1397853071,), (1397853076,), (1397853086,), (1397853109,), (1397853178,), (1397853214,), (1397853347,), (1397855848,), (1397855813,), (1397856226,), (1397856237,), (1397856238,), (1397856267,), (1397856273,), (1397856301,), (1397856304,), (1397856306,), (1397856311,), (1397856399,), (1397856436,), (1397856437,), (1397856439,), (1397856441,), (1397856443,), (1397856462,), (1397856463,), (1397856465,), (1397856468,), (1397856471,), (1397856474,), (1397856494,), (1397856697,), (1397856692,), (1397856693,), (1397856694,), (1397856695,), (1397856715,), (1397856716,), (1397856717,), (1397856719,), (1397856745,), (1397856747,), (1397856751,), (1397856754,), (1397856778,), (1397856780,), (1397856781,), (1397856783,), (1397856786,), (1397856807,), (1397856809,), (1397856811,), (1397856813,), (1397856870,), (1397856871,), (1397856873,), (1397856875,), (1397856878,), (1397856881,), (1397856912,), (1397856913,), (1397856914,), (1397856915,), (1397856918,), (1397856938,), (1397856941,), (1397856943,), (1397856947,), (1397856964,), (1397856966,), (1397856968,), (1397856970,), (1397856973,), (1397856998,), (1397856999,), (1397857000,), (1397857001,), (1397857003,), (1397857041,), (1397857042,), (1397857044,), (1397857046,), (1397857048,), (1397857064,), (1397857066,), (1397857068,), (1397857070,), (1397857103,), (1397857104,), (1397857105,), (1397857154,), (1397857158,), (1397857160,), (1397857162,), (1397857165,), (1397857194,), (1397857195,), (1397857197,), (1397857198,), (1397857201,), (1397857238,), (1397857228,), (1397857230,), (1397857233,), (1397857235,), (1397857258,), (1397857260,), (1397857262,), (1397857264,), (1397857280,), (1397857282,), (1397857347,), (1397857419,), (1397857425,), (1397857429,), (1397857526,), (1397857527,), (1397857544,), (1397857618,), (1397857673,), (1397857676,), (1397857709,), (1397857780,), (1397857781,), (1397857784,), (1397857787,), (1397857790,), (1397857810,), (1397857812,), (1397857814,), (1397857816,), (1397857852,), (1397857895,), (1397857897,), (1397857899,), (1397857921,), (1397857922,), (1397857923,), (1397857924,), (1397857927,), (1397857931,), (1397857959,), (1397857961,), (1397857963,), (1397857965,), (1397857968,), (1397857971,), (1397857985,), (1397857987,), (1397857989,), (1397858036,), (1397858039,), (1397858040,), (1397858041,), (1397858043,), (1397858045,), (1397858063,), (1397858064,), (1397858066,), (1397858068,), (1397858071,), (1397858092,), (1397858094,), (1397858096,), (1397858259,), (1397858296,), (1397858332,), (1397858369,), (1397858407,), (1397858444,), (1397858836,), (1397858800,), (1397858832,), (1397859030,), (1397859041,), (1397859044,), (1397859279,), (1397859796,), (1397860267,), (1397860680,), (1397860682,), (1397860690,), (1397860724,), (1397860874,), (1397860876,), (1397860894,), (1397860900,), (1397860902,), (1397860904,), (1397860918,), (1397861080,), (1397861126,), (1397861149,), (1397861152,), (1397861156,), (1397861172,), (1397861173,), (1397861178,), (1397861265,), (1397861266,), (1397861290,), (1397861291,), (1397861293,), (1397861318,), (1397861319,), (1397861320,), (1397861321,), (1397861343,), (1397861345,), (1397861347,), (1397861349,), (1397861392,), (1397861380,), (1397861382,), (1397861384,), (1397861386,), (1397861389,), (1397861409,), (1397861410,), (1397861411,), (1397861412,), (1397861415,), (1397861418,), (1397861438,), (1397861440,), (1397861442,), (1397861444,), (1397861471,), (1397861473,), (1397861475,), (1397861476,), (1397861478,), (1397861484,), (1397861497,), (1397861517,), (1397861529,), (1397861542,), (1397861544,), (1397861546,), (1397861549,), (1397861552,), (1397861555,), (1397861733,), (1397861767,), (1397861799,), (1397861832,), (1397861921,), (1397861923,), (1397861925,), (1397861927,), (1397861948,), (1397861949,), (1397861950,), (1397861951,), (1397861981,), (1397862103,), (1397862104,), (1397862105,), (1397862106,), (1397862128,), (1397862131,), (1397862134,), (1397862138,), (1397862145,), (1397862150,), (1397862168,), (1397862171,), (1397862172,), (1397862174,), (1397862177,), (1397862215,), (1397862203,), (1397862205,), (1397862207,), (1397862209,), (1397862212,), (1397862240,), (1397862242,), (1397862244,), (1397862246,), (1397862268,), (1397862270,), (1397862271,), (1397862273,), (1397862276,), (1397862302,), (1397862303,), (1397862304,), (1397862305,), (1397862308,), (1397862311,), (1397862327,), (1397862329,), (1397862331,), (1397862342,), (1397862395,), (1397862397,), (1397862399,), (1397862416,), (1397862425,), (1397862431,), (1397862432,), (1397862434,), (1397862458,), (1397862507,), (1397862537,), (1397862567,), (1397862601,), (1397862740,), (1397862741,), (1397862742,), (1397862743,), (1397862745,), (1397862747,), (1397862767,), (1397862768,), (1397862770,), (1397862772,), (1397862775,), (1397862792,), (1397862795,), (1397862797,), (1397862798,), (1397862801,), (1397862804,), (1397862832,), (1397862834,), (1397862835,), (1397862837,), (1397862862,), (1397862864,), (1397862866,), (1397862868,), (1397862871,), (1397862874,), (1397862907,), (1397862911,), (1397862912,), (1397862913,), (1397862916,), (1397862918,), (1397862952,), (1397862959,), (1397862962,), (1397862965,), (1397863039,), (1397863036,), (1397863037,), (1397863038,), (1397863059,), (1397863061,), (1397863063,), (1397863065,), (1397863068,), (1397863086,), (1397863088,), (1397863089,), (1397863092,), (1397863113,), (1397863116,), (1397863119,), (1397863125,), (1397863133,), (1397863136,), (1397863141,), (1397863149,), (1397863151,), (1397863156,), (1397863159,), (1397863162,), (1397863165,), (1397863168,), (1397863171,), (1397863184,), (1397863186,), (1397863203,), (1397863204,), (1397863205,), (1397863206,), (1397863209,), (1397863212,), (1397863244,), (1397863256,), (1397863261,), (1397863264,), (1397863268,), (1397863271,), (1397863300,), (1397863302,), (1397863355,), (1397863356,), (1397863358,), (1397863360,), (1397863363,), (1397863366,), (1397863396,), (1397863399,), (1397863402,), (1397863405,), (1397863409,), (1397863442,), (1397863450,), (1397863451,), (1397863475,), (1397863480,), (1397863485,), (1397863499,), (1397863504,), (1397863508,), (1397863514,), (1397863515,), (1397863521,), (1397863524,), (1397863527,), (1397863546,), (1397863540,), (1397863543,), (1397863571,), (1397863579,), (1397863581,), (1397863583,), (1397863585,), (1397863587,), (1397863861,), (1397863896,), (1397863929,), (1397863961,), (1397863999,), (1397864037,), (1397864412,), (1397864450,), (1397864490,), (1397864527,), (1397864620,), (1397864622,), (1397864623,), (1397864624,), (1397864626,), (1397865137,), (1397865200,), (1397865265,), (1397865311,), (1397865351,), (1397865393,), (1397865847,), (1397865920,), (1397865954,), (1397866006,), (1397866087,), (1397866093,), (1397866095,), (1397866097,), (1397866100,), (1397866103,), (1397866710,), (1397866739,), (1397866769,), (1397866803,), (1397866842,), (1397866913,), (1397867119,), (1397867172,), (1397867212,), (1397867418,), (1397867452,), (1397867484,), (1397867542,), (1397867550,), (1397867551,), (1397867552,), (1397868058,), (1397868097,), (1397868129,), (1397868162,), (1397868204,), (1397868242,), (1397868741,), (1397868775,), (1397868832,), (1397869319,), (1397869356,), (1397869391,), (1397869422,), (1397869455,), (1397869488,), (1397869800,), (1397869802,), (1397869806,), (1397869809,), (1397870052,), (1397869890,), (1397869923,), (1397869961,), (1397869990,), (1397870023,), (1397870269,), (1397870304,), (1397870329,), (1397870330,), (1397870569,), (1397870581,), (1397870582,), (1397870589,), (1397870600,), (1397870607,), (1397870728,), (1397870752,), (1397870788,), (1397870823,), (1397870828,), (1397870832,), (1397870850,), (1397870852,), (1397870853,), (1397870854,), (1397870861,), (1397870865,), (1397870879,), (1397870887,), (1397870921,), (1397870923,), (1397870925,), (1397870927,), (1397870929,), (1397870932,), (1397870979,), (1397870980,), (1397870981,), (1397870982,), (1397871009,), (1397871010,), (1397871013,), (1397871017,), (1397871022,), (1397871027,), (1397871079,), (1397871083,), (1397871087,), (1397871089,), (1397871092,), (1397871124,), (1397871126,), (1397871128,), (1397871130,), (1397871133,), (1397871167,), (1397871168,), (1397871169,), (1397871170,), (1397871173,), (1397871176,), (1397871196,), (1397871198,), (1397871200,), (1397871255,), (1397871258,), (1397871259,), (1397871317,), (1397871338,), (1397871342,), (1397871344,), (1397871347,), (1397871349,), (1397873539,), (1397874291,), (1397874614,), (1397874625,), (1397874658,), (1397874695,), (1397874698,), (1397874701,), (1397874724,), (1397874726,), (1397874727,), (1397874751,), (1397874752,), (1397874754,), (1397874755,), (1397874759,), (1397874761,), (1397874788,), (1397874790,), (1397874792,), (1397874818,), (1397874820,), (1397874821,), (1397874822,), (1397874825,), (1397874828,), (1397874854,), (1397874856,), (1397874858,), (1397874860,), (1397874880,), (1397874881,), (1397874882,), (1397874883,), (1397874886,), (1397874910,), (1397874912,), (1397874914,), (1397874916,), (1397874946,), (1397874948,), (1397874949,), (1397874950,), (1397874962,), (1397874995,), (1397875102,), (1397875127,), (1397875129,), (1397875131,), (1397875152,), (1397875154,), (1397875156,), (1397875161,), (1397875166,), (1397875170,), (1397875211,), (1397875200,), (1397875201,), (1397875203,), (1397875205,), (1397875208,), (1397875227,), (1397875229,), (1397875230,), (1397875267,), (1397875268,), (1397875270,), (1397875272,), (1397875275,), (1397875301,), (1397875303,), (1397875305,), (1397875307,), (1397875310,), (1397875312,), (1397875326,), (1397875329,), (1397875332,), (1397875334,), (1397875350,), (1397875352,), (1397875354,), (1397875357,), (1397875518,), (1397875550,), (1397875583,), (1397875616,), (1397875651,), (1397876008,), (1397876041,), (1397876072,), (1397876104,), (1397876137,), (1397876170,), (1397876389,), (1397876391,), (1397876393,), (1397876396,), (1397876476,), (1397876509,), (1397876543,), (1397876802,), (1397876833,), (1397876865,), (1397876867,), (1397876870,), (1397876973,), (1397876974,), (1397876975,), (1397876976,), (1397876979,), (1397876997,), (1397876999,), (1397877001,), (1397877003,), (1397877030,), (1397877031,), (1397877033,), (1397877035,), (1397877038,), (1397877055,), (1397877058,), (1397877061,), (1397877065,), (1397877068,), (1397877071,), (1397877088,), (1397877090,), (1397877096,), (1397877097,), (1397877098,), (1397877102,), (1397877104,), (1397877124,), (1397877120,), (1397877122,), (1397877165,), (1397877167,), (1397877168,), (1397877192,), (1397877193,), (1397877226,), (1397877228,), (1397877230,), (1397877232,), (1397877247,), (1397877248,), (1397877249,), (1397877270,), (1397877272,), (1397877274,), (1397877276,), (1397877279,), (1397877294,), (1397877297,), (1397877300,), (1397877304,), (1397877307,), (1397877310,), (1397877319,), (1397877321,), (1397877322,), (1397877324,), (1397877325,), (1397877333,), (1397877336,), (1397877342,), (1397877351,), (1397877355,), (1397877383,), (1397877388,), (1397877401,), (1397877405,), (1397877411,), (1397877422,), (1397877440,), (1397877442,), (1397877444,), (1397877446,), (1397877452,), (1397877453,), (1397877456,), (1397877457,), (1397877460,), (1397877462,), (1397877465,), (1397877467,), (1397877470,), (1397877471,), (1397877477,), (1397877479,), (1397877480,), (1397877554,), (1397877576,), (1397877615,), (1397877654,), (1397877689,), (1397877704,), (1397877841,), (1397877877,), (1397877891,), (1397877893,), (1397878014,), (1397878021,), (1397878023,), (1397878025,), (1397878041,), (1397878106,), (1397878306,), (1397878350,), (1397878353,), (1397878358,), (1397878384,), (1397878395,), (1397878539,), (1397878537,), (1397878683,), (1397878684,), (1397878685,), (1397878686,), (1397878714,), (1397878715,), (1397878716,), (1397878717,), (1397878719,), (1397878722,), (1397878739,), (1397878741,), (1397878742,), (1397878745,), (1397878748,), (1397878751,), (1397878758,), (1397878771,), (1397878783,), (1397878789,), (1397878791,), (1397878797,), (1397878800,), (1397878803,), (1397878805,), (1397878807,), (1397878820,), (1397878822,), (1397878823,), (1397878824,), (1397878827,), (1397878829,), (1397878856,), (1397878858,), (1397878860,), (1397878862,), (1397878883,), (1397878885,), (1397878887,), (1397878892,), (1397878895,), (1397878914,), (1397878916,), (1397878918,), (1397878920,), (1397878941,), (1397878942,), (1397878943,), (1397878945,), (1397878996,), (1397878997,), (1397878999,), (1397879000,), (1397879003,), (1397879020,), (1397879022,), (1397879024,), (1397879026,), (1397879029,), (1397879054,), (1397879055,), (1397879056,), (1397879079,), (1397879083,), (1397879087,), (1397879091,), (1397879095,), (1397879099,), (1397879290,), (1397879215,), (1397879254,), (1397881709,), (1397881771,), (1397881838,), (1397881901,), (1397881994,), (1397882502,), (1397882539,), (1397882569,), (1397882598,), (1397883064,), (1397883289,), (1397883349,), (1397883418,), (1397883481,), (1397884043,), (1397884090,), (1397884124,), (1397884154,), (1397884179,), (1397884378,), (1397884450,), (1397884851,), (1397884856,), (1397884857,), (1397884884,), (1397884918,), (1397885249,), (1397885252,), (1397885255,), (1397885259,), (1397885503,), (1397885536,), (1397885583,), (1397885628,), (1397885668,), (1397886028,), (1397886062,), (1397886097,), (1397886686,), (1397886688,), (1397886690,), (1397886691,), (1397886714,), (1397887016,), (1397886841,), (1397886879,), (1397886909,), (1397886941,), (1397886977,), (1397887180,), (1397887217,), (1397887252,), (1397887372,), (1397887373,), (1397887374,), (1397887375,), (1397887399,), (1397887667,), (1397887668,), (1397887670,), (1397887673,), (1397887676,), (1397887678,), (1397887687,), (1397887690,), (1397887693,), (1397887696,), (1397887699,), (1397887703,), (1397887736,), (1397887772,), (1397887811,), (1397888126,), (1397888162,), (1397888198,), (1397888236,), (1397888628,), (1397888650,), (1397888657,), (1397888658,), (1397888660,), (1397888663,), (1397888681,), (1397888682,), (1397888684,), (1397888686,), (1397888689,), (1397889213,), (1397889258,), (1397889296,), (1397889331,), (1397889377,), (1397889412,), (1397889893,), (1397889928,), (1397889960,), (1397890149,), (1397890155,), (1397890172,), (1397890177,), (1397890180,), (1397890450,), (1397890484,), (1397890493,), (1397890494,), (1397890898,), (1397890931,), (1397890948,), (1397890950,), (1397891077,), (1397891078,), (1397891079,), (1397891081,), (1397891083,), (1397891087,), (1397891095,), (1397891104,), (1397891105,), (1397891108,), (1397891110,), (1397891112,), (1397891158,), (1397891152,), (1397891154,), (1397891156,), (1397891196,), (1397891198,), (1397891200,), (1397891203,), (1397891206,), (1397891218,), (1397891284,), (1397891286,), (1397891287,), (1397891288,), (1397891308,), (1397891311,), (1397891315,), (1397891318,), (1397891322,), (1397891356,), (1397891358,), (1397891360,), (1397891398,), (1397891399,), (1397891400,), (1397891401,), (1397891460,), (1397891461,), (1397891463,), (1397891465,), (1397891496,), (1397891629,), (1397891630,), (1397891631,), (1397891634,), (1397891635,), (1397891638,), (1397891656,), (1397891659,), (1397891662,), (1397891664,), (1397891667,), (1397891683,), (1397891696,), (1397891705,), (1397891741,), (1397891742,), (1397891743,), (1397891744,), (1397891774,), (1397891780,), (1397891782,), (1397891784,), (1397891787,), (1397891811,), (1397891812,), (1397891813,), (1397891814,), (1397891816,), (1397891818,), (1397891843,), (1397891848,), (1397891849,), (1397891850,), (1397891853,), (1397892280,), (1397892275,), (1397892276,), (1397892278,), (1397892308,), (1397892310,), (1397892311,), (1397892312,), (1397892315,), (1397892334,), (1397892337,), (1397892368,), (1397892370,), (1397892371,), (1397892372,), (1397892375,), (1397892393,), (1397892395,), (1397892397,), (1397892399,), (1397892402,), (1397892423,), (1397892424,), (1397892425,), (1397892426,), (1397892429,), (1397892464,), (1397892465,), (1397892467,), (1397892469,), (1397892494,), (1397892496,), (1397892498,), (1397892500,), (1397892503,), (1397892506,), (1397892522,), (1397892524,), (1397892525,), (1397892526,), (1397892529,), (1397892530,), (1397892553,), (1397892555,), (1397892557,), (1397892900,), (1397892937,), (1397892949,), (1397892954,), (1397893166,), (1397893174,), (1397893205,), (1397893291,), (1397893326,), (1397893120,), (1397893155,), (1397893164,), (1397893528,), (1397893592,), (1397893651,), (1397893714,), (1397894479,), (1397894554,), (1397894620,), (1397894680,), (1397895100,), (1397895101,), (1397895102,), (1397895103,), (1397895106,), (1397895109,), (1397895357,), (1397895368,), (1397895401,), (1397895838,), (1397895875,), (1397895907,), (1397895917,), (1397895920,), (1397895922,), (1397896055,), (1397896058,), (1397896061,), (1397896065,), (1397896068,), (1397896084,), (1397896086,), (1397896091,), (1397896132,), (1397896134,), (1397896135,), (1397896193,), (1397896196,), (1397896199,), (1397896201,), (1397896204,), (1397896211,), (1397896227,), (1397896230,), (1397896234,), (1397896241,), (1397896246,), (1397896460,), (1397896469,), (1397896601,), (1397896603,), (1397896606,), (1397896609,), (1397896613,), (1397896641,), (1397896643,), (1397896645,), (1397896647,), (1397896650,), (1397896653,), (1397896678,), (1397896680,), (1397896681,), (1397896724,), (1397896712,), (1397896714,), (1397896716,), (1397896718,), (1397896721,), (1397896761,), (1397896777,), (1397896778,), (1397896937,), (1397896938,), (1397896940,), (1397896942,), (1397896945,), (1397896947,), (1397897114,), (1397897115,), (1397897116,), (1397897119,), (1397897126,), (1397897164,), (1397897184,), (1397897185,), (1397897187,), (1397897189,), (1397897191,), (1397897196,), (1397897198,), (1397897201,), (1397897204,), (1397897206,), (1397897208,), (1397897293,), (1397897325,), (1397897355,), (1397897387,), (1397897574,), (1397897576,), (1397897578,), (1397897580,), (1397897583,), (1397897586,), (1397897603,), (1397897604,), (1397897605,), (1397897606,), (1397897609,), (1397897612,), (1397897645,), (1397897646,), (1397897648,), (1397897669,), (1397897671,), (1397897672,), (1397897673,), (1397897675,), (1397897676,), (1397897705,), (1397897706,), (1397897708,), (1397897710,), (1397897712,), (1397897729,), (1397897731,), (1397897733,), (1397897764,), (1397897765,), (1397897766,), (1397897767,), (1397897770,), (1397897773,), (1397897789,), (1397897791,), (1397897793,), (1397897826,), (1397897892,), (1397897889,), (1397897910,), (1397902157,), (1397903597,), (1397905005,), (1397906741,), (1397906785,), (1397906819,), (1397906981,), (1397906994,), (1397907024,), (1397907164,), (1397907166,), (1397907167,), (1397907717,), (1397907718,), (1397907720,), (1397907726,), (1397907760,), (1397907798,), (1397907918,), (1397907930,), (1397907932,), (1397907934,), (1397908045,), (1397908077,), (1397908112,), (1397908144,), (1397908178,), (1397908212,), (1397908438,), (1397908440,), (1397908442,), (1397908444,), (1397908660,), (1397908692,), (1397908715,), (1397908745,), (1397908780,), (1397909186,), (1397909168,), (1397909182,), (1397909184,), (1397909486,), (1397909492,), (1397909526,), (1397909560,), (1397909594,), (1397909636,), (1397909642,), (1397909643,), (1397909644,), (1397909647,), (1397909676,), (1397909678,), (1397909682,), (1397909686,), (1397909689,), (1397909693,), (1397909706,), (1397909709,), (1397909721,), (1397909722,), (1397909723,), (1397910162,), (1397910897,), (1397911249,), (1397911577,), (1397912056,), (1397912087,), (1397912110,), (1397912507,), (1397912512,), (1397912513,), (1397912515,), (1397912518,), (1397912711,), (1397912742,), (1397912776,), (1397912830,), (1397912865,), (1397912901,), (1397913101,), (1397913129,), (1397913162,), (1397913182,), (1397913185,), (1397913414,), (1397913457,), (1397913484,), (1397913493,), (1397913513,), (1397913527,), (1397913581,), (1397913583,), (1397913586,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04122025': {'nb_upload': 56, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29196118]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1397913586, 1397913583, 1397913581, 1397913527, 1397913513, 1397913493, 1397913484, 1397913457, 1397913414, 1397913185, 1397913182, 1397913162, 1397913129, 1397913101] map_info['map_portfolio_photo'] : {29196118: [1397913586, 1397913583, 1397913581, 1397913527, 1397913513, 1397913493, 1397913484, 1397913457, 1397913414, 1397913185, 1397913182, 1397913162, 1397913129, 1397913101, 1397912901, 1397912865, 1397912830, 1397912776, 1397912742, 1397912711, 1397912518, 1397912515, 1397912513, 1397912512, 1397912507, 1397912110, 1397912087, 1397912056, 1397911577, 1397911249, 1397910897, 1397910162, 1397909723, 1397909722, 1397909721, 1397909709, 1397909706, 1397909693, 1397909689, 1397909686, 1397909682, 1397909678, 1397909676, 1397909647, 1397909644, 1397909643, 1397909642, 1397909636, 1397909594, 1397909560, 1397909526, 1397909492, 1397909486, 1397909184, 1397909182, 1397909168]} final : True mtd_id 4302 list_pids : [1397913586, 1397913583, 1397913581, 1397913527, 1397913513, 1397913493, 1397913484, 1397913457, 1397913414, 1397913185, 1397913182, 1397913162, 1397913129, 1397913101] Looping around the photos to save general results len do output : 1 /29196118Didn'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, '4186947') ('4302', '29196118', '1397913586', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913583', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913581', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913527', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913513', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913493', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913484', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913457', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913414', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913185', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913182', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913162', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913129', None, None, None, None, None, '4186947') ('4302', None, None, None, None, None, None, None, '4186947') ('4302', '29196118', '1397913101', None, None, None, None, None, '4186947') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '29196118', 'None', None, None, None, None, '4186947'), ('4302', '29196118', '1397913586', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913583', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913581', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913527', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913513', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913493', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913484', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913457', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913414', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913185', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913182', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913162', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913129', None, None, None, None, None, '4186947'), ('4302', '29196118', '1397913101', None, None, None, None, None, '4186947')] time used for this insertion : 0.01982855796813965 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.6856911182403564 time spend to save output : 0.02007579803466797 total time spend for step 5 : 4.705766916275024 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 (4186947) 2.63user 2.44system 0:17.63elapsed 28%CPU (0avgtext+0avgdata 166960maxresident)k 584inputs+22704outputs (4major+75229minor)pagefaults 0swaps