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 : 452345 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 (4135547) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4135547) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28999176 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4135547'] with mtr_portfolio_ids : ['28999176'] and first list_photo_ids : [] new path : /proc/452345/ Name: python3 Umask: 0002 State: R (running) Tgid: 452345 Ngid: 0 Pid: 452345 PPid: 452344 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 452345 NSpid: 452345 NSpgid: 450359 NSsid: 450359 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100308 kB VmRSS: 100308 kB RssAnon: 59904 kB RssFile: 40404 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 588 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: 45 nonvoluntary_ctxt_switches: 85 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '452345', 'Ngid': '0', 'Pid': '452345', 'PPid': '452344', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '452345', 'NSpid': '452345', 'NSpgid': '450359', 'NSsid': '450359', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100308 kB', 'VmRSS': '100308 kB', 'RssAnon': '59904 kB', 'RssFile': '40404 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '588 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': '45', 'nonvoluntary_ctxt_switches': '85'} ('datou_batch_current', '452345', '1106908', '0', '1106884', '865636', '100308', b'', 'marlene', '4135547') 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 (28999176) 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 (4135547 ) ) 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 (28999176) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1396659466, 'portfolio_id': 28999176}, {'photo_id': 1396659435, 'portfolio_id': 28999176}, {'photo_id': 1396659430, 'portfolio_id': 28999176}, {'photo_id': 1396659428, 'portfolio_id': 28999176}, {'photo_id': 1396659423, 'portfolio_id': 28999176}, {'photo_id': 1396659223, 'portfolio_id': 28999176}, {'photo_id': 1396659176, 'portfolio_id': 28999176}, {'photo_id': 1396659111, 'portfolio_id': 28999176}, {'photo_id': 1396659046, 'portfolio_id': 28999176}, {'photo_id': 1396659004, 'portfolio_id': 28999176}, {'photo_id': 1396658974, 'portfolio_id': 28999176}, {'photo_id': 1396658558, 'portfolio_id': 28999176}, {'photo_id': 1396658524, 'portfolio_id': 28999176}, {'photo_id': 1396658493, 'portfolio_id': 28999176}, {'photo_id': 1396658461, 'portfolio_id': 28999176}, {'photo_id': 1396657905, 'portfolio_id': 28999176}, {'photo_id': 1396657872, 'portfolio_id': 28999176}, {'photo_id': 1396657838, 'portfolio_id': 28999176}, {'photo_id': 1396657807, 'portfolio_id': 28999176}, {'photo_id': 1396657777, 'portfolio_id': 28999176}, {'photo_id': 1396657495, 'portfolio_id': 28999176}, {'photo_id': 1396657490, 'portfolio_id': 28999176}, {'photo_id': 1396657486, 'portfolio_id': 28999176}, {'photo_id': 1396657482, 'portfolio_id': 28999176}, {'photo_id': 1396657473, 'portfolio_id': 28999176}, {'photo_id': 1396657246, 'portfolio_id': 28999176}, {'photo_id': 1396657209, 'portfolio_id': 28999176}, {'photo_id': 1396657171, 'portfolio_id': 28999176}, {'photo_id': 1396657137, 'portfolio_id': 28999176}, {'photo_id': 1396657091, 'portfolio_id': 28999176}, {'photo_id': 1396657056, 'portfolio_id': 28999176}, {'photo_id': 1396656620, 'portfolio_id': 28999176}, {'photo_id': 1396656588, 'portfolio_id': 28999176}, {'photo_id': 1396656558, 'portfolio_id': 28999176}, {'photo_id': 1396656242, 'portfolio_id': 28999176}, {'photo_id': 1396656240, 'portfolio_id': 28999176}, {'photo_id': 1396656237, 'portfolio_id': 28999176}, {'photo_id': 1396656182, 'portfolio_id': 28999176}, {'photo_id': 1396656099, 'portfolio_id': 28999176}, {'photo_id': 1396656045, 'portfolio_id': 28999176}, {'photo_id': 1396655661, 'portfolio_id': 28999176}, {'photo_id': 1396655576, 'portfolio_id': 28999176}, {'photo_id': 1396655489, 'portfolio_id': 28999176}] map_portfolio_id_photo_id: {28999176: [1396659466, 1396659435, 1396659430, 1396659428, 1396659423, 1396659223, 1396659176, 1396659111, 1396659046, 1396659004, 1396658974, 1396658558, 1396658524, 1396658493, 1396658461, 1396657905, 1396657872, 1396657838, 1396657807, 1396657777, 1396657495, 1396657490, 1396657486, 1396657482, 1396657473, 1396657246, 1396657209, 1396657171, 1396657137, 1396657091, 1396657056, 1396656620, 1396656588, 1396656558, 1396656242, 1396656240, 1396656237, 1396656182, 1396656099, 1396656045, 1396655661, 1396655576, 1396655489]} ##### 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.018864870071411133 #### 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 Fri Nov 28 15:10:57 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 (28999176) 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 : 28999176 get user id for portfolio 28999176 get sub ptf for main ptf 28999176, type 3726 and hashtags ['flou', 'cartonnette', 'mal_croppe', 'environnement', 'Carton_gris', 'kraft', 'papier', 'Carton_brun', 'autre_refus', 'plastique', 'Teint_Dans_La_Masse', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28999176 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','mal_croppe','environnement','Carton_gris','kraft','papier','Carton_brun','autre_refus','plastique','Teint_Dans_La_Masse','metal')) 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`=28999176 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','mal_croppe','environnement','Carton_gris','kraft','papier','Carton_brun','autre_refus','plastique','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 28999176, 'sub_port_id': 28999268, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703600, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 29)}, 'kraft': {'main_port_id': 28999176, 'sub_port_id': 28999269, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703601, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 29)}, 'Carton_brun': {'main_port_id': 28999176, 'sub_port_id': 28999270, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703602, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 29)}, 'metal': {'main_port_id': 28999176, 'sub_port_id': 28999271, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703603, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 29)}, 'cartonnette': {'main_port_id': 28999176, 'sub_port_id': 28999272, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703604, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 29)}, 'plastique': {'main_port_id': 28999176, 'sub_port_id': 28999273, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703605, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 29)}, 'Carton_gris': {'main_port_id': 28999176, 'sub_port_id': 28999274, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703606, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 28999176, 'sub_port_id': 28999275, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703607, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 29)}, 'mal_croppe': {'main_port_id': 28999176, 'sub_port_id': 28999276, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703608, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 29)}, 'environnement': {'main_port_id': 28999176, 'sub_port_id': 28999277, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703609, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 29)}, 'flou': {'main_port_id': 28999176, 'sub_port_id': 28999278, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703610, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 29)}, 'papier': {'main_port_id': 28999176, 'sub_port_id': 28999279, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703611, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28999268 , 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=28999176 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 (28999268) result : ((1396658697,), (1396658699,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28999176) result : ((1396655489,), (1396655576,), (1396655661,), (1396656045,), (1396656099,), (1396656182,), (1396656237,), (1396656240,), (1396656242,), (1396656558,), (1396656588,), (1396656620,), (1396657056,), (1396657091,), (1396657137,), (1396657171,), (1396657209,), (1396657246,), (1396657473,), (1396657482,), (1396657486,), (1396657490,), (1396657495,), (1396657777,), (1396657807,), (1396657838,), (1396657872,), (1396657905,), (1396658461,), (1396658493,), (1396658524,), (1396658558,), (1396658974,), (1396659004,), (1396659046,), (1396659111,), (1396659176,), (1396659223,), (1396659423,), (1396659428,), (1396659430,), (1396659435,), (1396659466,)) 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 28999269 , 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=28999176 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 (28999269) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28999176) result : ((1396655489,), (1396655576,), (1396655661,), (1396656045,), (1396656099,), (1396656182,), (1396656237,), (1396656240,), (1396656242,), (1396656558,), (1396656588,), (1396656620,), (1396657056,), (1396657091,), (1396657137,), (1396657171,), (1396657209,), (1396657246,), (1396657473,), (1396657482,), (1396657486,), (1396657490,), (1396657495,), (1396657777,), (1396657807,), (1396657838,), (1396657872,), (1396657905,), (1396658461,), (1396658493,), (1396658524,), (1396658558,), (1396658974,), (1396659004,), (1396659046,), (1396659111,), (1396659176,), (1396659223,), (1396659423,), (1396659428,), (1396659430,), (1396659435,), (1396659466,)) 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 28999270 , 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=28999176 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 (28999270) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28999176) result : ((1396655489,), (1396655576,), (1396655661,), (1396656045,), (1396656099,), (1396656182,), (1396656237,), (1396656240,), (1396656242,), (1396656558,), (1396656588,), (1396656620,), (1396657056,), (1396657091,), (1396657137,), (1396657171,), (1396657209,), (1396657246,), (1396657473,), (1396657482,), (1396657486,), (1396657490,), (1396657495,), (1396657777,), (1396657807,), (1396657838,), (1396657872,), (1396657905,), (1396658461,), (1396658493,), (1396658524,), (1396658558,), (1396658974,), (1396659004,), (1396659046,), (1396659111,), (1396659176,), (1396659223,), (1396659423,), (1396659428,), (1396659430,), (1396659435,), (1396659466,)) 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 28999271 , 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=28999176 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 (28999271) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28999176) result : ((1396655489,), (1396655576,), (1396655661,), (1396656045,), (1396656099,), (1396656182,), (1396656237,), (1396656240,), (1396656242,), (1396656558,), (1396656588,), (1396656620,), (1396657056,), (1396657091,), (1396657137,), (1396657171,), (1396657209,), (1396657246,), (1396657473,), (1396657482,), (1396657486,), (1396657490,), (1396657495,), (1396657777,), (1396657807,), (1396657838,), (1396657872,), (1396657905,), (1396658461,), (1396658493,), (1396658524,), (1396658558,), (1396658974,), (1396659004,), (1396659046,), (1396659111,), (1396659176,), (1396659223,), (1396659423,), (1396659428,), (1396659430,), (1396659435,), (1396659466,)) 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 28999272 , 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=28999176 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 (28999272) result : ((1396658708,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28999176) result : ((1396655489,), (1396655576,), (1396655661,), (1396656045,), (1396656099,), (1396656182,), (1396656237,), (1396656240,), (1396656242,), (1396656558,), (1396656588,), (1396656620,), (1396657056,), (1396657091,), (1396657137,), (1396657171,), (1396657209,), (1396657246,), (1396657473,), (1396657482,), (1396657486,), (1396657490,), (1396657495,), (1396657777,), (1396657807,), (1396657838,), (1396657872,), (1396657905,), (1396658461,), (1396658493,), (1396658524,), (1396658558,), (1396658974,), (1396659004,), (1396659046,), (1396659111,), (1396659176,), (1396659223,), (1396659423,), (1396659428,), (1396659430,), (1396659435,), (1396659466,)) 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 28999273 , 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=28999176 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 (28999273) result : ((1396658720,), (1396658722,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28999176) result : ((1396655489,), (1396655576,), (1396655661,), (1396656045,), (1396656099,), (1396656182,), (1396656237,), (1396656240,), (1396656242,), (1396656558,), (1396656588,), (1396656620,), (1396657056,), (1396657091,), (1396657137,), (1396657171,), (1396657209,), (1396657246,), (1396657473,), (1396657482,), (1396657486,), (1396657490,), (1396657495,), (1396657777,), (1396657807,), (1396657838,), (1396657872,), (1396657905,), (1396658461,), (1396658493,), (1396658524,), (1396658558,), (1396658974,), (1396659004,), (1396659046,), (1396659111,), (1396659176,), (1396659223,), (1396659423,), (1396659428,), (1396659430,), (1396659435,), (1396659466,)) 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 28999274 , 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=28999176 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 (28999274) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28999176) result : ((1396655489,), (1396655576,), (1396655661,), (1396656045,), (1396656099,), (1396656182,), (1396656237,), (1396656240,), (1396656242,), (1396656558,), (1396656588,), (1396656620,), (1396657056,), (1396657091,), (1396657137,), (1396657171,), (1396657209,), (1396657246,), (1396657473,), (1396657482,), (1396657486,), (1396657490,), (1396657495,), (1396657777,), (1396657807,), (1396657838,), (1396657872,), (1396657905,), (1396658461,), (1396658493,), (1396658524,), (1396658558,), (1396658974,), (1396659004,), (1396659046,), (1396659111,), (1396659176,), (1396659223,), (1396659423,), (1396659428,), (1396659430,), (1396659435,), (1396659466,)) 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 28999275 , 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=28999176 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 (28999275) result : ((1396658686,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28999176) result : ((1396655489,), (1396655576,), (1396655661,), (1396656045,), (1396656099,), (1396656182,), (1396656237,), (1396656240,), (1396656242,), (1396656558,), (1396656588,), (1396656620,), (1396657056,), (1396657091,), (1396657137,), (1396657171,), (1396657209,), (1396657246,), (1396657473,), (1396657482,), (1396657486,), (1396657490,), (1396657495,), (1396657777,), (1396657807,), (1396657838,), (1396657872,), (1396657905,), (1396658461,), (1396658493,), (1396658524,), (1396658558,), (1396658974,), (1396659004,), (1396659046,), (1396659111,), (1396659176,), (1396659223,), (1396659423,), (1396659428,), (1396659430,), (1396659435,), (1396659466,)) 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 28999276 , 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=28999176 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 (28999276) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28999176) result : ((1396655489,), (1396655576,), (1396655661,), (1396656045,), (1396656099,), (1396656182,), (1396656237,), (1396656240,), (1396656242,), (1396656558,), (1396656588,), (1396656620,), (1396657056,), (1396657091,), (1396657137,), (1396657171,), (1396657209,), (1396657246,), (1396657473,), (1396657482,), (1396657486,), (1396657490,), (1396657495,), (1396657777,), (1396657807,), (1396657838,), (1396657872,), (1396657905,), (1396658461,), (1396658493,), (1396658524,), (1396658558,), (1396658974,), (1396659004,), (1396659046,), (1396659111,), (1396659176,), (1396659223,), (1396659423,), (1396659428,), (1396659430,), (1396659435,), (1396659466,)) 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 28999277 , 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=28999176 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 (28999277) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28999176) result : ((1396655489,), (1396655576,), (1396655661,), (1396656045,), (1396656099,), (1396656182,), (1396656237,), (1396656240,), (1396656242,), (1396656558,), (1396656588,), (1396656620,), (1396657056,), (1396657091,), (1396657137,), (1396657171,), (1396657209,), (1396657246,), (1396657473,), (1396657482,), (1396657486,), (1396657490,), (1396657495,), (1396657777,), (1396657807,), (1396657838,), (1396657872,), (1396657905,), (1396658461,), (1396658493,), (1396658524,), (1396658558,), (1396658974,), (1396659004,), (1396659046,), (1396659111,), (1396659176,), (1396659223,), (1396659423,), (1396659428,), (1396659430,), (1396659435,), (1396659466,)) 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 28999278 , 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=28999176 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 (28999278) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28999176) result : ((1396655489,), (1396655576,), (1396655661,), (1396656045,), (1396656099,), (1396656182,), (1396656237,), (1396656240,), (1396656242,), (1396656558,), (1396656588,), (1396656620,), (1396657056,), (1396657091,), (1396657137,), (1396657171,), (1396657209,), (1396657246,), (1396657473,), (1396657482,), (1396657486,), (1396657490,), (1396657495,), (1396657777,), (1396657807,), (1396657838,), (1396657872,), (1396657905,), (1396658461,), (1396658493,), (1396658524,), (1396658558,), (1396658974,), (1396659004,), (1396659046,), (1396659111,), (1396659176,), (1396659223,), (1396659423,), (1396659428,), (1396659430,), (1396659435,), (1396659466,)) 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 28999279 , 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=28999176 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 (28999279) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28999176) result : ((1396655489,), (1396655576,), (1396655661,), (1396656045,), (1396656099,), (1396656182,), (1396656237,), (1396656240,), (1396656242,), (1396656558,), (1396656588,), (1396656620,), (1396657056,), (1396657091,), (1396657137,), (1396657171,), (1396657209,), (1396657246,), (1396657473,), (1396657482,), (1396657486,), (1396657490,), (1396657495,), (1396657777,), (1396657807,), (1396657838,), (1396657872,), (1396657905,), (1396658461,), (1396658493,), (1396658524,), (1396658558,), (1396658974,), (1396659004,), (1396659046,), (1396659111,), (1396659176,), (1396659223,), (1396659423,), (1396659428,), (1396659430,), (1396659435,), (1396659466,)) 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`=28999176 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','mal_croppe','environnement','Carton_gris','kraft','papier','Carton_brun','autre_refus','plastique','Teint_Dans_La_Masse','metal')) 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`=28999176 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','cartonnette','mal_croppe','environnement','Carton_gris','kraft','papier','Carton_brun','autre_refus','plastique','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 28999176, 'sub_port_id': 28999281, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703612, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 31)}, 'kraft': {'main_port_id': 28999176, 'sub_port_id': 28999282, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703613, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 31)}, 'Carton_brun': {'main_port_id': 28999176, 'sub_port_id': 28999283, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703614, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 31)}, 'metal': {'main_port_id': 28999176, 'sub_port_id': 28999284, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703615, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 31)}, 'cartonnette': {'main_port_id': 28999176, 'sub_port_id': 28999285, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703616, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 31)}, 'plastique': {'main_port_id': 28999176, 'sub_port_id': 28999286, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703617, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 31)}, 'Carton_gris': {'main_port_id': 28999176, 'sub_port_id': 28999287, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703618, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 28999176, 'sub_port_id': 28999288, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703619, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 31)}, 'mal_croppe': {'main_port_id': 28999176, 'sub_port_id': 28999289, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703620, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 31)}, 'environnement': {'main_port_id': 28999176, 'sub_port_id': 28999290, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703621, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 31)}, 'flou': {'main_port_id': 28999176, 'sub_port_id': 28999291, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703622, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 3, 31), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 3, 31), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 31)}, 'papier': {'main_port_id': 28999176, 'sub_port_id': 28999292, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19703623, 'last_updated_at': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 15, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 15, 3, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28999281,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28999268 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28999282,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28999269 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28999283,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28999270 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28999284,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28999271 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28999285,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28999272 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28999286,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28999273 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28999287,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28999274 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28999288,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28999275 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28999289,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28999276 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28999290,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28999277 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28999291,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28999278 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28999292,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28999279 lien utilise dans velours : https://marlene.fotonower.com/velours/28999281,28999282,28999283,28999284,28999285,28999286,28999287,28999288,28999289,28999290,28999291,28999292?tags=autre_refus,kraft,Carton_brun,metal,cartonnette,plastique,Carton_gris,Teint_Dans_La_Masse,mal_croppe,environnement,flou,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28999176]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1396659466, 1396659435, 1396659430, 1396659428, 1396659423, 1396659223, 1396659176, 1396659111, 1396659046, 1396659004, 1396658974] map_info['map_portfolio_photo'] : {28999176: [1396659466, 1396659435, 1396659430, 1396659428, 1396659423, 1396659223, 1396659176, 1396659111, 1396659046, 1396659004, 1396658974, 1396658558, 1396658524, 1396658493, 1396658461, 1396657905, 1396657872, 1396657838, 1396657807, 1396657777, 1396657495, 1396657490, 1396657486, 1396657482, 1396657473, 1396657246, 1396657209, 1396657171, 1396657137, 1396657091, 1396657056, 1396656620, 1396656588, 1396656558, 1396656242, 1396656240, 1396656237, 1396656182, 1396656099, 1396656045, 1396655661, 1396655576, 1396655489]} final : False mtd_id 4302 list_pids : [1396659466, 1396659435, 1396659430, 1396659428, 1396659423, 1396659223, 1396659176, 1396659111, 1396659046, 1396659004, 1396658974] Looping around the photos to save general results len do output : 1 /28999176. 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, '4135547') ('4302', '28999176', '1396659466', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659435', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659430', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659428', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659423', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659223', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659176', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659111', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659046', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659004', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396658974', None, None, None, None, None, '4135547') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28999176', "{'autre_refus': 28999268, 'kraft': 28999269, 'Carton_brun': 28999270, 'metal': 28999271, 'cartonnette': 28999272, 'plastique': 28999273, 'Carton_gris': 28999274, 'Teint_Dans_La_Masse': 28999275, 'mal_croppe': 28999276, 'environnement': 28999277, 'flou': 28999278, 'papier': 28999279}", None, None, None, None, '4135547'), ('4302', '28999176', '1396659466', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659435', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659430', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659428', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659423', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659223', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659176', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659111', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659046', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659004', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396658974', None, None, None, None, None, '4135547')] time used for this insertion : 0.018114566802978516 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7928695678710938 time spend to save output : 0.01840353012084961 total time spend for step 1 : 1.8112730979919434 step2:final Fri Nov 28 15:10: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 ! 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 (28999176) 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 28999176 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1396655661,1396655576,1396655489,1396656242,1396656240,1396656237,1396656182,1396656099,1396656045,1396656620,1396656588,1396656558,1396657246,1396657209,1396657171,1396657137,1396657091,1396657056,1396657495,1396657490,1396657486,1396657482,1396657473,1396657905,1396657872,1396657838,1396657807,1396657777,1396658558,1396658524,1396658493,1396658461,1396659223,1396659176,1396659111,1396659046,1396659004,1396658974,1396659466,1396659435,1396659430,1396659428,1396659423); 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([28999176]) Inside saveOutput : final : False verbose : True original output for save of step final : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ('0.05246016998058123',), 1396659428: ('0.05246016998058123',), 1396659423: ('0.05246016998058123',), 1396659223: ('0.05246016998058123',), 1396659176: ('0.05246016998058123',), 1396659111: ('0.05246016998058123',), 1396659046: ('0.05246016998058123',), 1396659004: ('0.05246016998058123',), 1396658974: ('0.05246016998058123',)} new output for save of step final : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ('0.05246016998058123',), 1396659428: ('0.05246016998058123',), 1396659423: ('0.05246016998058123',), 1396659223: ('0.05246016998058123',), 1396659176: ('0.05246016998058123',), 1396659111: ('0.05246016998058123',), 1396659046: ('0.05246016998058123',), 1396659004: ('0.05246016998058123',), 1396658974: ('0.05246016998058123',)} [1396659466, 1396659435, 1396659430, 1396659428, 1396659423, 1396659223, 1396659176, 1396659111, 1396659046, 1396659004, 1396658974] map_info['map_portfolio_photo'] : {28999176: [1396659466, 1396659435, 1396659430, 1396659428, 1396659423, 1396659223, 1396659176, 1396659111, 1396659046, 1396659004, 1396658974, 1396658558, 1396658524, 1396658493, 1396658461, 1396657905, 1396657872, 1396657838, 1396657807, 1396657777, 1396657495, 1396657490, 1396657486, 1396657482, 1396657473, 1396657246, 1396657209, 1396657171, 1396657137, 1396657091, 1396657056, 1396656620, 1396656588, 1396656558, 1396656242, 1396656240, 1396656237, 1396656182, 1396656099, 1396656045, 1396655661, 1396655576, 1396655489]} final : False mtd_id 4302 list_pids : [1396659466, 1396659435, 1396659430, 1396659428, 1396659423, 1396659223, 1396659176, 1396659111, 1396659046, 1396659004, 1396658974] Looping around the photos to save general results len do output : 11 /1396659466.Didn't retrieve data . /1396659435.Didn't retrieve data . /1396659430.Didn't retrieve data . /1396659428.Didn't retrieve data . /1396659423.Didn't retrieve data . /1396659223.Didn't retrieve data . /1396659176.Didn't retrieve data . /1396659111.Didn't retrieve data . /1396659046.Didn't retrieve data . /1396659004.Didn't retrieve data . /1396658974.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, '4135547') ('4302', '28999176', '1396659466', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659435', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659430', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659428', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659423', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659223', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659176', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659111', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659046', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659004', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396658974', None, None, None, None, None, '4135547') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28999176', '1396659466', '0.05246016998058123', None, None, None, None, '4135547'), ('4302', '28999176', '1396659435', '0.05246016998058123', None, None, None, None, '4135547'), ('4302', '28999176', '1396659430', '0.05246016998058123', None, None, None, None, '4135547'), ('4302', '28999176', '1396659428', '0.05246016998058123', None, None, None, None, '4135547'), ('4302', '28999176', '1396659423', '0.05246016998058123', None, None, None, None, '4135547'), ('4302', '28999176', '1396659223', '0.05246016998058123', None, None, None, None, '4135547'), ('4302', '28999176', '1396659176', '0.05246016998058123', None, None, None, None, '4135547'), ('4302', '28999176', '1396659111', '0.05246016998058123', None, None, None, None, '4135547'), ('4302', '28999176', '1396659046', '0.05246016998058123', None, None, None, None, '4135547'), ('4302', '28999176', '1396659004', '0.05246016998058123', None, None, None, None, '4135547'), ('4302', '28999176', '1396658974', '0.05246016998058123', None, None, None, None, '4135547')] time used for this insertion : 0.015351295471191406 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07740259170532227 time spend to save output : 0.01588892936706543 total time spend for step 2 : 0.0932915210723877 step3:velours_tree Fri Nov 28 15:10: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 complete output_args for input 0 : {28999176: [{'autre_refus': 28999268, 'kraft': 28999269, 'Carton_brun': 28999270, 'metal': 28999271, 'cartonnette': 28999272, 'plastique': 28999273, 'Carton_gris': 28999274, 'Teint_Dans_La_Masse': 28999275, 'mal_croppe': 28999276, 'environnement': 28999277, 'flou': 28999278, 'papier': 28999279}]} input_args_next_step : {28999176: ()} output_args : {28999176: [{'autre_refus': 28999268, 'kraft': 28999269, 'Carton_brun': 28999270, 'metal': 28999271, 'cartonnette': 28999272, 'plastique': 28999273, 'Carton_gris': 28999274, 'Teint_Dans_La_Masse': 28999275, 'mal_croppe': 28999276, 'environnement': 28999277, 'flou': 28999278, 'papier': 28999279}]} args : 28999176 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 : ({'autre_refus': 28999268, 'kraft': 28999269, 'Carton_brun': 28999270, 'metal': 28999271, 'cartonnette': 28999272, 'plastique': 28999273, 'Carton_gris': 28999274, 'Teint_Dans_La_Masse': 28999275, 'mal_croppe': 28999276, 'environnement': 28999277, 'flou': 28999278, 'papier': 28999279},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28999176) 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([28999176]) 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.2946929931640625 time spend to save output : 4.172325134277344e-05 total time spend for step 3 : 0.2947347164154053 step4:send_mail_cod Fri Nov 28 15:10: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 : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ('0.05246016998058123',), 1396659428: ('0.05246016998058123',), 1396659423: ('0.05246016998058123',), 1396659223: ('0.05246016998058123',), 1396659176: ('0.05246016998058123',), 1396659111: ('0.05246016998058123',), 1396659046: ('0.05246016998058123',), 1396659004: ('0.05246016998058123',), 1396658974: ('0.05246016998058123',)} input_args_next_step : {1396659466: ()} output_args : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ('0.05246016998058123',), 1396659428: ('0.05246016998058123',), 1396659423: ('0.05246016998058123',), 1396659223: ('0.05246016998058123',), 1396659176: ('0.05246016998058123',), 1396659111: ('0.05246016998058123',), 1396659046: ('0.05246016998058123',), 1396659004: ('0.05246016998058123',), 1396658974: ('0.05246016998058123',)} args : 1396659466 depend.output_id : 0 input_args_next_step : {1396659466: ('0.05246016998058123',), 1396659435: ()} output_args : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ('0.05246016998058123',), 1396659428: ('0.05246016998058123',), 1396659423: ('0.05246016998058123',), 1396659223: ('0.05246016998058123',), 1396659176: ('0.05246016998058123',), 1396659111: ('0.05246016998058123',), 1396659046: ('0.05246016998058123',), 1396659004: ('0.05246016998058123',), 1396658974: ('0.05246016998058123',)} args : 1396659435 depend.output_id : 0 input_args_next_step : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ()} output_args : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ('0.05246016998058123',), 1396659428: ('0.05246016998058123',), 1396659423: ('0.05246016998058123',), 1396659223: ('0.05246016998058123',), 1396659176: ('0.05246016998058123',), 1396659111: ('0.05246016998058123',), 1396659046: ('0.05246016998058123',), 1396659004: ('0.05246016998058123',), 1396658974: ('0.05246016998058123',)} args : 1396659430 depend.output_id : 0 input_args_next_step : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ('0.05246016998058123',), 1396659428: ()} output_args : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ('0.05246016998058123',), 1396659428: ('0.05246016998058123',), 1396659423: ('0.05246016998058123',), 1396659223: ('0.05246016998058123',), 1396659176: ('0.05246016998058123',), 1396659111: ('0.05246016998058123',), 1396659046: ('0.05246016998058123',), 1396659004: ('0.05246016998058123',), 1396658974: ('0.05246016998058123',)} args : 1396659428 depend.output_id : 0 input_args_next_step : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ('0.05246016998058123',), 1396659428: ('0.05246016998058123',), 1396659423: ()} output_args : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ('0.05246016998058123',), 1396659428: ('0.05246016998058123',), 1396659423: ('0.05246016998058123',), 1396659223: ('0.05246016998058123',), 1396659176: ('0.05246016998058123',), 1396659111: ('0.05246016998058123',), 1396659046: ('0.05246016998058123',), 1396659004: ('0.05246016998058123',), 1396658974: ('0.05246016998058123',)} args : 1396659423 depend.output_id : 0 input_args_next_step : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ('0.05246016998058123',), 1396659428: ('0.05246016998058123',), 1396659423: ('0.05246016998058123',), 1396659223: ()} output_args : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ('0.05246016998058123',), 1396659428: ('0.05246016998058123',), 1396659423: ('0.05246016998058123',), 1396659223: ('0.05246016998058123',), 1396659176: ('0.05246016998058123',), 1396659111: ('0.05246016998058123',), 1396659046: ('0.05246016998058123',), 1396659004: ('0.05246016998058123',), 1396658974: ('0.05246016998058123',)} args : 1396659223 depend.output_id : 0 input_args_next_step : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ('0.05246016998058123',), 1396659428: ('0.05246016998058123',), 1396659423: ('0.05246016998058123',), 1396659223: ('0.05246016998058123',), 1396659176: ()} output_args : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ('0.05246016998058123',), 1396659428: ('0.05246016998058123',), 1396659423: ('0.05246016998058123',), 1396659223: ('0.05246016998058123',), 1396659176: ('0.05246016998058123',), 1396659111: ('0.05246016998058123',), 1396659046: ('0.05246016998058123',), 1396659004: ('0.05246016998058123',), 1396658974: ('0.05246016998058123',)} args : 1396659176 depend.output_id : 0 input_args_next_step : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ('0.05246016998058123',), 1396659428: ('0.05246016998058123',), 1396659423: ('0.05246016998058123',), 1396659223: ('0.05246016998058123',), 1396659176: ('0.05246016998058123',), 1396659111: ()} output_args : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ('0.05246016998058123',), 1396659428: ('0.05246016998058123',), 1396659423: ('0.05246016998058123',), 1396659223: ('0.05246016998058123',), 1396659176: ('0.05246016998058123',), 1396659111: ('0.05246016998058123',), 1396659046: ('0.05246016998058123',), 1396659004: ('0.05246016998058123',), 1396658974: ('0.05246016998058123',)} args : 1396659111 depend.output_id : 0 input_args_next_step : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ('0.05246016998058123',), 1396659428: ('0.05246016998058123',), 1396659423: ('0.05246016998058123',), 1396659223: ('0.05246016998058123',), 1396659176: ('0.05246016998058123',), 1396659111: ('0.05246016998058123',), 1396659046: ()} output_args : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ('0.05246016998058123',), 1396659428: ('0.05246016998058123',), 1396659423: ('0.05246016998058123',), 1396659223: ('0.05246016998058123',), 1396659176: ('0.05246016998058123',), 1396659111: ('0.05246016998058123',), 1396659046: ('0.05246016998058123',), 1396659004: ('0.05246016998058123',), 1396658974: ('0.05246016998058123',)} args : 1396659046 depend.output_id : 0 input_args_next_step : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ('0.05246016998058123',), 1396659428: ('0.05246016998058123',), 1396659423: ('0.05246016998058123',), 1396659223: ('0.05246016998058123',), 1396659176: ('0.05246016998058123',), 1396659111: ('0.05246016998058123',), 1396659046: ('0.05246016998058123',), 1396659004: ()} output_args : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ('0.05246016998058123',), 1396659428: ('0.05246016998058123',), 1396659423: ('0.05246016998058123',), 1396659223: ('0.05246016998058123',), 1396659176: ('0.05246016998058123',), 1396659111: ('0.05246016998058123',), 1396659046: ('0.05246016998058123',), 1396659004: ('0.05246016998058123',), 1396658974: ('0.05246016998058123',)} args : 1396659004 depend.output_id : 0 input_args_next_step : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ('0.05246016998058123',), 1396659428: ('0.05246016998058123',), 1396659423: ('0.05246016998058123',), 1396659223: ('0.05246016998058123',), 1396659176: ('0.05246016998058123',), 1396659111: ('0.05246016998058123',), 1396659046: ('0.05246016998058123',), 1396659004: ('0.05246016998058123',), 1396658974: ()} output_args : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ('0.05246016998058123',), 1396659428: ('0.05246016998058123',), 1396659423: ('0.05246016998058123',), 1396659223: ('0.05246016998058123',), 1396659176: ('0.05246016998058123',), 1396659111: ('0.05246016998058123',), 1396659046: ('0.05246016998058123',), 1396659004: ('0.05246016998058123',), 1396658974: ('0.05246016998058123',)} args : 1396658974 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 : {28999176: [{'autre_refus': 28999268, 'kraft': 28999269, 'Carton_brun': 28999270, 'metal': 28999271, 'cartonnette': 28999272, 'plastique': 28999273, 'Carton_gris': 28999274, 'Teint_Dans_La_Masse': 28999275, 'mal_croppe': 28999276, 'environnement': 28999277, 'flou': 28999278, 'papier': 28999279}]} input_args_next_step : {1396659466: ('0.05246016998058123',), 1396659435: ('0.05246016998058123',), 1396659430: ('0.05246016998058123',), 1396659428: ('0.05246016998058123',), 1396659423: ('0.05246016998058123',), 1396659223: ('0.05246016998058123',), 1396659176: ('0.05246016998058123',), 1396659111: ('0.05246016998058123',), 1396659046: ('0.05246016998058123',), 1396659004: ('0.05246016998058123',), 1396658974: ('0.05246016998058123',), 28999176: ()} output_args : {28999176: [{'autre_refus': 28999268, 'kraft': 28999269, 'Carton_brun': 28999270, 'metal': 28999271, 'cartonnette': 28999272, 'plastique': 28999273, 'Carton_gris': 28999274, 'Teint_Dans_La_Masse': 28999275, 'mal_croppe': 28999276, 'environnement': 28999277, 'flou': 28999278, 'papier': 28999279}]} args : 28999176 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :12, first value : ('0.05246016998058123',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28999176) 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 (1396659466,1396659435,1396659430,1396659428,1396659423,1396659223,1396659176,1396659111,1396659046,1396659004,1396658974) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1396658974 begin to download photo : 1396659111 begin to download photo : 1396659423 begin to download photo : 1396659435 download finish for photo 1396659111 begin to download photo : 1396659176 download finish for photo 1396659423 begin to download photo : 1396659428 download finish for photo 1396659435 begin to download photo : 1396659466 download finish for photo 1396658974 begin to download photo : 1396659004 download finish for photo 1396659176 begin to download photo : 1396659223 download finish for photo 1396659428 begin to download photo : 1396659430 download finish for photo 1396659466 download finish for photo 1396659004 begin to download photo : 1396659046 download finish for photo 1396659430 download finish for photo 1396659223 download finish for photo 1396659046 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P28999176_28-11-2025_15_11_00.pdf 28999268 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=28999268 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396658697: '1764338787_2133022_1396655489_f9278409abaf8aacf904d87d8f2fa7f0_rle_crop_4049437575_0.png', 1396658699: '1764338787_2133022_1396655489_f9278409abaf8aacf904d87d8f2fa7f0_rle_crop_4049437578_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/085d030230cc32da0e895c791ef9c86c_32500571.png change filename to text .imagette289992681764339060/ imagette289992681764339060/1764338787_2133022_1396655489_f9278409abaf8aacf904d87d8f2fa7f0_rle_crop_4049437575_0.png.png imagette289992681764339060/1764338787_2133022_1396655489_f9278409abaf8aacf904d87d8f2fa7f0_rle_crop_4049437578_0.png.png imagette289992691764339060/ imagette289992711764339060/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/958bab602fe569c088bcaade3cd9cda6_43538796.png imagette289992681764339060 28999269 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=28999269 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289992691764339060 28999271 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=28999271 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289992711764339060 28999272 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=28999272 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396658708: '1764338787_2133022_1396655661_9b1ff1dbcb2dab1660d47042dfb75fca_rle_crop_4049436521_0.png'} change filename to text .imagette289992721764339060/ imagette289992721764339060/1764338787_2133022_1396655661_9b1ff1dbcb2dab1660d47042dfb75fca_rle_crop_4049436521_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/4500c916bac21e07c06583cc3e4d65e0_15898777.png imagette289992721764339060 28999273 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=28999273 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396658720: '1764338787_2133022_1396655576_266162b146b9573685cbed7c43f79a52_rle_crop_4049436527_0.png', 1396658722: '1764338787_2133022_1396655576_266162b146b9573685cbed7c43f79a52_rle_crop_4049436529_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/5cc79e6a3566a9dc02ca2d4615b6846e_20549549.png change filename to text .imagette289992731764339060/ imagette289992731764339060/1764338787_2133022_1396655576_266162b146b9573685cbed7c43f79a52_rle_crop_4049436527_0.png.png imagette289992731764339060/1764338787_2133022_1396655576_266162b146b9573685cbed7c43f79a52_rle_crop_4049436529_0.png.png imagette289992761764339060/ imagette289992781764339060/ imagette289992701764339060/ imagette289992741764339060/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/7b9a68f6dbdb317de72d62bd43bbf2a4_6328580.png imagette289992731764339060 28999276 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=28999276 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289992761764339060 28999278 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=28999278 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289992781764339060 28999270 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=28999270 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289992701764339060 28999274 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=28999274 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289992741764339060 28999275 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=28999275 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396658686: '1764338787_2133022_1396655576_266162b146b9573685cbed7c43f79a52_rle_crop_4049436533_0.png'} change filename to text .imagette289992751764339060/ imagette289992751764339060/1764338787_2133022_1396655576_266162b146b9573685cbed7c43f79a52_rle_crop_4049436533_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/2f7d9e471fdb56aa0a67155c8a7a0b11_97319086.png imagette289992751764339060 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28999176 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28999281,28999282,28999283,28999284,28999285,28999286,28999287,28999288,28999289,28999290,28999291,28999292?tags=autre_refus,kraft,Carton_brun,metal,cartonnette,plastique,Carton_gris,Teint_Dans_La_Masse,mal_croppe,environnement,flou,papier your option no_mail is active, we will not send the real mail to your client args[1396659466] : ('0.05246016998058123',) no score found for photo 1396659466 We are sending mail with results at report@fotonower.com args[1396659435] : ('0.05246016998058123',) no score found for photo 1396659435 We are sending mail with results at report@fotonower.com args[1396659430] : ('0.05246016998058123',) no score found for photo 1396659430 We are sending mail with results at report@fotonower.com args[1396659428] : ('0.05246016998058123',) no score found for photo 1396659428 We are sending mail with results at report@fotonower.com args[1396659423] : ('0.05246016998058123',) no score found for photo 1396659423 We are sending mail with results at report@fotonower.com args[1396659223] : ('0.05246016998058123',) no score found for photo 1396659223 We are sending mail with results at report@fotonower.com args[1396659176] : ('0.05246016998058123',) no score found for photo 1396659176 We are sending mail with results at report@fotonower.com args[1396659111] : ('0.05246016998058123',) no score found for photo 1396659111 We are sending mail with results at report@fotonower.com args[1396659046] : ('0.05246016998058123',) no score found for photo 1396659046 We are sending mail with results at report@fotonower.com args[1396659004] : ('0.05246016998058123',) no score found for photo 1396659004 We are sending mail with results at report@fotonower.com args[1396658974] : ('0.05246016998058123',) no score found for photo 1396658974 We are sending mail with results at report@fotonower.com refus_total : 0.05246016998058123 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=28999176 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_P28999176_28-11-2025_15_11_00.pdf results_Auto_P28999176_28-11-2025_15_11_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28999176_28-11-2025_15_11_00.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','28999176','results_Auto_P28999176_28-11-2025_15_11_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28999176_28-11-2025_15_11_00.pdf','pdf','','0.12','0.05246016998058123') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28999176]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1396659466, 1396659435, 1396659430, 1396659428, 1396659423, 1396659223, 1396659176, 1396659111, 1396659046, 1396659004, 1396658974] map_info['map_portfolio_photo'] : {28999176: [1396659466, 1396659435, 1396659430, 1396659428, 1396659423, 1396659223, 1396659176, 1396659111, 1396659046, 1396659004, 1396658974, 1396658558, 1396658524, 1396658493, 1396658461, 1396657905, 1396657872, 1396657838, 1396657807, 1396657777, 1396657495, 1396657490, 1396657486, 1396657482, 1396657473, 1396657246, 1396657209, 1396657171, 1396657137, 1396657091, 1396657056, 1396656620, 1396656588, 1396656558, 1396656242, 1396656240, 1396656237, 1396656182, 1396656099, 1396656045, 1396655661, 1396655576, 1396655489]} final : False mtd_id 4302 list_pids : [1396659466, 1396659435, 1396659430, 1396659428, 1396659423, 1396659223, 1396659176, 1396659111, 1396659046, 1396659004, 1396658974] 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, '4135547') ('4302', '28999176', '1396659466', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659435', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659430', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659428', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659423', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659223', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659176', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659111', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659046', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659004', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396658974', None, None, None, None, None, '4135547') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28999176', '1396659466', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659435', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659430', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659428', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659423', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659223', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659176', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659111', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659046', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659004', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396658974', None, None, None, None, None, '4135547')] time used for this insertion : 0.015746355056762695 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.267397403717041 time spend to save output : 0.0159909725189209 total time spend for step 4 : 2.283388376235962 step5:split_time_score Fri Nov 28 15:11:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['28999176'] 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 : [('28999176',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28999176) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1396659435: {'path': 'temp/1764339059_452345_1396659435_dfa844adc9a818f1b67f8688b1d8befb.jpg', 'extension': 'jpg'}, 1396659466: {'path': 'temp/1764339059_452345_1396659466_579755bd651f95ab54dddc719b057560.jpg', 'extension': 'jpg'}, 1396659423: {'path': 'temp/1764339059_452345_1396659423_cd8d2eea5b5b35fcf1012eadb0e79260.jpg', 'extension': 'jpg'}, 1396659428: {'path': 'temp/1764339059_452345_1396659428_b2a7546bc317f385bf8f73dea1e95265.jpg', 'extension': 'jpg'}, 1396659430: {'path': 'temp/1764339059_452345_1396659430_347bbef2502098291695553cf9eb3ff7.jpg', 'extension': 'jpg'}, 1396659111: {'path': 'temp/1764339059_452345_1396659111_f2a347236e603bde7ec48a0f776a9589.jpg', 'extension': 'jpg'}, 1396659176: {'path': 'temp/1764339059_452345_1396659176_42bc8aad3583ef8efa7e71c4dd94a4bb.jpg', 'extension': 'jpg'}, 1396659223: {'path': 'temp/1764339059_452345_1396659223_f64a5471a543e758e621b66c3d345031.jpg', 'extension': 'jpg'}, 1396658974: {'path': 'temp/1764339059_452345_1396658974_11e2a11880c6da8416f1542c022a0f79.jpg', 'extension': 'jpg'}, 1396659004: {'path': 'temp/1764339059_452345_1396659004_557f663eea898cc295ab382ef2f28d57.jpg', 'extension': 'jpg'}, 1396659046: {'path': 'temp/1764339059_452345_1396659046_9828ac73845393ac88f2caca9fa69743.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 = 28999176; (('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 = 28999176 group by h (('15', 43),) 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=28999176 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 (28999176) 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 (28999176) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28112025 28999176 Nombre de photos uploadées : 43 / 23040 (0%) 28112025 28999176 Nombre de photos taguées (types de déchets): 0 / 43 (0%) 28112025 28999176 Nombre de photos taguées (volume) : 0 / 43 (0%) [{'photo_id': 1396655661, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/9b1ff1dbcb2dab1660d47042dfb75fca.jpg', 'username': None, 'uploaded_at': 1764338467, 'text': 'image_28112025_15_00_24_10135.jpg'}, {'photo_id': 1396655576, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/266162b146b9573685cbed7c43f79a52.jpg', 'username': None, 'uploaded_at': 1764338467, 'text': 'image_28112025_15_00_33_9125.jpg'}, {'photo_id': 1396655489, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/f9278409abaf8aacf904d87d8f2fa7f0.jpg', 'username': None, 'uploaded_at': 1764338467, 'text': 'image_28112025_15_00_43_10136.jpg'}, {'photo_id': 1396656242, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/10d258a6c2f7e0da494c26454d8efc0c.jpg', 'username': None, 'uploaded_at': 1764338528, 'text': 'image_28112025_15_00_53_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 9.059906005859375e-06 ??????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002393007278442383 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28999176, '2025-11-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-28' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2658013,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2752540111541748 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= 2658013 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28975051, 'dashboard_result_id': 17850396, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975051_28-11-2025_06_12_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28975071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975082, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28975640, 'dashboard_result_id': 17850397, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975640_28-11-2025_06_12_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28975651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975654, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28976061, 'dashboard_result_id': 17850398, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976061_28-11-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28976065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976076, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28976505, 'dashboard_result_id': 17850399, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976505_28-11-2025_06_14_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28976519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976523, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28978093, 'dashboard_result_id': 17850400, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978093_28-11-2025_06_14_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28978094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978105, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28978470, 'dashboard_result_id': 17850401, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978470_28-11-2025_06_15_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978501, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28978907, 'dashboard_result_id': 17850402, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978907_28-11-2025_06_15_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978958, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28979483, 'dashboard_result_id': 17850403, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979483_28-11-2025_06_16_15.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979527, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979532, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28979969, 'dashboard_result_id': 17850404, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979969_28-11-2025_06_17_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979989, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28980449, 'dashboard_result_id': 17850405, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28980449_28-11-2025_06_17_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28980500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980510, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28980831, 'dashboard_result_id': 17850406, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28980831_28-11-2025_06_18_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28980835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980846, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28981438, 'dashboard_result_id': 17850407, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28981438_28-11-2025_06_18_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28981464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28981465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28981466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28981467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28981468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28981469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28981470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28981471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28981472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28981473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28981474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28981475, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28982151, 'dashboard_result_id': 17850408, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982151_28-11-2025_06_20_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28982157, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982163, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28982326, 'dashboard_result_id': 17850409, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982326_28-11-2025_06_20_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28982340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982351, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28982677, 'dashboard_result_id': 17850410, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982677_28-11-2025_06_21_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28982694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982701, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982704, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28983973, 'dashboard_result_id': 17850411, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28983973_28-11-2025_06_21_14.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28983974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28983975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28983976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28983977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28983978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28983979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28983980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28983981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28983982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28983983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28983984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28983985, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28984352, 'dashboard_result_id': 17850412, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28984352_28-11-2025_06_21_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28984369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28984370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28984371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28984372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28984373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28984374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28984375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28984376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28984377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28984378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28984379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28984380, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28984847, 'dashboard_result_id': 17850413, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28984847_28-11-2025_05_47_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28984851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28984852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28984853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28984854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28984855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28984856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28984857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28984858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28984859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28984860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28984861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28984862, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28985168, 'dashboard_result_id': 17850414, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28985168_28-11-2025_06_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28985172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28985173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28985174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28985175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28985176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28985177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28985178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28985179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28985180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28985181, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28985182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28985183, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28985595, 'dashboard_result_id': 17850415, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28985595_28-11-2025_06_19_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28985599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28985600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28985601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28985602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28985603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28985604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28985605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28985606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28985607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28985608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28985609, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28985611, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28987565, 'dashboard_result_id': 17850416, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28987565_28-11-2025_08_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28987567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28987568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28987569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28987570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28987571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28987572, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28987573, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28987574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28987575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28987576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28987577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28987578, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28987843, 'dashboard_result_id': 17850417, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28987843_28-11-2025_08_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28987847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28987848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28987849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28987850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28987851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28987852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28987853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28987854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28987855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28987856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28987857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28987858, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28988243, 'dashboard_result_id': 17850418, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28988243_28-11-2025_09_08_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28988248, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28988249, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28988250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28988251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28988252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28988253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28988254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28988255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28988256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28988257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28988258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28988259, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28989138, 'dashboard_result_id': 17850419, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28989138_28-11-2025_09_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28989150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28989151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28989152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28989153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28989154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28989155, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28989156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28989157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28989158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28989159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28989160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28989161, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28989473, 'dashboard_result_id': 17850420, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28989473_28-11-2025_10_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28989522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28989523, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28989524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28989525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28989526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28989527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28989528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28989529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28989530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28989531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28989532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28989533, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28989983, 'dashboard_result_id': 17850421, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28989983_28-11-2025_10_18_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28989989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28989990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28989991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28989992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28989993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28989994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28989995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28989996, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28989997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28989998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28989999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28990000, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28990586, 'dashboard_result_id': 17850422, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28990586_28-11-2025_10_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28990587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28990588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28990589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28990590, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28990591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28990592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28990593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28990594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28990595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28990596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28990597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28990598, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28991027, 'dashboard_result_id': 17850423, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28991027_28-11-2025_10_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28991069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28991070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28991071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28991072, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28991073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28991074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28991075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28991076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28991077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28991078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28991079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28991080, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28991604, 'dashboard_result_id': 17850424, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28991604_28-11-2025_11_03_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28991614, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28991615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28991616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28991617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28991618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28991619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28991620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28991621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28991622, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28991623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28991624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28991625, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28992036, 'dashboard_result_id': 17850425, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28992036_28-11-2025_11_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28992046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28992047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28992048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28992049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28992051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28992052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28992053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28992054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28992055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28992056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28992057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28992058, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28992895, 'dashboard_result_id': 17850426, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28992895_28-11-2025_11_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28992899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28992900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28992901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28992902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28992903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28992904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28992905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28992906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28992907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28992908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28992909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28992910, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28993222, 'dashboard_result_id': 17850427, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28993222_28-11-2025_11_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28993258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28993259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28993260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28993261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28993262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28993263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28993264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28993265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28993266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28993267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28993268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28993269, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28993590, 'dashboard_result_id': 17850428, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28993590_28-11-2025_12_08_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28993623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28993624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28993625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28993626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28993627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28993628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28993629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28993630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28993631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28993632, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28993633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28993634, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28996997, 'dashboard_result_id': 17850429, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28996997_28-11-2025_14_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28997013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28997014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28997015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28997016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28997017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28997018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28997019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28997020, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28997021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28997022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28997023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28997024, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28997465, 'dashboard_result_id': 17850430, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28997465_28-11-2025_14_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28997469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28997470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28997471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28997472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28997473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28997474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28997475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28997476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28997477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28997478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28997479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28997480, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28997995, 'dashboard_result_id': 17850431, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28997995_28-11-2025_14_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28998008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28998009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28998010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28998011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28998012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28998013, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28998014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28998015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28998016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28998017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28998018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28998019, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28998473, 'dashboard_result_id': 17850432, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28998473_28-11-2025_15_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28998518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28998519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28998520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28998521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28998522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28998523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28998524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28998525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28998526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28998527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28998528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28998529, 'pht': 3726}}"}, {'dashboat_entry_day': 2658013, 'dashboard_run_id': 2669229, 'mtr_portfolio_id': 28999176, 'dashboard_result_id': 17850433, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28999176_28-11-2025_15_08_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28999268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28999269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28999270, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28999271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28999272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28999273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28999274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28999275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28999276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28999277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28999278, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28999279, '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 = 28975051 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133072, 'mtr_portfolio_id': 28975051, 'created_at': datetime.datetime(2025, 11, 28, 6, 12), 'result': '0.041448810976491474', 'result_long': None, 'result_double': None}] Qualite : 0.041448810976491474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28975051 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975051_28-11-2025_06_12_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28975051 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975051_28-11-2025_06_12_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28975071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975082, 'pht': 3726}}" where mtr_portfolio_id = 28975051 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28975051 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850396, 0.041448810976491474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975051_28-11-2025_06_12_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28975071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975082, '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 = 28975640 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133073, 'mtr_portfolio_id': 28975640, 'created_at': datetime.datetime(2025, 11, 28, 6, 12, 30), 'result': '0.028260757334550402', 'result_long': None, 'result_double': None}] Qualite : 0.028260757334550402 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28975640 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975640_28-11-2025_06_12_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28975640 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975640_28-11-2025_06_12_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28975651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975654, 'pht': 3726}}" where mtr_portfolio_id = 28975640 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28975640 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850397, 0.028260757334550402, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975640_28-11-2025_06_12_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28975651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975654, '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 = 28976061 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133074, 'mtr_portfolio_id': 28976061, 'created_at': datetime.datetime(2025, 11, 28, 6, 13, 28), 'result': '0.0425580038967795', 'result_long': None, 'result_double': None}] Qualite : 0.0425580038967795 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28976061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976061_28-11-2025_06_13_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28976061 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976061_28-11-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28976065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976076, 'pht': 3726}}" where mtr_portfolio_id = 28976061 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28976061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850398, 0.0425580038967795, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976061_28-11-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28976065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976076, '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 = 28976505 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133075, 'mtr_portfolio_id': 28976505, 'created_at': datetime.datetime(2025, 11, 28, 6, 13, 59), 'result': '0.0685509832194652', 'result_long': None, 'result_double': None}] Qualite : 0.0685509832194652 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28976505 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976505_28-11-2025_06_14_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28976505 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976505_28-11-2025_06_14_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28976519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976523, 'pht': 3726}}" where mtr_portfolio_id = 28976505 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28976505 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850399, 0.0685509832194652, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976505_28-11-2025_06_14_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976512, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28976519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976520, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976521, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976523, '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 = 28978093 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133076, 'mtr_portfolio_id': 28978093, 'created_at': datetime.datetime(2025, 11, 28, 6, 14, 31), 'result': '0.04924462142012214', 'result_long': None, 'result_double': None}] Qualite : 0.04924462142012214 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28978093 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978093_28-11-2025_06_14_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28978093 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978093_28-11-2025_06_14_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28978094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978105, 'pht': 3726}}" where mtr_portfolio_id = 28978093 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28978093 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850400, 0.04924462142012214, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978093_28-11-2025_06_14_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28978094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978096, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978102, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978104, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978105, '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 = 28978470 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133077, 'mtr_portfolio_id': 28978470, 'created_at': datetime.datetime(2025, 11, 28, 6, 15, 30), 'result': '0.04236146457551967', 'result_long': None, 'result_double': None}] Qualite : 0.04236146457551967 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28978470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978470_28-11-2025_06_15_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28978470 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978470_28-11-2025_06_15_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978501, 'pht': 3726}}" where mtr_portfolio_id = 28978470 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28978470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850401, 0.04236146457551967, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978470_28-11-2025_06_15_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978489, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978491, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978501, '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 = 28978907 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133078, 'mtr_portfolio_id': 28978907, 'created_at': datetime.datetime(2025, 11, 28, 6, 15, 56), 'result': '0.0449972590407434', 'result_long': None, 'result_double': None}] Qualite : 0.0449972590407434 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28978907 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978907_28-11-2025_06_15_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28978907 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978907_28-11-2025_06_15_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978958, 'pht': 3726}}" where mtr_portfolio_id = 28978907 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28978907 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850402, 0.0449972590407434, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28978907_28-11-2025_06_15_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28978946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28978947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28978948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28978949, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28978950, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28978952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28978953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28978954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28978955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28978956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28978957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28978958, '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 = 28979483 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133079, 'mtr_portfolio_id': 28979483, 'created_at': datetime.datetime(2025, 11, 28, 6, 16, 12), 'result': '0.04504699440570224', 'result_long': None, 'result_double': None}] Qualite : 0.04504699440570224 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28979483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979483_28-11-2025_06_16_15.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28979483 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979483_28-11-2025_06_16_15.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979527, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979532, 'pht': 3726}}" where mtr_portfolio_id = 28979483 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28979483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850403, 0.04504699440570224, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979483_28-11-2025_06_16_15.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979526, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979527, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979531, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979532, '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 = 28979969 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133080, 'mtr_portfolio_id': 28979969, 'created_at': datetime.datetime(2025, 11, 28, 6, 16, 59), 'result': '0.0411389730407871', 'result_long': None, 'result_double': None}] Qualite : 0.0411389730407871 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28979969 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979969_28-11-2025_06_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28979969 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979969_28-11-2025_06_17_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979989, 'pht': 3726}}" where mtr_portfolio_id = 28979969 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28979969 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850404, 0.0411389730407871, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28979969_28-11-2025_06_17_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28979978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28979979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28979980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28979981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28979982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28979983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28979984, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28979985, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28979986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28979987, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28979988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28979989, '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 = 28980449 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133081, 'mtr_portfolio_id': 28980449, 'created_at': datetime.datetime(2025, 11, 28, 6, 17, 30), 'result': '0.04286148862316855', 'result_long': None, 'result_double': None}] Qualite : 0.04286148862316855 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28980449 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28980449_28-11-2025_06_17_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28980449 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28980449_28-11-2025_06_17_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28980500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980510, 'pht': 3726}}" where mtr_portfolio_id = 28980449 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28980449 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850405, 0.04286148862316855, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28980449_28-11-2025_06_17_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28980500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980510, '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 = 28980831 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133082, 'mtr_portfolio_id': 28980831, 'created_at': datetime.datetime(2025, 11, 28, 6, 18), 'result': '0.051254198999725026', 'result_long': None, 'result_double': None}] Qualite : 0.051254198999725026 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28980831 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28980831_28-11-2025_06_18_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28980831 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28980831_28-11-2025_06_18_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28980835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980846, 'pht': 3726}}" where mtr_portfolio_id = 28980831 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28980831 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850406, 0.051254198999725026, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28980831_28-11-2025_06_18_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28980835, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28980836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28980837, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28980838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28980839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28980840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28980841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28980842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28980843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28980844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28980845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28980846, '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 = 28981438 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133083, 'mtr_portfolio_id': 28981438, 'created_at': datetime.datetime(2025, 11, 28, 6, 18, 29), 'result': '0.05951098135541105', 'result_long': None, 'result_double': None}] Qualite : 0.05951098135541105 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28981438 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28981438_28-11-2025_06_18_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28981438 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28981438_28-11-2025_06_18_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28981464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28981465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28981466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28981467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28981468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28981469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28981470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28981471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28981472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28981473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28981474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28981475, 'pht': 3726}}" where mtr_portfolio_id = 28981438 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28981438 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850407, 0.05951098135541105, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28981438_28-11-2025_06_18_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28981464, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28981465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28981466, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28981467, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28981468, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28981469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28981470, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28981471, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28981472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28981473, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28981474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28981475, '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 = 28982151 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133084, 'mtr_portfolio_id': 28982151, 'created_at': datetime.datetime(2025, 11, 28, 6, 19, 59), 'result': '0.06720476090565872', 'result_long': None, 'result_double': None}] Qualite : 0.06720476090565872 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28982151 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982151_28-11-2025_06_20_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28982151 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982151_28-11-2025_06_20_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28982157, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982163, 'pht': 3726}}" where mtr_portfolio_id = 28982151 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28982151 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850408, 0.06720476090565872, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982151_28-11-2025_06_20_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982155, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28982157, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982158, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982159, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982160, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982162, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982163, '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 = 28982326 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133085, 'mtr_portfolio_id': 28982326, 'created_at': datetime.datetime(2025, 11, 28, 6, 20, 29), 'result': '0.03553578264141378', 'result_long': None, 'result_double': None}] Qualite : 0.03553578264141378 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28982326 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982326_28-11-2025_06_20_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28982326 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982326_28-11-2025_06_20_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28982340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982351, 'pht': 3726}}" where mtr_portfolio_id = 28982326 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28982326 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850409, 0.03553578264141378, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982326_28-11-2025_06_20_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28982340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982344, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982347, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982351, '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 = 28982677 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133086, 'mtr_portfolio_id': 28982677, 'created_at': datetime.datetime(2025, 11, 28, 6, 20, 59), 'result': '0.049379925005906836', 'result_long': None, 'result_double': None}] Qualite : 0.049379925005906836 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28982677 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982677_28-11-2025_06_21_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28982677 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982677_28-11-2025_06_21_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28982694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982701, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982704, 'pht': 3726}}" where mtr_portfolio_id = 28982677 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28982677 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850410, 0.049379925005906836, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28982677_28-11-2025_06_21_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28982692, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28982693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28982694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28982695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28982696, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28982698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28982699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28982700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28982701, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28982702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28982703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28982704, '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 = 28983973 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133087, 'mtr_portfolio_id': 28983973, 'created_at': datetime.datetime(2025, 11, 28, 6, 21, 11), 'result': '0.05728450201263826', 'result_long': None, 'result_double': None}] Qualite : 0.05728450201263826 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28983973 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28983973_28-11-2025_06_21_14.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28983973 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28983973_28-11-2025_06_21_14.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28983974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28983975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28983976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28983977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28983978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28983979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28983980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28983981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28983982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28983983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28983984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28983985, 'pht': 3726}}" where mtr_portfolio_id = 28983973 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28983973 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850411, 0.05728450201263826, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28983973_28-11-2025_06_21_14.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28983974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28983975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28983976, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28983977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28983978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28983979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28983980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28983981, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28983982, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28983983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28983984, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28983985, '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 = 28984352 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133088, 'mtr_portfolio_id': 28984352, 'created_at': datetime.datetime(2025, 11, 28, 6, 21, 30), 'result': '0.048907210698158926', 'result_long': None, 'result_double': None}] Qualite : 0.048907210698158926 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28984352 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28984352_28-11-2025_06_21_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28984352 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28984352_28-11-2025_06_21_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28984369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28984370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28984371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28984372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28984373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28984374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28984375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28984376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28984377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28984378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28984379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28984380, 'pht': 3726}}" where mtr_portfolio_id = 28984352 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28984352 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850412, 0.048907210698158926, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28984352_28-11-2025_06_21_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28984369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28984370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28984371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28984372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28984373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28984374, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28984375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28984376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28984377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28984378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28984379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28984380, '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 = 28984847 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133002, 'mtr_portfolio_id': 28984847, 'created_at': datetime.datetime(2025, 11, 28, 5, 47, 30), 'result': '0.041799832911874515', 'result_long': None, 'result_double': None}] Qualite : 0.041799832911874515 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28984847 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28984847_28-11-2025_05_47_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28984847 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28984847_28-11-2025_05_47_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28984851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28984852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28984853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28984854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28984855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28984856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28984857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28984858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28984859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28984860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28984861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28984862, 'pht': 3726}}" where mtr_portfolio_id = 28984847 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28984847 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850413, 0.041799832911874515, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28984847_28-11-2025_05_47_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28984851, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28984852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28984853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28984854, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28984855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28984856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28984857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28984858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28984859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28984860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28984861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28984862, '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 = 28985168 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133176, 'mtr_portfolio_id': 28985168, 'created_at': datetime.datetime(2025, 11, 28, 6, 3, 28), 'result': '0.05643612918517163', 'result_long': None, 'result_double': None}] Qualite : 0.05643612918517163 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28985168 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28985168_28-11-2025_06_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28985168 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28985168_28-11-2025_06_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28985172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28985173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28985174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28985175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28985176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28985177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28985178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28985179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28985180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28985181, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28985182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28985183, 'pht': 3726}}" where mtr_portfolio_id = 28985168 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28985168 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850414, 0.05643612918517163, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28985168_28-11-2025_06_03_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28985172, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28985173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28985174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28985175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28985176, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28985177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28985178, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28985179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28985180, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28985181, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28985182, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28985183, '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 = 28985595 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133255, 'mtr_portfolio_id': 28985595, 'created_at': datetime.datetime(2025, 11, 28, 6, 19, 31), 'result': '0.04188950702097101', 'result_long': None, 'result_double': None}] Qualite : 0.04188950702097101 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28985595 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28985595_28-11-2025_06_19_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28985595 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28985595_28-11-2025_06_19_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28985599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28985600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28985601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28985602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28985603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28985604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28985605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28985606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28985607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28985608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28985609, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28985611, 'pht': 3726}}" where mtr_portfolio_id = 28985595 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28985595 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850415, 0.04188950702097101, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28985595_28-11-2025_06_19_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28985599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28985600, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28985601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28985602, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28985603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28985604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28985605, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28985606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28985607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28985608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28985609, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28985611, '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 = 28987565 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133704, 'mtr_portfolio_id': 28987565, 'created_at': datetime.datetime(2025, 11, 28, 8, 32, 59), 'result': '0.06687309664848937', 'result_long': None, 'result_double': None}] Qualite : 0.06687309664848937 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28987565 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28987565_28-11-2025_08_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28987565 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28987565_28-11-2025_08_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28987567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28987568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28987569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28987570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28987571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28987572, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28987573, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28987574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28987575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28987576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28987577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28987578, 'pht': 3726}}" where mtr_portfolio_id = 28987565 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28987565 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850416, 0.06687309664848937, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28987565_28-11-2025_08_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28987567, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28987568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28987569, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28987570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28987571, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28987572, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28987573, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28987574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28987575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28987576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28987577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28987578, '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 = 28987843 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133736, 'mtr_portfolio_id': 28987843, 'created_at': datetime.datetime(2025, 11, 28, 8, 48, 59), 'result': '0.07399606651833444', 'result_long': None, 'result_double': None}] Qualite : 0.07399606651833444 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28987843 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28987843_28-11-2025_08_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28987843 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28987843_28-11-2025_08_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28987847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28987848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28987849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28987850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28987851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28987852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28987853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28987854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28987855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28987856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28987857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28987858, 'pht': 3726}}" where mtr_portfolio_id = 28987843 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28987843 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850417, 0.07399606651833444, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28987843_28-11-2025_08_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28987847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28987848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28987849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28987850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28987851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28987852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28987853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28987854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28987855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28987856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28987857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28987858, '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 = 28988243 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133799, 'mtr_portfolio_id': 28988243, 'created_at': datetime.datetime(2025, 11, 28, 9, 8, 32), 'result': '0.05704139300742374', 'result_long': None, 'result_double': None}] Qualite : 0.05704139300742374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28988243 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28988243_28-11-2025_09_08_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28988243 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28988243_28-11-2025_09_08_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28988248, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28988249, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28988250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28988251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28988252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28988253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28988254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28988255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28988256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28988257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28988258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28988259, 'pht': 3726}}" where mtr_portfolio_id = 28988243 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28988243 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850418, 0.05704139300742374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28988243_28-11-2025_09_08_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28988248, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28988249, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28988250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28988251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28988252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28988253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28988254, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28988255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28988256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28988257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28988258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28988259, '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 = 28989138 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133933, 'mtr_portfolio_id': 28989138, 'created_at': datetime.datetime(2025, 11, 28, 9, 46, 59), 'result': '0.07763768014744536', 'result_long': None, 'result_double': None}] Qualite : 0.07763768014744536 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28989138 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28989138_28-11-2025_09_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28989138 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28989138_28-11-2025_09_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28989150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28989151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28989152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28989153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28989154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28989155, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28989156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28989157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28989158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28989159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28989160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28989161, 'pht': 3726}}" where mtr_portfolio_id = 28989138 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28989138 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850419, 0.07763768014744536, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28989138_28-11-2025_09_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28989150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28989151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28989152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28989153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28989154, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28989155, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28989156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28989157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28989158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28989159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28989160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28989161, '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 = 28989473 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4133995, 'mtr_portfolio_id': 28989473, 'created_at': datetime.datetime(2025, 11, 28, 10, 2, 58), 'result': '0.07665721747999489', 'result_long': None, 'result_double': None}] Qualite : 0.07665721747999489 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28989473 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28989473_28-11-2025_10_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28989473 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28989473_28-11-2025_10_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28989522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28989523, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28989524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28989525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28989526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28989527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28989528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28989529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28989530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28989531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28989532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28989533, 'pht': 3726}}" where mtr_portfolio_id = 28989473 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28989473 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850420, 0.07665721747999489, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28989473_28-11-2025_10_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28989522, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28989523, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28989524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28989525, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28989526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28989527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28989528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28989529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28989530, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28989531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28989532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28989533, '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 = 28989983 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4134079, 'mtr_portfolio_id': 28989983, 'created_at': datetime.datetime(2025, 11, 28, 10, 18, 58), 'result': '0.0385895433056228', 'result_long': None, 'result_double': None}] Qualite : 0.0385895433056228 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28989983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28989983_28-11-2025_10_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28989983 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28989983_28-11-2025_10_18_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28989989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28989990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28989991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28989992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28989993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28989994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28989995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28989996, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28989997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28989998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28989999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28990000, 'pht': 3726}}" where mtr_portfolio_id = 28989983 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28989983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850421, 0.0385895433056228, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28989983_28-11-2025_10_18_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28989989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28989990, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28989991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28989992, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28989993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28989994, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28989995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28989996, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28989997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28989998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28989999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28990000, '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 = 28990586 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4134167, 'mtr_portfolio_id': 28990586, 'created_at': datetime.datetime(2025, 11, 28, 10, 33, 1), 'result': '0.04749344845561701', 'result_long': None, 'result_double': None}] Qualite : 0.04749344845561701 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28990586 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28990586_28-11-2025_10_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28990586 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28990586_28-11-2025_10_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28990587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28990588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28990589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28990590, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28990591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28990592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28990593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28990594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28990595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28990596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28990597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28990598, 'pht': 3726}}" where mtr_portfolio_id = 28990586 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28990586 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850422, 0.04749344845561701, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28990586_28-11-2025_10_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28990587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28990588, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28990589, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28990590, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28990591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28990592, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28990593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28990594, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28990595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28990596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28990597, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28990598, '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 = 28991027 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4134276, 'mtr_portfolio_id': 28991027, 'created_at': datetime.datetime(2025, 11, 28, 10, 48, 58), 'result': '0.023236876353411724', 'result_long': None, 'result_double': None}] Qualite : 0.023236876353411724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28991027 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28991027_28-11-2025_10_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28991027 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28991027_28-11-2025_10_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28991069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28991070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28991071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28991072, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28991073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28991074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28991075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28991076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28991077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28991078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28991079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28991080, 'pht': 3726}}" where mtr_portfolio_id = 28991027 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28991027 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850423, 0.023236876353411724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28991027_28-11-2025_10_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28991069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28991070, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28991071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28991072, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28991073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28991074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28991075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28991076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28991077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28991078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28991079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28991080, '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 = 28991604 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4134382, 'mtr_portfolio_id': 28991604, 'created_at': datetime.datetime(2025, 11, 28, 11, 3, 28), 'result': '0.03404421410112528', 'result_long': None, 'result_double': None}] Qualite : 0.03404421410112528 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28991604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28991604_28-11-2025_11_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28991604 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28991604_28-11-2025_11_03_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28991614, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28991615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28991616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28991617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28991618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28991619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28991620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28991621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28991622, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28991623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28991624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28991625, 'pht': 3726}}" where mtr_portfolio_id = 28991604 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28991604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850424, 0.03404421410112528, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28991604_28-11-2025_11_03_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28991614, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28991615, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28991616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28991617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28991618, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28991619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28991620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28991621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28991622, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28991623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28991624, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28991625, '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 = 28992036 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4134476, 'mtr_portfolio_id': 28992036, 'created_at': datetime.datetime(2025, 11, 28, 11, 16, 58), 'result': '0.052226929923279', 'result_long': None, 'result_double': None}] Qualite : 0.052226929923279 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28992036 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28992036_28-11-2025_11_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28992036 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28992036_28-11-2025_11_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28992046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28992047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28992048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28992049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28992051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28992052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28992053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28992054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28992055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28992056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28992057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28992058, 'pht': 3726}}" where mtr_portfolio_id = 28992036 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28992036 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850425, 0.052226929923279, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28992036_28-11-2025_11_16_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28992046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28992047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28992048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28992049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28992051, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28992052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28992053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28992054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28992055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28992056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28992057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28992058, '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 = 28992895 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4134634, 'mtr_portfolio_id': 28992895, 'created_at': datetime.datetime(2025, 11, 28, 11, 32, 58), 'result': '0.04281083310074174', 'result_long': None, 'result_double': None}] Qualite : 0.04281083310074174 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28992895 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28992895_28-11-2025_11_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28992895 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28992895_28-11-2025_11_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28992899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28992900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28992901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28992902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28992903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28992904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28992905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28992906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28992907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28992908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28992909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28992910, 'pht': 3726}}" where mtr_portfolio_id = 28992895 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28992895 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850426, 0.04281083310074174, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28992895_28-11-2025_11_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28992899, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28992900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28992901, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28992902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28992903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28992904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28992905, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28992906, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28992907, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28992908, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28992909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28992910, '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 = 28993222 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4134701, 'mtr_portfolio_id': 28993222, 'created_at': datetime.datetime(2025, 11, 28, 11, 48, 58), 'result': '0.07686825125162969', 'result_long': None, 'result_double': None}] Qualite : 0.07686825125162969 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28993222 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28993222_28-11-2025_11_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28993222 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28993222_28-11-2025_11_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28993258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28993259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28993260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28993261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28993262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28993263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28993264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28993265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28993266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28993267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28993268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28993269, 'pht': 3726}}" where mtr_portfolio_id = 28993222 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28993222 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850427, 0.07686825125162969, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28993222_28-11-2025_11_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28993258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28993259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28993260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28993261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28993262, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28993263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28993264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28993265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28993266, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28993267, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28993268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28993269, '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 = 28993590 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4134826, 'mtr_portfolio_id': 28993590, 'created_at': datetime.datetime(2025, 11, 28, 12, 8, 59), 'result': '0.053643358973434724', 'result_long': None, 'result_double': None}] Qualite : 0.053643358973434724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28993590 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28993590_28-11-2025_12_08_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28993590 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28993590_28-11-2025_12_08_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28993623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28993624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28993625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28993626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28993627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28993628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28993629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28993630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28993631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28993632, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28993633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28993634, 'pht': 3726}}" where mtr_portfolio_id = 28993590 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28993590 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850428, 0.053643358973434724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28993590_28-11-2025_12_08_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28993623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28993624, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28993625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28993626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28993627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28993628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28993629, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28993630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28993631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28993632, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28993633, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28993634, '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 = 28996997 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4135311, 'mtr_portfolio_id': 28996997, 'created_at': datetime.datetime(2025, 11, 28, 14, 16, 57), 'result': '0.05902734203128293', 'result_long': None, 'result_double': None}] Qualite : 0.05902734203128293 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28996997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28996997_28-11-2025_14_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28996997 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28996997_28-11-2025_14_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28997013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28997014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28997015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28997016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28997017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28997018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28997019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28997020, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28997021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28997022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28997023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28997024, 'pht': 3726}}" where mtr_portfolio_id = 28996997 and dashboard_run_id = 2669229 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28996997 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850429, 0.05902734203128293, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28996997_28-11-2025_14_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28997013, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28997014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28997015, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28997016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28997017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28997018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28997019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28997020, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28997021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28997022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28997023, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28997024, '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 = 28997465 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4135350, 'mtr_portfolio_id': 28997465, 'created_at': datetime.datetime(2025, 11, 28, 14, 32, 58), 'result': '0.041575361349592894', 'result_long': None, 'result_double': None}] Qualite : 0.041575361349592894 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28997465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28997465_28-11-2025_14_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28997465 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28997465_28-11-2025_14_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28997469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28997470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28997471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28997472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28997473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28997474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28997475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28997476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28997477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28997478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28997479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28997480, 'pht': 3726}}" where mtr_portfolio_id = 28997465 and dashboard_run_id = 2669233 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28997465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850430, 0.041575361349592894, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28997465_28-11-2025_14_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28997469, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28997470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28997471, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28997472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28997473, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28997474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28997475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28997476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28997477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28997478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28997479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28997480, '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 = 28997995 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4135389, 'mtr_portfolio_id': 28997995, 'created_at': datetime.datetime(2025, 11, 28, 14, 47), 'result': '0.045623326421818454', 'result_long': None, 'result_double': None}] Qualite : 0.045623326421818454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28997995 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28997995_28-11-2025_14_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28997995 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28997995_28-11-2025_14_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28998008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28998009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28998010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28998011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28998012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28998013, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28998014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28998015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28998016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28998017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28998018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28998019, 'pht': 3726}}" where mtr_portfolio_id = 28997995 and dashboard_run_id = 2669233 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28997995 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850431, 0.045623326421818454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28997995_28-11-2025_14_47_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28998008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28998009, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28998010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28998011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28998012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28998013, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28998014, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28998015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28998016, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28998017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28998018, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28998019, '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 = 28998473 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4135426, 'mtr_portfolio_id': 28998473, 'created_at': datetime.datetime(2025, 11, 28, 15, 2, 58), 'result': '0.06167724951227128', 'result_long': None, 'result_double': None}] Qualite : 0.06167724951227128 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28998473 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28998473_28-11-2025_15_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28998473 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28998473_28-11-2025_15_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28998518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28998519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28998520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28998521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28998522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28998523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28998524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28998525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28998526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28998527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28998528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28998529, 'pht': 3726}}" where mtr_portfolio_id = 28998473 and dashboard_run_id = 2669233 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28998473 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850432, 0.06167724951227128, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28998473_28-11-2025_15_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28998518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28998519, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28998520, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28998521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28998522, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28998523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28998524, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28998525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28998526, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28998527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28998528, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28998529, '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 = 28999176 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4135547, 'mtr_portfolio_id': 28999176, 'created_at': datetime.datetime(2025, 11, 28, 15, 10, 59), 'result': '0.05246016998058123', 'result_long': None, 'result_double': None}] Qualite : 0.05246016998058123 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28999176 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28999176_28-11-2025_15_11_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28999176 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28999176_28-11-2025_15_11_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28999268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28999269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28999270, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28999271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28999272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28999273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28999274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28999275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28999276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28999277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28999278, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28999279, 'pht': 3726}}" where mtr_portfolio_id = 28999176 and dashboard_run_id = 2669233 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28999176 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17850433, 0.05246016998058123, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28999176_28-11-2025_15_11_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28999268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28999269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28999270, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28999271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28999272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28999273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28999274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28999275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28999276, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28999277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28999278, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28999279, '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 (28975051,28975640,28976061,28976505,28978093,28978470,28978907,28979483,28979969,28980449,28980831,28981438,28982151,28982326,28982677,28983973,28984352,28984847,28985168,28985595,28987565,28987843,28988243,28989138,28989473,28989983,28990586,28991027,28991604,28992036,28992895,28993222,28993590,28996997,28997465,28997995,28998473,28999176) result : ((1396500799,), (1396500876,), (1396500951,), (1396501028,), (1396501825,), (1396501895,), (1396501965,), (1396502025,), (1396502595,), (1396502695,), (1396502783,), (1396502874,), (1396503635,), (1396503685,), (1396504251,), (1396504299,), (1396506218,), (1396506261,), (1396506283,), (1396506995,), (1396506650,), (1396506943,), (1396506969,), (1396507382,), (1396507407,), (1396507434,), (1396507465,), (1396507752,), (1396507766,), (1396507771,), (1396507776,), (1396507780,), (1396507960,), (1396508009,), (1396508055,), (1396508106,), (1396508153,), (1396508624,), (1396508674,), (1396508721,), (1396508781,), (1396509060,), (1396509552,), (1396509595,), (1396509654,), (1396509708,), (1396509755,), (1396509793,), (1396509870,), (1396509895,), (1396509907,), (1396509911,), (1396509950,), (1396509953,), (1396509956,), (1396509959,), (1396509962,), (1396509972,), (1396510041,), (1396510048,), (1396510052,), (1396510212,), (1396510007,), (1396510009,), (1396510030,), (1396510057,), (1396510060,), (1396510063,), (1396510067,), (1396510092,), (1396510121,), (1396510321,), (1396510349,), (1396510376,), (1396510408,), (1396510413,), (1396510564,), (1396510567,), (1396510569,), (1396510571,), (1396510574,), (1396510580,), (1396510589,), (1396510591,), (1396510592,), (1396510593,), (1396510884,), (1396510927,), (1396510971,), (1396511047,), (1396511127,), (1396511190,), (1396511294,), (1396511298,), (1396511300,), (1396511303,), (1396511340,), (1396511599,), (1396511614,), (1396511620,), (1396511670,), (1396511696,), (1396511697,), (1396511735,), (1396511738,), (1396511742,), (1396511745,), (1396511747,), (1396511751,), (1396511764,), (1396511774,), (1396511776,), (1396511779,), (1396511892,), (1396511937,), (1396511977,), (1396512017,), (1396512058,), (1396512301,), (1396512347,), (1396512390,), (1396512452,), (1396512561,), (1396512603,), (1396512641,), (1396512701,), (1396512710,), (1396512718,), (1396512825,), (1396512829,), (1396512833,), (1396512835,), (1396512838,), (1396512841,), (1396512851,), (1396512854,), (1396512857,), (1396512860,), (1396512878,), (1396512881,), (1396512883,), (1396512886,), (1396512892,), (1396512897,), (1396512925,), (1396512918,), (1396512921,), (1396512923,), (1396512947,), (1396512972,), (1396512995,), (1396513030,), (1396513055,), (1396513082,), (1396513467,), (1396513539,), (1396513616,), (1396513678,), (1396514499,), (1396514526,), (1396514557,), (1396514588,), (1396514614,), (1396514620,), (1396514629,), (1396514657,), (1396514703,), (1396514746,), (1396514898,), (1396514950,), (1396515016,), (1396515077,), (1396515689,), (1396515767,), (1396515833,), (1396515878,), (1396515921,), (1396515946,), (1396516109,), (1396516158,), (1396516214,), (1396516300,), (1396516469,), (1396516473,), (1396516475,), (1396516476,), (1396516477,), (1396516501,), (1396516508,), (1396516509,), (1396516511,), (1396516528,), (1396516536,), (1396516540,), (1396516543,), (1396516547,), (1396516564,), (1396516567,), (1396516571,), (1396516575,), (1396516577,), (1396516590,), (1396516637,), (1396516681,), (1396517150,), (1396517204,), (1396517247,), (1396517288,), (1396517460,), (1396518172,), (1396518210,), (1396518212,), (1396518244,), (1396518264,), (1396518268,), (1396518391,), (1396518425,), (1396518434,), (1396518458,), (1396518489,), (1396518603,), (1396518668,), (1396518701,), (1396519242,), (1396528127,), (1396528128,), (1396528141,), (1396528145,), (1396528148,), (1396528151,), (1396528165,), (1396528169,), (1396528172,), (1396528175,), (1396528234,), (1396528237,), (1396528239,), (1396528243,), (1396528247,), (1396528251,), (1396528417,), (1396528447,), (1396528473,), (1396528621,), (1396528624,), (1396528628,), (1396528631,), (1396528633,), (1396528635,), (1396528649,), (1396528652,), (1396528654,), (1396528656,), (1396528657,), (1396528699,), (1396528705,), (1396528713,), (1396528714,), (1396528857,), (1396528888,), (1396528923,), (1396528951,), (1396528976,), (1396529152,), (1396529180,), (1396529208,), (1396529235,), (1396529254,), (1396529282,), (1396529396,), (1396529399,), (1396529409,), (1396529414,), (1396529419,), (1396529479,), (1396529480,), (1396529482,), (1396529535,), (1396529537,), (1396529539,), (1396529541,), (1396529545,), (1396529562,), (1396529564,), (1396529566,), (1396529568,), (1396529586,), (1396529588,), (1396529592,), (1396529596,), (1396529599,), (1396529603,), (1396529627,), (1396529618,), (1396529621,), (1396529624,), (1396529652,), (1396529656,), (1396529659,), (1396529662,), (1396529676,), (1396529679,), (1396529682,), (1396529686,), (1396529690,), (1396529694,), (1396529717,), (1396529721,), (1396529724,), (1396529726,), (1396529730,), (1396529751,), (1396529761,), (1396529770,), (1396529778,), (1396529801,), (1396529805,), (1396529809,), (1396529812,), (1396529815,), (1396529820,), (1396529844,), (1396529846,), (1396529848,), (1396529883,), (1396529886,), (1396529890,), (1396529895,), (1396529899,), (1396529902,), (1396529929,), (1396529945,), (1396529981,), (1396530011,), (1396530045,), (1396530077,), (1396530285,), (1396530287,), (1396530290,), (1396530294,), (1396530320,), (1396530322,), (1396530323,), (1396530324,), (1396530327,), (1396530330,), (1396530347,), (1396530350,), (1396530353,), (1396530388,), (1396530390,), (1396530392,), (1396530394,), (1396530396,), (1396530399,), (1396530705,), (1396530708,), (1396530711,), (1396530765,), (1396530760,), (1396530763,), (1396530796,), (1396530799,), (1396530802,), (1396530806,), (1396530810,), (1396530813,), (1396530829,), (1396530832,), (1396530835,), (1396530837,), (1396530839,), (1396530878,), (1396530880,), (1396530882,), (1396530885,), (1396530888,), (1396530892,), (1396530909,), (1396530912,), (1396530915,), (1396530918,), (1396531076,), (1396531106,), (1396531108,), (1396531110,), (1396531111,), (1396531128,), (1396531472,), (1396531504,), (1396531551,), (1396531612,), (1396531786,), (1396532382,), (1396532442,), (1396532502,), (1396532563,), (1396532628,), (1396532718,), (1396533069,), (1396533073,), (1396533077,), (1396533090,), (1396533125,), (1396533383,), (1396533385,), (1396533387,), (1396533413,), (1396533449,), (1396533494,), (1396534153,), (1396534222,), (1396534290,), (1396534357,), (1396534797,), (1396534800,), (1396534807,), (1396534840,), (1396534856,), (1396535151,), (1396535183,), (1396535215,), (1396535220,), (1396535222,), (1396535531,), (1396535567,), (1396535600,), (1396535639,), (1396535676,), (1396536024,), (1396536045,), (1396536047,), (1396536050,), (1396536054,), (1396536407,), (1396536322,), (1396536354,), (1396536388,), (1396536404,), (1396536543,), (1396536551,), (1396536584,), (1396536634,), (1396536670,), (1396537002,), (1396537129,), (1396537165,), (1396537203,), (1396537567,), (1396537595,), (1396537597,), (1396537599,), (1396537804,), (1396537819,), (1396537821,), (1396537844,), (1396537880,), (1396537883,), (1396537929,), (1396537932,), (1396537935,), (1396537938,), (1396537941,), (1396537944,), (1396537962,), (1396537964,), (1396537969,), (1396537975,), (1396538001,), (1396538004,), (1396538007,), (1396538010,), (1396538013,), (1396538015,), (1396538024,), (1396538028,), (1396538035,), (1396538196,), (1396538203,), (1396538207,), (1396538257,), (1396538287,), (1396538288,), (1396538362,), (1396538356,), (1396538358,), (1396538360,), (1396538389,), (1396538391,), (1396538394,), (1396538398,), (1396538426,), (1396538429,), (1396538432,), (1396538435,), (1396538459,), (1396538461,), (1396538463,), (1396538468,), (1396538501,), (1396538503,), (1396538505,), (1396538585,), (1396538598,), (1396538601,), (1396538605,), (1396538607,), (1396538608,), (1396538640,), (1396538641,), (1396538642,), (1396538643,), (1396538646,), (1396538648,), (1396538675,), (1396538677,), (1396538679,), (1396538682,), (1396538704,), (1396538707,), (1396538709,), (1396538711,), (1396538745,), (1396538748,), (1396538753,), (1396538759,), (1396538764,), (1396538769,), (1396538785,), (1396538788,), (1396538791,), (1396538826,), (1396538828,), (1396538829,), (1396538830,), (1396538832,), (1396538834,), (1396538863,), (1396538864,), (1396538867,), (1396538871,), (1396538879,), (1396538907,), (1396538910,), (1396538912,), (1396538914,), (1396538955,), (1396538959,), (1396538961,), (1396538964,), (1396538967,), (1396538971,), (1396539020,), (1396539012,), (1396539014,), (1396539017,), (1396539054,), (1396539058,), (1396539070,), (1396539076,), (1396539096,), (1396539099,), (1396539113,), (1396539116,), (1396539119,), (1396539122,), (1396539126,), (1396539130,), (1396539148,), (1396539149,), (1396539150,), (1396539151,), (1396539195,), (1396539197,), (1396539199,), (1396539202,), (1396539206,), (1396539209,), (1396539224,), (1396539227,), (1396539271,), (1396539275,), (1396539278,), (1396539281,), (1396539284,), (1396539304,), (1396539305,), (1396539306,), (1396539308,), (1396539312,), (1396539316,), (1396539348,), (1396539358,), (1396539362,), (1396539366,), (1396539390,), (1396539391,), (1396539393,), (1396539395,), (1396539398,), (1396539401,), (1396539417,), (1396539420,), (1396539423,), (1396539461,), (1396539463,), (1396539465,), (1396539467,), (1396539472,), (1396539475,), (1396539500,), (1396539509,), (1396539517,), (1396539520,), (1396539523,), (1396539526,), (1396539667,), (1396539703,), (1396539738,), (1396539775,), (1396539929,), (1396539930,), (1396539962,), (1396539963,), (1396539995,), (1396540001,), (1396540030,), (1396540034,), (1396540393,), (1396540310,), (1396540357,), (1396541002,), (1396541059,), (1396541096,), (1396541126,), (1396541134,), (1396541440,), (1396541466,), (1396541488,), (1396541490,), (1396541510,), (1396541537,), (1396541564,), (1396541566,), (1396541568,), (1396541594,), (1396541597,), (1396541599,), (1396541601,), (1396541604,), (1396541607,), (1396541637,), (1396541640,), (1396541642,), (1396541644,), (1396541647,), (1396541668,), (1396541670,), (1396541672,), (1396541675,), (1396541678,), (1396541731,), (1396541735,), (1396541739,), (1396541743,), (1396541747,), (1396541776,), (1396541777,), (1396541911,), (1396541919,), (1396541921,), (1396541923,), (1396541926,), (1396541929,), (1396541946,), (1396541949,), (1396541952,), (1396541959,), (1396541998,), (1396542010,), (1396542017,), (1396542023,), (1396542026,), (1396542028,), (1396542047,), (1396542050,), (1396542053,), (1396542057,), (1396542061,), (1396542065,), (1396542096,), (1396542092,), (1396542094,), (1396542147,), (1396542166,), (1396542170,), (1396542174,), (1396542179,), (1396542183,), (1396542203,), (1396542210,), (1396542213,), (1396542240,), (1396542242,), (1396542245,), (1396542248,), (1396542251,), (1396542255,), (1396542274,), (1396542277,), (1396542279,), (1396542283,), (1396542312,), (1396542314,), (1396542316,), (1396542318,), (1396542322,), (1396542324,), (1396542354,), (1396542370,), (1396542372,), (1396542375,), (1396542394,), (1396542395,), (1396542397,), (1396542400,), (1396542404,), (1396542407,), (1396542454,), (1396542457,), (1396542460,), (1396542493,), (1396542495,), (1396542497,), (1396542501,), (1396542505,), (1396542509,), (1396542541,), (1396542544,), (1396542547,), (1396542551,), (1396542555,), (1396542559,), (1396542578,), (1396542580,), (1396542581,), (1396542582,), (1396542620,), (1396542629,), (1396542631,), (1396542636,), (1396542639,), (1396543743,), (1396542732,), (1396543741,), (1396543775,), (1396543780,), (1396543783,), (1396543787,), (1396543791,), (1396543807,), (1396543810,), (1396543837,), (1396543839,), (1396543841,), (1396543843,), (1396543846,), (1396543905,), (1396543947,), (1396543952,), (1396543958,), (1396543983,), (1396543986,), (1396543989,), (1396543994,), (1396544000,), (1396544006,), (1396544025,), (1396544026,), (1396544027,), (1396544028,), (1396544061,), (1396544054,), (1396544055,), (1396544056,), (1396544058,), (1396544077,), (1396544081,), (1396544085,), (1396544089,), (1396544093,), (1396544168,), (1396544170,), (1396544171,), (1396544172,), (1396544175,), (1396544178,), (1396544193,), (1396544196,), (1396544199,), (1396544208,), (1396544215,), (1396544241,), (1396544243,), (1396544245,), (1396544246,), (1396544247,), (1396544250,), (1396544268,), (1396544271,), (1396544275,), (1396544280,), (1396544284,), (1396544314,), (1396544316,), (1396544317,), (1396544319,), (1396544323,), (1396544383,), (1396544386,), (1396544389,), (1396544393,), (1396544397,), (1396544401,), (1396544430,), (1396544431,), (1396544432,), (1396544434,), (1396544453,), (1396544455,), (1396544457,), (1396544460,), (1396544464,), (1396544466,), (1396544482,), (1396544483,), (1396544484,), (1396544486,), (1396544488,), (1396544504,), (1396544507,), (1396544510,), (1396544514,), (1396544541,), (1396544552,), (1396544556,), (1396544560,), (1396544563,), (1396544566,), (1396544590,), (1396544593,), (1396544595,), (1396544597,), (1396544600,), (1396544604,), (1396545260,), (1396544978,), (1396545053,), (1396545126,), (1396545191,), (1396546286,), (1396546385,), (1396546478,), (1396546544,), (1396546613,), (1396547077,), (1396547101,), (1396547134,), (1396547169,), (1396547204,), (1396547659,), (1396547721,), (1396547802,), (1396547868,), (1396547931,), (1396548321,), (1396548330,), (1396548361,), (1396548396,), (1396548402,), (1396548473,), (1396548491,), (1396548494,), (1396548496,), (1396548546,), (1396548548,), (1396548550,), (1396548553,), (1396548557,), (1396548560,), (1396548748,), (1396548754,), (1396548759,), (1396548762,), (1396548766,), (1396548768,), (1396548786,), (1396548787,), (1396548788,), (1396548790,), (1396548793,), (1396548797,), (1396548826,), (1396548829,), (1396548832,), (1396548835,), (1396548859,), (1396548860,), (1396549325,), (1396551958,), (1396551962,), (1396552216,), (1396552223,), (1396552358,), (1396552361,), (1396552363,), (1396552389,), (1396552391,), (1396552428,), (1396552430,), (1396552433,), (1396552437,), (1396552464,), (1396552466,), (1396552470,), (1396552475,), (1396552479,), (1396552508,), (1396552512,), (1396552516,), (1396552520,), (1396552552,), (1396552554,), (1396552556,), (1396552559,), (1396552562,), (1396552604,), (1396552605,), (1396552606,), (1396552631,), (1396552633,), (1396552636,), (1396552640,), (1396552644,), (1396552651,), (1396552667,), (1396552678,), (1396552686,), (1396552708,), (1396552710,), (1396552712,), (1396552715,), (1396552719,), (1396552723,), (1396552739,), (1396552741,), (1396552743,), (1396552746,), (1396552785,), (1396552787,), (1396552789,), (1396552792,), (1396552796,), (1396552801,), (1396552828,), (1396552820,), (1396552823,), (1396552826,), (1396552866,), (1396552867,), (1396552868,), (1396552870,), (1396552895,), (1396552898,), (1396552901,), (1396552905,), (1396552915,), (1396552925,), (1396552941,), (1396552942,), (1396552945,), (1396552947,), (1396552966,), (1396552967,), (1396552969,), (1396552972,), (1396552976,), (1396552979,), (1396553027,), (1396553030,), (1396553033,), (1396553036,), (1396553039,), (1396553091,), (1396553100,), (1396553105,), (1396553108,), (1396553112,), (1396553115,), (1396553186,), (1396553189,), (1396553194,), (1396553199,), (1396553259,), (1396553263,), (1396553301,), (1396553302,), (1396553303,), (1396553305,), (1396553326,), (1396553329,), (1396553333,), (1396553336,), (1396553343,), (1396553354,), (1396553371,), (1396553373,), (1396553374,), (1396553376,), (1396553380,), (1396553405,), (1396553408,), (1396553412,), (1396553416,), (1396553420,), (1396553441,), (1396553442,), (1396553444,), (1396553447,), (1396553451,), (1396553495,), (1396553504,), (1396553508,), (1396553511,), (1396553515,), (1396553517,), (1396553568,), (1396553538,), (1396553539,), (1396553565,), (1396553599,), (1396553604,), (1396553615,), (1396553625,), (1396553648,), (1396553651,), (1396553666,), (1396553668,), (1396553670,), (1396553674,), (1396553678,), (1396553701,), (1396553702,), (1396553706,), (1396553708,), (1396553712,), (1396553715,), (1396553731,), (1396553733,), (1396553735,), (1396553737,), (1396553741,), (1396553779,), (1396553781,), (1396553783,), (1396553786,), (1396553789,), (1396553792,), (1396553833,), (1396553834,), (1396553835,), (1396553837,), (1396553859,), (1396553861,), (1396553864,), (1396553868,), (1396553872,), (1396553888,), (1396553891,), (1396553893,), (1396553897,), (1396553901,), (1396553904,), (1396553942,), (1396553944,), (1396553946,), (1396553949,), (1396553953,), (1396553971,), (1396553973,), (1396553975,), (1396553978,), (1396554019,), (1396554022,), (1396554024,), (1396554027,), (1396554031,), (1396554035,), (1396554055,), (1396554056,), (1396554057,), (1396554086,), (1396554089,), (1396554092,), (1396554096,), (1396554115,), (1396554117,), (1396554119,), (1396554122,), (1396554126,), (1396554159,), (1396554155,), (1396554157,), (1396554183,), (1396554184,), (1396554186,), (1396554202,), (1396554207,), (1396554271,), (1396554274,), (1396554277,), (1396554281,), (1396554285,), (1396554642,), (1396554676,), (1396554706,), (1396554732,), (1396554909,), (1396554912,), (1396554915,), (1396554926,), (1396554969,), (1396554991,), (1396555067,), (1396555068,), (1396555070,), (1396555073,), (1396555115,), (1396555117,), (1396555119,), (1396555122,), (1396555126,), (1396555130,), (1396555147,), (1396555149,), (1396555151,), (1396555191,), (1396555193,), (1396555195,), (1396555198,), (1396555200,), (1396555202,), (1396555220,), (1396555222,), (1396555228,), (1396555234,), (1396555255,), (1396555258,), (1396555261,), (1396555265,), (1396555269,), (1396555273,), (1396555288,), (1396555292,), (1396555294,), (1396555298,), (1396555302,), (1396555306,), (1396555331,), (1396555333,), (1396555335,), (1396555338,), (1396555342,), (1396555359,), (1396555364,), (1396555396,), (1396555432,), (1396555464,), (1396556836,), (1396556426,), (1396556538,), (1396556644,), (1396556737,), (1396557471,), (1396557489,), (1396557506,), (1396557521,), (1396557536,), (1396558110,), (1396558162,), (1396558193,), (1396558258,), (1396558315,), (1396558548,), (1396558550,), (1396558552,), (1396558578,), (1396558666,), (1396558667,), (1396558669,), (1396558672,), (1396558676,), (1396558680,), (1396558712,), (1396558720,), (1396558722,), (1396558724,), (1396558746,), (1396558752,), (1396558755,), (1396558759,), (1396558762,), (1396558765,), (1396558774,), (1396558776,), (1396558778,), (1396558781,), (1396558808,), (1396558810,), (1396558813,), (1396558822,), (1396558830,), (1396558850,), (1396558852,), (1396558854,), (1396558857,), (1396558861,), (1396558865,), (1396558883,), (1396558884,), (1396558886,), (1396558889,), (1396558893,), (1396558925,), (1396558931,), (1396558932,), (1396558934,), (1396558937,), (1396558940,), (1396558955,), (1396558958,), (1396558961,), (1396558964,), (1396559010,), (1396559012,), (1396559206,), (1396559257,), (1396569855,), (1396569858,), (1396569913,), (1396569914,), (1396569915,), (1396569953,), (1396569955,), (1396569957,), (1396569960,), (1396569964,), (1396569969,), (1396569997,), (1396570001,), (1396570013,), (1396570039,), (1396570044,), (1396570072,), (1396570073,), (1396570076,), (1396570086,), (1396570090,), (1396570160,), (1396570163,), (1396570165,), (1396570168,), (1396570172,), (1396570319,), (1396570325,), (1396570327,), (1396570330,), (1396570333,), (1396570355,), (1396570358,), (1396570362,), (1396570367,), (1396570372,), (1396570396,), (1396570398,), (1396570400,), (1396570403,), (1396570406,), (1396570425,), (1396570427,), (1396570429,), (1396570431,), (1396570480,), (1396570487,), (1396570490,), (1396570493,), (1396570496,), (1396570499,), (1396570534,), (1396570524,), (1396570526,), (1396570528,), (1396570530,), (1396570566,), (1396570569,), (1396570572,), (1396570576,), (1396570580,), (1396570583,), (1396570592,), (1396570595,), (1396570622,), (1396570624,), (1396570625,), (1396570628,), (1396570632,), (1396570636,), (1396570652,), (1396570654,), (1396570656,), (1396570659,), (1396570662,), (1396570682,), (1396570684,), (1396570687,), (1396570691,), (1396570695,), (1396570698,), (1396570714,), (1396570716,), (1396570718,), (1396570721,), (1396570774,), (1396570776,), (1396570778,), (1396570781,), (1396570785,), (1396570789,), (1396570806,), (1396570808,), (1396570810,), (1396570812,), (1396570845,), (1396570854,), (1396570857,), (1396570859,), (1396570862,), (1396570877,), (1396570879,), (1396570881,), (1396570883,), (1396570900,), (1396570902,), (1396570909,), (1396570916,), (1396570930,), (1396570932,), (1396570934,), (1396570936,), (1396570939,), (1396570941,), (1396570971,), (1396570973,), (1396570975,), (1396570976,), (1396570997,), (1396570999,), (1396571000,), (1396571002,), (1396571005,), (1396571009,), (1396571039,), (1396571030,), (1396571032,), (1396571034,), (1396571036,), (1396571052,), (1396571053,), (1396571054,), (1396571140,), (1396571142,), (1396571144,), (1396571146,), (1396571149,), (1396571164,), (1396571165,), (1396571166,), (1396571281,), (1396571308,), (1396571336,), (1396571337,), (1396571339,), (1396571341,), (1396571343,), (1396571357,), (1396571358,), (1396571360,), (1396571362,), (1396571389,), (1396571390,), (1396571392,), (1396571394,), (1396571410,), (1396571411,), (1396571412,), (1396571413,), (1396571450,), (1396571452,), (1396571454,), (1396571456,), (1396571459,), (1396571461,), (1396571483,), (1396571489,), (1396571493,), (1396573879,), (1396581218,), (1396581221,), (1396581251,), (1396581253,), (1396581255,), (1396581257,), (1396581260,), (1396581282,), (1396581284,), (1396581285,), (1396581287,), (1396581313,), (1396581317,), (1396581320,), (1396581353,), (1396581355,), (1396581357,), (1396581362,), (1396581368,), (1396581400,), (1396581402,), (1396581405,), (1396581409,), (1396581430,), (1396581433,), (1396581436,), (1396581462,), (1396581463,), (1396581492,), (1396581497,), (1396581500,), (1396581502,), (1396581506,), (1396581510,), (1396581549,), (1396581551,), (1396581568,), (1396581790,), (1396581799,), (1396581801,), (1396581803,), (1396581806,), (1396581833,), (1396581834,), (1396581836,), (1396581838,), (1396581885,), (1396581887,), (1396581889,), (1396581891,), (1396582009,), (1396582040,), (1396582070,), (1396582103,), (1396582133,), (1396582135,), (1396582250,), (1396582247,), (1396582248,), (1396582423,), (1396582431,), (1396582677,), (1396582819,), (1396582820,), (1396582821,), (1396582823,), (1396582826,), (1396582850,), (1396582853,), (1396582856,), (1396582859,), (1396582881,), (1396582883,), (1396582932,), (1396582940,), (1396582942,), (1396582947,), (1396582950,), (1396582982,), (1396583001,), (1396583009,), (1396583011,), (1396583248,), (1396583251,), (1396583534,), (1396583540,), (1396583545,), (1396583550,), (1396583686,), (1396583621,), (1396583654,), (1396584123,), (1396584155,), (1396584670,), (1396584732,), (1396584775,), (1396584804,), (1396585396,), (1396585487,), (1396585571,), (1396585608,), (1396586286,), (1396586443,), (1396586866,), (1396586901,), (1396587300,), (1396587366,), (1396587429,), (1396587492,), (1396587958,), (1396587991,), (1396588002,), (1396588005,), (1396588027,), (1396588029,), (1396588032,), (1396588033,), (1396588036,), (1396588040,), (1396588073,), (1396588076,), (1396588079,), (1396588082,), (1396588086,), (1396588089,), (1396588122,), (1396588137,), (1396588138,), (1396588139,), (1396588183,), (1396588186,), (1396588188,), (1396588192,), (1396588197,), (1396588227,), (1396588229,), (1396588231,), (1396588232,), (1396588235,), (1396588262,), (1396588263,), (1396588265,), (1396588299,), (1396588301,), (1396588302,), (1396588304,), (1396588361,), (1396588347,), (1396588349,), (1396588351,), (1396588354,), (1396588358,), (1396588377,), (1396588378,), (1396588379,), (1396588381,), (1396588404,), (1396588406,), (1396588407,), (1396588410,), (1396588414,), (1396588417,), (1396588448,), (1396588449,), (1396588450,), (1396588841,), (1396588874,), (1396588910,), (1396588946,), (1396588984,), (1396589019,), (1396589262,), (1396589282,), (1396589285,), (1396589472,), (1396589513,), (1396589555,), (1396589589,), (1396589595,), (1396589599,), (1396589718,), (1396589730,), (1396589733,), (1396589735,), (1396589738,), (1396589740,), (1396589795,), (1396589797,), (1396589798,), (1396589799,), (1396589801,), (1396589805,), (1396589818,), (1396589821,), (1396589822,), (1396589824,), (1396589825,), (1396589830,), (1396589833,), (1396589836,), (1396589865,), (1396589872,), (1396589883,), (1396589885,), (1396589889,), (1396589895,), (1396589922,), (1396589924,), (1396589926,), (1396589929,), (1396589932,), (1396589951,), (1396589952,), (1396589954,), (1396589956,), (1396589977,), (1396589980,), (1396589982,), (1396589991,), (1396589997,), (1396590054,), (1396590050,), (1396590051,), (1396590052,), (1396590073,), (1396590074,), (1396590076,), (1396590079,), (1396590082,), (1396590085,), (1396590099,), (1396590103,), (1396590110,), (1396590117,), (1396590145,), (1396590146,), (1396590147,), (1396590149,), (1396590153,), (1396590174,), (1396590176,), (1396590178,), (1396590181,), (1396590206,), (1396590207,), (1396590209,), (1396590216,), (1396590218,), (1396590220,), (1396590240,), (1396590242,), (1396590244,), (1396590248,), (1396590335,), (1396590337,), (1396590339,), (1396590341,), (1396590345,), (1396590349,), (1396590366,), (1396590368,), (1396590370,), (1396590373,), (1396590404,), (1396590405,), (1396590406,), (1396590408,), (1396590411,), (1396590414,), (1396590438,), (1396590439,), (1396590450,), (1396590474,), (1396590489,), (1396590558,), (1396590571,), (1396590603,), (1396590615,), (1396590638,), (1396590640,), (1396590642,), (1396590645,), (1396590652,), (1396590663,), (1396590719,), (1396590720,), (1396590723,), (1396590728,), (1396590809,), (1396590810,), (1396590812,), (1396590814,), (1396590815,), (1396590820,), (1396590871,), (1396590857,), (1396590859,), (1396590861,), (1396590864,), (1396590868,), (1396590887,), (1396590888,), (1396590889,), (1396590929,), (1396590930,), (1396590933,), (1396590960,), (1396590962,), (1396590965,), (1396590970,), (1396591012,), (1396591014,), (1396591016,), (1396591019,), (1396591047,), (1396591048,), (1396591049,), (1396591051,), (1396591055,), (1396591121,), (1396591126,), (1396591128,), (1396591456,), (1396591489,), (1396591521,), (1396591587,), (1396591637,), (1396591663,), (1396591758,), (1396591765,), (1396591766,), (1396591768,), (1396591771,), (1396591775,), (1396591790,), (1396591792,), (1396591794,), (1396591820,), (1396591821,), (1396591823,), (1396591826,), (1396591831,), (1396591835,), (1396591866,), (1396591868,), (1396591869,), (1396591872,), (1396591876,), (1396591956,), (1396591957,), (1396591958,), (1396591960,), (1396591964,), (1396591995,), (1396592002,), (1396592007,), (1396592011,), (1396592014,), (1396592019,), (1396592025,), (1396592028,), (1396592031,), (1396592034,), (1396592070,), (1396592059,), (1396592060,), (1396592062,), (1396592065,), (1396592068,), (1396592404,), (1396592464,), (1396592530,), (1396592595,), (1396593498,), (1396593558,), (1396593638,), (1396593688,), (1396593718,), (1396594244,), (1396594305,), (1396594343,), (1396594468,), (1396594470,), (1396594472,), (1396594475,), (1396594608,), (1396595329,), (1396595476,), (1396595992,), (1396596044,), (1396596109,), (1396596696,), (1396596955,), (1396596956,), (1396596962,), (1396596982,), (1396597135,), (1396597137,), (1396597296,), (1396597295,), (1396597425,), (1396597428,), (1396597432,), (1396597437,), (1396597463,), (1396597464,), (1396597486,), (1396597488,), (1396597495,), (1396597502,), (1396597530,), (1396597531,), (1396597688,), (1396597690,), (1396597692,), (1396597695,), (1396597699,), (1396597715,), (1396597716,), (1396597718,), (1396597722,), (1396597751,), (1396597761,), (1396597768,), (1396597779,), (1396597794,), (1396597906,), (1396597943,), (1396597967,), (1396597968,), (1396597969,), (1396597995,), (1396597997,), (1396598000,), (1396598004,), (1396598009,), (1396598088,), (1396598076,), (1396598080,), (1396598082,), (1396598084,), (1396598104,), (1396598106,), (1396598108,), (1396598130,), (1396598131,), (1396598132,), (1396598134,), (1396598138,), (1396598162,), (1396598164,), (1396598166,), (1396598273,), (1396598301,), (1396598336,), (1396598372,), (1396598820,), (1396598822,), (1396598851,), (1396598865,), (1396598869,), (1396599049,), (1396599051,), (1396599099,), (1396599100,), (1396599107,), (1396599131,), (1396599137,), (1396599153,), (1396599155,), (1396599157,), (1396599164,), (1396599204,), (1396599208,), (1396599271,), (1396599284,), (1396599343,), (1396599344,), (1396599345,), (1396599348,), (1396599353,), (1396599386,), (1396599388,), (1396599391,), (1396599395,), (1396599400,), (1396599500,), (1396599519,), (1396599529,), (1396599537,), (1396599540,), (1396599569,), (1396599599,), (1396599602,), (1396599604,), (1396599669,), (1396599649,), (1396599651,), (1396599657,), (1396599660,), (1396599664,), (1396599718,), (1396599719,), (1396599720,), (1396599722,), (1396599726,), (1396599748,), (1396599749,), (1396599751,), (1396599786,), (1396599792,), (1396599793,), (1396599795,), (1396599797,), (1396599852,), (1396599886,), (1396599919,), (1396599933,), (1396600356,), (1396604259,), (1396632690,), (1396632740,), (1396632801,), (1396632864,), (1396633373,), (1396633633,), (1396633723,), (1396633814,), (1396633904,), (1396634029,), (1396634760,), (1396634848,), (1396634932,), (1396635559,), (1396635596,), (1396635629,), (1396636318,), (1396636380,), (1396636443,), (1396636490,), (1396636526,), (1396636560,), (1396636947,), (1396636949,), (1396637544,), (1396637602,), (1396637666,), (1396638108,), (1396638141,), (1396638201,), (1396638247,), (1396638287,), (1396638345,), (1396638818,), (1396638879,), (1396638940,), (1396639002,), (1396639062,), (1396639121,), (1396639759,), (1396639816,), (1396639874,), (1396640822,), (1396640983,), (1396641016,), (1396641051,), (1396641088,), (1396641120,), (1396641238,), (1396641260,), (1396641291,), (1396641324,), (1396641905,), (1396641971,), (1396642036,), (1396642076,), (1396642116,), (1396642138,), (1396642527,), (1396642564,), (1396642596,), (1396642611,), (1396642896,), (1396642895,), (1396642934,), (1396642936,), (1396642939,), (1396643102,), (1396643140,), (1396643175,), (1396643206,), (1396643242,), (1396643278,), (1396643396,), (1396643397,), (1396643398,), (1396643678,), (1396643701,), (1396643710,), (1396643742,), (1396643774,), (1396643780,), (1396643817,), (1396644689,), (1396644722,), (1396644898,), (1396644930,), (1396644964,), (1396644997,), (1396645130,), (1396645132,), (1396645134,), (1396645136,), (1396645139,), (1396645165,), (1396645166,), (1396645167,), (1396645169,), (1396645171,), (1396645173,), (1396645188,), (1396645190,), (1396645192,), (1396645195,), (1396645199,), (1396645235,), (1396645774,), (1396645775,), (1396645873,), (1396645909,), (1396646343,), (1396646375,), (1396646406,), (1396646443,), (1396646488,), (1396646946,), (1396646844,), (1396646877,), (1396646911,), (1396647062,), (1396647064,), (1396647065,), (1396647097,), (1396647132,), (1396647167,), (1396647344,), (1396647351,), (1396647383,), (1396647419,), (1396647518,), (1396647638,), (1396648141,), (1396648151,), (1396648152,), (1396648153,), (1396648201,), (1396648251,), (1396648253,), (1396648256,), (1396648260,), (1396648264,), (1396648282,), (1396648290,), (1396648301,), (1396648302,), (1396648304,), (1396648320,), (1396648322,), (1396648323,), (1396648325,), (1396648340,), (1396648342,), (1396648348,), (1396648356,), (1396648367,), (1396648370,), (1396648469,), (1396648504,), (1396648539,), (1396648571,), (1396648985,), (1396649021,), (1396649056,), (1396649087,), (1396649120,), (1396649342,), (1396649343,), (1396649345,), (1396649348,), (1396649601,), (1396649634,), (1396649638,), (1396649640,), (1396649643,), (1396649837,), (1396649844,), (1396649845,), (1396649847,), (1396649850,), (1396649853,), (1396650174,), (1396650271,), (1396650366,), (1396650470,), (1396650981,), (1396650983,), (1396650987,), (1396650991,), (1396650994,), (1396651406,), (1396651271,), (1396651273,), (1396651354,), (1396651374,), (1396651435,), (1396651436,), (1396651437,), (1396651439,), (1396651442,), (1396651444,), (1396651465,), (1396651466,), (1396651467,), (1396651470,), (1396651483,), (1396651484,), (1396651488,), (1396651494,), (1396651497,), (1396651500,), (1396651723,), (1396651762,), (1396651793,), (1396651824,), (1396652228,), (1396652229,), (1396652230,), (1396652232,), (1396652235,), (1396652238,), (1396652422,), (1396652424,), (1396652426,), (1396652429,), (1396652583,), (1396652584,), (1396652585,), (1396652587,), (1396652589,), (1396652593,), (1396652902,), (1396652986,), (1396653071,), (1396653153,), (1396653239,), (1396653324,), (1396653670,), (1396653743,), (1396653745,), (1396653751,), (1396653752,), (1396653754,), (1396653758,), (1396653762,), (1396653765,), (1396654053,), (1396654054,), (1396654056,), (1396654072,), (1396654255,), (1396654260,), (1396654263,), (1396654266,), (1396654281,), (1396654315,), (1396654603,), (1396654636,), (1396654671,), (1396654703,), (1396655182,), (1396655187,), (1396655192,), (1396655196,), (1396655200,), (1396655206,), (1396655207,), (1396655210,), (1396655213,), (1396655749,), (1396655489,), (1396655576,), (1396655661,), (1396656045,), (1396656099,), (1396656182,), (1396656237,), (1396656240,), (1396656242,), (1396656558,), (1396656588,), (1396656620,), (1396657056,), (1396657091,), (1396657137,), (1396657171,), (1396657209,), (1396657246,), (1396657473,), (1396657482,), (1396657486,), (1396657490,), (1396657495,), (1396657777,), (1396657807,), (1396657838,), (1396657872,), (1396657905,), (1396658461,), (1396658493,), (1396658524,), (1396658558,), (1396658974,), (1396659004,), (1396659046,), (1396659111,), (1396659176,), (1396659223,), (1396659423,), (1396659428,), (1396659430,), (1396659435,), (1396659466,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28112025': {'nb_upload': 43, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28999176]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1396659466, 1396659435, 1396659430, 1396659428, 1396659423, 1396659223, 1396659176, 1396659111, 1396659046, 1396659004, 1396658974] map_info['map_portfolio_photo'] : {28999176: [1396659466, 1396659435, 1396659430, 1396659428, 1396659423, 1396659223, 1396659176, 1396659111, 1396659046, 1396659004, 1396658974, 1396658558, 1396658524, 1396658493, 1396658461, 1396657905, 1396657872, 1396657838, 1396657807, 1396657777, 1396657495, 1396657490, 1396657486, 1396657482, 1396657473, 1396657246, 1396657209, 1396657171, 1396657137, 1396657091, 1396657056, 1396656620, 1396656588, 1396656558, 1396656242, 1396656240, 1396656237, 1396656182, 1396656099, 1396656045, 1396655661, 1396655576, 1396655489]} final : True mtd_id 4302 list_pids : [1396659466, 1396659435, 1396659430, 1396659428, 1396659423, 1396659223, 1396659176, 1396659111, 1396659046, 1396659004, 1396658974] Looping around the photos to save general results len do output : 1 /28999176Didn'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, '4135547') ('4302', '28999176', '1396659466', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659435', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659430', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659428', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659423', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659223', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659176', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659111', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659046', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396659004', None, None, None, None, None, '4135547') ('4302', None, None, None, None, None, None, None, '4135547') ('4302', '28999176', '1396658974', None, None, None, None, None, '4135547') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28999176', 'None', None, None, None, None, '4135547'), ('4302', '28999176', '1396659466', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659435', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659430', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659428', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659423', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659223', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659176', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659111', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659046', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396659004', None, None, None, None, None, '4135547'), ('4302', '28999176', '1396658974', None, None, None, None, None, '4135547')] time used for this insertion : 0.014811277389526367 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.9872400760650635 time spend to save output : 0.015016794204711914 total time spend for step 5 : 3.0022568702697754 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 (4135547) 2.10user 2.42system 0:09.16elapsed 49%CPU (0avgtext+0avgdata 162896maxresident)k 432inputs+8272outputs (1major+64436minor)pagefaults 0swaps