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 : 3730581 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 (4067987) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4067987) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28666502 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4067987'] with mtr_portfolio_ids : ['28666502'] and first list_photo_ids : [] new path : /proc/3730581/ Name: python3 Umask: 0002 State: R (running) Tgid: 3730581 Ngid: 0 Pid: 3730581 PPid: 3730580 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3730581 NSpid: 3730581 NSpgid: 3729044 NSsid: 3729044 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98840 kB VmRSS: 98840 kB RssAnon: 59900 kB RssFile: 38940 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 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: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3730581', 'Ngid': '0', 'Pid': '3730581', 'PPid': '3730580', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3730581', 'NSpid': '3730581', 'NSpgid': '3729044', 'NSsid': '3729044', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98840 kB', 'VmRSS': '98840 kB', 'RssAnon': '59900 kB', 'RssFile': '38940 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 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': '89'} ('datou_batch_current', '3730581', '1106908', '0', '1106884', '865636', '98840', b'', 'marlene', '4067987') 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 (28666502) 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 (4067987 ) ) 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 (28666502) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1395070321, 'portfolio_id': 28666502}, {'photo_id': 1395070282, 'portfolio_id': 28666502}, {'photo_id': 1395070251, 'portfolio_id': 28666502}, {'photo_id': 1395070218, 'portfolio_id': 28666502}, {'photo_id': 1395070184, 'portfolio_id': 28666502}, {'photo_id': 1395069668, 'portfolio_id': 28666502}, {'photo_id': 1395069629, 'portfolio_id': 28666502}, {'photo_id': 1395069588, 'portfolio_id': 28666502}, {'photo_id': 1395069488, 'portfolio_id': 28666502}, {'photo_id': 1395069486, 'portfolio_id': 28666502}, {'photo_id': 1395069481, 'portfolio_id': 28666502}, {'photo_id': 1395069467, 'portfolio_id': 28666502}, {'photo_id': 1395069466, 'portfolio_id': 28666502}, {'photo_id': 1395069465, 'portfolio_id': 28666502}, {'photo_id': 1395069413, 'portfolio_id': 28666502}, {'photo_id': 1395069408, 'portfolio_id': 28666502}, {'photo_id': 1395069405, 'portfolio_id': 28666502}, {'photo_id': 1395069404, 'portfolio_id': 28666502}, {'photo_id': 1395069403, 'portfolio_id': 28666502}, {'photo_id': 1395069374, 'portfolio_id': 28666502}, {'photo_id': 1395069371, 'portfolio_id': 28666502}, {'photo_id': 1395069354, 'portfolio_id': 28666502}, {'photo_id': 1395069321, 'portfolio_id': 28666502}, {'photo_id': 1395069205, 'portfolio_id': 28666502}, {'photo_id': 1395069162, 'portfolio_id': 28666502}, {'photo_id': 1395069125, 'portfolio_id': 28666502}, {'photo_id': 1395069092, 'portfolio_id': 28666502}, {'photo_id': 1395069060, 'portfolio_id': 28666502}, {'photo_id': 1395069053, 'portfolio_id': 28666502}, {'photo_id': 1395069038, 'portfolio_id': 28666502}, {'photo_id': 1395069034, 'portfolio_id': 28666502}, {'photo_id': 1395069029, 'portfolio_id': 28666502}, {'photo_id': 1395069025, 'portfolio_id': 28666502}, {'photo_id': 1395069023, 'portfolio_id': 28666502}, {'photo_id': 1395069022, 'portfolio_id': 28666502}, {'photo_id': 1395068999, 'portfolio_id': 28666502}, {'photo_id': 1395068996, 'portfolio_id': 28666502}, {'photo_id': 1395068995, 'portfolio_id': 28666502}, {'photo_id': 1395068994, 'portfolio_id': 28666502}, {'photo_id': 1395068968, 'portfolio_id': 28666502}, {'photo_id': 1395068965, 'portfolio_id': 28666502}, {'photo_id': 1395068961, 'portfolio_id': 28666502}, {'photo_id': 1395068956, 'portfolio_id': 28666502}, {'photo_id': 1395068953, 'portfolio_id': 28666502}, {'photo_id': 1395068948, 'portfolio_id': 28666502}, {'photo_id': 1395068947, 'portfolio_id': 28666502}, {'photo_id': 1395068946, 'portfolio_id': 28666502}, {'photo_id': 1395068945, 'portfolio_id': 28666502}, {'photo_id': 1395068944, 'portfolio_id': 28666502}, {'photo_id': 1395068877, 'portfolio_id': 28666502}, {'photo_id': 1395068847, 'portfolio_id': 28666502}, {'photo_id': 1395068813, 'portfolio_id': 28666502}, {'photo_id': 1395068767, 'portfolio_id': 28666502}, {'photo_id': 1395068704, 'portfolio_id': 28666502}, {'photo_id': 1395068644, 'portfolio_id': 28666502}, {'photo_id': 1395068298, 'portfolio_id': 28666502}, {'photo_id': 1395068260, 'portfolio_id': 28666502}, {'photo_id': 1395068224, 'portfolio_id': 28666502}, {'photo_id': 1395068186, 'portfolio_id': 28666502}, {'photo_id': 1395068152, 'portfolio_id': 28666502}, {'photo_id': 1395068119, 'portfolio_id': 28666502}, {'photo_id': 1395067998, 'portfolio_id': 28666502}, {'photo_id': 1395067995, 'portfolio_id': 28666502}, {'photo_id': 1395067993, 'portfolio_id': 28666502}, {'photo_id': 1395067972, 'portfolio_id': 28666502}, {'photo_id': 1395067969, 'portfolio_id': 28666502}, {'photo_id': 1395067965, 'portfolio_id': 28666502}, {'photo_id': 1395067963, 'portfolio_id': 28666502}] map_portfolio_id_photo_id: {28666502: [1395070321, 1395070282, 1395070251, 1395070218, 1395070184, 1395069668, 1395069629, 1395069588, 1395069488, 1395069486, 1395069481, 1395069467, 1395069466, 1395069465, 1395069413, 1395069408, 1395069405, 1395069404, 1395069403, 1395069374, 1395069371, 1395069354, 1395069321, 1395069205, 1395069162, 1395069125, 1395069092, 1395069060, 1395069053, 1395069038, 1395069034, 1395069029, 1395069025, 1395069023, 1395069022, 1395068999, 1395068996, 1395068995, 1395068994, 1395068968, 1395068965, 1395068961, 1395068956, 1395068953, 1395068948, 1395068947, 1395068946, 1395068945, 1395068944, 1395068877, 1395068847, 1395068813, 1395068767, 1395068704, 1395068644, 1395068298, 1395068260, 1395068224, 1395068186, 1395068152, 1395068119, 1395067998, 1395067995, 1395067993, 1395067972, 1395067969, 1395067965, 1395067963]} ##### 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.017208337783813477 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Nov 18 17:14: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 (28666502) 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 : 28666502 get user id for portfolio 28666502 get sub ptf for main ptf 28666502, type 3726 and hashtags ['papier', 'Teint_Dans_La_Masse', 'autre_refus', 'Carton_brun', 'metal', 'environnement', 'plastique', 'mal_croppe', 'flou', 'Carton_gris', 'kraft', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28666502 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','autre_refus','Carton_brun','metal','environnement','plastique','mal_croppe','flou','Carton_gris','kraft','cartonnette')) 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`=28666502 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','autre_refus','Carton_brun','metal','environnement','plastique','mal_croppe','flou','Carton_gris','kraft','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 28666502, 'sub_port_id': 28666524, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439892, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 27)}, 'Carton_gris': {'main_port_id': 28666502, 'sub_port_id': 28666525, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439893, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 27)}, 'environnement': {'main_port_id': 28666502, 'sub_port_id': 28666526, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439894, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 27)}, 'Carton_brun': {'main_port_id': 28666502, 'sub_port_id': 28666527, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439895, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 27)}, 'autre_refus': {'main_port_id': 28666502, 'sub_port_id': 28666528, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439896, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 27)}, 'plastique': {'main_port_id': 28666502, 'sub_port_id': 28666529, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439897, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 27)}, 'flou': {'main_port_id': 28666502, 'sub_port_id': 28666530, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439898, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 27)}, 'kraft': {'main_port_id': 28666502, 'sub_port_id': 28666531, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439899, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 27)}, 'mal_croppe': {'main_port_id': 28666502, 'sub_port_id': 28666532, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439900, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 27)}, 'papier': {'main_port_id': 28666502, 'sub_port_id': 28666533, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439901, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 27)}, 'cartonnette': {'main_port_id': 28666502, 'sub_port_id': 28666534, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439902, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 27)}, 'metal': {'main_port_id': 28666502, 'sub_port_id': 28666535, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439903, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28666524 , 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=28666502 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 (28666524) result : ((1395069294,), (1395069295,), (1395069296,), (1395069297,), (1395069298,), (1395069379,), (1395069432,), (1395069433,), (1395070629,), (1395070630,), (1395070631,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28666502) result : ((1395067963,), (1395067965,), (1395067969,), (1395067972,), (1395067993,), (1395067995,), (1395067998,), (1395068119,), (1395068152,), (1395068186,), (1395068224,), (1395068260,), (1395068298,), (1395068644,), (1395068704,), (1395068767,), (1395068813,), (1395068847,), (1395068877,), (1395068944,), (1395068945,), (1395068946,), (1395068947,), (1395068948,), (1395068953,), (1395068956,), (1395068961,), (1395068965,), (1395068968,), (1395068994,), (1395068995,), (1395068996,), (1395068999,), (1395069022,), (1395069023,), (1395069025,), (1395069029,), (1395069034,), (1395069038,), (1395069053,), (1395069060,), (1395069092,), (1395069125,), (1395069162,), (1395069205,), (1395069321,), (1395069354,), (1395069371,), (1395069374,), (1395069403,), (1395069404,), (1395069405,), (1395069408,), (1395069413,), (1395069465,), (1395069466,), (1395069467,), (1395069481,), (1395069486,), (1395069488,), (1395069588,), (1395069629,), (1395069668,), (1395070184,), (1395070218,), (1395070251,), (1395070282,), (1395070321,)) 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 28666525 , 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=28666502 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 (28666525) result : ((1395069437,), (1395069438,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28666502) result : ((1395067963,), (1395067965,), (1395067969,), (1395067972,), (1395067993,), (1395067995,), (1395067998,), (1395068119,), (1395068152,), (1395068186,), (1395068224,), (1395068260,), (1395068298,), (1395068644,), (1395068704,), (1395068767,), (1395068813,), (1395068847,), (1395068877,), (1395068944,), (1395068945,), (1395068946,), (1395068947,), (1395068948,), (1395068953,), (1395068956,), (1395068961,), (1395068965,), (1395068968,), (1395068994,), (1395068995,), (1395068996,), (1395068999,), (1395069022,), (1395069023,), (1395069025,), (1395069029,), (1395069034,), (1395069038,), (1395069053,), (1395069060,), (1395069092,), (1395069125,), (1395069162,), (1395069205,), (1395069321,), (1395069354,), (1395069371,), (1395069374,), (1395069403,), (1395069404,), (1395069405,), (1395069408,), (1395069413,), (1395069465,), (1395069466,), (1395069467,), (1395069481,), (1395069486,), (1395069488,), (1395069588,), (1395069629,), (1395069668,), (1395070184,), (1395070218,), (1395070251,), (1395070282,), (1395070321,)) 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 28666526 , 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=28666502 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 (28666526) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28666502) result : ((1395067963,), (1395067965,), (1395067969,), (1395067972,), (1395067993,), (1395067995,), (1395067998,), (1395068119,), (1395068152,), (1395068186,), (1395068224,), (1395068260,), (1395068298,), (1395068644,), (1395068704,), (1395068767,), (1395068813,), (1395068847,), (1395068877,), (1395068944,), (1395068945,), (1395068946,), (1395068947,), (1395068948,), (1395068953,), (1395068956,), (1395068961,), (1395068965,), (1395068968,), (1395068994,), (1395068995,), (1395068996,), (1395068999,), (1395069022,), (1395069023,), (1395069025,), (1395069029,), (1395069034,), (1395069038,), (1395069053,), (1395069060,), (1395069092,), (1395069125,), (1395069162,), (1395069205,), (1395069321,), (1395069354,), (1395069371,), (1395069374,), (1395069403,), (1395069404,), (1395069405,), (1395069408,), (1395069413,), (1395069465,), (1395069466,), (1395069467,), (1395069481,), (1395069486,), (1395069488,), (1395069588,), (1395069629,), (1395069668,), (1395070184,), (1395070218,), (1395070251,), (1395070282,), (1395070321,)) 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 28666527 , 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=28666502 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 (28666527) result : ((1395069299,), (1395070637,), (1395070638,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28666502) result : ((1395067963,), (1395067965,), (1395067969,), (1395067972,), (1395067993,), (1395067995,), (1395067998,), (1395068119,), (1395068152,), (1395068186,), (1395068224,), (1395068260,), (1395068298,), (1395068644,), (1395068704,), (1395068767,), (1395068813,), (1395068847,), (1395068877,), (1395068944,), (1395068945,), (1395068946,), (1395068947,), (1395068948,), (1395068953,), (1395068956,), (1395068961,), (1395068965,), (1395068968,), (1395068994,), (1395068995,), (1395068996,), (1395068999,), (1395069022,), (1395069023,), (1395069025,), (1395069029,), (1395069034,), (1395069038,), (1395069053,), (1395069060,), (1395069092,), (1395069125,), (1395069162,), (1395069205,), (1395069321,), (1395069354,), (1395069371,), (1395069374,), (1395069403,), (1395069404,), (1395069405,), (1395069408,), (1395069413,), (1395069465,), (1395069466,), (1395069467,), (1395069481,), (1395069486,), (1395069488,), (1395069588,), (1395069629,), (1395069668,), (1395070184,), (1395070218,), (1395070251,), (1395070282,), (1395070321,)) 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 28666528 , 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=28666502 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 (28666528) result : ((1395069434,), (1395069435,), (1395069436,), (1395070633,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28666502) result : ((1395067963,), (1395067965,), (1395067969,), (1395067972,), (1395067993,), (1395067995,), (1395067998,), (1395068119,), (1395068152,), (1395068186,), (1395068224,), (1395068260,), (1395068298,), (1395068644,), (1395068704,), (1395068767,), (1395068813,), (1395068847,), (1395068877,), (1395068944,), (1395068945,), (1395068946,), (1395068947,), (1395068948,), (1395068953,), (1395068956,), (1395068961,), (1395068965,), (1395068968,), (1395068994,), (1395068995,), (1395068996,), (1395068999,), (1395069022,), (1395069023,), (1395069025,), (1395069029,), (1395069034,), (1395069038,), (1395069053,), (1395069060,), (1395069092,), (1395069125,), (1395069162,), (1395069205,), (1395069321,), (1395069354,), (1395069371,), (1395069374,), (1395069403,), (1395069404,), (1395069405,), (1395069408,), (1395069413,), (1395069465,), (1395069466,), (1395069467,), (1395069481,), (1395069486,), (1395069488,), (1395069588,), (1395069629,), (1395069668,), (1395070184,), (1395070218,), (1395070251,), (1395070282,), (1395070321,)) 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 28666529 , 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=28666502 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 (28666529) result : ((1395069380,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28666502) result : ((1395067963,), (1395067965,), (1395067969,), (1395067972,), (1395067993,), (1395067995,), (1395067998,), (1395068119,), (1395068152,), (1395068186,), (1395068224,), (1395068260,), (1395068298,), (1395068644,), (1395068704,), (1395068767,), (1395068813,), (1395068847,), (1395068877,), (1395068944,), (1395068945,), (1395068946,), (1395068947,), (1395068948,), (1395068953,), (1395068956,), (1395068961,), (1395068965,), (1395068968,), (1395068994,), (1395068995,), (1395068996,), (1395068999,), (1395069022,), (1395069023,), (1395069025,), (1395069029,), (1395069034,), (1395069038,), (1395069053,), (1395069060,), (1395069092,), (1395069125,), (1395069162,), (1395069205,), (1395069321,), (1395069354,), (1395069371,), (1395069374,), (1395069403,), (1395069404,), (1395069405,), (1395069408,), (1395069413,), (1395069465,), (1395069466,), (1395069467,), (1395069481,), (1395069486,), (1395069488,), (1395069588,), (1395069629,), (1395069668,), (1395070184,), (1395070218,), (1395070251,), (1395070282,), (1395070321,)) 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 28666530 , 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=28666502 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 (28666530) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28666502) result : ((1395067963,), (1395067965,), (1395067969,), (1395067972,), (1395067993,), (1395067995,), (1395067998,), (1395068119,), (1395068152,), (1395068186,), (1395068224,), (1395068260,), (1395068298,), (1395068644,), (1395068704,), (1395068767,), (1395068813,), (1395068847,), (1395068877,), (1395068944,), (1395068945,), (1395068946,), (1395068947,), (1395068948,), (1395068953,), (1395068956,), (1395068961,), (1395068965,), (1395068968,), (1395068994,), (1395068995,), (1395068996,), (1395068999,), (1395069022,), (1395069023,), (1395069025,), (1395069029,), (1395069034,), (1395069038,), (1395069053,), (1395069060,), (1395069092,), (1395069125,), (1395069162,), (1395069205,), (1395069321,), (1395069354,), (1395069371,), (1395069374,), (1395069403,), (1395069404,), (1395069405,), (1395069408,), (1395069413,), (1395069465,), (1395069466,), (1395069467,), (1395069481,), (1395069486,), (1395069488,), (1395069588,), (1395069629,), (1395069668,), (1395070184,), (1395070218,), (1395070251,), (1395070282,), (1395070321,)) 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 28666531 , 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=28666502 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 (28666531) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28666502) result : ((1395067963,), (1395067965,), (1395067969,), (1395067972,), (1395067993,), (1395067995,), (1395067998,), (1395068119,), (1395068152,), (1395068186,), (1395068224,), (1395068260,), (1395068298,), (1395068644,), (1395068704,), (1395068767,), (1395068813,), (1395068847,), (1395068877,), (1395068944,), (1395068945,), (1395068946,), (1395068947,), (1395068948,), (1395068953,), (1395068956,), (1395068961,), (1395068965,), (1395068968,), (1395068994,), (1395068995,), (1395068996,), (1395068999,), (1395069022,), (1395069023,), (1395069025,), (1395069029,), (1395069034,), (1395069038,), (1395069053,), (1395069060,), (1395069092,), (1395069125,), (1395069162,), (1395069205,), (1395069321,), (1395069354,), (1395069371,), (1395069374,), (1395069403,), (1395069404,), (1395069405,), (1395069408,), (1395069413,), (1395069465,), (1395069466,), (1395069467,), (1395069481,), (1395069486,), (1395069488,), (1395069588,), (1395069629,), (1395069668,), (1395070184,), (1395070218,), (1395070251,), (1395070282,), (1395070321,)) 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 28666532 , 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=28666502 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 (28666532) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28666502) result : ((1395067963,), (1395067965,), (1395067969,), (1395067972,), (1395067993,), (1395067995,), (1395067998,), (1395068119,), (1395068152,), (1395068186,), (1395068224,), (1395068260,), (1395068298,), (1395068644,), (1395068704,), (1395068767,), (1395068813,), (1395068847,), (1395068877,), (1395068944,), (1395068945,), (1395068946,), (1395068947,), (1395068948,), (1395068953,), (1395068956,), (1395068961,), (1395068965,), (1395068968,), (1395068994,), (1395068995,), (1395068996,), (1395068999,), (1395069022,), (1395069023,), (1395069025,), (1395069029,), (1395069034,), (1395069038,), (1395069053,), (1395069060,), (1395069092,), (1395069125,), (1395069162,), (1395069205,), (1395069321,), (1395069354,), (1395069371,), (1395069374,), (1395069403,), (1395069404,), (1395069405,), (1395069408,), (1395069413,), (1395069465,), (1395069466,), (1395069467,), (1395069481,), (1395069486,), (1395069488,), (1395069588,), (1395069629,), (1395069668,), (1395070184,), (1395070218,), (1395070251,), (1395070282,), (1395070321,)) 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 28666533 , 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=28666502 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 (28666533) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28666502) result : ((1395067963,), (1395067965,), (1395067969,), (1395067972,), (1395067993,), (1395067995,), (1395067998,), (1395068119,), (1395068152,), (1395068186,), (1395068224,), (1395068260,), (1395068298,), (1395068644,), (1395068704,), (1395068767,), (1395068813,), (1395068847,), (1395068877,), (1395068944,), (1395068945,), (1395068946,), (1395068947,), (1395068948,), (1395068953,), (1395068956,), (1395068961,), (1395068965,), (1395068968,), (1395068994,), (1395068995,), (1395068996,), (1395068999,), (1395069022,), (1395069023,), (1395069025,), (1395069029,), (1395069034,), (1395069038,), (1395069053,), (1395069060,), (1395069092,), (1395069125,), (1395069162,), (1395069205,), (1395069321,), (1395069354,), (1395069371,), (1395069374,), (1395069403,), (1395069404,), (1395069405,), (1395069408,), (1395069413,), (1395069465,), (1395069466,), (1395069467,), (1395069481,), (1395069486,), (1395069488,), (1395069588,), (1395069629,), (1395069668,), (1395070184,), (1395070218,), (1395070251,), (1395070282,), (1395070321,)) 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 28666534 , 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=28666502 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 (28666534) result : ((1395069440,), (1395070635,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28666502) result : ((1395067963,), (1395067965,), (1395067969,), (1395067972,), (1395067993,), (1395067995,), (1395067998,), (1395068119,), (1395068152,), (1395068186,), (1395068224,), (1395068260,), (1395068298,), (1395068644,), (1395068704,), (1395068767,), (1395068813,), (1395068847,), (1395068877,), (1395068944,), (1395068945,), (1395068946,), (1395068947,), (1395068948,), (1395068953,), (1395068956,), (1395068961,), (1395068965,), (1395068968,), (1395068994,), (1395068995,), (1395068996,), (1395068999,), (1395069022,), (1395069023,), (1395069025,), (1395069029,), (1395069034,), (1395069038,), (1395069053,), (1395069060,), (1395069092,), (1395069125,), (1395069162,), (1395069205,), (1395069321,), (1395069354,), (1395069371,), (1395069374,), (1395069403,), (1395069404,), (1395069405,), (1395069408,), (1395069413,), (1395069465,), (1395069466,), (1395069467,), (1395069481,), (1395069486,), (1395069488,), (1395069588,), (1395069629,), (1395069668,), (1395070184,), (1395070218,), (1395070251,), (1395070282,), (1395070321,)) 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 28666535 , 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=28666502 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 (28666535) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28666502) result : ((1395067963,), (1395067965,), (1395067969,), (1395067972,), (1395067993,), (1395067995,), (1395067998,), (1395068119,), (1395068152,), (1395068186,), (1395068224,), (1395068260,), (1395068298,), (1395068644,), (1395068704,), (1395068767,), (1395068813,), (1395068847,), (1395068877,), (1395068944,), (1395068945,), (1395068946,), (1395068947,), (1395068948,), (1395068953,), (1395068956,), (1395068961,), (1395068965,), (1395068968,), (1395068994,), (1395068995,), (1395068996,), (1395068999,), (1395069022,), (1395069023,), (1395069025,), (1395069029,), (1395069034,), (1395069038,), (1395069053,), (1395069060,), (1395069092,), (1395069125,), (1395069162,), (1395069205,), (1395069321,), (1395069354,), (1395069371,), (1395069374,), (1395069403,), (1395069404,), (1395069405,), (1395069408,), (1395069413,), (1395069465,), (1395069466,), (1395069467,), (1395069481,), (1395069486,), (1395069488,), (1395069588,), (1395069629,), (1395069668,), (1395070184,), (1395070218,), (1395070251,), (1395070282,), (1395070321,)) 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`=28666502 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','autre_refus','Carton_brun','metal','environnement','plastique','mal_croppe','flou','Carton_gris','kraft','cartonnette')) 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`=28666502 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','autre_refus','Carton_brun','metal','environnement','plastique','mal_croppe','flou','Carton_gris','kraft','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 28666502, 'sub_port_id': 28666536, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439904, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 28)}, 'Carton_gris': {'main_port_id': 28666502, 'sub_port_id': 28666537, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439905, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 28)}, 'environnement': {'main_port_id': 28666502, 'sub_port_id': 28666538, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439906, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 28)}, 'Carton_brun': {'main_port_id': 28666502, 'sub_port_id': 28666539, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439907, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 28)}, 'autre_refus': {'main_port_id': 28666502, 'sub_port_id': 28666540, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439908, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 28)}, 'plastique': {'main_port_id': 28666502, 'sub_port_id': 28666541, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439909, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 28)}, 'flou': {'main_port_id': 28666502, 'sub_port_id': 28666542, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439910, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 28)}, 'kraft': {'main_port_id': 28666502, 'sub_port_id': 28666543, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439911, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 28)}, 'mal_croppe': {'main_port_id': 28666502, 'sub_port_id': 28666544, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439912, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 28)}, 'papier': {'main_port_id': 28666502, 'sub_port_id': 28666545, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439913, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 28)}, 'cartonnette': {'main_port_id': 28666502, 'sub_port_id': 28666546, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439914, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 28)}, 'metal': {'main_port_id': 28666502, 'sub_port_id': 28666547, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19439915, 'last_updated_at': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 18, 17, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 18, 17, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28666536,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28666524 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28666537,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28666525 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28666538,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28666526 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28666539,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28666527 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28666540,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28666528 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28666541,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28666529 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28666542,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28666530 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28666543,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28666531 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28666544,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28666532 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28666545,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28666533 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28666546,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28666534 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28666547,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28666535 lien utilise dans velours : https://marlene.fotonower.com/velours/28666536,28666537,28666538,28666539,28666540,28666541,28666542,28666543,28666544,28666545,28666546,28666547?tags=Teint_Dans_La_Masse,Carton_gris,environnement,Carton_brun,autre_refus,plastique,flou,kraft,mal_croppe,papier,cartonnette,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28666502]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1395070321, 1395070282, 1395070251, 1395070218, 1395070184] map_info['map_portfolio_photo'] : {28666502: [1395070321, 1395070282, 1395070251, 1395070218, 1395070184, 1395069668, 1395069629, 1395069588, 1395069488, 1395069486, 1395069481, 1395069467, 1395069466, 1395069465, 1395069413, 1395069408, 1395069405, 1395069404, 1395069403, 1395069374, 1395069371, 1395069354, 1395069321, 1395069205, 1395069162, 1395069125, 1395069092, 1395069060, 1395069053, 1395069038, 1395069034, 1395069029, 1395069025, 1395069023, 1395069022, 1395068999, 1395068996, 1395068995, 1395068994, 1395068968, 1395068965, 1395068961, 1395068956, 1395068953, 1395068948, 1395068947, 1395068946, 1395068945, 1395068944, 1395068877, 1395068847, 1395068813, 1395068767, 1395068704, 1395068644, 1395068298, 1395068260, 1395068224, 1395068186, 1395068152, 1395068119, 1395067998, 1395067995, 1395067993, 1395067972, 1395067969, 1395067965, 1395067963]} final : False mtd_id 4302 list_pids : [1395070321, 1395070282, 1395070251, 1395070218, 1395070184] Looping around the photos to save general results len do output : 1 /28666502. 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, '4067987') ('4302', '28666502', '1395070321', None, None, None, None, None, '4067987') ('4302', None, None, None, None, None, None, None, '4067987') ('4302', '28666502', '1395070282', None, None, None, None, None, '4067987') ('4302', None, None, None, None, None, None, None, '4067987') ('4302', '28666502', '1395070251', None, None, None, None, None, '4067987') ('4302', None, None, None, None, None, None, None, '4067987') ('4302', '28666502', '1395070218', None, None, None, None, None, '4067987') ('4302', None, None, None, None, None, None, None, '4067987') ('4302', '28666502', '1395070184', None, None, None, None, None, '4067987') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '28666502', "{'Teint_Dans_La_Masse': 28666524, 'Carton_gris': 28666525, 'environnement': 28666526, 'Carton_brun': 28666527, 'autre_refus': 28666528, 'plastique': 28666529, 'flou': 28666530, 'kraft': 28666531, 'mal_croppe': 28666532, 'papier': 28666533, 'cartonnette': 28666534, 'metal': 28666535}", None, None, None, None, '4067987'), ('4302', '28666502', '1395070321', None, None, None, None, None, '4067987'), ('4302', '28666502', '1395070282', None, None, None, None, None, '4067987'), ('4302', '28666502', '1395070251', None, None, None, None, None, '4067987'), ('4302', '28666502', '1395070218', None, None, None, None, None, '4067987'), ('4302', '28666502', '1395070184', None, None, None, None, None, '4067987')] time used for this insertion : 0.013594865798950195 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5790557861328125 time spend to save output : 0.013864994049072266 total time spend for step 1 : 1.5929207801818848 step2:final Tue Nov 18 17:14: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 (28666502) 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 28666502 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1395067972,1395067969,1395067965,1395067963,1395067998,1395067995,1395067993,1395068948,1395068298,1395068260,1395068947,1395068224,1395068946,1395068186,1395068945,1395068944,1395068152,1395068877,1395068119,1395068847,1395068813,1395068767,1395068704,1395068644,1395068968,1395068965,1395068961,1395068956,1395068953,1395068999,1395068996,1395068995,1395068994,1395069038,1395069034,1395069029,1395069025,1395069023,1395069022,1395069205,1395069162,1395069125,1395069092,1395069060,1395069053,1395069374,1395069371,1395069354,1395069321,1395069413,1395069408,1395069405,1395069404,1395069403,1395069488,1395069486,1395069481,1395069467,1395069466,1395069465,1395069668,1395069629,1395069588,1395070321,1395070282,1395070251,1395070218,1395070184); 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([28666502]) Inside saveOutput : final : False verbose : True original output for save of step final : {1395070321: ('0.03014022078130613',), 1395070282: ('0.03014022078130613',), 1395070251: ('0.03014022078130613',), 1395070218: ('0.03014022078130613',), 1395070184: ('0.03014022078130613',)} new output for save of step final : {1395070321: ('0.03014022078130613',), 1395070282: ('0.03014022078130613',), 1395070251: ('0.03014022078130613',), 1395070218: ('0.03014022078130613',), 1395070184: ('0.03014022078130613',)} [1395070321, 1395070282, 1395070251, 1395070218, 1395070184] map_info['map_portfolio_photo'] : {28666502: [1395070321, 1395070282, 1395070251, 1395070218, 1395070184, 1395069668, 1395069629, 1395069588, 1395069488, 1395069486, 1395069481, 1395069467, 1395069466, 1395069465, 1395069413, 1395069408, 1395069405, 1395069404, 1395069403, 1395069374, 1395069371, 1395069354, 1395069321, 1395069205, 1395069162, 1395069125, 1395069092, 1395069060, 1395069053, 1395069038, 1395069034, 1395069029, 1395069025, 1395069023, 1395069022, 1395068999, 1395068996, 1395068995, 1395068994, 1395068968, 1395068965, 1395068961, 1395068956, 1395068953, 1395068948, 1395068947, 1395068946, 1395068945, 1395068944, 1395068877, 1395068847, 1395068813, 1395068767, 1395068704, 1395068644, 1395068298, 1395068260, 1395068224, 1395068186, 1395068152, 1395068119, 1395067998, 1395067995, 1395067993, 1395067972, 1395067969, 1395067965, 1395067963]} final : False mtd_id 4302 list_pids : [1395070321, 1395070282, 1395070251, 1395070218, 1395070184] Looping around the photos to save general results len do output : 5 /1395070321.Didn't retrieve data . /1395070282.Didn't retrieve data . /1395070251.Didn't retrieve data . /1395070218.Didn't retrieve data . /1395070184.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, '4067987') ('4302', '28666502', '1395070321', None, None, None, None, None, '4067987') ('4302', None, None, None, None, None, None, None, '4067987') ('4302', '28666502', '1395070282', None, None, None, None, None, '4067987') ('4302', None, None, None, None, None, None, None, '4067987') ('4302', '28666502', '1395070251', None, None, None, None, None, '4067987') ('4302', None, None, None, None, None, None, None, '4067987') ('4302', '28666502', '1395070218', None, None, None, None, None, '4067987') ('4302', None, None, None, None, None, None, None, '4067987') ('4302', '28666502', '1395070184', None, None, None, None, None, '4067987') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28666502', '1395070321', '0.03014022078130613', None, None, None, None, '4067987'), ('4302', '28666502', '1395070282', '0.03014022078130613', None, None, None, None, '4067987'), ('4302', '28666502', '1395070251', '0.03014022078130613', None, None, None, None, '4067987'), ('4302', '28666502', '1395070218', '0.03014022078130613', None, None, None, None, '4067987'), ('4302', '28666502', '1395070184', '0.03014022078130613', None, None, None, None, '4067987')] time used for this insertion : 0.012850761413574219 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06605958938598633 time spend to save output : 0.013202905654907227 total time spend for step 2 : 0.07926249504089355 step3:velours_tree Tue Nov 18 17:14: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 : {28666502: [{'Teint_Dans_La_Masse': 28666524, 'Carton_gris': 28666525, 'environnement': 28666526, 'Carton_brun': 28666527, 'autre_refus': 28666528, 'plastique': 28666529, 'flou': 28666530, 'kraft': 28666531, 'mal_croppe': 28666532, 'papier': 28666533, 'cartonnette': 28666534, 'metal': 28666535}]} input_args_next_step : {28666502: ()} output_args : {28666502: [{'Teint_Dans_La_Masse': 28666524, 'Carton_gris': 28666525, 'environnement': 28666526, 'Carton_brun': 28666527, 'autre_refus': 28666528, 'plastique': 28666529, 'flou': 28666530, 'kraft': 28666531, 'mal_croppe': 28666532, 'papier': 28666533, 'cartonnette': 28666534, 'metal': 28666535}]} args : 28666502 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 : ({'Teint_Dans_La_Masse': 28666524, 'Carton_gris': 28666525, 'environnement': 28666526, 'Carton_brun': 28666527, 'autre_refus': 28666528, 'plastique': 28666529, 'flou': 28666530, 'kraft': 28666531, 'mal_croppe': 28666532, 'papier': 28666533, 'cartonnette': 28666534, 'metal': 28666535},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28666502) 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([28666502]) 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.3059806823730469 time spend to save output : 6.0558319091796875e-05 total time spend for step 3 : 0.30604124069213867 step4:send_mail_cod Tue Nov 18 17:14: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 : {1395070321: ('0.03014022078130613',), 1395070282: ('0.03014022078130613',), 1395070251: ('0.03014022078130613',), 1395070218: ('0.03014022078130613',), 1395070184: ('0.03014022078130613',)} input_args_next_step : {1395070321: ()} output_args : {1395070321: ('0.03014022078130613',), 1395070282: ('0.03014022078130613',), 1395070251: ('0.03014022078130613',), 1395070218: ('0.03014022078130613',), 1395070184: ('0.03014022078130613',)} args : 1395070321 depend.output_id : 0 input_args_next_step : {1395070321: ('0.03014022078130613',), 1395070282: ()} output_args : {1395070321: ('0.03014022078130613',), 1395070282: ('0.03014022078130613',), 1395070251: ('0.03014022078130613',), 1395070218: ('0.03014022078130613',), 1395070184: ('0.03014022078130613',)} args : 1395070282 depend.output_id : 0 input_args_next_step : {1395070321: ('0.03014022078130613',), 1395070282: ('0.03014022078130613',), 1395070251: ()} output_args : {1395070321: ('0.03014022078130613',), 1395070282: ('0.03014022078130613',), 1395070251: ('0.03014022078130613',), 1395070218: ('0.03014022078130613',), 1395070184: ('0.03014022078130613',)} args : 1395070251 depend.output_id : 0 input_args_next_step : {1395070321: ('0.03014022078130613',), 1395070282: ('0.03014022078130613',), 1395070251: ('0.03014022078130613',), 1395070218: ()} output_args : {1395070321: ('0.03014022078130613',), 1395070282: ('0.03014022078130613',), 1395070251: ('0.03014022078130613',), 1395070218: ('0.03014022078130613',), 1395070184: ('0.03014022078130613',)} args : 1395070218 depend.output_id : 0 input_args_next_step : {1395070321: ('0.03014022078130613',), 1395070282: ('0.03014022078130613',), 1395070251: ('0.03014022078130613',), 1395070218: ('0.03014022078130613',), 1395070184: ()} output_args : {1395070321: ('0.03014022078130613',), 1395070282: ('0.03014022078130613',), 1395070251: ('0.03014022078130613',), 1395070218: ('0.03014022078130613',), 1395070184: ('0.03014022078130613',)} args : 1395070184 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 : {28666502: [{'Teint_Dans_La_Masse': 28666524, 'Carton_gris': 28666525, 'environnement': 28666526, 'Carton_brun': 28666527, 'autre_refus': 28666528, 'plastique': 28666529, 'flou': 28666530, 'kraft': 28666531, 'mal_croppe': 28666532, 'papier': 28666533, 'cartonnette': 28666534, 'metal': 28666535}]} input_args_next_step : {1395070321: ('0.03014022078130613',), 1395070282: ('0.03014022078130613',), 1395070251: ('0.03014022078130613',), 1395070218: ('0.03014022078130613',), 1395070184: ('0.03014022078130613',), 28666502: ()} output_args : {28666502: [{'Teint_Dans_La_Masse': 28666524, 'Carton_gris': 28666525, 'environnement': 28666526, 'Carton_brun': 28666527, 'autre_refus': 28666528, 'plastique': 28666529, 'flou': 28666530, 'kraft': 28666531, 'mal_croppe': 28666532, 'papier': 28666533, 'cartonnette': 28666534, 'metal': 28666535}]} args : 28666502 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 :6, first value : ('0.03014022078130613',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28666502) 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 (1395070321,1395070282,1395070251,1395070218,1395070184) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1395070184 begin to download photo : 1395070251 begin to download photo : 1395070321 download finish for photo 1395070321 download finish for photo 1395070251 download finish for photo 1395070184 begin to download photo : 1395070282 begin to download photo : 1395070218 download finish for photo 1395070218 download finish for photo 1395070282 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 : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P28666502_18-11-2025_17_15_00.pdf 28666528 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=28666528 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395069434: '1763482165_1501212_1395067998_dd9869119b463e150d1cc94d6efc9a47_rle_crop_4037780159_0.png', 1395069435: '1763482165_1501212_1395067972_b1b1f3c297efc94ae189d54ca25cff5f_rle_crop_4037780194_0.png', 1395069436: '1763482165_1501212_1395067963_c3861e5b1a1d1ce2419a3644e5b4910c_rle_crop_4037780228_0.png', 1395070633: '1763482405_1508118_1395068994_d56b09132ce21b0700a5a0fc29307686_rle_crop_4037790344_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/9ad6e19ca37ac460b942818da7faf794_89027618.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/524dfeaba8d0d87ee272abab38bc27ce_10736802.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/976a7ad41ac2fdacc7409011f6e94a83_94782300.png change filename to text .imagette286665281763482500/ imagette286665281763482500/1763482405_1508118_1395068994_d56b09132ce21b0700a5a0fc29307686_rle_crop_4037790344_0.png.png imagette286665281763482500/1763482165_1501212_1395067998_dd9869119b463e150d1cc94d6efc9a47_rle_crop_4037780159_0.png.png imagette286665281763482500/1763482165_1501212_1395067972_b1b1f3c297efc94ae189d54ca25cff5f_rle_crop_4037780194_0.png.png imagette286665281763482500/1763482165_1501212_1395067963_c3861e5b1a1d1ce2419a3644e5b4910c_rle_crop_4037780228_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/d0886aa739214f3fd68803c28f3e046c_54183493.png imagette286665281763482500 28666529 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=28666529 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395069380: '1763482145_1500708_1395067995_32302ab0129014db3cb0525fc559a573_rle_crop_4037779544_0.png'} change filename to text .imagette286665291763482500/ imagette286665291763482500/1763482145_1500708_1395067995_32302ab0129014db3cb0525fc559a573_rle_crop_4037779544_0.png.png imagette286665301763482500/ imagette286665311763482500/ imagette286665321763482500/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/fc75105fb99ffccd93f9490d958fc5d7_47323650.png imagette286665291763482500 28666530 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=28666530 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286665301763482500 28666531 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=28666531 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286665311763482500 28666532 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=28666532 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286665321763482500 28666534 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=28666534 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395069440: '1763482165_1501212_1395067972_b1b1f3c297efc94ae189d54ca25cff5f_rle_crop_4037780195_0.png', 1395070635: '1763482405_1508118_1395068994_d56b09132ce21b0700a5a0fc29307686_rle_crop_4037790345_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/5e7b601bc208145bd9894092d21ee41a_45486549.png change filename to text .imagette286665341763482500/ imagette286665341763482500/1763482405_1508118_1395068994_d56b09132ce21b0700a5a0fc29307686_rle_crop_4037790345_0.png.png imagette286665341763482500/1763482165_1501212_1395067972_b1b1f3c297efc94ae189d54ca25cff5f_rle_crop_4037780195_0.png.png imagette286665351763482500/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/3fd43987765c0aa8c6bd6adbcd685223_50748641.png imagette286665341763482500 28666535 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=28666535 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286665351763482500 28666524 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=28666524 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395069294: '1763482107_1499295_1395068260_da7a925a94551bdfcd3d6bbfe63fed45_rle_crop_4037779339_0.png', 1395069295: '1763482107_1499295_1395068260_da7a925a94551bdfcd3d6bbfe63fed45_rle_crop_4037779344_0.png', 1395069296: '1763482107_1499295_1395068224_687bf9ff73b5d7ada2ae838a597ceb6e_rle_crop_4037779360_0.png', 1395069297: '1763482107_1499295_1395068152_a75b8c8bb92b6002522def7946bb7008_rle_crop_4037779389_0.png', 1395069298: '1763482107_1499295_1395068119_1fae85f0ceeb5c19acfa6ff6552ea6d2_rle_crop_4037779397_0.png', 1395069379: '1763482145_1500708_1395068298_675aa0ecf945cdff0ecaddf31bd382f8_rle_crop_4037779532_0.png', 1395069432: '1763482165_1501212_1395067972_b1b1f3c297efc94ae189d54ca25cff5f_rle_crop_4037780197_0.png', 1395069433: '1763482165_1501212_1395067965_5f98214e7bcc4cad12dd997c918fae41_rle_crop_4037780221_0.png', 1395070629: '1763482405_1508118_1395068996_7474cd2405d164ec37063c2f4fe497ba_rle_crop_4037790311_0.png', 1395070630: '1763482405_1508118_1395068996_7474cd2405d164ec37063c2f4fe497ba_rle_crop_4037790313_0.png', 1395070631: '1763482405_1508118_1395068995_445e46f6b1f4525b521fd50fdbf742b1_rle_crop_4037790333_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/a9655cd99255dfab00567522fb3cfcd7_24261873.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/cae8cde423975bd249cc4a072b965b44_90943439.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/9f5f58bcc66f55df54979743bc979b2e_57923789.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/09aa78c903650eaacca3012c642931fc_41905267.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/78751373443f3f74960c61a01a473245_8019534.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/e17775d8b621a37ce5a1e87df59dfbcd_22500523.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/276146e41db7a2c979910d6873c468fa_75934352.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/40181ba226c96652a2df5632e308302e_34837510.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/6bf274717766791741f781db34aee66f_93217830.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/cbe456d02df6ff86849a3ae849c4e0e9_65487407.png change filename to text .imagette286665241763482500/ imagette286665241763482500/1763482145_1500708_1395068298_675aa0ecf945cdff0ecaddf31bd382f8_rle_crop_4037779532_0.png.png imagette286665241763482500/1763482165_1501212_1395067965_5f98214e7bcc4cad12dd997c918fae41_rle_crop_4037780221_0.png.png imagette286665241763482500/1763482165_1501212_1395067972_b1b1f3c297efc94ae189d54ca25cff5f_rle_crop_4037780197_0.png.png imagette286665241763482500/1763482107_1499295_1395068224_687bf9ff73b5d7ada2ae838a597ceb6e_rle_crop_4037779360_0.png.png imagette286665241763482500/1763482107_1499295_1395068152_a75b8c8bb92b6002522def7946bb7008_rle_crop_4037779389_0.png.png imagette286665241763482500/1763482107_1499295_1395068119_1fae85f0ceeb5c19acfa6ff6552ea6d2_rle_crop_4037779397_0.png.png imagette286665241763482500/1763482405_1508118_1395068996_7474cd2405d164ec37063c2f4fe497ba_rle_crop_4037790313_0.png.png imagette286665241763482500/1763482405_1508118_1395068995_445e46f6b1f4525b521fd50fdbf742b1_rle_crop_4037790333_0.png.png imagette286665241763482500/1763482405_1508118_1395068996_7474cd2405d164ec37063c2f4fe497ba_rle_crop_4037790311_0.png.png imagette286665241763482500/1763482107_1499295_1395068260_da7a925a94551bdfcd3d6bbfe63fed45_rle_crop_4037779339_0.png.png imagette286665241763482500/1763482107_1499295_1395068260_da7a925a94551bdfcd3d6bbfe63fed45_rle_crop_4037779344_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/60a43bc68ebe1a927e5fec95eb0a0739_29443153.png imagette286665241763482500 28666525 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=28666525 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395069437: '1763482165_1501212_1395067965_5f98214e7bcc4cad12dd997c918fae41_rle_crop_4037780216_0.png', 1395069438: '1763482165_1501212_1395067963_c3861e5b1a1d1ce2419a3644e5b4910c_rle_crop_4037780234_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/c9b7eef28c0b1d9c595a0628ff5a082f_50642432.png change filename to text .imagette286665251763482501/ imagette286665251763482501/1763482165_1501212_1395067965_5f98214e7bcc4cad12dd997c918fae41_rle_crop_4037780216_0.png.png imagette286665251763482501/1763482165_1501212_1395067963_c3861e5b1a1d1ce2419a3644e5b4910c_rle_crop_4037780234_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/cb806b6e1863a5b34cc7dabb3f09abe9_88904730.png imagette286665251763482501 28666527 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=28666527 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395069299: '1763482107_1499295_1395068152_a75b8c8bb92b6002522def7946bb7008_rle_crop_4037779387_0.png', 1395070637: '1763482405_1508118_1395068994_d56b09132ce21b0700a5a0fc29307686_rle_crop_4037790347_0.png', 1395070638: '1763482405_1508118_1395068994_d56b09132ce21b0700a5a0fc29307686_rle_crop_4037790349_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/9a588ff67cea905026edf72135fb1ada_26750221.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/65ee5f25e6223b6efc871bc88acd552a_84076155.png change filename to text .imagette286665271763482501/ imagette286665271763482501/1763482405_1508118_1395068994_d56b09132ce21b0700a5a0fc29307686_rle_crop_4037790349_0.png.png imagette286665271763482501/1763482107_1499295_1395068152_a75b8c8bb92b6002522def7946bb7008_rle_crop_4037779387_0.png.png imagette286665271763482501/1763482405_1508118_1395068994_d56b09132ce21b0700a5a0fc29307686_rle_crop_4037790347_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/e683e8266d4cddcad8916b4b1af224a1_88345240.png imagette286665271763482501 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28666502 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28666536,28666537,28666538,28666539,28666540,28666541,28666542,28666543,28666544,28666545,28666546,28666547?tags=Teint_Dans_La_Masse,Carton_gris,environnement,Carton_brun,autre_refus,plastique,flou,kraft,mal_croppe,papier,cartonnette,metal your option no_mail is active, we will not send the real mail to your client args[1395070321] : ('0.03014022078130613',) no score found for photo 1395070321 We are sending mail with results at report@fotonower.com args[1395070282] : ('0.03014022078130613',) no score found for photo 1395070282 We are sending mail with results at report@fotonower.com args[1395070251] : ('0.03014022078130613',) no score found for photo 1395070251 We are sending mail with results at report@fotonower.com args[1395070218] : ('0.03014022078130613',) no score found for photo 1395070218 We are sending mail with results at report@fotonower.com args[1395070184] : ('0.03014022078130613',) no score found for photo 1395070184 We are sending mail with results at report@fotonower.com refus_total : 0.03014022078130613 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=28666502 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_P28666502_18-11-2025_17_15_00.pdf results_Auto_P28666502_18-11-2025_17_15_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28666502_18-11-2025_17_15_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','28666502','results_Auto_P28666502_18-11-2025_17_15_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28666502_18-11-2025_17_15_00.pdf','pdf','','0.12','0.03014022078130613') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28666502]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1395070321, 1395070282, 1395070251, 1395070218, 1395070184] map_info['map_portfolio_photo'] : {28666502: [1395070321, 1395070282, 1395070251, 1395070218, 1395070184, 1395069668, 1395069629, 1395069588, 1395069488, 1395069486, 1395069481, 1395069467, 1395069466, 1395069465, 1395069413, 1395069408, 1395069405, 1395069404, 1395069403, 1395069374, 1395069371, 1395069354, 1395069321, 1395069205, 1395069162, 1395069125, 1395069092, 1395069060, 1395069053, 1395069038, 1395069034, 1395069029, 1395069025, 1395069023, 1395069022, 1395068999, 1395068996, 1395068995, 1395068994, 1395068968, 1395068965, 1395068961, 1395068956, 1395068953, 1395068948, 1395068947, 1395068946, 1395068945, 1395068944, 1395068877, 1395068847, 1395068813, 1395068767, 1395068704, 1395068644, 1395068298, 1395068260, 1395068224, 1395068186, 1395068152, 1395068119, 1395067998, 1395067995, 1395067993, 1395067972, 1395067969, 1395067965, 1395067963]} final : False mtd_id 4302 list_pids : [1395070321, 1395070282, 1395070251, 1395070218, 1395070184] 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, '4067987') ('4302', '28666502', '1395070321', None, None, None, None, None, '4067987') ('4302', None, None, None, None, None, None, None, '4067987') ('4302', '28666502', '1395070282', None, None, None, None, None, '4067987') ('4302', None, None, None, None, None, None, None, '4067987') ('4302', '28666502', '1395070251', None, None, None, None, None, '4067987') ('4302', None, None, None, None, None, None, None, '4067987') ('4302', '28666502', '1395070218', None, None, None, None, None, '4067987') ('4302', None, None, None, None, None, None, None, '4067987') ('4302', '28666502', '1395070184', None, None, None, None, None, '4067987') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28666502', '1395070321', None, None, None, None, None, '4067987'), ('4302', '28666502', '1395070282', None, None, None, None, None, '4067987'), ('4302', '28666502', '1395070251', None, None, None, None, None, '4067987'), ('4302', '28666502', '1395070218', None, None, None, None, None, '4067987'), ('4302', '28666502', '1395070184', None, None, None, None, None, '4067987')] time used for this insertion : 0.01277470588684082 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.3116562366485596 time spend to save output : 0.012968301773071289 total time spend for step 4 : 3.324624538421631 step5:split_time_score Tue Nov 18 17:15:03 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 : ['28666502'] 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 : [('28666502',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28666502) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1395070321: {'path': 'temp/1763482499_3730581_1395070321_062ef0ed9dbcd197b7dd8ae719a857eb.jpg', 'extension': 'jpg'}, 1395070184: {'path': 'temp/1763482499_3730581_1395070184_8f0f07cecea0db0d5c155917728035cd.jpg', 'extension': 'jpg'}, 1395070218: {'path': 'temp/1763482499_3730581_1395070218_1036e4337e6569b4b80dbd8627651f60.jpg', 'extension': 'jpg'}, 1395070251: {'path': 'temp/1763482499_3730581_1395070251_cde186eb1a7c3690a9ca682c067ce706.jpg', 'extension': 'jpg'}, 1395070282: {'path': 'temp/1763482499_3730581_1395070282_1067e5617d98d4360686eec1e578dad7.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 = 28666502; (('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 = 28666502 group by h (('17', 68),) 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=28666502 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 (28666502) 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 (28666502) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18112025 28666502 Nombre de photos uploadées : 68 / 23040 (0%) 18112025 28666502 Nombre de photos taguées (types de déchets): 0 / 68 (0%) 18112025 28666502 Nombre de photos taguées (volume) : 0 / 68 (0%) [{'photo_id': 1395067972, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/b1b1f3c297efc94ae189d54ca25cff5f.jpg', 'username': None, 'uploaded_at': 1763481697, 'text': 'image_18112025_17_00_04_10147.jpg'}, {'photo_id': 1395067969, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/15e255d4124619fe47428f94daf4a862.jpg', 'username': None, 'uploaded_at': 1763481697, 'text': 'image_18112025_17_00_14_10135.jpg'}, {'photo_id': 1395067965, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/5f98214e7bcc4cad12dd997c918fae41.jpg', 'username': None, 'uploaded_at': 1763481697, 'text': 'image_18112025_17_00_24_10134.jpg'}, {'photo_id': 1395067963, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/18/c3861e5b1a1d1ce2419a3644e5b4910c.jpg', 'username': None, 'uploaded_at': 1763481697, 'text': 'image_18112025_17_00_43_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ???????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003682374954223633 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28666502, '2025-11-18' ) 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-18' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2598648,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21036291122436523 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= 2598648 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28631138, 'dashboard_result_id': 17433257, '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_P28631138_18-11-2025_06_13_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28631146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631157, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28631823, 'dashboard_result_id': 17433258, '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_P28631823_18-11-2025_06_14_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28631827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631835, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28632284, 'dashboard_result_id': 17433259, '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_P28632284_18-11-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632301, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28632886, 'dashboard_result_id': 17433260, '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_P28632886_18-11-2025_06_15_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632895, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632906, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28634373, 'dashboard_result_id': 17433261, '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_P28634373_18-11-2025_06_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28634378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28634379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28634380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28634381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28634382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28634383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28634384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28634385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28634386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28634387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28634388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28634389, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28635010, 'dashboard_result_id': 17433262, '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_P28635010_18-11-2025_06_16_12.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635022, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28635491, 'dashboard_result_id': 17433263, '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_P28635491_18-11-2025_06_16_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635521, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635524, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28636035, 'dashboard_result_id': 17433264, '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_P28636035_18-11-2025_06_17_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28636062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636072, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28636740, 'dashboard_result_id': 17433265, '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_P28636740_18-11-2025_06_18_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28636745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636756, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28637017, 'dashboard_result_id': 17433266, '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_P28637017_18-11-2025_06_18_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637037, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28637392, 'dashboard_result_id': 17433267, '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_P28637392_18-11-2025_06_20_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637411, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28638080, 'dashboard_result_id': 17433268, '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_P28638080_18-11-2025_06_20_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638092, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28638689, 'dashboard_result_id': 17433269, '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_P28638689_18-11-2025_06_21_10.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638726, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28639147, 'dashboard_result_id': 17433270, '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_P28639147_18-11-2025_06_21_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639198, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639203, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639207, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28639591, 'dashboard_result_id': 17433271, '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_P28639591_18-11-2025_06_21_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639640, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28641020, 'dashboard_result_id': 17433272, '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_P28641020_18-11-2025_06_22_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641035, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28641206, 'dashboard_result_id': 17433273, '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_P28641206_18-11-2025_06_23_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641214, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641223, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28641579, 'dashboard_result_id': 17433274, '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_P28641579_18-11-2025_05_47_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641597, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28641934, 'dashboard_result_id': 17433275, '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_P28641934_18-11-2025_06_03_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641950, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28642364, 'dashboard_result_id': 17433276, '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_P28642364_18-11-2025_06_19_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642376, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642384, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642385, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28642968, 'dashboard_result_id': 17433277, '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_P28642968_18-11-2025_06_33_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642983, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28643374, 'dashboard_result_id': 17433278, '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_P28643374_18-11-2025_06_47_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643386, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28643779, 'dashboard_result_id': 17433279, '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_P28643779_18-11-2025_07_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643795, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28644283, 'dashboard_result_id': 17433280, '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_P28644283_18-11-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28644316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28644317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28644318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28644319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28644320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28644321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28644322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28644323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28644324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28644325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28644326, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28644327, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28645127, 'dashboard_result_id': 17433281, '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_P28645127_18-11-2025_07_35_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645194, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28645778, 'dashboard_result_id': 17433282, '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_P28645778_18-11-2025_07_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645793, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645803, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28646472, 'dashboard_result_id': 17433283, '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_P28646472_18-11-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28646497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28646498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28646499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28646500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28646501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28646502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28646503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28646504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28646505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28646506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28646507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28646508, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28647027, 'dashboard_result_id': 17433284, '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_P28647027_18-11-2025_08_17_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647076, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647079, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28647656, 'dashboard_result_id': 17433285, '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_P28647656_18-11-2025_08_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647669, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647674, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28648493, 'dashboard_result_id': 17433286, '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_P28648493_18-11-2025_08_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28648499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28648500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28648501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28648502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28648503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28648504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28648505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28648506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28648507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28648508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28648509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28648510, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28649305, 'dashboard_result_id': 17433287, '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_P28649305_18-11-2025_09_34_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28649346, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28649347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28649348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28649349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28649350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28649351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28649352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28649353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28649354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28649355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28649356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28649357, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28650959, 'dashboard_result_id': 17433288, '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_P28650959_18-11-2025_09_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28650974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28650975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28650976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28650977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28650978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28650979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28650980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28650981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28650982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28650983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28650984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28650985, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28651460, 'dashboard_result_id': 17433289, '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_P28651460_18-11-2025_10_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651488, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28651808, 'dashboard_result_id': 17433290, '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_P28651808_18-11-2025_10_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651842, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651851, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651852, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28652248, 'dashboard_result_id': 17433291, '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_P28652248_18-11-2025_10_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28652258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28652259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28652260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28652261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28652262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28652263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28652264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28652265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28652266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28652267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28652268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28652269, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28652749, 'dashboard_result_id': 17433292, '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_P28652749_18-11-2025_10_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28652761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28652762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28652763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28652764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28652765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28652766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28652767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28652768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28652769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28652770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28652771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28652772, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28653464, 'dashboard_result_id': 17433293, '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_P28653464_18-11-2025_11_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28653474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28653475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28653476, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28653477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28653478, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28653479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28653480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28653481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28653482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28653483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28653484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28653485, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28653849, 'dashboard_result_id': 17433294, '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_P28653849_18-11-2025_11_17_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28653868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28653869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28653870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28653871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28653872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28653873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28653874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28653875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28653876, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28653877, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28653878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28653879, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28654500, 'dashboard_result_id': 17433295, '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_P28654500_18-11-2025_11_32_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28654534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28654535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28654536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28654537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28654538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28654539, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28654540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28654541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28654542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28654543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28654544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28654545, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28655193, 'dashboard_result_id': 17433296, '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_P28655193_18-11-2025_11_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28655199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28655200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28655201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28655202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28655203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28655204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28655205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28655206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28655207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28655208, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28655209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28655210, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28655671, 'dashboard_result_id': 17433297, '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_P28655671_18-11-2025_12_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28655696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28655697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28655698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28655699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28655700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28655701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28655702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28655703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28655704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28655705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28655706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28655707, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28656138, 'dashboard_result_id': 17433298, '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_P28656138_18-11-2025_14_00_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28656174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28656175, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28656176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28656177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28656178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28656179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28656180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28656181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28656182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28656183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28656184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28656185, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28658711, 'dashboard_result_id': 17433299, '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_P28658711_18-11-2025_14_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28658712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28658713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28658714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28658715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28658716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28658717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28658718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28658719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28658720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28658721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28658722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28658723, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28659160, 'dashboard_result_id': 17433300, '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_P28659160_18-11-2025_14_16_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28659164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28659165, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28659166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28659167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28659168, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28659169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28659170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28659171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28659172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28659173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28659174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28659175, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28659722, 'dashboard_result_id': 17433301, '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_P28659722_18-11-2025_14_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28659751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28659752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28659753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28659754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28659755, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28659756, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28659757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28659758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28659759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28659760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28659761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28659762, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28660259, 'dashboard_result_id': 17433302, '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_P28660259_18-11-2025_14_51_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28660293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28660294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28660295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28660296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28660297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28660298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28660299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28660300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28660301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28660302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28660304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28660305, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28661085, 'dashboard_result_id': 17433303, '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_P28661085_18-11-2025_15_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28661092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28661093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28661094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28661095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28661096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28661097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28661098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28661099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28661100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28661101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28661102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28661103, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28661468, 'dashboard_result_id': 17433304, '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_P28661468_18-11-2025_15_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28661523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28661524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28661525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28661526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28661527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28661528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28661529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28661530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28661531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28661532, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28661533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28661534, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28662141, 'dashboard_result_id': 17433305, '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_P28662141_18-11-2025_15_33_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28662232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28662233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28662234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28662235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28662236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28662237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28662238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28662239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28662240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28662241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28662242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28662243, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28662798, 'dashboard_result_id': 17433306, '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_P28662798_18-11-2025_15_48_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28662816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28662817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28662818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28662819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28662820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28662821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28662822, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28662823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28662824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28662826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28662827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28662828, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28663472, 'dashboard_result_id': 17433307, '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_P28663472_18-11-2025_16_03_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28663474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28663475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28663476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28663477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28663478, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28663479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28663480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28663481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28663482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28663483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28663484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28663485, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28663984, 'dashboard_result_id': 17433308, '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_P28663984_18-11-2025_16_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28663997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28663998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28663999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28664000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28664001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28664002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28664003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28664004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28664005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28664006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28664007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28664008, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28664534, 'dashboard_result_id': 17433309, '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_P28664534_18-11-2025_16_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28664583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28664584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28664585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28664586, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28664587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28664588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28664589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28664590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28664591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28664592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28664593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28664594, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28665161, 'dashboard_result_id': 17433310, '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_P28665161_18-11-2025_16_49_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28665192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28665193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28665194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28665195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28665196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28665197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28665198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28665199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28665200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28665201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28665202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28665203, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28665818, 'dashboard_result_id': 17433311, '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_P28665818_18-11-2025_17_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28665849, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28665850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28665851, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28665852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28665853, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28665854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28665855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28665856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28665857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28665858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28665859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28665860, 'pht': 3726}}"}, {'dashboat_entry_day': 2598648, 'dashboard_run_id': 2611317, 'mtr_portfolio_id': 28666502, 'dashboard_result_id': 17433312, '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_P28666502_18-11-2025_17_11_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28666524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28666525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28666526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28666527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28666528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28666529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28666530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28666531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28666532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28666533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28666534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28666535, '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 = 28631138 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': 4063453, 'mtr_portfolio_id': 28631138, 'created_at': datetime.datetime(2025, 11, 18, 6, 13, 30), 'result': '0.027044003199104157', 'result_long': None, 'result_double': None}] Qualite : 0.027044003199104157 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28631138 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631138_18-11-2025_06_13_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28631138 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_P28631138_18-11-2025_06_13_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28631146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631157, 'pht': 3726}}" where mtr_portfolio_id = 28631138 and dashboard_run_id = 2611317 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`=28631138 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433257, 0.027044003199104157, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631138_18-11-2025_06_13_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28631146, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631150, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631154, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631155, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631156, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631157, '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 = 28631823 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': 4063454, 'mtr_portfolio_id': 28631823, 'created_at': datetime.datetime(2025, 11, 18, 6, 13, 58), 'result': '0.05851027303634385', 'result_long': None, 'result_double': None}] Qualite : 0.05851027303634385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28631823 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631823_18-11-2025_06_14_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28631823 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_P28631823_18-11-2025_06_14_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28631827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631835, 'pht': 3726}}" where mtr_portfolio_id = 28631823 and dashboard_run_id = 2611317 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`=28631823 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433258, 0.05851027303634385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28631823_18-11-2025_06_14_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28631824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28631825, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28631826, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28631827, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28631828, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28631829, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28631830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28631831, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28631832, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28631833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28631834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28631835, '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 = 28632284 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': 4063455, 'mtr_portfolio_id': 28632284, 'created_at': datetime.datetime(2025, 11, 18, 6, 14, 29), 'result': '0.050061643709369275', 'result_long': None, 'result_double': None}] Qualite : 0.050061643709369275 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28632284 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632284_18-11-2025_06_14_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28632284 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_P28632284_18-11-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632301, 'pht': 3726}}" where mtr_portfolio_id = 28632284 and dashboard_run_id = 2611317 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`=28632284 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433259, 0.050061643709369275, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632284_18-11-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632301, '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 = 28632886 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': 4063456, 'mtr_portfolio_id': 28632886, 'created_at': datetime.datetime(2025, 11, 18, 6, 15, 28), 'result': '0.0354841780332806', 'result_long': None, 'result_double': None}] Qualite : 0.0354841780332806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28632886 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632886_18-11-2025_06_15_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28632886 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_P28632886_18-11-2025_06_15_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632895, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632906, 'pht': 3726}}" where mtr_portfolio_id = 28632886 and dashboard_run_id = 2611317 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`=28632886 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433260, 0.0354841780332806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28632886_18-11-2025_06_15_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28632895, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28632896, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28632897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28632898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28632899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28632900, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28632901, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28632902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28632903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28632904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28632905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28632906, '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 = 28634373 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': 4063457, 'mtr_portfolio_id': 28634373, 'created_at': datetime.datetime(2025, 11, 18, 6, 15, 59), 'result': '0.043975554337369126', 'result_long': None, 'result_double': None}] Qualite : 0.043975554337369126 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28634373 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28634373_18-11-2025_06_16_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28634373 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_P28634373_18-11-2025_06_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28634378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28634379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28634380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28634381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28634382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28634383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28634384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28634385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28634386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28634387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28634388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28634389, 'pht': 3726}}" where mtr_portfolio_id = 28634373 and dashboard_run_id = 2611317 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`=28634373 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433261, 0.043975554337369126, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28634373_18-11-2025_06_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28634378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28634379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28634380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28634381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28634382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28634383, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28634384, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28634385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28634386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28634387, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28634388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28634389, '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 = 28635010 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': 4063458, 'mtr_portfolio_id': 28635010, 'created_at': datetime.datetime(2025, 11, 18, 6, 16, 8), 'result': '0.03015534667359816', 'result_long': None, 'result_double': None}] Qualite : 0.03015534667359816 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28635010 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635010_18-11-2025_06_16_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28635010 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_P28635010_18-11-2025_06_16_12.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635022, 'pht': 3726}}" where mtr_portfolio_id = 28635010 and dashboard_run_id = 2611317 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`=28635010 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433262, 0.03015534667359816, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635010_18-11-2025_06_16_12.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635013, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635016, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635019, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635022, '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 = 28635491 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': 4063459, 'mtr_portfolio_id': 28635491, 'created_at': datetime.datetime(2025, 11, 18, 6, 16, 30), 'result': '0.04740794187181342', 'result_long': None, 'result_double': None}] Qualite : 0.04740794187181342 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28635491 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635491_18-11-2025_06_16_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28635491 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_P28635491_18-11-2025_06_16_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635521, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635524, 'pht': 3726}}" where mtr_portfolio_id = 28635491 and dashboard_run_id = 2611317 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`=28635491 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433263, 0.04740794187181342, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28635491_18-11-2025_06_16_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28635513, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28635514, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28635515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28635516, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28635517, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28635518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28635519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28635520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28635521, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28635522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28635523, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28635524, '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 = 28636035 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': 4063460, 'mtr_portfolio_id': 28636035, 'created_at': datetime.datetime(2025, 11, 18, 6, 17, 29), 'result': '0.0323353417388423', 'result_long': None, 'result_double': None}] Qualite : 0.0323353417388423 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28636035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636035_18-11-2025_06_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28636035 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_P28636035_18-11-2025_06_17_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28636062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636072, 'pht': 3726}}" where mtr_portfolio_id = 28636035 and dashboard_run_id = 2611317 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`=28636035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433264, 0.0323353417388423, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636035_18-11-2025_06_17_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28636062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636066, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636072, '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 = 28636740 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': 4063461, 'mtr_portfolio_id': 28636740, 'created_at': datetime.datetime(2025, 11, 18, 6, 18), 'result': '0.0684027049911958', 'result_long': None, 'result_double': None}] Qualite : 0.0684027049911958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28636740 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636740_18-11-2025_06_18_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28636740 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_P28636740_18-11-2025_06_18_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28636745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636756, 'pht': 3726}}" where mtr_portfolio_id = 28636740 and dashboard_run_id = 2611317 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`=28636740 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433265, 0.0684027049911958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28636740_18-11-2025_06_18_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28636745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28636746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28636747, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28636748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28636749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28636750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28636751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28636752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28636753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28636754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28636755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28636756, '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 = 28637017 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': 4063462, 'mtr_portfolio_id': 28637017, 'created_at': datetime.datetime(2025, 11, 18, 6, 18, 29), 'result': '0.0537666861023958', 'result_long': None, 'result_double': None}] Qualite : 0.0537666861023958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28637017 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637017_18-11-2025_06_18_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28637017 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_P28637017_18-11-2025_06_18_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637037, 'pht': 3726}}" where mtr_portfolio_id = 28637017 and dashboard_run_id = 2611317 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`=28637017 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433266, 0.0537666861023958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637017_18-11-2025_06_18_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637026, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637027, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637029, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637031, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637033, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637034, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637036, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637037, '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 = 28637392 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': 4063463, 'mtr_portfolio_id': 28637392, 'created_at': datetime.datetime(2025, 11, 18, 6, 19, 58), 'result': '0.05145964967620445', 'result_long': None, 'result_double': None}] Qualite : 0.05145964967620445 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28637392 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637392_18-11-2025_06_20_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28637392 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_P28637392_18-11-2025_06_20_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637411, 'pht': 3726}}" where mtr_portfolio_id = 28637392 and dashboard_run_id = 2611317 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`=28637392 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433267, 0.05145964967620445, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28637392_18-11-2025_06_20_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28637400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28637401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28637402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28637403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28637404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28637405, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28637406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28637407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28637408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28637409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28637410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28637411, '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 = 28638080 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': 4063464, 'mtr_portfolio_id': 28638080, 'created_at': datetime.datetime(2025, 11, 18, 6, 20, 29), 'result': '0.03214392118285005', 'result_long': None, 'result_double': None}] Qualite : 0.03214392118285005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28638080 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638080_18-11-2025_06_20_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28638080 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_P28638080_18-11-2025_06_20_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638092, 'pht': 3726}}" where mtr_portfolio_id = 28638080 and dashboard_run_id = 2611317 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`=28638080 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433268, 0.03214392118285005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638080_18-11-2025_06_20_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638081, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638083, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638086, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638088, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638091, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638092, '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 = 28638689 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': 4063465, 'mtr_portfolio_id': 28638689, 'created_at': datetime.datetime(2025, 11, 18, 6, 21, 8), 'result': '0.053369357786094584', 'result_long': None, 'result_double': None}] Qualite : 0.053369357786094584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28638689 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638689_18-11-2025_06_21_10.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28638689 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_P28638689_18-11-2025_06_21_10.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638726, 'pht': 3726}}" where mtr_portfolio_id = 28638689 and dashboard_run_id = 2611317 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`=28638689 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433269, 0.053369357786094584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28638689_18-11-2025_06_21_10.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28638715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28638716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28638717, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28638718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28638719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28638720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28638721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28638722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28638723, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28638724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28638725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28638726, '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 = 28639147 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': 4063466, 'mtr_portfolio_id': 28639147, 'created_at': datetime.datetime(2025, 11, 18, 6, 21, 26), 'result': '0.043664073794498326', 'result_long': None, 'result_double': None}] Qualite : 0.043664073794498326 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28639147 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639147_18-11-2025_06_21_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28639147 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_P28639147_18-11-2025_06_21_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639198, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639203, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639207, 'pht': 3726}}" where mtr_portfolio_id = 28639147 and dashboard_run_id = 2611317 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`=28639147 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433270, 0.043664073794498326, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639147_18-11-2025_06_21_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639196, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639198, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639199, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639203, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639206, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639207, '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 = 28639591 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': 4063467, 'mtr_portfolio_id': 28639591, 'created_at': datetime.datetime(2025, 11, 18, 6, 21, 56), 'result': '0.047182145080419576', 'result_long': None, 'result_double': None}] Qualite : 0.047182145080419576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28639591 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639591_18-11-2025_06_21_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28639591 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_P28639591_18-11-2025_06_21_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639640, 'pht': 3726}}" where mtr_portfolio_id = 28639591 and dashboard_run_id = 2611317 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`=28639591 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433271, 0.047182145080419576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28639591_18-11-2025_06_21_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28639629, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28639630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28639631, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28639632, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28639633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28639634, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28639635, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28639636, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28639637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28639638, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28639639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28639640, '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 = 28641020 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': 4063468, 'mtr_portfolio_id': 28641020, 'created_at': datetime.datetime(2025, 11, 18, 6, 22, 29), 'result': '0.05131668854412686', 'result_long': None, 'result_double': None}] Qualite : 0.05131668854412686 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28641020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641020_18-11-2025_06_22_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28641020 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_P28641020_18-11-2025_06_22_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641035, 'pht': 3726}}" where mtr_portfolio_id = 28641020 and dashboard_run_id = 2611317 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`=28641020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433272, 0.05131668854412686, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641020_18-11-2025_06_22_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641028, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641031, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641032, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641033, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641034, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641035, '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 = 28641206 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': 4063469, 'mtr_portfolio_id': 28641206, 'created_at': datetime.datetime(2025, 11, 18, 6, 23, 28), 'result': '0.042545553451280756', 'result_long': None, 'result_double': None}] Qualite : 0.042545553451280756 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28641206 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641206_18-11-2025_06_23_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28641206 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_P28641206_18-11-2025_06_23_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641214, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641223, 'pht': 3726}}" where mtr_portfolio_id = 28641206 and dashboard_run_id = 2611317 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`=28641206 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433273, 0.042545553451280756, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641206_18-11-2025_06_23_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641213, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641214, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641217, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641223, '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 = 28641579 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': 4063377, 'mtr_portfolio_id': 28641579, 'created_at': datetime.datetime(2025, 11, 18, 5, 47, 28), 'result': '0.05853607655274519', 'result_long': None, 'result_double': None}] Qualite : 0.05853607655274519 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28641579 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641579_18-11-2025_05_47_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28641579 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_P28641579_18-11-2025_05_47_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641597, 'pht': 3726}}" where mtr_portfolio_id = 28641579 and dashboard_run_id = 2611317 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`=28641579 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433274, 0.05853607655274519, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641579_18-11-2025_05_47_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641587, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641592, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641597, '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 = 28641934 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': 4063585, 'mtr_portfolio_id': 28641934, 'created_at': datetime.datetime(2025, 11, 18, 6, 3, 27), 'result': '0.0420865347740443', 'result_long': None, 'result_double': None}] Qualite : 0.0420865347740443 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28641934 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641934_18-11-2025_06_03_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28641934 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_P28641934_18-11-2025_06_03_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641950, 'pht': 3726}}" where mtr_portfolio_id = 28641934 and dashboard_run_id = 2611317 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`=28641934 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433275, 0.0420865347740443, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28641934_18-11-2025_06_03_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28641939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28641940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28641941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28641942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28641943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28641944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28641945, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28641946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28641947, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28641948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28641949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28641950, '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 = 28642364 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': 4063660, 'mtr_portfolio_id': 28642364, 'created_at': datetime.datetime(2025, 11, 18, 6, 19, 28), 'result': '0.06073383736561497', 'result_long': None, 'result_double': None}] Qualite : 0.06073383736561497 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28642364 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642364_18-11-2025_06_19_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28642364 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_P28642364_18-11-2025_06_19_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642376, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642384, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642385, 'pht': 3726}}" where mtr_portfolio_id = 28642364 and dashboard_run_id = 2611317 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`=28642364 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433276, 0.06073383736561497, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642364_18-11-2025_06_19_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642374, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642376, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642378, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642380, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642384, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642385, '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 = 28642968 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': 4063734, 'mtr_portfolio_id': 28642968, 'created_at': datetime.datetime(2025, 11, 18, 6, 33, 28), 'result': '0.05626145265431898', 'result_long': None, 'result_double': None}] Qualite : 0.05626145265431898 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28642968 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642968_18-11-2025_06_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28642968 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_P28642968_18-11-2025_06_33_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642983, 'pht': 3726}}" where mtr_portfolio_id = 28642968 and dashboard_run_id = 2611317 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`=28642968 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433277, 0.05626145265431898, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28642968_18-11-2025_06_33_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28642972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28642973, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28642974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28642975, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28642976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28642977, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28642978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28642979, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28642980, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28642981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28642982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28642983, '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 = 28643374 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': 4063793, 'mtr_portfolio_id': 28643374, 'created_at': datetime.datetime(2025, 11, 18, 6, 47, 29), 'result': '0.05293475167005118', 'result_long': None, 'result_double': None}] Qualite : 0.05293475167005118 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28643374 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643374_18-11-2025_06_47_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28643374 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_P28643374_18-11-2025_06_47_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643386, 'pht': 3726}}" where mtr_portfolio_id = 28643374 and dashboard_run_id = 2611317 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`=28643374 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433278, 0.05293475167005118, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643374_18-11-2025_06_47_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643375, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643376, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643377, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643378, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643379, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643386, '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 = 28643779 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': 4063851, 'mtr_portfolio_id': 28643779, 'created_at': datetime.datetime(2025, 11, 18, 7, 2, 58), 'result': '0.04435094046803636', 'result_long': None, 'result_double': None}] Qualite : 0.04435094046803636 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28643779 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643779_18-11-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28643779 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_P28643779_18-11-2025_07_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643795, 'pht': 3726}}" where mtr_portfolio_id = 28643779 and dashboard_run_id = 2611317 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`=28643779 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433279, 0.04435094046803636, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28643779_18-11-2025_07_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28643784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28643785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28643786, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28643787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28643788, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28643789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28643790, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28643791, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28643792, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28643793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28643794, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28643795, '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 = 28644283 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': 4063968, 'mtr_portfolio_id': 28644283, 'created_at': datetime.datetime(2025, 11, 18, 7, 18, 59), 'result': '0.03468004728367508', 'result_long': None, 'result_double': None}] Qualite : 0.03468004728367508 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28644283 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28644283_18-11-2025_07_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28644283 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_P28644283_18-11-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28644316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28644317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28644318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28644319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28644320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28644321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28644322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28644323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28644324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28644325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28644326, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28644327, 'pht': 3726}}" where mtr_portfolio_id = 28644283 and dashboard_run_id = 2611317 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`=28644283 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433280, 0.03468004728367508, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28644283_18-11-2025_07_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28644316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28644317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28644318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28644319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28644320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28644321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28644322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28644323, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28644324, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28644325, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28644326, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28644327, '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 = 28645127 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': 4064092, 'mtr_portfolio_id': 28645127, 'created_at': datetime.datetime(2025, 11, 18, 7, 35, 30), 'result': '0.027859632548191356', 'result_long': None, 'result_double': None}] Qualite : 0.027859632548191356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28645127 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645127_18-11-2025_07_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28645127 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_P28645127_18-11-2025_07_35_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645194, 'pht': 3726}}" where mtr_portfolio_id = 28645127 and dashboard_run_id = 2611317 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`=28645127 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433281, 0.027859632548191356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645127_18-11-2025_07_35_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645185, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645186, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645190, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645193, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645194, '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 = 28645778 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': 4064173, 'mtr_portfolio_id': 28645778, 'created_at': datetime.datetime(2025, 11, 18, 7, 49), 'result': '0.0590152139734779', 'result_long': None, 'result_double': None}] Qualite : 0.0590152139734779 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28645778 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645778_18-11-2025_07_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28645778 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_P28645778_18-11-2025_07_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645793, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645803, 'pht': 3726}}" where mtr_portfolio_id = 28645778 and dashboard_run_id = 2611317 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`=28645778 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433282, 0.0590152139734779, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28645778_18-11-2025_07_49_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28645792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28645793, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28645794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28645795, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28645796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28645797, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28645798, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28645799, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28645800, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28645801, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28645802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28645803, '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 = 28646472 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': 4064317, 'mtr_portfolio_id': 28646472, 'created_at': datetime.datetime(2025, 11, 18, 8, 2, 59), 'result': '0.07002810345918892', 'result_long': None, 'result_double': None}] Qualite : 0.07002810345918892 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28646472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28646472_18-11-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28646472 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_P28646472_18-11-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28646497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28646498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28646499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28646500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28646501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28646502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28646503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28646504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28646505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28646506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28646507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28646508, 'pht': 3726}}" where mtr_portfolio_id = 28646472 and dashboard_run_id = 2611317 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`=28646472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433283, 0.07002810345918892, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28646472_18-11-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28646497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28646498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28646499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28646500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28646501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28646502, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28646503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28646504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28646505, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28646506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28646507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28646508, '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 = 28647027 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': 4064437, 'mtr_portfolio_id': 28647027, 'created_at': datetime.datetime(2025, 11, 18, 8, 17, 28), 'result': '0.0510507725241517', 'result_long': None, 'result_double': None}] Qualite : 0.0510507725241517 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28647027 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647027_18-11-2025_08_17_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28647027 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_P28647027_18-11-2025_08_17_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647076, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647079, 'pht': 3726}}" where mtr_portfolio_id = 28647027 and dashboard_run_id = 2611317 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`=28647027 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433284, 0.0510507725241517, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647027_18-11-2025_08_17_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647070, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647075, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647076, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647079, '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 = 28647656 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': 4064588, 'mtr_portfolio_id': 28647656, 'created_at': datetime.datetime(2025, 11, 18, 8, 33, 30), 'result': '0.04203229748767614', 'result_long': None, 'result_double': None}] Qualite : 0.04203229748767614 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28647656 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647656_18-11-2025_08_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28647656 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_P28647656_18-11-2025_08_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647669, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647674, 'pht': 3726}}" where mtr_portfolio_id = 28647656 and dashboard_run_id = 2611317 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`=28647656 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433285, 0.04203229748767614, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28647656_18-11-2025_08_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28647663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28647664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28647665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28647666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28647667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28647668, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28647669, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28647670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28647671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28647672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28647673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28647674, '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 = 28648493 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': 4064766, 'mtr_portfolio_id': 28648493, 'created_at': datetime.datetime(2025, 11, 18, 8, 48, 59), 'result': '0.03588526522438144', 'result_long': None, 'result_double': None}] Qualite : 0.03588526522438144 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28648493 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28648493_18-11-2025_08_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28648493 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_P28648493_18-11-2025_08_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28648499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28648500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28648501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28648502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28648503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28648504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28648505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28648506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28648507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28648508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28648509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28648510, 'pht': 3726}}" where mtr_portfolio_id = 28648493 and dashboard_run_id = 2611317 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`=28648493 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433286, 0.03588526522438144, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28648493_18-11-2025_08_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28648499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28648500, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28648501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28648502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28648503, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28648504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28648505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28648506, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28648507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28648508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28648509, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28648510, '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 = 28649305 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': 4064969, 'mtr_portfolio_id': 28649305, 'created_at': datetime.datetime(2025, 11, 18, 9, 34, 59), 'result': '0.0541977277007493', 'result_long': None, 'result_double': None}] Qualite : 0.0541977277007493 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28649305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28649305_18-11-2025_09_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28649305 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_P28649305_18-11-2025_09_34_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28649346, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28649347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28649348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28649349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28649350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28649351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28649352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28649353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28649354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28649355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28649356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28649357, 'pht': 3726}}" where mtr_portfolio_id = 28649305 and dashboard_run_id = 2611317 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`=28649305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433287, 0.0541977277007493, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28649305_18-11-2025_09_34_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28649346, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28649347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28649348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28649349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28649350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28649351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28649352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28649353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28649354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28649355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28649356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28649357, '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 = 28650959 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': 4065191, 'mtr_portfolio_id': 28650959, 'created_at': datetime.datetime(2025, 11, 18, 9, 48, 58), 'result': '0.04071743132239154', 'result_long': None, 'result_double': None}] Qualite : 0.04071743132239154 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28650959 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28650959_18-11-2025_09_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28650959 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_P28650959_18-11-2025_09_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28650974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28650975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28650976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28650977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28650978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28650979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28650980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28650981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28650982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28650983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28650984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28650985, 'pht': 3726}}" where mtr_portfolio_id = 28650959 and dashboard_run_id = 2611317 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`=28650959 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433288, 0.04071743132239154, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28650959_18-11-2025_09_48_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28650974, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28650975, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28650976, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28650977, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28650978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28650979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28650980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28650981, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28650982, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28650983, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28650984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28650985, '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 = 28651460 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': 4065279, 'mtr_portfolio_id': 28651460, 'created_at': datetime.datetime(2025, 11, 18, 10, 2, 57), 'result': '0.1055295895326338', 'result_long': None, 'result_double': None}] Qualite : 0.1055295895326338 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28651460 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651460_18-11-2025_10_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28651460 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_P28651460_18-11-2025_10_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651488, 'pht': 3726}}" where mtr_portfolio_id = 28651460 and dashboard_run_id = 2611317 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`=28651460 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433289, 0.1055295895326338, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651460_18-11-2025_10_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651480, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651488, '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 = 28651808 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': 4065400, 'mtr_portfolio_id': 28651808, 'created_at': datetime.datetime(2025, 11, 18, 10, 16, 58), 'result': '0.03774582213050657', 'result_long': None, 'result_double': None}] Qualite : 0.03774582213050657 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28651808 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651808_18-11-2025_10_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28651808 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_P28651808_18-11-2025_10_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651842, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651851, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651852, 'pht': 3726}}" where mtr_portfolio_id = 28651808 and dashboard_run_id = 2611317 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`=28651808 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433290, 0.03774582213050657, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28651808_18-11-2025_10_16_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28651841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28651842, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28651843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28651844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28651845, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28651846, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28651847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28651848, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28651849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28651850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28651851, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28651852, '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 = 28652248 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': 4065494, 'mtr_portfolio_id': 28652248, 'created_at': datetime.datetime(2025, 11, 18, 10, 32, 57), 'result': '0.04842535208555276', 'result_long': None, 'result_double': None}] Qualite : 0.04842535208555276 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28652248 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28652248_18-11-2025_10_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28652248 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_P28652248_18-11-2025_10_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28652258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28652259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28652260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28652261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28652262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28652263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28652264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28652265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28652266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28652267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28652268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28652269, 'pht': 3726}}" where mtr_portfolio_id = 28652248 and dashboard_run_id = 2611317 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`=28652248 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433291, 0.04842535208555276, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28652248_18-11-2025_10_32_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28652258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28652259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28652260, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28652261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28652262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28652263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28652264, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28652265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28652266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28652267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28652268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28652269, '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 = 28652749 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': 4065589, 'mtr_portfolio_id': 28652749, 'created_at': datetime.datetime(2025, 11, 18, 10, 49), 'result': '0.0392963227833819', 'result_long': None, 'result_double': None}] Qualite : 0.0392963227833819 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28652749 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28652749_18-11-2025_10_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28652749 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_P28652749_18-11-2025_10_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28652761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28652762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28652763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28652764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28652765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28652766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28652767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28652768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28652769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28652770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28652771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28652772, 'pht': 3726}}" where mtr_portfolio_id = 28652749 and dashboard_run_id = 2611317 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`=28652749 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433292, 0.0392963227833819, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28652749_18-11-2025_10_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28652761, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28652762, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28652763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28652764, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28652765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28652766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28652767, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28652768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28652769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28652770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28652771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28652772, '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 = 28653464 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': 4065735, 'mtr_portfolio_id': 28653464, 'created_at': datetime.datetime(2025, 11, 18, 11, 2, 59), 'result': '0.044935169530185635', 'result_long': None, 'result_double': None}] Qualite : 0.044935169530185635 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28653464 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28653464_18-11-2025_11_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28653464 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_P28653464_18-11-2025_11_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28653474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28653475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28653476, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28653477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28653478, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28653479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28653480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28653481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28653482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28653483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28653484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28653485, 'pht': 3726}}" where mtr_portfolio_id = 28653464 and dashboard_run_id = 2611317 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`=28653464 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433293, 0.044935169530185635, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28653464_18-11-2025_11_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28653474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28653475, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28653476, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28653477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28653478, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28653479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28653480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28653481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28653482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28653483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28653484, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28653485, '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 = 28653849 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': 4065814, 'mtr_portfolio_id': 28653849, 'created_at': datetime.datetime(2025, 11, 18, 11, 17), 'result': '0.04346195309913817', 'result_long': None, 'result_double': None}] Qualite : 0.04346195309913817 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28653849 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28653849_18-11-2025_11_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28653849 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_P28653849_18-11-2025_11_17_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28653868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28653869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28653870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28653871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28653872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28653873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28653874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28653875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28653876, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28653877, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28653878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28653879, 'pht': 3726}}" where mtr_portfolio_id = 28653849 and dashboard_run_id = 2611317 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`=28653849 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433294, 0.04346195309913817, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28653849_18-11-2025_11_17_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28653868, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28653869, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28653870, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28653871, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28653872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28653873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28653874, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28653875, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28653876, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28653877, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28653878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28653879, '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 = 28654500 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': 4065904, 'mtr_portfolio_id': 28654500, 'created_at': datetime.datetime(2025, 11, 18, 11, 32, 31), 'result': '0.04532263780244547', 'result_long': None, 'result_double': None}] Qualite : 0.04532263780244547 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28654500 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28654500_18-11-2025_11_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28654500 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_P28654500_18-11-2025_11_32_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28654534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28654535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28654536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28654537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28654538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28654539, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28654540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28654541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28654542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28654543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28654544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28654545, 'pht': 3726}}" where mtr_portfolio_id = 28654500 and dashboard_run_id = 2611317 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`=28654500 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433295, 0.04532263780244547, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28654500_18-11-2025_11_32_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28654534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28654535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28654536, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28654537, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28654538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28654539, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28654540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28654541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28654542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28654543, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28654544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28654545, '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 = 28655193 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': 4066046, 'mtr_portfolio_id': 28655193, 'created_at': datetime.datetime(2025, 11, 18, 11, 46, 58), 'result': '0.0982486872859036', 'result_long': None, 'result_double': None}] Qualite : 0.0982486872859036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28655193 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28655193_18-11-2025_11_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28655193 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_P28655193_18-11-2025_11_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28655199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28655200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28655201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28655202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28655203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28655204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28655205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28655206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28655207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28655208, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28655209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28655210, 'pht': 3726}}" where mtr_portfolio_id = 28655193 and dashboard_run_id = 2611317 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`=28655193 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433296, 0.0982486872859036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28655193_18-11-2025_11_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28655199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28655200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28655201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28655202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28655203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28655204, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28655205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28655206, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28655207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28655208, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28655209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28655210, '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 = 28655671 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': 4066103, 'mtr_portfolio_id': 28655671, 'created_at': datetime.datetime(2025, 11, 18, 12, 3), 'result': '0.15661501072345188', 'result_long': None, 'result_double': None}] Qualite : 0.15661501072345188 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28655671 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28655671_18-11-2025_12_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28655671 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_P28655671_18-11-2025_12_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28655696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28655697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28655698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28655699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28655700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28655701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28655702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28655703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28655704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28655705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28655706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28655707, 'pht': 3726}}" where mtr_portfolio_id = 28655671 and dashboard_run_id = 2611317 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`=28655671 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433297, 0.15661501072345188, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28655671_18-11-2025_12_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28655696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28655697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28655698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28655699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28655700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28655701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28655702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28655703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28655704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28655705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28655706, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28655707, '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 = 28656138 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': 4066190, 'mtr_portfolio_id': 28656138, 'created_at': datetime.datetime(2025, 11, 18, 14, 0), 'result': '0.06195973976749275', 'result_long': None, 'result_double': None}] Qualite : 0.06195973976749275 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28656138 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28656138_18-11-2025_14_00_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28656138 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_P28656138_18-11-2025_14_00_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28656174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28656175, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28656176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28656177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28656178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28656179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28656180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28656181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28656182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28656183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28656184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28656185, 'pht': 3726}}" where mtr_portfolio_id = 28656138 and dashboard_run_id = 2611317 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`=28656138 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433298, 0.06195973976749275, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28656138_18-11-2025_14_00_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28656174, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28656175, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28656176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28656177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28656178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28656179, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28656180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28656181, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28656182, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28656183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28656184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28656185, '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 = 28658711 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': 4066517, 'mtr_portfolio_id': 28658711, 'created_at': datetime.datetime(2025, 11, 18, 14, 2, 59), 'result': '0.02541703047821988', 'result_long': None, 'result_double': None}] Qualite : 0.02541703047821988 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28658711 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28658711_18-11-2025_14_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28658711 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_P28658711_18-11-2025_14_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28658712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28658713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28658714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28658715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28658716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28658717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28658718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28658719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28658720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28658721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28658722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28658723, 'pht': 3726}}" where mtr_portfolio_id = 28658711 and dashboard_run_id = 2611317 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`=28658711 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433299, 0.02541703047821988, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28658711_18-11-2025_14_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28658712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28658713, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28658714, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28658715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28658716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28658717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28658718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28658719, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28658720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28658721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28658722, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28658723, '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 = 28659160 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': 4066579, 'mtr_portfolio_id': 28659160, 'created_at': datetime.datetime(2025, 11, 18, 14, 16, 57), 'result': '0.0373493923941434', 'result_long': None, 'result_double': None}] Qualite : 0.0373493923941434 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28659160 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28659160_18-11-2025_14_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28659160 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_P28659160_18-11-2025_14_16_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28659164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28659165, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28659166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28659167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28659168, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28659169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28659170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28659171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28659172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28659173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28659174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28659175, 'pht': 3726}}" where mtr_portfolio_id = 28659160 and dashboard_run_id = 2611317 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`=28659160 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433300, 0.0373493923941434, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28659160_18-11-2025_14_16_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28659164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28659165, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28659166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28659167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28659168, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28659169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28659170, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28659171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28659172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28659173, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28659174, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28659175, '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 = 28659722 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': 4066620, 'mtr_portfolio_id': 28659722, 'created_at': datetime.datetime(2025, 11, 18, 14, 33), 'result': '0.042966329348506783', 'result_long': None, 'result_double': None}] Qualite : 0.042966329348506783 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28659722 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28659722_18-11-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28659722 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_P28659722_18-11-2025_14_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28659751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28659752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28659753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28659754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28659755, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28659756, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28659757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28659758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28659759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28659760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28659761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28659762, 'pht': 3726}}" where mtr_portfolio_id = 28659722 and dashboard_run_id = 2611317 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`=28659722 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433301, 0.042966329348506783, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28659722_18-11-2025_14_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28659751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28659752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28659753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28659754, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28659755, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28659756, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28659757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28659758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28659759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28659760, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28659761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28659762, '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 = 28660259 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': 4066702, 'mtr_portfolio_id': 28660259, 'created_at': datetime.datetime(2025, 11, 18, 14, 51), 'result': '0.05978370760819674', 'result_long': None, 'result_double': None}] Qualite : 0.05978370760819674 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28660259 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28660259_18-11-2025_14_51_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28660259 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_P28660259_18-11-2025_14_51_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28660293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28660294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28660295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28660296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28660297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28660298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28660299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28660300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28660301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28660302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28660304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28660305, 'pht': 3726}}" where mtr_portfolio_id = 28660259 and dashboard_run_id = 2611317 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`=28660259 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433302, 0.05978370760819674, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28660259_18-11-2025_14_51_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28660293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28660294, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28660295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28660296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28660297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28660298, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28660299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28660300, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28660301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28660302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28660304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28660305, '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 = 28661085 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': 4066827, 'mtr_portfolio_id': 28661085, 'created_at': datetime.datetime(2025, 11, 18, 15, 2, 59), 'result': '0.08028670108901848', 'result_long': None, 'result_double': None}] Qualite : 0.08028670108901848 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28661085 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28661085_18-11-2025_15_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28661085 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_P28661085_18-11-2025_15_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28661092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28661093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28661094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28661095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28661096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28661097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28661098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28661099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28661100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28661101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28661102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28661103, 'pht': 3726}}" where mtr_portfolio_id = 28661085 and dashboard_run_id = 2611317 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`=28661085 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433303, 0.08028670108901848, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28661085_18-11-2025_15_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28661092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28661093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28661094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28661095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28661096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28661097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28661098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28661099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28661100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28661101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28661102, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28661103, '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 = 28661468 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': 4066878, 'mtr_portfolio_id': 28661468, 'created_at': datetime.datetime(2025, 11, 18, 15, 18, 58), 'result': '0.0682697432617583', 'result_long': None, 'result_double': None}] Qualite : 0.0682697432617583 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28661468 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28661468_18-11-2025_15_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28661468 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_P28661468_18-11-2025_15_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28661523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28661524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28661525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28661526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28661527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28661528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28661529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28661530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28661531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28661532, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28661533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28661534, 'pht': 3726}}" where mtr_portfolio_id = 28661468 and dashboard_run_id = 2611317 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`=28661468 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433304, 0.0682697432617583, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28661468_18-11-2025_15_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28661523, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28661524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28661525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28661526, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28661527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28661528, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28661529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28661530, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28661531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28661532, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28661533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28661534, '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 = 28662141 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': 4067037, 'mtr_portfolio_id': 28662141, 'created_at': datetime.datetime(2025, 11, 18, 15, 33, 1), 'result': '0.04628317814261616', 'result_long': None, 'result_double': None}] Qualite : 0.04628317814261616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28662141 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28662141_18-11-2025_15_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28662141 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_P28662141_18-11-2025_15_33_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28662232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28662233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28662234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28662235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28662236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28662237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28662238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28662239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28662240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28662241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28662242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28662243, 'pht': 3726}}" where mtr_portfolio_id = 28662141 and dashboard_run_id = 2611317 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`=28662141 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433305, 0.04628317814261616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28662141_18-11-2025_15_33_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28662232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28662233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28662234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28662235, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28662236, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28662237, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28662238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28662239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28662240, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28662241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28662242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28662243, '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 = 28662798 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': 4067107, 'mtr_portfolio_id': 28662798, 'created_at': datetime.datetime(2025, 11, 18, 15, 48, 57), 'result': '0.02943211051158177', 'result_long': None, 'result_double': None}] Qualite : 0.02943211051158177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28662798 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28662798_18-11-2025_15_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28662798 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_P28662798_18-11-2025_15_48_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28662816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28662817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28662818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28662819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28662820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28662821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28662822, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28662823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28662824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28662826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28662827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28662828, 'pht': 3726}}" where mtr_portfolio_id = 28662798 and dashboard_run_id = 2611317 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`=28662798 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433306, 0.02943211051158177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28662798_18-11-2025_15_48_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28662816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28662817, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28662818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28662819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28662820, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28662821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28662822, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28662823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28662824, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28662826, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28662827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28662828, '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 = 28663472 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': 4067232, 'mtr_portfolio_id': 28663472, 'created_at': datetime.datetime(2025, 11, 18, 16, 3, 28), 'result': '0.0578455404633655', 'result_long': None, 'result_double': None}] Qualite : 0.0578455404633655 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28663472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28663472_18-11-2025_16_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28663472 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_P28663472_18-11-2025_16_03_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28663474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28663475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28663476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28663477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28663478, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28663479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28663480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28663481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28663482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28663483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28663484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28663485, 'pht': 3726}}" where mtr_portfolio_id = 28663472 and dashboard_run_id = 2611317 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`=28663472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433307, 0.0578455404633655, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28663472_18-11-2025_16_03_28.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28663474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28663475, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28663476, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28663477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28663478, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28663479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28663480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28663481, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28663482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28663483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28663484, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28663485, '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 = 28663984 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': 4067363, 'mtr_portfolio_id': 28663984, 'created_at': datetime.datetime(2025, 11, 18, 16, 16, 59), 'result': '0.07637229519675319', 'result_long': None, 'result_double': None}] Qualite : 0.07637229519675319 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28663984 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28663984_18-11-2025_16_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28663984 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_P28663984_18-11-2025_16_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28663997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28663998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28663999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28664000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28664001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28664002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28664003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28664004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28664005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28664006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28664007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28664008, 'pht': 3726}}" where mtr_portfolio_id = 28663984 and dashboard_run_id = 2611317 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`=28663984 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433308, 0.07637229519675319, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28663984_18-11-2025_16_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28663997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28663998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28663999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28664000, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28664001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28664002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28664003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28664004, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28664005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28664006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28664007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28664008, '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 = 28664534 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': 4067504, 'mtr_portfolio_id': 28664534, 'created_at': datetime.datetime(2025, 11, 18, 16, 33), 'result': '0.03388125312643098', 'result_long': None, 'result_double': None}] Qualite : 0.03388125312643098 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28664534 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28664534_18-11-2025_16_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28664534 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_P28664534_18-11-2025_16_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28664583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28664584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28664585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28664586, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28664587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28664588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28664589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28664590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28664591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28664592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28664593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28664594, 'pht': 3726}}" where mtr_portfolio_id = 28664534 and dashboard_run_id = 2611321 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`=28664534 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433309, 0.03388125312643098, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28664534_18-11-2025_16_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28664583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28664584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28664585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28664586, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28664587, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28664588, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28664589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28664590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28664591, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28664592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28664593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28664594, '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 = 28665161 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': 4067602, 'mtr_portfolio_id': 28665161, 'created_at': datetime.datetime(2025, 11, 18, 16, 49, 28), 'result': '0.07497494447951597', 'result_long': None, 'result_double': None}] Qualite : 0.07497494447951597 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28665161 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28665161_18-11-2025_16_49_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28665161 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_P28665161_18-11-2025_16_49_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28665192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28665193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28665194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28665195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28665196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28665197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28665198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28665199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28665200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28665201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28665202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28665203, 'pht': 3726}}" where mtr_portfolio_id = 28665161 and dashboard_run_id = 2611321 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`=28665161 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433310, 0.07497494447951597, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28665161_18-11-2025_16_49_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28665192, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28665193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28665194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28665195, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28665196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28665197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28665198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28665199, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28665200, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28665201, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28665202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28665203, '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 = 28665818 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': 4067804, 'mtr_portfolio_id': 28665818, 'created_at': datetime.datetime(2025, 11, 18, 17, 4, 58), 'result': '0.03291653309004118', 'result_long': None, 'result_double': None}] Qualite : 0.03291653309004118 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28665818 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28665818_18-11-2025_17_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28665818 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_P28665818_18-11-2025_17_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28665849, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28665850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28665851, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28665852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28665853, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28665854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28665855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28665856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28665857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28665858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28665859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28665860, 'pht': 3726}}" where mtr_portfolio_id = 28665818 and dashboard_run_id = 2611321 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`=28665818 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433311, 0.03291653309004118, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28665818_18-11-2025_17_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28665849, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28665850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28665851, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28665852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28665853, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28665854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28665855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28665856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28665857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28665858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28665859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28665860, '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 = 28666502 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': 4067987, 'mtr_portfolio_id': 28666502, 'created_at': datetime.datetime(2025, 11, 18, 17, 14, 59), 'result': '0.03014022078130613', 'result_long': None, 'result_double': None}] Qualite : 0.03014022078130613 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28666502 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28666502_18-11-2025_17_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28666502 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_P28666502_18-11-2025_17_15_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28666524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28666525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28666526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28666527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28666528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28666529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28666530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28666531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28666532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28666533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28666534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28666535, 'pht': 3726}}" where mtr_portfolio_id = 28666502 and dashboard_run_id = 2611321 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`=28666502 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17433312, 0.03014022078130613, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28666502_18-11-2025_17_15_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28666524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28666525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28666526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28666527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28666528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28666529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28666530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28666531, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28666532, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28666533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28666534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28666535, '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 (28631138,28631823,28632284,28632886,28634373,28635010,28635491,28636035,28636740,28637017,28637392,28638080,28638689,28639147,28639591,28641020,28641206,28641579,28641934,28642364,28642968,28643374,28643779,28644283,28645127,28645778,28646472,28647027,28647656,28648493,28649305,28650959,28651460,28651808,28652248,28652749,28653464,28653849,28654500,28655193,28655671,28656138,28658711,28659160,28659722,28660259,28661085,28661468,28662141,28662798,28663472,28663984,28664534,28665161,28665818,28666502) result : ((1394942829,), (1394942839,), (1394942854,), (1394942987,), (1394943023,), (1394943063,), (1394943097,), (1394943498,), (1394943530,), (1394943559,), (1394943590,), (1394943624,), (1394943662,), (1394943743,), (1394943745,), (1394943747,), (1394943763,), (1394943798,), (1394944144,), (1394944180,), (1394944221,), (1394944235,), (1394944353,), (1394944356,), (1394944361,), (1394944367,), (1394944520,), (1394944521,), (1394944522,), (1394944524,), (1394944558,), (1394944561,), (1394944566,), (1394944570,), (1394944660,), (1394944662,), (1394944664,), (1394944697,), (1394944732,), (1394944749,), (1394944768,), (1394944790,), (1394944816,), (1394944948,), (1394944984,), (1394945016,), (1394945047,), (1394945081,), (1394945204,), (1394945206,), (1394945232,), (1394945230,), (1394945264,), (1394945275,), (1394945292,), (1394945294,), (1394945296,), (1394945300,), (1394945303,), (1394945305,), (1394945638,), (1394945676,), (1394945706,), (1394945739,), (1394945744,), (1394945748,), (1394945896,), (1394945915,), (1394945920,), (1394945993,), (1394945995,), (1394945999,), (1394946019,), (1394946020,), (1394946027,), (1394946030,), (1394946056,), (1394946143,), (1394946145,), (1394946173,), (1394946233,), (1394946234,), (1394946235,), (1394946262,), (1394946263,), (1394946264,), (1394946281,), (1394946283,), (1394946288,), (1394946292,), (1394946305,), (1394946307,), (1394946313,), (1394946321,), (1394946330,), (1394946353,), (1394946355,), (1394946357,), (1394946360,), (1394946379,), (1394946383,), (1394946389,), (1394946394,), (1394946399,), (1394946413,), (1394946414,), (1394946838,), (1394946827,), (1394946833,), (1394946835,), (1394947037,), (1394947061,), (1394947090,), (1394947099,), (1394947124,), (1394947126,), (1394947128,), (1394947150,), (1394947152,), (1394947155,), (1394947158,), (1394947162,), (1394947466,), (1394947500,), (1394947531,), (1394947562,), (1394947985,), (1394948017,), (1394948052,), (1394948537,), (1394948549,), (1394948550,), (1394948576,), (1394948768,), (1394948769,), (1394948771,), (1394948780,), (1394948921,), (1394948953,), (1394948986,), (1394949023,), (1394949059,), (1394949193,), (1394949207,), (1394949242,), (1394949276,), (1394949310,), (1394949343,), (1394949442,), (1394949444,), (1394949446,), (1394949482,), (1394949483,), (1394949484,), (1394949487,), (1394949510,), (1394949512,), (1394949538,), (1394949540,), (1394949543,), (1394949577,), (1394949573,), (1394949574,), (1394949575,), (1394949595,), (1394949596,), (1394949619,), (1394949620,), (1394949651,), (1394949655,), (1394949656,), (1394949681,), (1394949683,), (1394949685,), (1394949689,), (1394949708,), (1394949709,), (1394949710,), (1394949713,), (1394949744,), (1394949746,), (1394949748,), (1394949771,), (1394949772,), (1394949773,), (1394949776,), (1394949870,), (1394949902,), (1394949932,), (1394949965,), (1394950203,), (1394950243,), (1394950275,), (1394950331,), (1394950332,), (1394950355,), (1394950357,), (1394950359,), (1394950699,), (1394950729,), (1394950763,), (1394950795,), (1394951147,), (1394951182,), (1394951216,), (1394951615,), (1394963649,), (1394963683,), (1394963715,), (1394964148,), (1394964211,), (1394964268,), (1394964527,), (1394964530,), (1394964533,), (1394965229,), (1394965632,), (1394965634,), (1394965636,), (1394965639,), (1394965975,), (1394966022,), (1394966266,), (1394966268,), (1394966375,), (1394966377,), (1394966379,), (1394966381,), (1394966385,), (1394966389,), (1394966406,), (1394966407,), (1394966408,), (1394966726,), (1394966817,), (1394966906,), (1394967003,), (1394967113,), (1394967210,), (1394967516,), (1394967518,), (1394967528,), (1394967619,), (1394967804,), (1394967805,), (1394967806,), (1394967809,), (1394967814,), (1394967816,), (1394967832,), (1394967834,), (1394967859,), (1394967922,), (1394968030,), (1394968151,), (1394968277,), (1394969140,), (1394968941,), (1394968971,), (1394969001,), (1394969034,), (1394969676,), (1394969703,), (1394969704,), (1394969887,), (1394969910,), (1394969912,), (1394969942,), (1394969966,), (1394969969,), (1394969971,), (1394969974,), (1394969978,), (1394970005,), (1394970007,), (1394970009,), (1394970013,), (1394970033,), (1394970034,), (1394970035,), (1394970038,), (1394970043,), (1394970782,), (1394970901,), (1394971026,), (1394971150,), (1394971854,), (1394971896,), (1394971958,), (1394972000,), (1394972185,), (1394972187,), (1394972191,), (1394972196,), (1394972200,), (1394972204,), (1394972932,), (1394972933,), (1394972934,), (1394972935,), (1394973217,), (1394973243,), (1394973245,), (1394973327,), (1394973328,), (1394973329,), (1394973331,), (1394973380,), (1394973381,), (1394973382,), (1394973406,), (1394973409,), (1394973411,), (1394973414,), (1394973422,), (1394973423,), (1394973425,), (1394973426,), (1394973428,), (1394973429,), (1394973448,), (1394973447,), (1394973467,), (1394973468,), (1394973469,), (1394973471,), (1394973475,), (1394973518,), (1394973553,), (1394973574,), (1394973644,), (1394973645,), (1394973646,), (1394973648,), (1394973652,), (1394973952,), (1394973985,), (1394974026,), (1394974060,), (1394974415,), (1394974429,), (1394974430,), (1394974432,), (1394974593,), (1394974625,), (1394974655,), (1394974688,), (1394975008,), (1394975040,), (1394975071,), (1394975104,), (1394975463,), (1394975584,), (1394975588,), (1394975591,), (1394975595,), (1394975598,), (1394975675,), (1394975706,), (1394975921,), (1394975922,), (1394975923,), (1394975926,), (1394975965,), (1394975967,), (1394975969,), (1394975973,), (1394975978,), (1394975981,), (1394976006,), (1394976008,), (1394976011,), (1394976017,), (1394976041,), (1394976043,), (1394976045,), (1394976068,), (1394976069,), (1394976070,), (1394976073,), (1394976076,), (1394976080,), (1394976099,), (1394976095,), (1394976097,), (1394976117,), (1394976118,), (1394976121,), (1394976127,), (1394976132,), (1394976155,), (1394976157,), (1394976159,), (1394976181,), (1394976182,), (1394976183,), (1394976186,), (1394976190,), (1394976195,), (1394976220,), (1394976230,), (1394976234,), (1394976237,), (1394976242,), (1394976246,), (1394976323,), (1394976330,), (1394976331,), (1394976350,), (1394976361,), (1394976386,), (1394976387,), (1394976388,), (1394976391,), (1394976412,), (1394976413,), (1394976415,), (1394976419,), (1394976423,), (1394976449,), (1394976451,), (1394976453,), (1394976456,), (1394976460,), (1394976465,), (1394976482,), (1394976483,), (1394976484,), (1394976487,), (1394976518,), (1394976520,), (1394976521,), (1394976525,), (1394976545,), (1394976546,), (1394976547,), (1394976586,), (1394976608,), (1394976609,), (1394976610,), (1394976612,), (1394976619,), (1394976623,), (1394976637,), (1394976671,), (1394976670,), (1394976798,), (1394976800,), (1394976805,), (1394976812,), (1394976832,), (1394976881,), (1394976915,), (1394976916,), (1394976917,), (1394976920,), (1394976941,), (1394976943,), (1394976945,), (1394976949,), (1394976967,), (1394976968,), (1394976969,), (1394976971,), (1394976993,), (1394976994,), (1394977028,), (1394977085,), (1394977086,), (1394977124,), (1394977121,), (1394977122,), (1394977148,), (1394977154,), (1394977164,), (1394977175,), (1394977193,), (1394977195,), (1394977197,), (1394977218,), (1394977219,), (1394977220,), (1394977221,), (1394977241,), (1394977245,), (1394977247,), (1394977250,), (1394977273,), (1394977276,), (1394977277,), (1394977280,), (1394977284,), (1394977287,), (1394977303,), (1394977305,), (1394977306,), (1394977327,), (1394977328,), (1394977329,), (1394977331,), (1394977334,), (1394977338,), (1394977354,), (1394977355,), (1394977357,), (1394977360,), (1394977387,), (1394977388,), (1394977389,), (1394977391,), (1394977394,), (1394977418,), (1394977420,), (1394977424,), (1394977428,), (1394977431,), (1394977433,), (1394977439,), (1394977440,), (1394977445,), (1394977446,), (1394977447,), (1394977448,), (1394977452,), (1394977520,), (1394977521,), (1394977523,), (1394977645,), (1394977679,), (1394977717,), (1394977859,), (1394977900,), (1394977933,), (1394977967,), (1394978272,), (1394978209,), (1394978239,), (1394979060,), (1394979134,), (1394979631,), (1394979642,), (1394979644,), (1394979993,), (1394980024,), (1394980059,), (1394980093,), (1394980487,), (1394980490,), (1394980494,), (1394980499,), (1394980504,), (1394980508,), (1394980699,), (1394980719,), (1394980731,), (1394980735,), (1394980769,), (1394980771,), (1394980816,), (1394980817,), (1394980818,), (1394980824,), (1394980844,), (1394980847,), (1394980852,), (1394980855,), (1394980858,), (1394980879,), (1394980880,), (1394980886,), (1394980889,), (1394980892,), (1394980904,), (1394980936,), (1394980969,), (1394981007,), (1394981041,), (1394981077,), (1394981375,), (1394981405,), (1394981652,), (1394981655,), (1394981668,), (1394981700,), (1394981737,), (1394981771,), (1394981910,), (1394981950,), (1394981958,), (1394981965,), (1394981968,), (1394982167,), (1394982198,), (1394982230,), (1394982265,), (1394982301,), (1394982673,), (1394982710,), (1394982744,), (1394983012,), (1394982981,), (1394982991,), (1394983009,), (1394983029,), (1394983030,), (1394983031,), (1394983033,), (1394983066,), (1394983068,), (1394983070,), (1394983094,), (1394983095,), (1394983096,), (1394983114,), (1394983116,), (1394983118,), (1394983154,), (1394983156,), (1394983307,), (1394983337,), (1394983372,), (1394983408,), (1394983819,), (1394983836,), (1394983838,), (1394983841,), (1394983845,), (1394984020,), (1394984021,), (1394984027,), (1394984053,), (1394984054,), (1394984057,), (1394984062,), (1394984087,), (1394984089,), (1394984091,), (1394984095,), (1394984113,), (1394984114,), (1394984117,), (1394984122,), (1394984127,), (1394984130,), (1394984138,), (1394984139,), (1394984141,), (1394984145,), (1394984147,), (1394984151,), (1394984156,), (1394984175,), (1394984177,), (1394984180,), (1394984186,), (1394984201,), (1394984203,), (1394984235,), (1394984231,), (1394984232,), (1394984233,), (1394984258,), (1394984259,), (1394984260,), (1394984264,), (1394984269,), (1394984298,), (1394984300,), (1394984301,), (1394984303,), (1394984332,), (1394984333,), (1394984334,), (1394984337,), (1394984341,), (1394984354,), (1394984356,), (1394984358,), (1394984702,), (1394985930,), (1394985947,), (1394985949,), (1394985953,), (1394985958,), (1394985977,), (1394985980,), (1394985982,), (1394985985,), (1394986005,), (1394986006,), (1394986007,), (1394986010,), (1394986030,), (1394986032,), (1394986034,), (1394986038,), (1394986041,), (1394986054,), (1394986055,), (1394986056,), (1394986058,), (1394986063,), (1394986068,), (1394986111,), (1394986100,), (1394986102,), (1394986104,), (1394986107,), (1394986137,), (1394986138,), (1394986139,), (1394986162,), (1394986164,), (1394986166,), (1394986169,), (1394986174,), (1394986348,), (1394986377,), (1394986408,), (1394986440,), (1394986861,), (1394986893,), (1394986897,), (1394986900,), (1394987109,), (1394987112,), (1394987140,), (1394987190,), (1394987192,), (1394987194,), (1394987197,), (1394987254,), (1394987255,), (1394987256,), (1394987258,), (1394987280,), (1394987284,), (1394987288,), (1394987291,), (1394987294,), (1394987310,), (1394987312,), (1394987344,), (1394987345,), (1394987346,), (1394987370,), (1394987371,), (1394987372,), (1394987374,), (1394987379,), (1394987394,), (1394987396,), (1394987398,), (1394988093,), (1394988165,), (1394988997,), (1394988924,), (1394988958,), (1394988990,), (1394989244,), (1394989277,), (1394989286,), (1394989400,), (1394989402,), (1394989404,), (1394989407,), (1394989411,), (1394989414,), (1394989450,), (1394989453,), (1394989454,), (1394989479,), (1394989481,), (1394989483,), (1394989487,), (1394989491,), (1394989518,), (1394989519,), (1394989520,), (1394989523,), (1394989552,), (1394989591,), (1394989596,), (1394989600,), (1394989605,), (1394989608,), (1394989632,), (1394989633,), (1394989634,), (1394989662,), (1394989664,), (1394989667,), (1394989672,), (1394989678,), (1394989700,), (1394989701,), (1394989702,), (1394989704,), (1394989709,), (1394989712,), (1394989729,), (1394989731,), (1394993476,), (1394993339,), (1394993474,), (1394993475,), (1394993516,), (1394993518,), (1394993520,), (1394993539,), (1394993560,), (1394993586,), (1394993588,), (1394993591,), (1394993596,), (1394993609,), (1394993615,), (1394993618,), (1394993621,), (1394993638,), (1394993639,), (1394993640,), (1394993642,), (1394993646,), (1394993668,), (1394993669,), (1394993671,), (1394993675,), (1394993698,), (1394993700,), (1394993701,), (1394993704,), (1394993709,), (1394993754,), (1394993762,), (1394993763,), (1394993764,), (1394993767,), (1394993769,), (1394993735,), (1394993736,), (1394993743,), (1394993747,), (1394993751,), (1394993773,), (1394993776,), (1394993779,), (1394993782,), (1394993784,), (1394993795,), (1394993797,), (1394993798,), (1394993818,), (1394993820,), (1394993822,), (1394993826,), (1394993863,), (1394993898,), (1394994235,), (1394994269,), (1394994298,), (1394994327,), (1394994581,), (1394994583,), (1394994584,), (1394994587,), (1394994591,), (1394994838,), (1394994856,), (1394994881,), (1394994933,), (1394994936,), (1394994940,), (1394994945,), (1394995009,), (1394995011,), (1394995020,), (1394995029,), (1394995037,), (1394995062,), (1394995063,), (1394995064,), (1394995067,), (1394995071,), (1394995096,), (1394995098,), (1394995107,), (1394995111,), (1394995115,), (1394995117,), (1394995130,), (1394995135,), (1394995137,), (1394995141,), (1394995142,), (1394995144,), (1394995148,), (1394995151,), (1394995155,), (1394995180,), (1394995183,), (1394995186,), (1394995190,), (1394995194,), (1394995213,), (1394995233,), (1394995253,), (1394995257,), (1394995261,), (1394995336,), (1394995340,), (1394995346,), (1394995349,), (1394995311,), (1394995314,), (1394995318,), (1394995327,), (1394995355,), (1394995356,), (1394995359,), (1394995374,), (1394995376,), (1394995378,), (1394995412,), (1394995414,), (1394995415,), (1394995417,), (1394995436,), (1394995438,), (1394995440,), (1394995443,), (1394995470,), (1394995471,), (1394995472,), (1394995474,), (1394995478,), (1394995493,), (1394995495,), (1394995497,), (1394995500,), (1394995504,), (1394995507,), (1394995521,), (1394995522,), (1394995523,), (1394995524,), (1394995526,), (1394995545,), (1394995548,), (1394995552,), (1394995557,), (1394995586,), (1394995587,), (1394995588,), (1394995590,), (1394995594,), (1394995597,), (1394995608,), (1394995609,), (1394995611,), (1394995613,), (1394995642,), (1394995646,), (1394995647,), (1394995668,), (1394995670,), (1394995674,), (1394995678,), (1394995680,), (1394995684,), (1394995700,), (1394995702,), (1394995704,), (1394995708,), (1394995739,), (1394995741,), (1394995742,), (1394995778,), (1394995766,), (1394995768,), (1394995772,), (1394995799,), (1394995800,), (1394995801,), (1394995829,), (1394995831,), (1394995832,), (1394995836,), (1394995841,), (1394995844,), (1394995858,), (1394995859,), (1394995860,), (1394995862,), (1394995892,), (1394995894,), (1394995896,), (1394995920,), (1394995921,), (1394995922,), (1394995924,), (1394995926,), (1394995929,), (1394995966,), (1394995967,), (1394995969,), (1394995973,), (1394995978,), (1394995992,), (1394995993,), (1394995994,), (1394995997,), (1394996028,), (1394996037,), (1394996042,), (1394996045,), (1394996049,), (1394996054,), (1394996069,), (1394996070,), (1394996071,), (1394996105,), (1394996107,), (1394996110,), (1394996115,), (1394996120,), (1394996124,), (1394996139,), (1394996142,), (1394996147,), (1394996152,), (1394996157,), (1394996160,), (1394996167,), (1394996168,), (1394996174,), (1394996180,), (1394996182,), (1394996223,), (1394996258,), (1394996292,), (1394996325,), (1394996479,), (1394996483,), (1394996486,), (1394996490,), (1394996495,), (1394996500,), (1394996543,), (1394996538,), (1394996541,), (1394996749,), (1394996783,), (1394996813,), (1394996861,), (1394996896,), (1394997263,), (1394997295,), (1394997320,), (1394997323,), (1394998509,), (1394998564,), (1394998565,), (1394998566,), (1394998568,), (1394998601,), (1394998605,), (1394998607,), (1394998637,), (1394998638,), (1394998639,), (1394998658,), (1394998660,), (1394998662,), (1394998669,), (1394998703,), (1394998704,), (1394998705,), (1394998707,), (1394998711,), (1394998737,), (1394998739,), (1394998741,), (1394998773,), (1394998774,), (1394998776,), (1394998778,), (1394998782,), (1394998784,), (1394998809,), (1394998796,), (1394998798,), (1394998800,), (1394998803,), (1394998806,), (1394998831,), (1394998832,), (1394998833,), (1394998834,), (1394998862,), (1394998864,), (1394998866,), (1394998869,), (1394998878,), (1394998905,), (1394998908,), (1394998911,), (1394998915,), (1394998945,), (1394998947,), (1394998948,), (1394998950,), (1394998983,), (1394998986,), (1394998988,), (1394998991,), (1394998994,), (1394998999,), (1394999027,), (1394999029,), (1394999030,), (1394999033,), (1394999037,), (1394999042,), (1394999071,), (1394999072,), (1394999073,), (1394999107,), (1394999113,), (1394999115,), (1394999119,), (1394999124,), (1394999127,), (1394999145,), (1394999146,), (1394999147,), (1394999149,), (1394999151,), (1394999154,), (1394999186,), (1394999187,), (1394999188,), (1394999191,), (1394999212,), (1394999214,), (1394999215,), (1394999218,), (1394999221,), (1394999236,), (1394999239,), (1394999241,), (1394999278,), (1394999279,), (1394999280,), (1394999282,), (1394999286,), (1394999289,), (1394999316,), (1394999318,), (1394999320,), (1394999324,), (1394999359,), (1394999367,), (1394999369,), (1394999371,), (1394999373,), (1394999347,), (1394999348,), (1394999350,), (1394999353,), (1394999356,), (1394999376,), (1394999378,), (1394999414,), (1394999416,), (1394999491,), (1394999494,), (1394999497,), (1394999501,), (1394999505,), (1394999624,), (1394999625,), (1394999626,), (1394999628,), (1394999655,), (1394999657,), (1394999696,), (1394999698,), (1394999700,), (1394999703,), (1394999709,), (1394999742,), (1394999743,), (1394999744,), (1394999746,), (1394999747,), (1394999790,), (1394999792,), (1394999794,), (1394999798,), (1394999820,), (1394999821,), (1394999822,), (1394999824,), (1394999828,), (1394999832,), (1394999945,), (1394999946,), (1394999948,), (1394999950,), (1394999954,), (1394999978,), (1394999979,), (1394999980,), (1394999983,), (1395000004,), (1395000005,), (1395000009,), (1395000017,), (1395000022,), (1395000027,), (1395000052,), (1395000054,), (1395000056,), (1395000059,), (1395000092,), (1395000080,), (1395000082,), (1395000084,), (1395000087,), (1395000115,), (1395000116,), (1395000117,), (1395000120,), (1395000124,), (1395000129,), (1395000145,), (1395000147,), (1395000149,), (1395000175,), (1395000179,), (1395000187,), (1395000193,), (1395000215,), (1395000217,), (1395000218,), (1395000221,), (1395000225,), (1395000249,), (1395000250,), (1395000251,), (1395000252,), (1395000284,), (1395000286,), (1395000288,), (1395000292,), (1395000301,), (1395000325,), (1395000326,), (1395000327,), (1395000329,), (1395000333,), (1395000336,), (1395000374,), (1395000376,), (1395000379,), (1395000382,), (1395000422,), (1395000444,), (1395000451,), (1395000484,), (1395000486,), (1395000490,), (1395000496,), (1395000501,), (1395000534,), (1395000536,), (1395000538,), (1395000542,), (1395000547,), (1395000563,), (1395000569,), (1395000573,), (1395000621,), (1395000613,), (1395000614,), (1395000615,), (1395000617,), (1395000633,), (1395000635,), (1395000637,), (1395000640,), (1395000643,), (1395001140,), (1395001183,), (1395001218,), (1395001257,), (1395001290,), (1395001607,), (1395001609,), (1395001610,), (1395001613,), (1395001842,), (1395001863,), (1395001865,), (1395001874,), (1395002153,), (1395002182,), (1395002215,), (1395002430,), (1395002443,), (1395002456,), (1395002466,), (1395002472,), (1395002521,), (1395002522,), (1395002523,), (1395002528,), (1395002539,), (1395002569,), (1395002583,), (1395002625,), (1395002662,), (1395002696,), (1395002746,), (1395003118,), (1395003120,), (1395003130,), (1395003164,), (1395003305,), (1395003306,), (1395003307,), (1395003342,), (1395003344,), (1395003347,), (1395003350,), (1395003353,), (1395003435,), (1395003442,), (1395003446,), (1395003452,), (1395003529,), (1395003559,), (1395003591,), (1395003621,), (1395004088,), (1395004129,), (1395004167,), (1395004197,), (1395004430,), (1395004403,), (1395004405,), (1395004407,), (1395004421,), (1395004426,), (1395004674,), (1395004702,), (1395004732,), (1395004736,), (1395004877,), (1395004878,), (1395004884,), (1395004903,), (1395004952,), (1395004953,), (1395004955,), (1395004960,), (1395004964,), (1395005015,), (1395005018,), (1395005020,), (1395005024,), (1395005435,), (1395005444,), (1395005445,), (1395005467,), (1395005470,), (1395005472,), (1395005475,), (1395005492,), (1395005494,), (1395005496,), (1395005498,), (1395005501,), (1395005505,), (1395005529,), (1395005530,), (1395005531,), (1395005533,), (1395005536,), (1395005574,), (1395005585,), (1395005597,), (1395005602,), (1395005641,), (1395005663,), (1395005695,), (1395005731,), (1395005769,), (1395005805,), (1395005989,), (1395005997,), (1395006002,), (1395006106,), (1395006111,), (1395006112,), (1395006115,), (1395006126,), (1395006132,), (1395006192,), (1395006193,), (1395006248,), (1395006303,), (1395006337,), (1395006433,), (1395006439,), (1395006447,), (1395006449,), (1395006526,), (1395006544,), (1395006554,), (1395006558,), (1395006561,), (1395006511,), (1395006514,), (1395006517,), (1395006521,), (1395006524,), (1395006528,), (1395006532,), (1395006534,), (1395006537,), (1395006540,), (1395006575,), (1395006576,), (1395006577,), (1395006579,), (1395006583,), (1395006604,), (1395006856,), (1395006889,), (1395006918,), (1395007350,), (1395007383,), (1395007412,), (1395007447,), (1395007460,), (1395007559,), (1395007589,), (1395007621,), (1395007652,), (1395007774,), (1395007776,), (1395007799,), (1395007838,), (1395007916,), (1395007917,), (1395007918,), (1395008038,), (1395008040,), (1395008077,), (1395008082,), (1395008083,), (1395008086,), (1395008091,), (1395008109,), (1395008110,), (1395008112,), (1395008179,), (1395008180,), (1395008183,), (1395008195,), (1395008199,), (1395008204,), (1395008239,), (1395008241,), (1395008243,), (1395008247,), (1395008251,), (1395008282,), (1395008283,), (1395008285,), (1395008287,), (1395008292,), (1395008332,), (1395008316,), (1395008318,), (1395008320,), (1395008323,), (1395008328,), (1395008409,), (1395008436,), (1395008460,), (1395008479,), (1395008529,), (1395008530,), (1395008531,), (1395008534,), (1395008539,), (1395008543,), (1395008557,), (1395008558,), (1395008560,), (1395008564,), (1395008577,), (1395008607,), (1395008609,), (1395008611,), (1395008637,), (1395008638,), (1395008639,), (1395008640,), (1395008670,), (1395008735,), (1395008765,), (1395008932,), (1395008961,), (1395008994,), (1395009020,), (1395009032,), (1395009080,), (1395009081,), (1395009091,), (1395009092,), (1395009130,), (1395009132,), (1395009136,), (1395009140,), (1395009159,), (1395009172,), (1395009175,), (1395009180,), (1395009184,), (1395009197,), (1395009199,), (1395009201,), (1395009205,), (1395009210,), (1395009213,), (1395009312,), (1395009349,), (1395009385,), (1395009391,), (1395009393,), (1395009395,), (1395009924,), (1395009955,), (1395009987,), (1395010023,), (1395010113,), (1395010118,), (1395010120,), (1395009856,), (1395009894,), (1395010128,), (1395010131,), (1395010136,), (1395010158,), (1395010375,), (1395010379,), (1395010392,), (1395010422,), (1395010811,), (1395010842,), (1395010871,), (1395011051,), (1395011079,), (1395011114,), (1395011149,), (1395011183,), (1395011328,), (1395011342,), (1395011343,), (1395011352,), (1395011357,), (1395011393,), (1395011395,), (1395011402,), (1395011405,), (1395011410,), (1395011415,), (1395011458,), (1395011459,), (1395011460,), (1395011463,), (1395011485,), (1395011486,), (1395011488,), (1395011926,), (1395011955,), (1395011986,), (1395012018,), (1395012056,), (1395012462,), (1395012496,), (1395012526,), (1395012560,), (1395012598,), (1395012924,), (1395012951,), (1395013403,), (1395013423,), (1395013450,), (1395013461,), (1395013474,), (1395013479,), (1395013508,), (1395013510,), (1395013512,), (1395013516,), (1395013544,), (1395013545,), (1395013547,), (1395013551,), (1395013612,), (1395013601,), (1395013606,), (1395013608,), (1395013684,), (1395013691,), (1395013705,), (1395013855,), (1395013857,), (1395013859,), (1395013864,), (1395013870,), (1395014073,), (1395014102,), (1395014136,), (1395014173,), (1395014180,), (1395014183,), (1395014217,), (1395014219,), (1395014222,), (1395014252,), (1395014253,), (1395014254,), (1395014257,), (1395014287,), (1395014289,), (1395014291,), (1395014294,), (1395014298,), (1395014317,), (1395014318,), (1395014319,), (1395014321,), (1395014324,), (1395014346,), (1395014347,), (1395014348,), (1395014350,), (1395014372,), (1395014374,), (1395014406,), (1395014407,), (1395014408,), (1395014535,), (1395014537,), (1395014540,), (1395014544,), (1395014608,), (1395014609,), (1395014659,), (1395014679,), (1395014723,), (1395014725,), (1395014766,), (1395014760,), (1395014762,), (1395014811,), (1395014851,), (1395014883,), (1395014919,), (1395014920,), (1395014921,), (1395014948,), (1395014951,), (1395014953,), (1395014984,), (1395014985,), (1395015515,), (1395015518,), (1395015544,), (1395015545,), (1395015549,), (1395015556,), (1395015560,), (1395015593,), (1395015599,), (1395015601,), (1395015604,), (1395015607,), (1395015645,), (1395015664,), (1395015665,), (1395015667,), (1395015668,), (1395015735,), (1395015719,), (1395015721,), (1395015723,), (1395015727,), (1395015730,), (1395015762,), (1395015763,), (1395015767,), (1395015770,), (1395016164,), (1395016171,), (1395016185,), (1395016320,), (1395016321,), (1395016322,), (1395016399,), (1395016401,), (1395016404,), (1395016409,), (1395016414,), (1395016433,), (1395016434,), (1395016435,), (1395016459,), (1395016464,), (1395016467,), (1395016472,), (1395016476,), (1395016511,), (1395016513,), (1395016516,), (1395016595,), (1395016623,), (1395016624,), (1395016687,), (1395016715,), (1395016716,), (1395016719,), (1395016826,), (1395016828,), (1395016849,), (1395016869,), (1395016879,), (1395016888,), (1395017051,), (1395017083,), (1395017115,), (1395017153,), (1395017328,), (1395017390,), (1395017452,), (1395017521,), (1395018064,), (1395018077,), (1395018109,), (1395018119,), (1395020706,), (1395020702,), (1395020704,), (1395020737,), (1395020738,), (1395020739,), (1395020741,), (1395020762,), (1395020763,), (1395020764,), (1395020766,), (1395020797,), (1395020808,), (1395020816,), (1395020820,), (1395020825,), (1395020882,), (1395020883,), (1395020884,), (1395020912,), (1395020921,), (1395020923,), (1395020928,), (1395020938,), (1395020942,), (1395020959,), (1395020961,), (1395020964,), (1395020970,), (1395020976,), (1395020979,), (1395020998,), (1395021001,), (1395021004,), (1395021033,), (1395021034,), (1395021035,), (1395021037,), (1395021040,), (1395021044,), (1395021070,), (1395021072,), (1395021073,), (1395021077,), (1395021101,), (1395021110,), (1395021117,), (1395021169,), (1395021191,), (1395021222,), (1395021256,), (1395021421,), (1395021422,), (1395021538,), (1395021526,), (1395021528,), (1395021530,), (1395021534,), (1395021562,), (1395021564,), (1395021565,), (1395021569,), (1395021574,), (1395021575,), (1395021603,), (1395021624,), (1395021626,), (1395021630,), (1395021653,), (1395021661,), (1395021678,), (1395021680,), (1395021681,), (1395021683,), (1395021687,), (1395021690,), (1395021694,), (1395021698,), (1395021718,), (1395021720,), (1395021722,), (1395021908,), (1395021965,), (1395022014,), (1395022211,), (1395022268,), (1395022671,), (1395022667,), (1395022669,), (1395022900,), (1395022912,), (1395022913,), (1395022914,), (1395023077,), (1395023097,), (1395023121,), (1395023137,), (1395023139,), (1395023385,), (1395023389,), (1395023390,), (1395023392,), (1395023394,), (1395023412,), (1395023413,), (1395023415,), (1395023418,), (1395023421,), (1395023424,), (1395023436,), (1395023440,), (1395023443,), (1395023493,), (1395023495,), (1395023498,), (1395023570,), (1395023585,), (1395023586,), (1395023947,), (1395023977,), (1395024015,), (1395024079,), (1395024076,), (1395024077,), (1395024156,), (1395024159,), (1395024164,), (1395024197,), (1395024198,), (1395024200,), (1395024203,), (1395024434,), (1395024474,), (1395024524,), (1395024558,), (1395024592,), (1395024625,), (1395024817,), (1395024819,), (1395024821,), (1395025059,), (1395025072,), (1395025205,), (1395025206,), (1395025208,), (1395025212,), (1395025216,), (1395025234,), (1395025235,), (1395025236,), (1395025239,), (1395025243,), (1395025246,), (1395025269,), (1395025270,), (1395025272,), (1395025275,), (1395025311,), (1395025313,), (1395025320,), (1395025326,), (1395025331,), (1395025348,), (1395025352,), (1395025357,), (1395025359,), (1395025380,), (1395025381,), (1395025383,), (1395025386,), (1395025411,), (1395025412,), (1395025414,), (1395025418,), (1395025427,), (1395025448,), (1395025449,), (1395025450,), (1395025452,), (1395025456,), (1395025495,), (1395025503,), (1395025508,), (1395025511,), (1395025569,), (1395025573,), (1395025575,), (1395025592,), (1395025593,), (1395025538,), (1395025540,), (1395025552,), (1395025611,), (1395025613,), (1395025615,), (1395025618,), (1395025640,), (1395025642,), (1395025644,), (1395025648,), (1395025675,), (1395025676,), (1395025678,), (1395025681,), (1395025701,), (1395025702,), (1395025703,), (1395025706,), (1395025710,), (1395025757,), (1395025759,), (1395025761,), (1395025765,), (1395025770,), (1395025774,), (1395025789,), (1395025790,), (1395025795,), (1395025832,), (1395025835,), (1395025838,), (1395025842,), (1395025848,), (1395025851,), (1395025867,), (1395025868,), (1395025869,), (1395026007,), (1395026009,), (1395026011,), (1395026041,), (1395026042,), (1395026043,), (1395026046,), (1395026114,), (1395026115,), (1395026116,), (1395026119,), (1395026124,), (1395026128,), (1395026147,), (1395026149,), (1395026151,), (1395026155,), (1395026189,), (1395026285,), (1395026287,), (1395026288,), (1395026295,), (1395026299,), (1395026365,), (1395026370,), (1395026372,), (1395026582,), (1395026527,), (1395026557,), (1395026562,), (1395026567,), (1395026578,), (1395026597,), (1395026605,), (1395026610,), (1395026614,), (1395026619,), (1395026622,), (1395026644,), (1395026645,), (1395026646,), (1395026668,), (1395026670,), (1395026672,), (1395026677,), (1395026681,), (1395026809,), (1395026827,), (1395026920,), (1395027503,), (1395027549,), (1395027560,), (1395027592,), (1395027644,), (1395027821,), (1395027822,), (1395027838,), (1395027841,), (1395027862,), (1395027864,), (1395027865,), (1395028352,), (1395028359,), (1395028393,), (1395028467,), (1395028983,), (1395028907,), (1395028941,), (1395029623,), (1395029723,), (1395029815,), (1395029903,), (1395029972,), (1395030063,), (1395030566,), (1395030568,), (1395030570,), (1395030839,), (1395030844,), (1395030878,), (1395030882,), (1395030886,), (1395030890,), (1395030912,), (1395030913,), (1395030915,), (1395030918,), (1395030923,), (1395031109,), (1395031111,), (1395031112,), (1395031115,), (1395031165,), (1395031167,), (1395031172,), (1395031181,), (1395031200,), (1395031204,), (1395031252,), (1395031254,), (1395031257,), (1395031262,), (1395031307,), (1395031372,), (1395031376,), (1395031795,), (1395031811,), (1395031816,), (1395031848,), (1395031850,), (1395031851,), (1395031853,), (1395031960,), (1395032096,), (1395032099,), (1395032102,), (1395032105,), (1395032139,), (1395032126,), (1395032132,), (1395032246,), (1395032277,), (1395032658,), (1395032670,), (1395032698,), (1395032699,), (1395032786,), (1395032792,), (1395032798,), (1395032805,), (1395032808,), (1395032809,), (1395032819,), (1395032822,), (1395032826,), (1395032829,), (1395032835,), (1395032837,), (1395032854,), (1395032859,), (1395032881,), (1395032884,), (1395032886,), (1395032890,), (1395032894,), (1395032947,), (1395032949,), (1395032954,), (1395032961,), (1395032967,), (1395033009,), (1395033014,), (1395033018,), (1395033021,), (1395033044,), (1395033053,), (1395033058,), (1395033071,), (1395033087,), (1395033105,), (1395033130,), (1395033170,), (1395033214,), (1395033237,), (1395033238,), (1395033265,), (1395033298,), (1395033356,), (1395033360,), (1395033486,), (1395033489,), (1395033490,), (1395033501,), (1395033506,), (1395033525,), (1395033554,), (1395033556,), (1395033616,), (1395033615,), (1395033756,), (1395033758,), (1395033760,), (1395033762,), (1395033786,), (1395033790,), (1395033799,), (1395033803,), (1395033846,), (1395033854,), (1395033862,), (1395033871,), (1395033884,), (1395033934,), (1395033938,), (1395034036,), (1395034039,), (1395034062,), (1395034063,), (1395034064,), (1395034115,), (1395034191,), (1395034547,), (1395034542,), (1395034544,), (1395034590,), (1395034614,), (1395035064,), (1395035089,), (1395035092,), (1395035095,), (1395035099,), (1395035132,), (1395035135,), (1395037113,), (1395037058,), (1395037074,), (1395037250,), (1395037253,), (1395037256,), (1395037370,), (1395037393,), (1395037414,), (1395037416,), (1395037419,), (1395037429,), (1395037432,), (1395037435,), (1395037447,), (1395037451,), (1395037454,), (1395037457,), (1395037462,), (1395037467,), (1395037483,), (1395037499,), (1395037505,), (1395037510,), (1395037514,), (1395037581,), (1395037584,), (1395037585,), (1395037590,), (1395037659,), (1395037663,), (1395037665,), (1395037669,), (1395037866,), (1395037913,), (1395038215,), (1395038218,), (1395038242,), (1395038340,), (1395038448,), (1395047953,), (1395048309,), (1395048310,), (1395048350,), (1395048351,), (1395048352,), (1395048354,), (1395048357,), (1395048366,), (1395048437,), (1395048439,), (1395048441,), (1395048452,), (1395048477,), (1395048508,), (1395048509,), (1395048510,), (1395048556,), (1395048558,), (1395048561,), (1395048566,), (1395048589,), (1395048593,), (1395048595,), (1395048601,), (1395048610,), (1395048673,), (1395048676,), (1395048679,), (1395048728,), (1395048753,), (1395049603,), (1395050287,), (1395050809,), (1395050919,), (1395050920,), (1395050938,), (1395050940,), (1395050942,), (1395050945,), (1395050949,), (1395051038,), (1395051071,), (1395051103,), (1395051136,), (1395051454,), (1395051592,), (1395051594,), (1395051596,), (1395051599,), (1395051619,), (1395051620,), (1395051621,), (1395051624,), (1395051629,), (1395051647,), (1395051648,), (1395051650,), (1395051668,), (1395051671,), (1395051673,), (1395051710,), (1395051712,), (1395051799,), (1395051800,), (1395051801,), (1395051803,), (1395051927,), (1395051944,), (1395052030,), (1395052033,), (1395052035,), (1395052074,), (1395052069,), (1395052071,), (1395052154,), (1395052182,), (1395052184,), (1395052186,), (1395052191,), (1395052194,), (1395052331,), (1395052360,), (1395052419,), (1395052453,), (1395052644,), (1395052647,), (1395052651,), (1395052656,), (1395052661,), (1395052665,), (1395052676,), (1395052677,), (1395052679,), (1395052682,), (1395052684,), (1395052688,), (1395052705,), (1395052706,), (1395052707,), (1395052746,), (1395052748,), (1395052749,), (1395052753,), (1395052773,), (1395052774,), (1395052775,), (1395052777,), (1395052782,), (1395052787,), (1395052804,), (1395052805,), (1395052807,), (1395052811,), (1395052815,), (1395053125,), (1395053153,), (1395053154,), (1395053161,), (1395053175,), (1395053249,), (1395053250,), (1395053251,), (1395053253,), (1395053257,), (1395053439,), (1395053441,), (1395053459,), (1395053466,), (1395053605,), (1395053641,), (1395053650,), (1395053652,), (1395053671,), (1395053673,), (1395053674,), (1395053676,), (1395053678,), (1395053720,), (1395053721,), (1395053723,), (1395053725,), (1395053778,), (1395053782,), (1395053859,), (1395053871,), (1395053872,), (1395053752,), (1395053755,), (1395053759,), (1395053774,), (1395053878,), (1395053881,), (1395053884,), (1395053888,), (1395053900,), (1395053904,), (1395053916,), (1395053918,), (1395053919,), (1395053935,), (1395053936,), (1395053937,), (1395053939,), (1395053942,), (1395053945,), (1395054150,), (1395054186,), (1395054220,), (1395054259,), (1395054295,), (1395054665,), (1395054696,), (1395054740,), (1395054793,), (1395054832,), (1395054866,), (1395055016,), (1395055039,), (1395055042,), (1395055062,), (1395055093,), (1395055178,), (1395055181,), (1395055183,), (1395055188,), (1395055297,), (1395055299,), (1395055327,), (1395055335,), (1395055352,), (1395055354,), (1395055356,), (1395055360,), (1395055365,), (1395055397,), (1395055398,), (1395055399,), (1395055401,), (1395055422,), (1395055423,), (1395055424,), (1395055499,), (1395055868,), (1395055867,), (1395055889,), (1395055911,), (1395055980,), (1395055981,), (1395055982,), (1395055984,), (1395055986,), (1395056005,), (1395056007,), (1395056009,), (1395056012,), (1395056016,), (1395056142,), (1395056144,), (1395056145,), (1395056165,), (1395056167,), (1395056169,), (1395056171,), (1395056198,), (1395056201,), (1395056204,), (1395056208,), (1395056227,), (1395056264,), (1395056441,), (1395056446,), (1395056458,), (1395056586,), (1395056621,), (1395056666,), (1395056699,), (1395056732,), (1395057051,), (1395057090,), (1395057131,), (1395057164,), (1395057199,), (1395057485,), (1395057432,), (1395057440,), (1395057460,), (1395057477,), (1395057535,), (1395057570,), (1395057600,), (1395057634,), (1395057739,), (1395057741,), (1395057758,), (1395057764,), (1395057900,), (1395057901,), (1395057903,), (1395057967,), (1395057968,), (1395057969,), (1395058016,), (1395058023,), (1395058024,), (1395058027,), (1395058076,), (1395058078,), (1395058080,), (1395058088,), (1395058147,), (1395058148,), (1395058149,), (1395058176,), (1395058178,), (1395058180,), (1395058184,), (1395058207,), (1395058208,), (1395058209,), (1395058211,), (1395058239,), (1395058241,), (1395058245,), (1395058249,), (1395058272,), (1395058273,), (1395058278,), (1395058295,), (1395058300,), (1395058326,), (1395058327,), (1395058366,), (1395058401,), (1395058403,), (1395058404,), (1395058407,), (1395058412,), (1395058460,), (1395058434,), (1395058436,), (1395058438,), (1395058445,), (1395058456,), (1395058475,), (1395058476,), (1395058481,), (1395058541,), (1395058542,), (1395058544,), (1395058553,), (1395058559,), (1395058612,), (1395058615,), (1395058622,), (1395058628,), (1395058634,), (1395058638,), (1395058741,), (1395058758,), (1395058760,), (1395058764,), (1395058784,), (1395058785,), (1395058786,), (1395058788,), (1395058792,), (1395058826,), (1395058828,), (1395058830,), (1395058833,), (1395058839,), (1395058881,), (1395058882,), (1395058883,), (1395058885,), (1395058931,), (1395058935,), (1395058946,), (1395058951,), (1395059026,), (1395059027,), (1395059029,), (1395059060,), (1395059063,), (1395059089,), (1395059091,), (1395059093,), (1395059097,), (1395059102,), (1395059120,), (1395059121,), (1395059122,), (1395059123,), (1395059125,), (1395059148,), (1395059149,), (1395059150,), (1395059152,), (1395059246,), (1395059253,), (1395059263,), (1395059267,), (1395059272,), (1395059277,), (1395059415,), (1395059424,), (1395059425,), (1395059426,), (1395059432,), (1395059469,), (1395059481,), (1395059356,), (1395059385,), (1395059387,), (1395059407,), (1395059411,), (1395059536,), (1395059553,), (1395059557,), (1395059599,), (1395059600,), (1395059601,), (1395059603,), (1395059607,), (1395059609,), (1395059624,), (1395059626,), (1395059628,), (1395059631,), (1395059634,), (1395059657,), (1395059658,), (1395059671,), (1395059714,), (1395059717,), (1395059720,), (1395059766,), (1395059768,), (1395059770,), (1395059840,), (1395059843,), (1395059845,), (1395059868,), (1395059874,), (1395059927,), (1395059929,), (1395059933,), (1395060172,), (1395060194,), (1395060231,), (1395060235,), (1395060250,), (1395060270,), (1395060341,), (1395060343,), (1395060344,), (1395060347,), (1395060352,), (1395060369,), (1395060373,), (1395060375,), (1395060387,), (1395060457,), (1395060458,), (1395060459,), (1395060465,), (1395060474,), (1395060479,), (1395060633,), (1395060674,), (1395060704,), (1395060739,), (1395060769,), (1395060779,), (1395060832,), (1395060863,), (1395060898,), (1395060901,), (1395060903,), (1395060906,), (1395060909,), (1395060915,), (1395060919,), (1395060979,), (1395060963,), (1395060965,), (1395060967,), (1395060971,), (1395060976,), (1395061001,), (1395061002,), (1395061003,), (1395061012,), (1395061148,), (1395061150,), (1395061152,), (1395061155,), (1395061180,), (1395061200,), (1395061202,), (1395061203,), (1395061208,), (1395061353,), (1395061355,), (1395061357,), (1395061361,), (1395061366,), (1395061525,), (1395061526,), (1395061534,), (1395061565,), (1395061599,), (1395062036,), (1395062073,), (1395062109,), (1395062132,), (1395062159,), (1395062160,), (1395062161,), (1395062194,), (1395062196,), (1395062199,), (1395062204,), (1395062208,), (1395062210,), (1395062227,), (1395062233,), (1395062235,), (1395062237,), (1395062243,), (1395062288,), (1395062289,), (1395062291,), (1395062484,), (1395062489,), (1395062491,), (1395062494,), (1395062498,), (1395062503,), (1395062537,), (1395062538,), (1395062539,), (1395062541,), (1395062545,), (1395062550,), (1395062747,), (1395062750,), (1395062753,), (1395062808,), (1395062807,), (1395062867,), (1395062869,), (1395062871,), (1395062875,), (1395062880,), (1395063371,), (1395063404,), (1395063437,), (1395063471,), (1395063734,), (1395063735,), (1395063736,), (1395063767,), (1395063799,), (1395063843,), (1395063850,), (1395063852,), (1395063910,), (1395063911,), (1395063912,), (1395063914,), (1395063918,), (1395063935,), (1395063937,), (1395063939,), (1395063943,), (1395063947,), (1395063950,), (1395063960,), (1395063963,), (1395063967,), (1395064001,), (1395064102,), (1395064147,), (1395064148,), (1395064179,), (1395064195,), (1395064198,), (1395064213,), (1395064287,), (1395064285,), (1395064286,), (1395064495,), (1395064496,), (1395064511,), (1395064542,), (1395064551,), (1395064554,), (1395064557,), (1395064607,), (1395064641,), (1395064677,), (1395064712,), (1395064737,), (1395064743,), (1395064771,), (1395064775,), (1395064779,), (1395064783,), (1395064795,), (1395064831,), (1395064833,), (1395064835,), (1395064922,), (1395064923,), (1395064930,), (1395064941,), (1395064946,), (1395064949,), (1395064966,), (1395064967,), (1395064969,), (1395064973,), (1395064978,), (1395064981,), (1395065005,), (1395065006,), (1395065008,), (1395065013,), (1395065017,), (1395065022,), (1395065032,), (1395065033,), (1395065035,), (1395065044,), (1395065047,), (1395065051,), (1395065057,), (1395065062,), (1395065066,), (1395065091,), (1395065092,), (1395065093,), (1395065096,), (1395065101,), (1395065105,), (1395065121,), (1395065219,), (1395065221,), (1395065234,), (1395065239,), (1395065243,), (1395065249,), (1395065323,), (1395065326,), (1395065333,), (1395065334,), (1395065336,), (1395065338,), (1395065341,), (1395065310,), (1395065312,), (1395065316,), (1395065319,), (1395065347,), (1395065351,), (1395065354,), (1395065364,), (1395065380,), (1395065382,), (1395065384,), (1395065387,), (1395065392,), (1395065397,), (1395065441,), (1395065459,), (1395065463,), (1395065467,), (1395065472,), (1395065474,), (1395065480,), (1395065482,), (1395065484,), (1395065514,), (1395065523,), (1395065526,), (1395065531,), (1395065535,), (1395065703,), (1395065737,), (1395065982,), (1395065983,), (1395066010,), (1395066054,), (1395066084,), (1395066097,), (1395066171,), (1395066176,), (1395066178,), (1395066181,), (1395066185,), (1395066196,), (1395066197,), (1395066198,), (1395066200,), (1395066204,), (1395066240,), (1395066241,), (1395066242,), (1395066243,), (1395066249,), (1395066253,), (1395066268,), (1395066270,), (1395066272,), (1395066316,), (1395066318,), (1395066325,), (1395066329,), (1395066334,), (1395066376,), (1395066393,), (1395066394,), (1395066402,), (1395066412,), (1395066520,), (1395066523,), (1395066527,), (1395066532,), (1395066536,), (1395066539,), (1395066543,), (1395066545,), (1395066548,), (1395066552,), (1395066557,), (1395066575,), (1395066578,), (1395066580,), (1395066589,), (1395066613,), (1395066598,), (1395066602,), (1395066606,), (1395066609,), (1395066618,), (1395066620,), (1395066623,), (1395066628,), (1395066632,), (1395066637,), (1395066656,), (1395066658,), (1395066664,), (1395066670,), (1395066679,), (1395066684,), (1395066694,), (1395066697,), (1395066701,), (1395066712,), (1395066716,), (1395066718,), (1395066720,), (1395066722,), (1395066726,), (1395066727,), (1395066730,), (1395066732,), (1395066735,), (1395066737,), (1395066742,), (1395066744,), (1395066757,), (1395066761,), (1395066763,), (1395066766,), (1395066788,), (1395066790,), (1395066791,), (1395066971,), (1395066972,), (1395066974,), (1395066978,), (1395066983,), (1395066987,), (1395067018,), (1395067019,), (1395067020,), (1395067022,), (1395067070,), (1395067071,), (1395067074,), (1395067078,), (1395067082,), (1395067084,), (1395067094,), (1395067097,), (1395067100,), (1395067104,), (1395067113,), (1395067115,), (1395067118,), (1395067123,), (1395067127,), (1395067131,), (1395067149,), (1395067157,), (1395067185,), (1395067186,), (1395067188,), (1395067190,), (1395067230,), (1395067235,), (1395067237,), (1395067243,), (1395067251,), (1395067900,), (1395067903,), (1395067907,), (1395067910,), (1395067926,), (1395067928,), (1395067930,), (1395067932,), (1395067975,), (1395067978,), (1395068003,), (1395068007,), (1395068010,), (1395067963,), (1395067965,), (1395067969,), (1395067972,), (1395067993,), (1395067995,), (1395067998,), (1395068119,), (1395068152,), (1395068186,), (1395068224,), (1395068260,), (1395068298,), (1395068644,), (1395068704,), (1395068767,), (1395068813,), (1395068847,), (1395068877,), (1395068944,), (1395068945,), (1395068946,), (1395068947,), (1395068948,), (1395068953,), (1395068956,), (1395068961,), (1395068965,), (1395068968,), (1395068994,), (1395068995,), (1395068996,), (1395068999,), (1395069022,), (1395069023,), (1395069025,), (1395069029,), (1395069034,), (1395069038,), (1395069053,), (1395069060,), (1395069092,), (1395069125,), (1395069162,), (1395069205,), (1395069321,), (1395069354,), (1395069371,), (1395069374,), (1395069403,), (1395069404,), (1395069405,), (1395069408,), (1395069413,), (1395069465,), (1395069466,), (1395069467,), (1395069481,), (1395069486,), (1395069488,), (1395069588,), (1395069629,), (1395069668,), (1395070184,), (1395070218,), (1395070251,), (1395070282,), (1395070321,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18112025': {'nb_upload': 68, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28666502]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1395070321, 1395070282, 1395070251, 1395070218, 1395070184] map_info['map_portfolio_photo'] : {28666502: [1395070321, 1395070282, 1395070251, 1395070218, 1395070184, 1395069668, 1395069629, 1395069588, 1395069488, 1395069486, 1395069481, 1395069467, 1395069466, 1395069465, 1395069413, 1395069408, 1395069405, 1395069404, 1395069403, 1395069374, 1395069371, 1395069354, 1395069321, 1395069205, 1395069162, 1395069125, 1395069092, 1395069060, 1395069053, 1395069038, 1395069034, 1395069029, 1395069025, 1395069023, 1395069022, 1395068999, 1395068996, 1395068995, 1395068994, 1395068968, 1395068965, 1395068961, 1395068956, 1395068953, 1395068948, 1395068947, 1395068946, 1395068945, 1395068944, 1395068877, 1395068847, 1395068813, 1395068767, 1395068704, 1395068644, 1395068298, 1395068260, 1395068224, 1395068186, 1395068152, 1395068119, 1395067998, 1395067995, 1395067993, 1395067972, 1395067969, 1395067965, 1395067963]} final : True mtd_id 4302 list_pids : [1395070321, 1395070282, 1395070251, 1395070218, 1395070184] Looping around the photos to save general results len do output : 1 /28666502Didn'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, '4067987') ('4302', '28666502', '1395070321', None, None, None, None, None, '4067987') ('4302', None, None, None, None, None, None, None, '4067987') ('4302', '28666502', '1395070282', None, None, None, None, None, '4067987') ('4302', None, None, None, None, None, None, None, '4067987') ('4302', '28666502', '1395070251', None, None, None, None, None, '4067987') ('4302', None, None, None, None, None, None, None, '4067987') ('4302', '28666502', '1395070218', None, None, None, None, None, '4067987') ('4302', None, None, None, None, None, None, None, '4067987') ('4302', '28666502', '1395070184', None, None, None, None, None, '4067987') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '28666502', 'None', None, None, None, None, '4067987'), ('4302', '28666502', '1395070321', None, None, None, None, None, '4067987'), ('4302', '28666502', '1395070282', None, None, None, None, None, '4067987'), ('4302', '28666502', '1395070251', None, None, None, None, None, '4067987'), ('4302', '28666502', '1395070218', None, None, None, None, None, '4067987'), ('4302', '28666502', '1395070184', None, None, None, None, None, '4067987')] time used for this insertion : 0.011952638626098633 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.5150344371795654 time spend to save output : 0.01221776008605957 total time spend for step 5 : 3.527252197265625 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 (4067987) 2.22user 2.56system 0:11.20elapsed 42%CPU (0avgtext+0avgdata 158660maxresident)k 120inputs+6944outputs (10major+64042minor)pagefaults 0swaps