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 : 308879 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 (4215399) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4215399) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29380128 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4215399'] with mtr_portfolio_ids : ['29380128'] and first list_photo_ids : [] new path : /proc/308879/ Name: python3 Umask: 0002 State: R (running) Tgid: 308879 Ngid: 0 Pid: 308879 PPid: 308878 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 308879 NSpid: 308879 NSpgid: 307458 NSsid: 307458 VmPeak: 1113376 kB VmSize: 1113376 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105824 kB VmRSS: 105824 kB RssAnon: 66316 kB RssFile: 39508 kB RssShmem: 0 kB VmData: 872104 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 600 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: 48 nonvoluntary_ctxt_switches: 95 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '308879', 'Ngid': '0', 'Pid': '308879', 'PPid': '308878', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '308879', 'NSpid': '308879', 'NSpgid': '307458', 'NSsid': '307458', 'VmPeak': '1113376 kB', 'VmSize': '1113376 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105824 kB', 'VmRSS': '105824 kB', 'RssAnon': '66316 kB', 'RssFile': '39508 kB', 'RssShmem': '0 kB', 'VmData': '872104 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '600 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': '48', 'nonvoluntary_ctxt_switches': '95'} ('datou_batch_current', '308879', '1113376', '0', '1113376', '872104', '105824', b'', 'marlene', '4215399') 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 (29380128) 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 (4215399 ) ) 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 (29380128) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1399093670, 'portfolio_id': 29380128}, {'photo_id': 1399093659, 'portfolio_id': 29380128}, {'photo_id': 1399093657, 'portfolio_id': 29380128}, {'photo_id': 1399093503, 'portfolio_id': 29380128}, {'photo_id': 1399093467, 'portfolio_id': 29380128}, {'photo_id': 1399093424, 'portfolio_id': 29380128}, {'photo_id': 1399093341, 'portfolio_id': 29380128}, {'photo_id': 1399093339, 'portfolio_id': 29380128}, {'photo_id': 1399093336, 'portfolio_id': 29380128}, {'photo_id': 1399093335, 'portfolio_id': 29380128}, {'photo_id': 1399093334, 'portfolio_id': 29380128}, {'photo_id': 1399093332, 'portfolio_id': 29380128}, {'photo_id': 1399093287, 'portfolio_id': 29380128}, {'photo_id': 1399093284, 'portfolio_id': 29380128}, {'photo_id': 1399093281, 'portfolio_id': 29380128}, {'photo_id': 1399093278, 'portfolio_id': 29380128}, {'photo_id': 1399093256, 'portfolio_id': 29380128}, {'photo_id': 1399093255, 'portfolio_id': 29380128}, {'photo_id': 1399093254, 'portfolio_id': 29380128}, {'photo_id': 1399093253, 'portfolio_id': 29380128}, {'photo_id': 1399093236, 'portfolio_id': 29380128}, {'photo_id': 1399093234, 'portfolio_id': 29380128}, {'photo_id': 1399093232, 'portfolio_id': 29380128}, {'photo_id': 1399093228, 'portfolio_id': 29380128}, {'photo_id': 1399093203, 'portfolio_id': 29380128}, {'photo_id': 1399093166, 'portfolio_id': 29380128}, {'photo_id': 1399093130, 'portfolio_id': 29380128}, {'photo_id': 1399093093, 'portfolio_id': 29380128}, {'photo_id': 1399093057, 'portfolio_id': 29380128}, {'photo_id': 1399093023, 'portfolio_id': 29380128}, {'photo_id': 1399092866, 'portfolio_id': 29380128}, {'photo_id': 1399092865, 'portfolio_id': 29380128}, {'photo_id': 1399092864, 'portfolio_id': 29380128}, {'photo_id': 1399092820, 'portfolio_id': 29380128}, {'photo_id': 1399092817, 'portfolio_id': 29380128}, {'photo_id': 1399092814, 'portfolio_id': 29380128}, {'photo_id': 1399092811, 'portfolio_id': 29380128}, {'photo_id': 1399092809, 'portfolio_id': 29380128}, {'photo_id': 1399092794, 'portfolio_id': 29380128}, {'photo_id': 1399092792, 'portfolio_id': 29380128}, {'photo_id': 1399092790, 'portfolio_id': 29380128}, {'photo_id': 1399092788, 'portfolio_id': 29380128}, {'photo_id': 1399092786, 'portfolio_id': 29380128}, {'photo_id': 1399092770, 'portfolio_id': 29380128}, {'photo_id': 1399092768, 'portfolio_id': 29380128}, {'photo_id': 1399092766, 'portfolio_id': 29380128}, {'photo_id': 1399092764, 'portfolio_id': 29380128}, {'photo_id': 1399092762, 'portfolio_id': 29380128}, {'photo_id': 1399092747, 'portfolio_id': 29380128}, {'photo_id': 1399092746, 'portfolio_id': 29380128}, {'photo_id': 1399092745, 'portfolio_id': 29380128}, {'photo_id': 1399092744, 'portfolio_id': 29380128}] map_portfolio_id_photo_id: {29380128: [1399093670, 1399093659, 1399093657, 1399093503, 1399093467, 1399093424, 1399093341, 1399093339, 1399093336, 1399093335, 1399093334, 1399093332, 1399093287, 1399093284, 1399093281, 1399093278, 1399093256, 1399093255, 1399093254, 1399093253, 1399093236, 1399093234, 1399093232, 1399093228, 1399093203, 1399093166, 1399093130, 1399093093, 1399093057, 1399093023, 1399092866, 1399092865, 1399092864, 1399092820, 1399092817, 1399092814, 1399092811, 1399092809, 1399092794, 1399092792, 1399092790, 1399092788, 1399092786, 1399092770, 1399092768, 1399092766, 1399092764, 1399092762, 1399092747, 1399092746, 1399092745, 1399092744]} ##### 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.018204212188720703 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Dec 12 15:28:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29380128) 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 : 29380128 get user id for portfolio 29380128 get sub ptf for main ptf 29380128, type 3726 and hashtags ['environnement', 'mal_croppe', 'kraft', 'plastique', 'Carton_gris', 'papier', 'flou', 'Carton_brun', 'autre_refus', 'Teint_Dans_La_Masse', 'cartonnette', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29380128 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','kraft','plastique','Carton_gris','papier','flou','Carton_brun','autre_refus','Teint_Dans_La_Masse','cartonnette','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29380128 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','kraft','plastique','Carton_gris','papier','flou','Carton_brun','autre_refus','Teint_Dans_La_Masse','cartonnette','metal')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 29380128, 'sub_port_id': 29380140, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012847, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 28)}, 'plastique': {'main_port_id': 29380128, 'sub_port_id': 29380141, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012848, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 28)}, 'autre_refus': {'main_port_id': 29380128, 'sub_port_id': 29380142, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012849, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 28)}, 'flou': {'main_port_id': 29380128, 'sub_port_id': 29380143, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012850, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 28)}, 'Carton_gris': {'main_port_id': 29380128, 'sub_port_id': 29380144, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012851, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 28)}, 'mal_croppe': {'main_port_id': 29380128, 'sub_port_id': 29380145, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012852, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 28)}, 'kraft': {'main_port_id': 29380128, 'sub_port_id': 29380146, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012853, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 28)}, 'cartonnette': {'main_port_id': 29380128, 'sub_port_id': 29380147, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012854, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 28)}, 'environnement': {'main_port_id': 29380128, 'sub_port_id': 29380148, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012855, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 28)}, 'Carton_brun': {'main_port_id': 29380128, 'sub_port_id': 29380149, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012856, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 29380128, 'sub_port_id': 29380150, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012857, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 28)}, 'papier': {'main_port_id': 29380128, 'sub_port_id': 29380151, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012858, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29380140 , 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=29380128 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 (29380140) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29380128) result : ((1399092744,), (1399092745,), (1399092746,), (1399092747,), (1399092762,), (1399092764,), (1399092766,), (1399092768,), (1399092770,), (1399092786,), (1399092788,), (1399092790,), (1399092792,), (1399092794,), (1399092809,), (1399092811,), (1399092814,), (1399092817,), (1399092820,), (1399092864,), (1399092865,), (1399092866,), (1399093023,), (1399093057,), (1399093093,), (1399093130,), (1399093166,), (1399093203,), (1399093228,), (1399093232,), (1399093234,), (1399093236,), (1399093253,), (1399093254,), (1399093255,), (1399093256,), (1399093278,), (1399093281,), (1399093284,), (1399093287,), (1399093332,), (1399093334,), (1399093335,), (1399093336,), (1399093339,), (1399093341,), (1399093424,), (1399093467,), (1399093503,), (1399093657,), (1399093659,), (1399093670,)) 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 29380141 , 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=29380128 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 (29380141) result : ((1399092861,), (1399093231,), (1399093273,), (1399093274,), (1399093275,), (1399093438,), (1399093440,), (1399093442,), (1399093444,), (1399093446,), (1399093448,), (1399093450,), (1399093452,), (1399093718,), (1399093719,), (1399093734,), (1399093735,), (1399093736,), (1399093737,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29380128) result : ((1399092744,), (1399092745,), (1399092746,), (1399092747,), (1399092762,), (1399092764,), (1399092766,), (1399092768,), (1399092770,), (1399092786,), (1399092788,), (1399092790,), (1399092792,), (1399092794,), (1399092809,), (1399092811,), (1399092814,), (1399092817,), (1399092820,), (1399092864,), (1399092865,), (1399092866,), (1399093023,), (1399093057,), (1399093093,), (1399093130,), (1399093166,), (1399093203,), (1399093228,), (1399093232,), (1399093234,), (1399093236,), (1399093253,), (1399093254,), (1399093255,), (1399093256,), (1399093278,), (1399093281,), (1399093284,), (1399093287,), (1399093332,), (1399093334,), (1399093335,), (1399093336,), (1399093339,), (1399093341,), (1399093424,), (1399093467,), (1399093503,), (1399093657,), (1399093659,), (1399093670,)) 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 29380142 , 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=29380128 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 (29380142) result : ((1399093394,), (1399093396,), (1399093732,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29380128) result : ((1399092744,), (1399092745,), (1399092746,), (1399092747,), (1399092762,), (1399092764,), (1399092766,), (1399092768,), (1399092770,), (1399092786,), (1399092788,), (1399092790,), (1399092792,), (1399092794,), (1399092809,), (1399092811,), (1399092814,), (1399092817,), (1399092820,), (1399092864,), (1399092865,), (1399092866,), (1399093023,), (1399093057,), (1399093093,), (1399093130,), (1399093166,), (1399093203,), (1399093228,), (1399093232,), (1399093234,), (1399093236,), (1399093253,), (1399093254,), (1399093255,), (1399093256,), (1399093278,), (1399093281,), (1399093284,), (1399093287,), (1399093332,), (1399093334,), (1399093335,), (1399093336,), (1399093339,), (1399093341,), (1399093424,), (1399093467,), (1399093503,), (1399093657,), (1399093659,), (1399093670,)) 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 29380143 , 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=29380128 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 (29380143) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29380128) result : ((1399092744,), (1399092745,), (1399092746,), (1399092747,), (1399092762,), (1399092764,), (1399092766,), (1399092768,), (1399092770,), (1399092786,), (1399092788,), (1399092790,), (1399092792,), (1399092794,), (1399092809,), (1399092811,), (1399092814,), (1399092817,), (1399092820,), (1399092864,), (1399092865,), (1399092866,), (1399093023,), (1399093057,), (1399093093,), (1399093130,), (1399093166,), (1399093203,), (1399093228,), (1399093232,), (1399093234,), (1399093236,), (1399093253,), (1399093254,), (1399093255,), (1399093256,), (1399093278,), (1399093281,), (1399093284,), (1399093287,), (1399093332,), (1399093334,), (1399093335,), (1399093336,), (1399093339,), (1399093341,), (1399093424,), (1399093467,), (1399093503,), (1399093657,), (1399093659,), (1399093670,)) 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 29380144 , 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=29380128 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 (29380144) result : ((1399092858,), (1399093210,), (1399093227,), (1399093270,), (1399093271,), (1399093272,), (1399093346,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29380128) result : ((1399092744,), (1399092745,), (1399092746,), (1399092747,), (1399092762,), (1399092764,), (1399092766,), (1399092768,), (1399092770,), (1399092786,), (1399092788,), (1399092790,), (1399092792,), (1399092794,), (1399092809,), (1399092811,), (1399092814,), (1399092817,), (1399092820,), (1399092864,), (1399092865,), (1399092866,), (1399093023,), (1399093057,), (1399093093,), (1399093130,), (1399093166,), (1399093203,), (1399093228,), (1399093232,), (1399093234,), (1399093236,), (1399093253,), (1399093254,), (1399093255,), (1399093256,), (1399093278,), (1399093281,), (1399093284,), (1399093287,), (1399093332,), (1399093334,), (1399093335,), (1399093336,), (1399093339,), (1399093341,), (1399093424,), (1399093467,), (1399093503,), (1399093657,), (1399093659,), (1399093670,)) 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 29380145 , 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=29380128 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 (29380145) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29380128) result : ((1399092744,), (1399092745,), (1399092746,), (1399092747,), (1399092762,), (1399092764,), (1399092766,), (1399092768,), (1399092770,), (1399092786,), (1399092788,), (1399092790,), (1399092792,), (1399092794,), (1399092809,), (1399092811,), (1399092814,), (1399092817,), (1399092820,), (1399092864,), (1399092865,), (1399092866,), (1399093023,), (1399093057,), (1399093093,), (1399093130,), (1399093166,), (1399093203,), (1399093228,), (1399093232,), (1399093234,), (1399093236,), (1399093253,), (1399093254,), (1399093255,), (1399093256,), (1399093278,), (1399093281,), (1399093284,), (1399093287,), (1399093332,), (1399093334,), (1399093335,), (1399093336,), (1399093339,), (1399093341,), (1399093424,), (1399093467,), (1399093503,), (1399093657,), (1399093659,), (1399093670,)) 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 29380146 , 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=29380128 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 (29380146) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29380128) result : ((1399092744,), (1399092745,), (1399092746,), (1399092747,), (1399092762,), (1399092764,), (1399092766,), (1399092768,), (1399092770,), (1399092786,), (1399092788,), (1399092790,), (1399092792,), (1399092794,), (1399092809,), (1399092811,), (1399092814,), (1399092817,), (1399092820,), (1399092864,), (1399092865,), (1399092866,), (1399093023,), (1399093057,), (1399093093,), (1399093130,), (1399093166,), (1399093203,), (1399093228,), (1399093232,), (1399093234,), (1399093236,), (1399093253,), (1399093254,), (1399093255,), (1399093256,), (1399093278,), (1399093281,), (1399093284,), (1399093287,), (1399093332,), (1399093334,), (1399093335,), (1399093336,), (1399093339,), (1399093341,), (1399093424,), (1399093467,), (1399093503,), (1399093657,), (1399093659,), (1399093670,)) 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 29380147 , 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=29380128 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 (29380147) result : ((1399092859,), (1399093229,), (1399093348,), (1399093349,), (1399093350,), (1399093405,), (1399093713,), (1399093714,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29380128) result : ((1399092744,), (1399092745,), (1399092746,), (1399092747,), (1399092762,), (1399092764,), (1399092766,), (1399092768,), (1399092770,), (1399092786,), (1399092788,), (1399092790,), (1399092792,), (1399092794,), (1399092809,), (1399092811,), (1399092814,), (1399092817,), (1399092820,), (1399092864,), (1399092865,), (1399092866,), (1399093023,), (1399093057,), (1399093093,), (1399093130,), (1399093166,), (1399093203,), (1399093228,), (1399093232,), (1399093234,), (1399093236,), (1399093253,), (1399093254,), (1399093255,), (1399093256,), (1399093278,), (1399093281,), (1399093284,), (1399093287,), (1399093332,), (1399093334,), (1399093335,), (1399093336,), (1399093339,), (1399093341,), (1399093424,), (1399093467,), (1399093503,), (1399093657,), (1399093659,), (1399093670,)) 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 29380148 , 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=29380128 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 (29380148) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29380128) result : ((1399092744,), (1399092745,), (1399092746,), (1399092747,), (1399092762,), (1399092764,), (1399092766,), (1399092768,), (1399092770,), (1399092786,), (1399092788,), (1399092790,), (1399092792,), (1399092794,), (1399092809,), (1399092811,), (1399092814,), (1399092817,), (1399092820,), (1399092864,), (1399092865,), (1399092866,), (1399093023,), (1399093057,), (1399093093,), (1399093130,), (1399093166,), (1399093203,), (1399093228,), (1399093232,), (1399093234,), (1399093236,), (1399093253,), (1399093254,), (1399093255,), (1399093256,), (1399093278,), (1399093281,), (1399093284,), (1399093287,), (1399093332,), (1399093334,), (1399093335,), (1399093336,), (1399093339,), (1399093341,), (1399093424,), (1399093467,), (1399093503,), (1399093657,), (1399093659,), (1399093670,)) 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 29380149 , 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=29380128 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 (29380149) result : ((1399093211,), (1399093415,), (1399093717,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29380128) result : ((1399092744,), (1399092745,), (1399092746,), (1399092747,), (1399092762,), (1399092764,), (1399092766,), (1399092768,), (1399092770,), (1399092786,), (1399092788,), (1399092790,), (1399092792,), (1399092794,), (1399092809,), (1399092811,), (1399092814,), (1399092817,), (1399092820,), (1399092864,), (1399092865,), (1399092866,), (1399093023,), (1399093057,), (1399093093,), (1399093130,), (1399093166,), (1399093203,), (1399093228,), (1399093232,), (1399093234,), (1399093236,), (1399093253,), (1399093254,), (1399093255,), (1399093256,), (1399093278,), (1399093281,), (1399093284,), (1399093287,), (1399093332,), (1399093334,), (1399093335,), (1399093336,), (1399093339,), (1399093341,), (1399093424,), (1399093467,), (1399093503,), (1399093657,), (1399093659,), (1399093670,)) 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 29380150 , 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=29380128 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 (29380150) result : ((1399092853,), (1399092854,), (1399092855,), (1399092856,), (1399092857,), (1399093220,), (1399093221,), (1399093222,), (1399093223,), (1399093224,), (1399093225,), (1399093344,), (1399093379,), (1399093381,), (1399093731,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29380128) result : ((1399092744,), (1399092745,), (1399092746,), (1399092747,), (1399092762,), (1399092764,), (1399092766,), (1399092768,), (1399092770,), (1399092786,), (1399092788,), (1399092790,), (1399092792,), (1399092794,), (1399092809,), (1399092811,), (1399092814,), (1399092817,), (1399092820,), (1399092864,), (1399092865,), (1399092866,), (1399093023,), (1399093057,), (1399093093,), (1399093130,), (1399093166,), (1399093203,), (1399093228,), (1399093232,), (1399093234,), (1399093236,), (1399093253,), (1399093254,), (1399093255,), (1399093256,), (1399093278,), (1399093281,), (1399093284,), (1399093287,), (1399093332,), (1399093334,), (1399093335,), (1399093336,), (1399093339,), (1399093341,), (1399093424,), (1399093467,), (1399093503,), (1399093657,), (1399093659,), (1399093670,)) 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 29380151 , 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=29380128 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 (29380151) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29380128) result : ((1399092744,), (1399092745,), (1399092746,), (1399092747,), (1399092762,), (1399092764,), (1399092766,), (1399092768,), (1399092770,), (1399092786,), (1399092788,), (1399092790,), (1399092792,), (1399092794,), (1399092809,), (1399092811,), (1399092814,), (1399092817,), (1399092820,), (1399092864,), (1399092865,), (1399092866,), (1399093023,), (1399093057,), (1399093093,), (1399093130,), (1399093166,), (1399093203,), (1399093228,), (1399093232,), (1399093234,), (1399093236,), (1399093253,), (1399093254,), (1399093255,), (1399093256,), (1399093278,), (1399093281,), (1399093284,), (1399093287,), (1399093332,), (1399093334,), (1399093335,), (1399093336,), (1399093339,), (1399093341,), (1399093424,), (1399093467,), (1399093503,), (1399093657,), (1399093659,), (1399093670,)) 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`=29380128 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','kraft','plastique','Carton_gris','papier','flou','Carton_brun','autre_refus','Teint_Dans_La_Masse','cartonnette','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29380128 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','mal_croppe','kraft','plastique','Carton_gris','papier','flou','Carton_brun','autre_refus','Teint_Dans_La_Masse','cartonnette','metal')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 29380128, 'sub_port_id': 29380152, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012859, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 17, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 17, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 35)}, 'plastique': {'main_port_id': 29380128, 'sub_port_id': 29380153, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012860, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 17, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 17, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 35)}, 'autre_refus': {'main_port_id': 29380128, 'sub_port_id': 29380154, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012861, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 17, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 17, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 35)}, 'flou': {'main_port_id': 29380128, 'sub_port_id': 29380155, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012862, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 17, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 17, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 35)}, 'Carton_gris': {'main_port_id': 29380128, 'sub_port_id': 29380156, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012863, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 17, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 17, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 35)}, 'mal_croppe': {'main_port_id': 29380128, 'sub_port_id': 29380157, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012864, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 17, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 17, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 35)}, 'kraft': {'main_port_id': 29380128, 'sub_port_id': 29380158, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012865, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 17, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 17, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 35)}, 'cartonnette': {'main_port_id': 29380128, 'sub_port_id': 29380159, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012866, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 17, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 17, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 35)}, 'environnement': {'main_port_id': 29380128, 'sub_port_id': 29380160, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012867, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 17, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 17, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 35)}, 'Carton_brun': {'main_port_id': 29380128, 'sub_port_id': 29380161, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012868, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 17, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 17, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 29380128, 'sub_port_id': 29380162, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012869, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 17, 35), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 17, 35), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 35)}, 'papier': {'main_port_id': 29380128, 'sub_port_id': 29380163, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20012870, 'last_updated_at': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 12, 15, 26, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 12, 15, 17, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29380152,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29380140 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29380153,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29380141 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29380154,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29380142 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29380155,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29380143 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29380156,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29380144 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29380157,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29380145 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29380158,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29380146 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29380159,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29380147 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29380160,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29380148 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29380161,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29380149 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29380162,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29380150 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29380163,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29380151 lien utilise dans velours : https://marlene.fotonower.com/velours/29380152,29380153,29380154,29380155,29380156,29380157,29380158,29380159,29380160,29380161,29380162,29380163?tags=metal,plastique,autre_refus,flou,Carton_gris,mal_croppe,kraft,cartonnette,environnement,Carton_brun,Teint_Dans_La_Masse,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29380128]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1399093670, 1399093659, 1399093657] map_info['map_portfolio_photo'] : {29380128: [1399093670, 1399093659, 1399093657, 1399093503, 1399093467, 1399093424, 1399093341, 1399093339, 1399093336, 1399093335, 1399093334, 1399093332, 1399093287, 1399093284, 1399093281, 1399093278, 1399093256, 1399093255, 1399093254, 1399093253, 1399093236, 1399093234, 1399093232, 1399093228, 1399093203, 1399093166, 1399093130, 1399093093, 1399093057, 1399093023, 1399092866, 1399092865, 1399092864, 1399092820, 1399092817, 1399092814, 1399092811, 1399092809, 1399092794, 1399092792, 1399092790, 1399092788, 1399092786, 1399092770, 1399092768, 1399092766, 1399092764, 1399092762, 1399092747, 1399092746, 1399092745, 1399092744]} final : False mtd_id 4302 list_pids : [1399093670, 1399093659, 1399093657] Looping around the photos to save general results len do output : 1 /29380128. 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, '4215399') ('4302', '29380128', '1399093670', None, None, None, None, None, '4215399') ('4302', None, None, None, None, None, None, None, '4215399') ('4302', '29380128', '1399093659', None, None, None, None, None, '4215399') ('4302', None, None, None, None, None, None, None, '4215399') ('4302', '29380128', '1399093657', None, None, None, None, None, '4215399') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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, '29380128', "{'metal': 29380140, 'plastique': 29380141, 'autre_refus': 29380142, 'flou': 29380143, 'Carton_gris': 29380144, 'mal_croppe': 29380145, 'kraft': 29380146, 'cartonnette': 29380147, 'environnement': 29380148, 'Carton_brun': 29380149, 'Teint_Dans_La_Masse': 29380150, 'papier': 29380151}", None, None, None, None, '4215399'), ('4302', '29380128', '1399093670', None, None, None, None, None, '4215399'), ('4302', '29380128', '1399093659', None, None, None, None, None, '4215399'), ('4302', '29380128', '1399093657', None, None, None, None, None, '4215399')] time used for this insertion : 0.01371455192565918 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8214194774627686 time spend to save output : 0.013982057571411133 total time spend for step 1 : 1.8354015350341797 step2:final Fri Dec 12 15:28:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29380128) 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 29380128 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1399092747,1399092746,1399092745,1399092744,1399092770,1399092768,1399092766,1399092764,1399092762,1399092794,1399092792,1399092790,1399092788,1399092786,1399092820,1399092817,1399092814,1399092811,1399092809,1399092866,1399092865,1399092864,1399093203,1399093166,1399093130,1399093093,1399093057,1399093023,1399093236,1399093234,1399093232,1399093228,1399093256,1399093255,1399093254,1399093253,1399093287,1399093284,1399093281,1399093278,1399093341,1399093339,1399093336,1399093335,1399093334,1399093332,1399093503,1399093467,1399093424,1399093670,1399093659,1399093657); 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([29380128]) Inside saveOutput : final : False verbose : True original output for save of step final : {1399093670: ('0.07234345488779766',), 1399093659: ('0.07234345488779766',), 1399093657: ('0.07234345488779766',)} new output for save of step final : {1399093670: ('0.07234345488779766',), 1399093659: ('0.07234345488779766',), 1399093657: ('0.07234345488779766',)} [1399093670, 1399093659, 1399093657] map_info['map_portfolio_photo'] : {29380128: [1399093670, 1399093659, 1399093657, 1399093503, 1399093467, 1399093424, 1399093341, 1399093339, 1399093336, 1399093335, 1399093334, 1399093332, 1399093287, 1399093284, 1399093281, 1399093278, 1399093256, 1399093255, 1399093254, 1399093253, 1399093236, 1399093234, 1399093232, 1399093228, 1399093203, 1399093166, 1399093130, 1399093093, 1399093057, 1399093023, 1399092866, 1399092865, 1399092864, 1399092820, 1399092817, 1399092814, 1399092811, 1399092809, 1399092794, 1399092792, 1399092790, 1399092788, 1399092786, 1399092770, 1399092768, 1399092766, 1399092764, 1399092762, 1399092747, 1399092746, 1399092745, 1399092744]} final : False mtd_id 4302 list_pids : [1399093670, 1399093659, 1399093657] Looping around the photos to save general results len do output : 3 /1399093670.Didn't retrieve data . /1399093659.Didn't retrieve data . /1399093657.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, '4215399') ('4302', '29380128', '1399093670', None, None, None, None, None, '4215399') ('4302', None, None, None, None, None, None, None, '4215399') ('4302', '29380128', '1399093659', None, None, None, None, None, '4215399') ('4302', None, None, None, None, None, None, None, '4215399') ('4302', '29380128', '1399093657', None, None, None, None, None, '4215399') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '29380128', '1399093670', '0.07234345488779766', None, None, None, None, '4215399'), ('4302', '29380128', '1399093659', '0.07234345488779766', None, None, None, None, '4215399'), ('4302', '29380128', '1399093657', '0.07234345488779766', None, None, None, None, '4215399')] time used for this insertion : 0.01459050178527832 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08130431175231934 time spend to save output : 0.014840126037597656 total time spend for step 2 : 0.09614443778991699 step3:velours_tree Fri Dec 12 15:28:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29380128: [{'metal': 29380140, 'plastique': 29380141, 'autre_refus': 29380142, 'flou': 29380143, 'Carton_gris': 29380144, 'mal_croppe': 29380145, 'kraft': 29380146, 'cartonnette': 29380147, 'environnement': 29380148, 'Carton_brun': 29380149, 'Teint_Dans_La_Masse': 29380150, 'papier': 29380151}]} input_args_next_step : {29380128: ()} output_args : {29380128: [{'metal': 29380140, 'plastique': 29380141, 'autre_refus': 29380142, 'flou': 29380143, 'Carton_gris': 29380144, 'mal_croppe': 29380145, 'kraft': 29380146, 'cartonnette': 29380147, 'environnement': 29380148, 'Carton_brun': 29380149, 'Teint_Dans_La_Masse': 29380150, 'papier': 29380151}]} args : 29380128 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 : ({'metal': 29380140, 'plastique': 29380141, 'autre_refus': 29380142, 'flou': 29380143, 'Carton_gris': 29380144, 'mal_croppe': 29380145, 'kraft': 29380146, 'cartonnette': 29380147, 'environnement': 29380148, 'Carton_brun': 29380149, 'Teint_Dans_La_Masse': 29380150, 'papier': 29380151},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29380128) 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([29380128]) 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.2727656364440918 time spend to save output : 4.8160552978515625e-05 total time spend for step 3 : 0.2728137969970703 step4:send_mail_cod Fri Dec 12 15:28: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 : {1399093670: ('0.07234345488779766',), 1399093659: ('0.07234345488779766',), 1399093657: ('0.07234345488779766',)} input_args_next_step : {1399093670: ()} output_args : {1399093670: ('0.07234345488779766',), 1399093659: ('0.07234345488779766',), 1399093657: ('0.07234345488779766',)} args : 1399093670 depend.output_id : 0 input_args_next_step : {1399093670: ('0.07234345488779766',), 1399093659: ()} output_args : {1399093670: ('0.07234345488779766',), 1399093659: ('0.07234345488779766',), 1399093657: ('0.07234345488779766',)} args : 1399093659 depend.output_id : 0 input_args_next_step : {1399093670: ('0.07234345488779766',), 1399093659: ('0.07234345488779766',), 1399093657: ()} output_args : {1399093670: ('0.07234345488779766',), 1399093659: ('0.07234345488779766',), 1399093657: ('0.07234345488779766',)} args : 1399093657 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 : {29380128: [{'metal': 29380140, 'plastique': 29380141, 'autre_refus': 29380142, 'flou': 29380143, 'Carton_gris': 29380144, 'mal_croppe': 29380145, 'kraft': 29380146, 'cartonnette': 29380147, 'environnement': 29380148, 'Carton_brun': 29380149, 'Teint_Dans_La_Masse': 29380150, 'papier': 29380151}]} input_args_next_step : {1399093670: ('0.07234345488779766',), 1399093659: ('0.07234345488779766',), 1399093657: ('0.07234345488779766',), 29380128: ()} output_args : {29380128: [{'metal': 29380140, 'plastique': 29380141, 'autre_refus': 29380142, 'flou': 29380143, 'Carton_gris': 29380144, 'mal_croppe': 29380145, 'kraft': 29380146, 'cartonnette': 29380147, 'environnement': 29380148, 'Carton_brun': 29380149, 'Teint_Dans_La_Masse': 29380150, 'papier': 29380151}]} args : 29380128 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 :4, first value : ('0.07234345488779766',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29380128) 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 (1399093670,1399093659,1399093657) Found this number of photos: 3 ##### Call download_photos : nb_thread : 5 begin to download photo : 1399093657 begin to download photo : 1399093659 begin to download photo : 1399093670 download finish for photo 1399093670 download finish for photo 1399093657 download finish for photo 1399093659 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette293801401765549739/ length of list_filenames : 3 ; length of list_pids : 3 ; length of list_args : 3 results_Auto_P29380128_12-12-2025_15_28_59.pdf 29380140 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=29380140 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293801401765549739 29380141 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=29380141 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399093446: '1765549525_2420527_1399093130_c3dbfb9019ded4c2c82df8d1be5f1cf0_rle_crop_4067997134_0.png', 1399093737: '1765549646_2429662_1399093253_4e029157220286e39e6aecd8e6021573_rle_crop_4067998085_0.png', 1399093736: '1765549646_2429662_1399093253_4e029157220286e39e6aecd8e6021573_rle_crop_4067998081_0.png', 1399093735: '1765549646_2429662_1399093287_eba01ac7538a72277423c815b7175d2c_rle_crop_4067998051_0.png', 1399093734: '1765549646_2429662_1399093287_eba01ac7538a72277423c815b7175d2c_rle_crop_4067998050_0.png', 1399093719: '1765549627_2427947_1399093281_b626fe20c0e3bd1a3cfa2d529060a2e8_rle_crop_4067997738_0.png', 1399093718: '1765549627_2427947_1399093284_abdc1a11f38a6cff66ea05652d0b8412_rle_crop_4067997726_0.png', 1399093452: '1765549525_2420527_1399093023_f432876b3eb93e447381b293cf77ddcb_rle_crop_4067997180_0.png', 1399093450: '1765549525_2420527_1399093023_f432876b3eb93e447381b293cf77ddcb_rle_crop_4067997185_0.png', 1399093448: '1765549525_2420527_1399093057_bc551cef890991831b49a235ae499083_rle_crop_4067997169_0.png', 1399092861: '1765549145_2405424_1399092744_ad1781c7f8aaa1ea2fa0c058fa7ccc61_rle_crop_4067994438_0.png', 1399093444: '1765549525_2420527_1399093130_c3dbfb9019ded4c2c82df8d1be5f1cf0_rle_crop_4067997135_0.png', 1399093442: '1765549525_2420527_1399093166_322c7c148459480f90675e964b6369aa_rle_crop_4067997113_0.png', 1399093440: '1765549525_2420527_1399093166_322c7c148459480f90675e964b6369aa_rle_crop_4067997122_0.png', 1399093438: '1765549525_2420527_1399093236_aace954ac21058809ab4117829437fad_rle_crop_4067997096_0.png', 1399093275: '1765549405_2417035_1399092811_3c2d512553a20a1edb54da37d5bdc5b5_rle_crop_4067996530_0.png', 1399093274: '1765549405_2417035_1399092817_7afc692b18a3d60151f97c80346bbfd7_rle_crop_4067996510_0.png', 1399093273: '1765549405_2417035_1399092866_6c52436d391c0b871e1a08effb320fe8_rle_crop_4067996488_0.png', 1399093231: '1765549286_2411389_1399092744_ad1781c7f8aaa1ea2fa0c058fa7ccc61_rle_crop_4067994438_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/0d7df6fe543c9c52479c08ba7cb53c49_96905530.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/5eacc188bfcd7aabaabe37647bb9772e_46362735.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/8a7fd8195b92bd2210f86f67829025ef_36164091.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/41cc1ae33cc2c13b30e2b92529f478db_56208049.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/b5d83d51f176a8eaef40c2abd1a9c532_46120281.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/0ed12359d455ead921cb18a0054abc50_43872146.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/8ac7208f0c1acc97e48b1c44c9047cb6_60153968.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/139d0b174ed3080342f86ce26535ec6a_1360775.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/ad096137d5e26aa83f2218e503b2f659_94961639.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/b0d7df01a2ae1909a86ddde3a7a49975_89456909.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/fe83f909880301480c376f8c71f6f16a_65624495.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/198a06467776ec5882b1591ac80cb10a_2005166.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/7bbff04f8386cfe25c92916101f1380a_37007552.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/523bc726a0b07e71829ec2447ba8c6bd_70199174.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/1faa0b15fe0051bdee019c778ffecf1e_47065708.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/afbcbf267326d36d7d3ea7c505c859d1_75589096.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/8b24f0848a3181bbab9a56f141b136f4_92267672.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/a0d10300ce1498ca67786df66524b01b_19643064.png change filename to text .imagette293801411765549739/ imagette293801411765549739/1765549525_2420527_1399093023_f432876b3eb93e447381b293cf77ddcb_rle_crop_4067997185_0.png.png imagette293801411765549739/1765549627_2427947_1399093284_abdc1a11f38a6cff66ea05652d0b8412_rle_crop_4067997726_0.png.png imagette293801411765549739/1765549525_2420527_1399093057_bc551cef890991831b49a235ae499083_rle_crop_4067997169_0.png.png imagette293801411765549739/1765549646_2429662_1399093253_4e029157220286e39e6aecd8e6021573_rle_crop_4067998081_0.png.png imagette293801411765549739/1765549405_2417035_1399092817_7afc692b18a3d60151f97c80346bbfd7_rle_crop_4067996510_0.png.png imagette293801411765549739/1765549627_2427947_1399093281_b626fe20c0e3bd1a3cfa2d529060a2e8_rle_crop_4067997738_0.png.png imagette293801411765549739/1765549646_2429662_1399093253_4e029157220286e39e6aecd8e6021573_rle_crop_4067998085_0.png.png imagette293801411765549739/1765549145_2405424_1399092744_ad1781c7f8aaa1ea2fa0c058fa7ccc61_rle_crop_4067994438_0.png.png imagette293801411765549739/1765549525_2420527_1399093130_c3dbfb9019ded4c2c82df8d1be5f1cf0_rle_crop_4067997134_0.png.png imagette293801411765549739/1765549525_2420527_1399093236_aace954ac21058809ab4117829437fad_rle_crop_4067997096_0.png.png imagette293801411765549739/1765549525_2420527_1399093166_322c7c148459480f90675e964b6369aa_rle_crop_4067997113_0.png.png imagette293801411765549739/1765549525_2420527_1399093166_322c7c148459480f90675e964b6369aa_rle_crop_4067997122_0.png.png imagette293801411765549739/1765549646_2429662_1399093287_eba01ac7538a72277423c815b7175d2c_rle_crop_4067998051_0.png.png imagette293801411765549739/1765549286_2411389_1399092744_ad1781c7f8aaa1ea2fa0c058fa7ccc61_rle_crop_4067994438_0.png.png imagette293801411765549739/1765549525_2420527_1399093130_c3dbfb9019ded4c2c82df8d1be5f1cf0_rle_crop_4067997135_0.png.png imagette293801411765549739/1765549405_2417035_1399092866_6c52436d391c0b871e1a08effb320fe8_rle_crop_4067996488_0.png.png imagette293801411765549739/1765549525_2420527_1399093023_f432876b3eb93e447381b293cf77ddcb_rle_crop_4067997180_0.png.png imagette293801411765549739/1765549405_2417035_1399092811_3c2d512553a20a1edb54da37d5bdc5b5_rle_crop_4067996530_0.png.png imagette293801411765549739/1765549646_2429662_1399093287_eba01ac7538a72277423c815b7175d2c_rle_crop_4067998050_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/fe83f909880301480c376f8c71f6f16a_68748889.png imagette293801411765549739 29380142 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=29380142 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399093394: '1765549525_2420527_1399093166_322c7c148459480f90675e964b6369aa_rle_crop_4067997112_0.png', 1399093396: '1765549525_2420527_1399093093_89f852f5f523bb5a3046da5e429d67c9_rle_crop_4067997153_0.png', 1399093732: '1765549646_2429662_1399093253_4e029157220286e39e6aecd8e6021573_rle_crop_4067998079_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/5169da0f392e892cc063f18d9f82c5a1_24880688.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/594fd37e77527a956fcbe035bc6bfc8d_66337512.png change filename to text .imagette293801421765549741/ imagette293801421765549741/1765549646_2429662_1399093253_4e029157220286e39e6aecd8e6021573_rle_crop_4067998079_0.png.png imagette293801421765549741/1765549525_2420527_1399093093_89f852f5f523bb5a3046da5e429d67c9_rle_crop_4067997153_0.png.png imagette293801421765549741/1765549525_2420527_1399093166_322c7c148459480f90675e964b6369aa_rle_crop_4067997112_0.png.png imagette293801431765549741/ imagette293801451765549741/ imagette293801461765549741/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/124e60ddd33138fb8831562cd204ca62_42774005.png imagette293801421765549741 29380143 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=29380143 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293801431765549741 29380145 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=29380145 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293801451765549741 29380146 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=29380146 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette293801461765549741 29380147 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=29380147 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399092859: '1765549145_2405424_1399092746_a0b5047e268fe6b37c4dc3e574e54544_rle_crop_4067994411_0.png', 1399093229: '1765549286_2411389_1399092746_a0b5047e268fe6b37c4dc3e574e54544_rle_crop_4067994411_0.png', 1399093348: '1765549505_2420086_1399093234_d882339e7728c2d530a218dca93b7a04_rle_crop_4067996878_0.png', 1399093349: '1765549505_2420086_1399093232_9cd98e4eb058a03d1b0f56ba82cd3063_rle_crop_4067996891_0.png', 1399093350: '1765549505_2420086_1399093228_56f80069c728c1e6d66c1cc2cabf68b9_rle_crop_4067996901_0.png', 1399093405: '1765549525_2420527_1399093057_bc551cef890991831b49a235ae499083_rle_crop_4067997167_0.png', 1399093713: '1765549627_2427947_1399093278_9c07252578435f9a89f59e0b4d760ab4_rle_crop_4067997742_0.png', 1399093714: '1765549627_2427947_1399093278_9c07252578435f9a89f59e0b4d760ab4_rle_crop_4067997747_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/b6a808bb5dfdc8f120ec7ccfbd24ade8_80313873.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/b6a808bb5dfdc8f120ec7ccfbd24ade8_679795.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/9e3a87e9a757d1508ebc62ab91396d68_15680503.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/3ea8f9e6341511ffcad2963239be54fc_11579658.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/6faf3806e903b3c0789f09217d32d87d_51212271.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/c6daa839d1f7a846fe9fb46131744836_18851531.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/ee6f30ab9c0837b6192dc283bcd14fdc_46776638.png change filename to text .imagette293801471765549741/ imagette293801471765549741/1765549505_2420086_1399093232_9cd98e4eb058a03d1b0f56ba82cd3063_rle_crop_4067996891_0.png.png imagette293801471765549741/1765549286_2411389_1399092746_a0b5047e268fe6b37c4dc3e574e54544_rle_crop_4067994411_0.png.png imagette293801471765549741/1765549145_2405424_1399092746_a0b5047e268fe6b37c4dc3e574e54544_rle_crop_4067994411_0.png.png imagette293801471765549741/1765549505_2420086_1399093228_56f80069c728c1e6d66c1cc2cabf68b9_rle_crop_4067996901_0.png.png imagette293801471765549741/1765549505_2420086_1399093234_d882339e7728c2d530a218dca93b7a04_rle_crop_4067996878_0.png.png imagette293801471765549741/1765549525_2420527_1399093057_bc551cef890991831b49a235ae499083_rle_crop_4067997167_0.png.png imagette293801471765549741/1765549627_2427947_1399093278_9c07252578435f9a89f59e0b4d760ab4_rle_crop_4067997742_0.png.png imagette293801471765549741/1765549627_2427947_1399093278_9c07252578435f9a89f59e0b4d760ab4_rle_crop_4067997747_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/ddfb167207566a33d8284cc8342753cc_35573617.png imagette293801471765549741 29380144 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=29380144 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399092858: '1765549145_2405424_1399092745_13446b650ef5077e0c74525e9beded94_rle_crop_4067994427_0.png', 1399093210: '1765549267_2410958_1399092788_48275efdfcc1b459a384a4ff11cdaed6_rle_crop_4067995872_0.png', 1399093227: '1765549286_2411389_1399092745_13446b650ef5077e0c74525e9beded94_rle_crop_4067994427_0.png', 1399093270: '1765549405_2417035_1399092817_7afc692b18a3d60151f97c80346bbfd7_rle_crop_4067996499_0.png', 1399093271: '1765549405_2417035_1399092811_3c2d512553a20a1edb54da37d5bdc5b5_rle_crop_4067996532_0.png', 1399093272: '1765549405_2417035_1399092809_b2425b69b712dcbc1468ae1cd7553161_rle_crop_4067996566_0.png', 1399093346: '1765549505_2420086_1399093234_d882339e7728c2d530a218dca93b7a04_rle_crop_4067996877_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/882753971ee72b0eb43bee525f82ddc9_79749526.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/2fc06d1aa0eb82ecedbad035881d0e3d_53046271.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/882753971ee72b0eb43bee525f82ddc9_8948739.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/a5c0c8af2638f464057720c88fce3926_80338717.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/bd6093ca9e48c9dae406d823455b3321_52979698.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/7ec3d2e30a9682b8573703871b399400_87928485.png change filename to text .imagette293801441765549741/ imagette293801441765549741/1765549286_2411389_1399092745_13446b650ef5077e0c74525e9beded94_rle_crop_4067994427_0.png.png imagette293801441765549741/1765549405_2417035_1399092817_7afc692b18a3d60151f97c80346bbfd7_rle_crop_4067996499_0.png.png imagette293801441765549741/1765549505_2420086_1399093234_d882339e7728c2d530a218dca93b7a04_rle_crop_4067996877_0.png.png imagette293801441765549741/1765549145_2405424_1399092745_13446b650ef5077e0c74525e9beded94_rle_crop_4067994427_0.png.png imagette293801441765549741/1765549267_2410958_1399092788_48275efdfcc1b459a384a4ff11cdaed6_rle_crop_4067995872_0.png.png imagette293801441765549741/1765549405_2417035_1399092809_b2425b69b712dcbc1468ae1cd7553161_rle_crop_4067996566_0.png.png imagette293801441765549741/1765549405_2417035_1399092811_3c2d512553a20a1edb54da37d5bdc5b5_rle_crop_4067996532_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/9a335c4b761094a60ac2b82542572f43_14239898.png imagette293801441765549741 29380149 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=29380149 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399093211: '1765549267_2410958_1399092790_1bd05a070540da8ecfca7ed8541cc530_rle_crop_4067995858_0.png', 1399093415: '1765549525_2420527_1399093023_f432876b3eb93e447381b293cf77ddcb_rle_crop_4067997181_0.png', 1399093717: '1765549627_2427947_1399093284_abdc1a11f38a6cff66ea05652d0b8412_rle_crop_4067997720_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/7dec0256de2c41b81fb3e1089a532e14_44261496.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/6ee0b1635322614a4d16ab3fdb526386_92943067.png change filename to text .imagette293801491765549742/ imagette293801491765549742/1765549627_2427947_1399093284_abdc1a11f38a6cff66ea05652d0b8412_rle_crop_4067997720_0.png.png imagette293801491765549742/1765549525_2420527_1399093023_f432876b3eb93e447381b293cf77ddcb_rle_crop_4067997181_0.png.png imagette293801491765549742/1765549267_2410958_1399092790_1bd05a070540da8ecfca7ed8541cc530_rle_crop_4067995858_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/11dbc2fa11956fbb3dc680ef2d359b56_85259421.png imagette293801491765549742 29380150 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=29380150 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399092853: '1765549145_2405424_1399092747_0e19df6de046c907516b6d44a56b3fa3_rle_crop_4067994393_0.png', 1399092854: '1765549145_2405424_1399092746_a0b5047e268fe6b37c4dc3e574e54544_rle_crop_4067994417_0.png', 1399092855: '1765549145_2405424_1399092745_13446b650ef5077e0c74525e9beded94_rle_crop_4067994429_0.png', 1399092856: '1765549145_2405424_1399092744_ad1781c7f8aaa1ea2fa0c058fa7ccc61_rle_crop_4067994445_0.png', 1399092857: '1765549145_2405424_1399092744_ad1781c7f8aaa1ea2fa0c058fa7ccc61_rle_crop_4067994440_0.png', 1399093220: '1765549286_2411389_1399092770_1b8725c3c58448b8f5f81f51f45b090d_rle_crop_4067996057_0.png', 1399093221: '1765549286_2411389_1399092747_0e19df6de046c907516b6d44a56b3fa3_rle_crop_4067994393_0.png', 1399093222: '1765549286_2411389_1399092746_a0b5047e268fe6b37c4dc3e574e54544_rle_crop_4067994417_0.png', 1399093223: '1765549286_2411389_1399092745_13446b650ef5077e0c74525e9beded94_rle_crop_4067994429_0.png', 1399093224: '1765549286_2411389_1399092744_ad1781c7f8aaa1ea2fa0c058fa7ccc61_rle_crop_4067994445_0.png', 1399093225: '1765549286_2411389_1399092744_ad1781c7f8aaa1ea2fa0c058fa7ccc61_rle_crop_4067994440_0.png', 1399093344: '1765549505_2420086_1399093234_d882339e7728c2d530a218dca93b7a04_rle_crop_4067996880_0.png', 1399093379: '1765549525_2420527_1399093236_aace954ac21058809ab4117829437fad_rle_crop_4067997098_0.png', 1399093381: '1765549525_2420527_1399093057_bc551cef890991831b49a235ae499083_rle_crop_4067997168_0.png', 1399093731: '1765549646_2429662_1399093287_eba01ac7538a72277423c815b7175d2c_rle_crop_4067998047_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/0c73c8d098bce12c930231fe20caafe2_33239565.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/9610650d16aa740caae6978821ed733a_74295027.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/dd3b3484242bab786c15b72372b8c2d9_87718355.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/bc8e75b0c513ddefbb2c846af6c25034_84501027.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/62e19db3d2c114cf19cbb076074c7e63_11236737.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/4a52f7d56c33660e085f1f4568242deb_36823834.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/0c73c8d098bce12c930231fe20caafe2_65664978.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/9610650d16aa740caae6978821ed733a_10116379.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/dd3b3484242bab786c15b72372b8c2d9_81472238.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/bc8e75b0c513ddefbb2c846af6c25034_38516176.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/62e19db3d2c114cf19cbb076074c7e63_24424184.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/fa75781282708f4a7083b98f843df36e_14005760.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/27315fd586574f44735c90add45a48a4_65261232.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/b063286a8c31d557942f3c5de543dfdd_5531587.png change filename to text .imagette293801501765549742/ imagette293801501765549742/1765549525_2420527_1399093057_bc551cef890991831b49a235ae499083_rle_crop_4067997168_0.png.png imagette293801501765549742/1765549286_2411389_1399092747_0e19df6de046c907516b6d44a56b3fa3_rle_crop_4067994393_0.png.png imagette293801501765549742/1765549145_2405424_1399092744_ad1781c7f8aaa1ea2fa0c058fa7ccc61_rle_crop_4067994440_0.png.png imagette293801501765549742/1765549145_2405424_1399092746_a0b5047e268fe6b37c4dc3e574e54544_rle_crop_4067994417_0.png.png imagette293801501765549742/1765549145_2405424_1399092744_ad1781c7f8aaa1ea2fa0c058fa7ccc61_rle_crop_4067994445_0.png.png imagette293801501765549742/1765549286_2411389_1399092746_a0b5047e268fe6b37c4dc3e574e54544_rle_crop_4067994417_0.png.png imagette293801501765549742/1765549286_2411389_1399092744_ad1781c7f8aaa1ea2fa0c058fa7ccc61_rle_crop_4067994445_0.png.png imagette293801501765549742/1765549286_2411389_1399092744_ad1781c7f8aaa1ea2fa0c058fa7ccc61_rle_crop_4067994440_0.png.png imagette293801501765549742/1765549145_2405424_1399092747_0e19df6de046c907516b6d44a56b3fa3_rle_crop_4067994393_0.png.png imagette293801501765549742/1765549145_2405424_1399092745_13446b650ef5077e0c74525e9beded94_rle_crop_4067994429_0.png.png imagette293801501765549742/1765549286_2411389_1399092745_13446b650ef5077e0c74525e9beded94_rle_crop_4067994429_0.png.png imagette293801501765549742/1765549525_2420527_1399093236_aace954ac21058809ab4117829437fad_rle_crop_4067997098_0.png.png imagette293801501765549742/1765549646_2429662_1399093287_eba01ac7538a72277423c815b7175d2c_rle_crop_4067998047_0.png.png imagette293801501765549742/1765549505_2420086_1399093234_d882339e7728c2d530a218dca93b7a04_rle_crop_4067996880_0.png.png imagette293801501765549742/1765549286_2411389_1399092770_1b8725c3c58448b8f5f81f51f45b090d_rle_crop_4067996057_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/9014f839703163f81e7571f884fbffbc_12799042.png imagette293801501765549742 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29380128 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29380152,29380153,29380154,29380155,29380156,29380157,29380158,29380159,29380160,29380161,29380162,29380163?tags=metal,plastique,autre_refus,flou,Carton_gris,mal_croppe,kraft,cartonnette,environnement,Carton_brun,Teint_Dans_La_Masse,papier your option no_mail is active, we will not send the real mail to your client args[1399093670] : ('0.07234345488779766',) no score found for photo 1399093670 We are sending mail with results at report@fotonower.com args[1399093659] : ('0.07234345488779766',) no score found for photo 1399093659 We are sending mail with results at report@fotonower.com args[1399093657] : ('0.07234345488779766',) no score found for photo 1399093657 We are sending mail with results at report@fotonower.com refus_total : 0.07234345488779766 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=29380128 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_P29380128_12-12-2025_15_28_59.pdf results_Auto_P29380128_12-12-2025_15_28_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29380128_12-12-2025_15_28_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29380128','results_Auto_P29380128_12-12-2025_15_28_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29380128_12-12-2025_15_28_59.pdf','pdf','','0.2','0.07234345488779766') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29380128]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1399093670, 1399093659, 1399093657] map_info['map_portfolio_photo'] : {29380128: [1399093670, 1399093659, 1399093657, 1399093503, 1399093467, 1399093424, 1399093341, 1399093339, 1399093336, 1399093335, 1399093334, 1399093332, 1399093287, 1399093284, 1399093281, 1399093278, 1399093256, 1399093255, 1399093254, 1399093253, 1399093236, 1399093234, 1399093232, 1399093228, 1399093203, 1399093166, 1399093130, 1399093093, 1399093057, 1399093023, 1399092866, 1399092865, 1399092864, 1399092820, 1399092817, 1399092814, 1399092811, 1399092809, 1399092794, 1399092792, 1399092790, 1399092788, 1399092786, 1399092770, 1399092768, 1399092766, 1399092764, 1399092762, 1399092747, 1399092746, 1399092745, 1399092744]} final : False mtd_id 4302 list_pids : [1399093670, 1399093659, 1399093657] 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, '4215399') ('4302', '29380128', '1399093670', None, None, None, None, None, '4215399') ('4302', None, None, None, None, None, None, None, '4215399') ('4302', '29380128', '1399093659', None, None, None, None, None, '4215399') ('4302', None, None, None, None, None, None, None, '4215399') ('4302', '29380128', '1399093657', None, None, None, None, None, '4215399') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '29380128', '1399093670', None, None, None, None, None, '4215399'), ('4302', '29380128', '1399093659', None, None, None, None, None, '4215399'), ('4302', '29380128', '1399093657', None, None, None, None, None, '4215399')] time used for this insertion : 0.014800786972045898 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.568889379501343 time spend to save output : 0.014998435974121094 total time spend for step 4 : 5.583887815475464 step5:split_time_score Fri Dec 12 15:29:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['29380128'] 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 : [('29380128',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29380128) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1399093670: {'path': 'temp/1765549739_308879_1399093670_b394f8b8b9d64926e7ca83679216f870.jpg', 'extension': 'jpg'}, 1399093657: {'path': 'temp/1765549739_308879_1399093657_40fc23e0a90f8c07c7210e479b5574e2.jpg', 'extension': 'jpg'}, 1399093659: {'path': 'temp/1765549739_308879_1399093659_c43ea99c7a0731f2bdd2274b02cab7e7.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 = 29380128; (('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 = 29380128 group by h (('15', 52),) 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=29380128 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 (29380128) 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 (29380128) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12122025 29380128 Nombre de photos uploadées : 52 / 23040 (0%) 12122025 29380128 Nombre de photos taguées (types de déchets): 0 / 52 (0%) 12122025 29380128 Nombre de photos taguées (volume) : 0 / 52 (0%) [{'photo_id': 1399092747, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/0e19df6de046c907516b6d44a56b3fa3.jpg', 'username': None, 'uploaded_at': 1765548967, 'text': 'image_12122025_15_15_04_010137m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399092746, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/a0b5047e268fe6b37c4dc3e574e54544.jpg', 'username': None, 'uploaded_at': 1765548967, 'text': 'image_12122025_15_15_14_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399092745, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/13446b650ef5077e0c74525e9beded94.jpg', 'username': None, 'uploaded_at': 1765548967, 'text': 'image_12122025_15_15_24_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399092744, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/12/ad1781c7f8aaa1ea2fa0c058fa7ccc61.jpg', 'username': None, 'uploaded_at': 1765548967, 'text': 'image_12122025_15_15_44_009128m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ???????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0022249221801757812 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29380128, '2025-12-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-12' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2725864,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24851632118225098 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= 2725864 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29353967, 'dashboard_result_id': 18311389, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29353967_12-12-2025_06_10_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29353970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29353971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29353972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29353973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29353974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29353975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29353976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29353977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29353978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29353979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29353980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29353981, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29354414, 'dashboard_result_id': 18311390, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29354414_12-12-2025_06_10_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29354415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29354423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354426, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29354703, 'dashboard_result_id': 18311391, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29354703_12-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29354707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29354712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354718, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29355153, 'dashboard_result_id': 18311392, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29355153_12-12-2025_02_16_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29355162, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29355163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29355164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29355165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29355166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29355167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29355168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29355169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29355170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29355171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29355172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29355173, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29356369, 'dashboard_result_id': 18311393, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29356369_12-12-2025_06_11_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29356370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356381, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29356788, 'dashboard_result_id': 18311394, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29356788_12-12-2025_06_12_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29356799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356805, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356807, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29357162, 'dashboard_result_id': 18311395, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29357162_12-12-2025_06_12_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357182, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29357697, 'dashboard_result_id': 18311396, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29357697_12-12-2025_06_13_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357713, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29358082, 'dashboard_result_id': 18311398, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358082_12-12-2025_06_14_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358102, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29358557, 'dashboard_result_id': 18311399, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358557_12-12-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358573, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29358933, 'dashboard_result_id': 18311400, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358933_12-12-2025_06_15_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358952, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29359035, 'dashboard_result_id': 18311401, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359035_12-12-2025_06_15_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359063, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359070, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359071, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29359405, 'dashboard_result_id': 18311402, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359405_12-12-2025_06_16_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359425, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29359799, 'dashboard_result_id': 18311403, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359799_12-12-2025_04_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359819, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29360191, 'dashboard_result_id': 18311404, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29360191_12-12-2025_06_16_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29360230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29360231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29360232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29360233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29360234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29360235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29360236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29360237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29360239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29360240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29360241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29360242, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29361267, 'dashboard_result_id': 18311405, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361267_12-12-2025_06_17_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361279, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29361419, 'dashboard_result_id': 18311406, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361419_12-12-2025_05_40_42.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361435, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29361719, 'dashboard_result_id': 18311407, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361719_12-12-2025_05_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361758, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29362085, 'dashboard_result_id': 18311408, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362085_12-12-2025_06_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362104, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29362407, 'dashboard_result_id': 18311409, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362407_12-12-2025_06_17_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29362413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362422, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362424, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29362854, 'dashboard_result_id': 18311410, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362854_12-12-2025_06_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29362857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362868, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29363295, 'dashboard_result_id': 18311412, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29363295_12-12-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363332, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363338, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29363773, 'dashboard_result_id': 18311413, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29363773_12-12-2025_07_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363811, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363816, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29364180, 'dashboard_result_id': 18311414, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29364180_12-12-2025_07_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29364221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29364222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29364223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29364224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29364225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29364226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29364227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29364228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29364229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29364230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29364231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29364232, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29364786, 'dashboard_result_id': 18311415, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29364786_12-12-2025_07_34_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29364836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29364837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29364838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29364839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29364840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29364841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29364842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29364843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29364844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29364845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29364846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29364847, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29365262, 'dashboard_result_id': 18311416, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29365262_12-12-2025_07_47_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29365263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29365264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29365265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29365266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29365267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29365268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29365269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29365270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29365271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29365272, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29365273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29365274, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29365724, 'dashboard_result_id': 18311417, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29365724_12-12-2025_08_05_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29365739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29365740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29365741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29365742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29365743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29365744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29365745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29365746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29365747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29365748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29365749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29365750, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29366368, 'dashboard_result_id': 18311418, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29366368_12-12-2025_09_45_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29366370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29366371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29366372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29366373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29366374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29366375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29366376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29366377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29366378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29366379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29366380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29366381, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29366602, 'dashboard_result_id': 18311419, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29366602_12-12-2025_08_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29366604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29366605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29366606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29366607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29366608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29366609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29366610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29366611, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29366612, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29366613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29366614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29366615, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29367216, 'dashboard_result_id': 18311420, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29367216_12-12-2025_10_15_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29367261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29367262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29367263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29367264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29367265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29367266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29367267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29367268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29367269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29367270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29367271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29367272, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29367911, 'dashboard_result_id': 18311421, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29367911_12-12-2025_09_05_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29367917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29367918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29367919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29367920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29367921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29367922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29367923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29367924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29367925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29367926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29367927, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29367928, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29369385, 'dashboard_result_id': 18311422, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29369385_12-12-2025_09_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29369401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29369402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29369403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29369404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29369405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29369406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29369407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29369408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29369409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29369410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29369411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29369412, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29369990, 'dashboard_result_id': 18311423, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29369990_12-12-2025_10_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29369997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29369998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29369999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370008, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29370446, 'dashboard_result_id': 18311424, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29370446_12-12-2025_10_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29370463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29370465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29370469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370473, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29370838, 'dashboard_result_id': 18311425, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29370838_12-12-2025_11_46_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29370869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29370871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29370875, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29371214, 'dashboard_result_id': 18311426, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29371214_12-12-2025_10_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29371231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29371232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29371233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29371234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29371235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29371236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29371237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29371238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29371239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29371240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29371241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29371242, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29371672, 'dashboard_result_id': 18311427, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29371672_12-12-2025_11_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29371718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29371719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29371720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29371721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29371722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29371723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29371724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29371725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29371726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29371727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29371728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29371729, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29372129, 'dashboard_result_id': 18311429, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29372129_12-12-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29372133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29372134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29372135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29372136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29372137, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29372138, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29372139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29372140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29372141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29372142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29372143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29372144, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29372543, 'dashboard_result_id': 18311430, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29372543_12-12-2025_11_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29372593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29372594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29372595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29372596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29372597, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29372598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29372599, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29372600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29372601, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29372602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29372603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29372604, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29373212, 'dashboard_result_id': 18311431, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29373212_12-12-2025_11_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29373245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29373246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29373247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29373248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29373250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29373251, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29373252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29373254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29373255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29373256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29373258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29373259, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29373878, 'dashboard_result_id': 18311432, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29373878_12-12-2025_12_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29373939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29373940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29373941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29373942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29373943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29373944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29373945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29373946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29373947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29373948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29373949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29373950, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29374651, 'dashboard_result_id': 18311433, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29374651_12-12-2025_12_26_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29374686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29374687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29374688, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29374689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29374691, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29374692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29374693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29374694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29374695, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29374696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29374697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29374698, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29377140, 'dashboard_result_id': 18311434, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29377140_12-12-2025_13_49_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29377141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29377142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29377143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29377144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29377145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29377146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29377147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29377148, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29377149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29377150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29377151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29377152, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29377556, 'dashboard_result_id': 18311435, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29377556_12-12-2025_14_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29377560, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29377561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29377562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29377563, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29377564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29377565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29377566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29377567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29377568, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29377569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29377570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29377571, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29377785, 'dashboard_result_id': 18311436, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29377785_12-12-2025_14_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29377800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29377801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29377802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29377803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29377804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29377805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29377806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29377807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29377808, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29377809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29377811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29377812, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29378344, 'dashboard_result_id': 18311437, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29378344_12-12-2025_14_32_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29378352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29378353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29378354, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29378355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29378356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29378357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29378358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29378359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29378360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29378361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29378362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29378363, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29378900, 'dashboard_result_id': 18311438, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29378900_12-12-2025_14_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29378916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29378917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29378918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29378919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29378920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29378921, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29378922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29378923, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29378924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29378925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29378926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29378927, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29379334, 'dashboard_result_id': 18311439, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29379334_12-12-2025_15_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29379337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29379338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29379339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29379340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29379341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29379342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29379343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29379344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29379345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29379346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29379347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29379348, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29379624, 'dashboard_result_id': 18311440, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29379624_12-12-2025_15_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29379639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29379640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29379641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29379642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29379643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29379644, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29379645, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29379646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29379647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29379648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29379649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29379650, 'pht': 3726}}"}, {'dashboat_entry_day': 2725864, 'dashboard_run_id': 2736752, 'mtr_portfolio_id': 29380128, 'dashboard_result_id': 18311441, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29380128_12-12-2025_15_25_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29380140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29380141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29380142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29380143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29380144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29380145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29380146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29380147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29380148, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29380149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29380150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29380151, '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 = 29353967 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4212498, 'mtr_portfolio_id': 29353967, 'created_at': datetime.datetime(2025, 12, 12, 6, 9, 58), 'result': '0.04597087438017942', 'result_long': None, 'result_double': None}] Qualite : 0.04597087438017942 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29353967 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29353967_12-12-2025_06_10_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29353967 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29353967_12-12-2025_06_10_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29353970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29353971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29353972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29353973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29353974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29353975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29353976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29353977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29353978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29353979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29353980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29353981, 'pht': 3726}}" where mtr_portfolio_id = 29353967 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29353967 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311389, 0.04597087438017942, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29353967_12-12-2025_06_10_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29353970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29353971, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29353972, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29353973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29353974, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29353975, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29353976, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29353977, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29353978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29353979, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29353980, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29353981, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29354414 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4212499, 'mtr_portfolio_id': 29354414, 'created_at': datetime.datetime(2025, 12, 12, 6, 10, 38), 'result': '0.05125559086969083', 'result_long': None, 'result_double': None}] Qualite : 0.05125559086969083 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29354414 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29354414_12-12-2025_06_10_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29354414 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29354414_12-12-2025_06_10_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29354415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29354423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354426, 'pht': 3726}}" where mtr_portfolio_id = 29354414 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29354414 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311390, 0.05125559086969083, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29354414_12-12-2025_06_10_41.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29354415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354417, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354420, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354421, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29354423, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354424, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354426, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29354703 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4212500, 'mtr_portfolio_id': 29354703, 'created_at': datetime.datetime(2025, 12, 12, 6, 10, 58), 'result': '0.0506519231053191', 'result_long': None, 'result_double': None}] Qualite : 0.0506519231053191 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29354703 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29354703_12-12-2025_06_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29354703 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29354703_12-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29354707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29354712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354718, 'pht': 3726}}" where mtr_portfolio_id = 29354703 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29354703 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311391, 0.0506519231053191, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29354703_12-12-2025_06_11_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29354707, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29354708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29354709, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29354710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29354711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29354712, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29354713, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29354714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29354715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29354716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29354717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29354718, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29355153 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4212501, 'mtr_portfolio_id': 29355153, 'created_at': datetime.datetime(2025, 12, 12, 6, 11, 13), 'result': '0.055784932988337046', 'result_long': None, 'result_double': None}] Qualite : 0.055784932988337046 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29355153 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29355153_12-12-2025_02_16_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29355153 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29355153_12-12-2025_02_16_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29355162, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29355163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29355164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29355165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29355166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29355167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29355168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29355169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29355170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29355171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29355172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29355173, 'pht': 3726}}" where mtr_portfolio_id = 29355153 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29355153 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311392, 0.055784932988337046, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29355153_12-12-2025_02_16_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29355162, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29355163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29355164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29355165, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29355166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29355167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29355168, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29355169, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29355170, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29355171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29355172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29355173, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29356369 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4212502, 'mtr_portfolio_id': 29356369, 'created_at': datetime.datetime(2025, 12, 12, 6, 11, 30), 'result': '0.03774252289420257', 'result_long': None, 'result_double': None}] Qualite : 0.03774252289420257 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29356369 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29356369_12-12-2025_06_11_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29356369 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29356369_12-12-2025_06_11_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29356370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356381, 'pht': 3726}}" where mtr_portfolio_id = 29356369 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29356369 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311393, 0.03774252289420257, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29356369_12-12-2025_06_11_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29356370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356371, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356374, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356376, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356378, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356381, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29356788 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4212503, 'mtr_portfolio_id': 29356788, 'created_at': datetime.datetime(2025, 12, 12, 6, 12, 2), 'result': '0.054177068289269714', 'result_long': None, 'result_double': None}] Qualite : 0.054177068289269714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29356788 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29356788_12-12-2025_06_12_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29356788 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29356788_12-12-2025_06_12_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29356799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356805, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356807, 'pht': 3726}}" where mtr_portfolio_id = 29356788 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29356788 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311394, 0.054177068289269714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29356788_12-12-2025_06_12_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29356796, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29356797, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29356798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29356799, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29356800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29356801, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29356802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29356803, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29356804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29356805, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29356806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29356807, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29357162 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4212504, 'mtr_portfolio_id': 29357162, 'created_at': datetime.datetime(2025, 12, 12, 6, 12, 29), 'result': '0.048368403148316676', 'result_long': None, 'result_double': None}] Qualite : 0.048368403148316676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29357162 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29357162_12-12-2025_06_12_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29357162 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29357162_12-12-2025_06_12_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357182, 'pht': 3726}}" where mtr_portfolio_id = 29357162 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29357162 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311395, 0.048368403148316676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29357162_12-12-2025_06_12_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357172, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357174, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357182, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29357697 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4212505, 'mtr_portfolio_id': 29357697, 'created_at': datetime.datetime(2025, 12, 12, 6, 13, 30), 'result': '0.05939493826901827', 'result_long': None, 'result_double': None}] Qualite : 0.05939493826901827 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29357697 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29357697_12-12-2025_06_13_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29357697 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29357697_12-12-2025_06_13_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357713, 'pht': 3726}}" where mtr_portfolio_id = 29357697 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29357697 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311396, 0.05939493826901827, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29357697_12-12-2025_06_13_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29357702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29357703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29357704, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29357705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29357706, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29357707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29357708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29357709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29357710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29357711, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29357712, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29357713, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29358082 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4212506, 'mtr_portfolio_id': 29358082, 'created_at': datetime.datetime(2025, 12, 12, 6, 13, 57), 'result': '0.03917308618929719', 'result_long': None, 'result_double': None}] Qualite : 0.03917308618929719 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29358082 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358082_12-12-2025_06_14_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29358082 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358082_12-12-2025_06_14_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358102, 'pht': 3726}}" where mtr_portfolio_id = 29358082 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29358082 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311398, 0.03917308618929719, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358082_12-12-2025_06_14_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358091, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358092, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358093, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358100, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358102, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29358557 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4212507, 'mtr_portfolio_id': 29358557, 'created_at': datetime.datetime(2025, 12, 12, 6, 14, 29), 'result': '0.07413136999611537', 'result_long': None, 'result_double': None}] Qualite : 0.07413136999611537 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29358557 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358557_12-12-2025_06_14_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29358557 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358557_12-12-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358573, 'pht': 3726}}" where mtr_portfolio_id = 29358557 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29358557 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311399, 0.07413136999611537, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358557_12-12-2025_06_14_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358562, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358565, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358572, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358573, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29358933 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4212508, 'mtr_portfolio_id': 29358933, 'created_at': datetime.datetime(2025, 12, 12, 6, 15, 30), 'result': '0.062389813942886216', 'result_long': None, 'result_double': None}] Qualite : 0.062389813942886216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29358933 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358933_12-12-2025_06_15_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29358933 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358933_12-12-2025_06_15_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358952, 'pht': 3726}}" where mtr_portfolio_id = 29358933 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29358933 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311400, 0.062389813942886216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29358933_12-12-2025_06_15_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29358941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29358942, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29358943, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29358944, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29358945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29358946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29358947, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29358948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29358949, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29358950, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29358951, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29358952, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29359035 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4212509, 'mtr_portfolio_id': 29359035, 'created_at': datetime.datetime(2025, 12, 12, 6, 15, 36), 'result': '0.07474450706546877', 'result_long': None, 'result_double': None}] Qualite : 0.07474450706546877 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29359035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359035_12-12-2025_06_15_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29359035 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359035_12-12-2025_06_15_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359063, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359070, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359071, 'pht': 3726}}" where mtr_portfolio_id = 29359035 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29359035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311401, 0.07474450706546877, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359035_12-12-2025_06_15_40.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359061, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359063, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359064, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359065, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359069, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359070, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359071, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29359405 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4212510, 'mtr_portfolio_id': 29359405, 'created_at': datetime.datetime(2025, 12, 12, 6, 15, 58), 'result': '0.02671260360751556', 'result_long': None, 'result_double': None}] Qualite : 0.02671260360751556 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29359405 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359405_12-12-2025_06_16_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29359405 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359405_12-12-2025_06_16_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359425, 'pht': 3726}}" where mtr_portfolio_id = 29359405 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29359405 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311402, 0.02671260360751556, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359405_12-12-2025_06_16_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359418, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359425, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29359799 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4212511, 'mtr_portfolio_id': 29359799, 'created_at': datetime.datetime(2025, 12, 12, 6, 16, 12), 'result': '0.03439692669008735', 'result_long': None, 'result_double': None}] Qualite : 0.03439692669008735 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29359799 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359799_12-12-2025_04_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29359799 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359799_12-12-2025_04_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359819, 'pht': 3726}}" where mtr_portfolio_id = 29359799 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29359799 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311403, 0.03439692669008735, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29359799_12-12-2025_04_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29359808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29359809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29359810, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29359811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29359812, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29359813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29359814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29359815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29359816, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29359817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29359818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29359819, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29360191 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4212512, 'mtr_portfolio_id': 29360191, 'created_at': datetime.datetime(2025, 12, 12, 6, 16, 31), 'result': '0.029805734438451352', 'result_long': None, 'result_double': None}] Qualite : 0.029805734438451352 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29360191 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29360191_12-12-2025_06_16_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29360191 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29360191_12-12-2025_06_16_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29360230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29360231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29360232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29360233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29360234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29360235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29360236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29360237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29360239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29360240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29360241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29360242, 'pht': 3726}}" where mtr_portfolio_id = 29360191 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29360191 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311404, 0.029805734438451352, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29360191_12-12-2025_06_16_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29360230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29360231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29360232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29360233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29360234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29360235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29360236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29360237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29360239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29360240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29360241, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29360242, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29361267 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4212513, 'mtr_portfolio_id': 29361267, 'created_at': datetime.datetime(2025, 12, 12, 6, 17, 30), 'result': '0.017617938333941475', 'result_long': None, 'result_double': None}] Qualite : 0.017617938333941475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29361267 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361267_12-12-2025_06_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29361267 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361267_12-12-2025_06_17_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361279, 'pht': 3726}}" where mtr_portfolio_id = 29361267 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29361267 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311405, 0.017617938333941475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361267_12-12-2025_06_17_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361269, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361270, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361271, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361273, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361274, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361275, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361277, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361279, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29361419 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4212514, 'mtr_portfolio_id': 29361419, 'created_at': datetime.datetime(2025, 12, 12, 5, 40, 39), 'result': '0.042268325842161156', 'result_long': None, 'result_double': None}] Qualite : 0.042268325842161156 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29361419 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361419_12-12-2025_05_40_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29361419 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361419_12-12-2025_05_40_42.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361435, 'pht': 3726}}" where mtr_portfolio_id = 29361419 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29361419 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311406, 0.042268325842161156, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361419_12-12-2025_05_40_42.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361425, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361431, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361434, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361435, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29361719 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4212426, 'mtr_portfolio_id': 29361719, 'created_at': datetime.datetime(2025, 12, 12, 5, 48, 58), 'result': '0.03512528820820063', 'result_long': None, 'result_double': None}] Qualite : 0.03512528820820063 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29361719 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361719_12-12-2025_05_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29361719 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361719_12-12-2025_05_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361758, 'pht': 3726}}" where mtr_portfolio_id = 29361719 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29361719 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311407, 0.03512528820820063, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29361719_12-12-2025_05_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29361747, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29361748, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29361749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29361750, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29361751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29361752, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29361753, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29361754, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29361755, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29361756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29361757, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29361758, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29362085 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4212622, 'mtr_portfolio_id': 29362085, 'created_at': datetime.datetime(2025, 12, 12, 6, 3, 29), 'result': '0.02489806755007265', 'result_long': None, 'result_double': None}] Qualite : 0.02489806755007265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29362085 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362085_12-12-2025_06_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29362085 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362085_12-12-2025_06_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362104, 'pht': 3726}}" where mtr_portfolio_id = 29362085 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29362085 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311408, 0.02489806755007265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362085_12-12-2025_06_03_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362097, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362098, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362099, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362103, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362104, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29362407 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4212692, 'mtr_portfolio_id': 29362407, 'created_at': datetime.datetime(2025, 12, 12, 6, 17, 33), 'result': '0.03598098129173726', 'result_long': None, 'result_double': None}] Qualite : 0.03598098129173726 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29362407 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362407_12-12-2025_06_17_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29362407 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362407_12-12-2025_06_17_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29362413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362422, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362424, 'pht': 3726}}" where mtr_portfolio_id = 29362407 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29362407 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311409, 0.03598098129173726, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362407_12-12-2025_06_17_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29362413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362414, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362415, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362420, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29362421, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362422, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362424, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29362854 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4212774, 'mtr_portfolio_id': 29362854, 'created_at': datetime.datetime(2025, 12, 12, 6, 32, 57), 'result': '0.06304396315216139', 'result_long': None, 'result_double': None}] Qualite : 0.06304396315216139 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29362854 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362854_12-12-2025_06_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29362854 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362854_12-12-2025_06_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29362857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362868, 'pht': 3726}}" where mtr_portfolio_id = 29362854 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29362854 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311410, 0.06304396315216139, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29362854_12-12-2025_06_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29362857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29362858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29362859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29362860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29362861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29362862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29362863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29362864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29362865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29362866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29362867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29362868, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29363295 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4212843, 'mtr_portfolio_id': 29363295, 'created_at': datetime.datetime(2025, 12, 12, 6, 48, 58), 'result': '0.04653111445326504', 'result_long': None, 'result_double': None}] Qualite : 0.04653111445326504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29363295 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29363295_12-12-2025_06_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29363295 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29363295_12-12-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363332, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363338, 'pht': 3726}}" where mtr_portfolio_id = 29363295 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29363295 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311412, 0.04653111445326504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29363295_12-12-2025_06_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363327, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363330, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363332, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363333, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363338, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29363773 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4212927, 'mtr_portfolio_id': 29363773, 'created_at': datetime.datetime(2025, 12, 12, 7, 2, 59), 'result': '0.042970748644587525', 'result_long': None, 'result_double': None}] Qualite : 0.042970748644587525 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29363773 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29363773_12-12-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29363773 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29363773_12-12-2025_07_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363811, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363816, 'pht': 3726}}" where mtr_portfolio_id = 29363773 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29363773 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311413, 0.042970748644587525, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29363773_12-12-2025_07_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29363805, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29363806, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29363807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29363808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29363809, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29363810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29363811, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29363812, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29363813, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29363814, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29363815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29363816, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29364180 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4213002, 'mtr_portfolio_id': 29364180, 'created_at': datetime.datetime(2025, 12, 12, 7, 16, 58), 'result': '0.06843666708083897', 'result_long': None, 'result_double': None}] Qualite : 0.06843666708083897 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29364180 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29364180_12-12-2025_07_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29364180 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29364180_12-12-2025_07_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29364221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29364222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29364223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29364224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29364225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29364226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29364227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29364228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29364229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29364230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29364231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29364232, 'pht': 3726}}" where mtr_portfolio_id = 29364180 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29364180 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311414, 0.06843666708083897, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29364180_12-12-2025_07_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29364221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29364222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29364223, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29364224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29364225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29364226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29364227, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29364228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29364229, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29364230, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29364231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29364232, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29364786 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4213081, 'mtr_portfolio_id': 29364786, 'created_at': datetime.datetime(2025, 12, 12, 7, 34), 'result': '0.03678665364407766', 'result_long': None, 'result_double': None}] Qualite : 0.03678665364407766 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29364786 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29364786_12-12-2025_07_34_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29364786 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29364786_12-12-2025_07_34_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29364836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29364837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29364838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29364839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29364840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29364841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29364842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29364843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29364844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29364845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29364846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29364847, 'pht': 3726}}" where mtr_portfolio_id = 29364786 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29364786 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311415, 0.03678665364407766, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29364786_12-12-2025_07_34_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29364836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29364837, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29364838, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29364839, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29364840, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29364841, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29364842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29364843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29364844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29364845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29364846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29364847, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29365262 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4213145, 'mtr_portfolio_id': 29365262, 'created_at': datetime.datetime(2025, 12, 12, 7, 47, 28), 'result': '0.04932722121798659', 'result_long': None, 'result_double': None}] Qualite : 0.04932722121798659 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29365262 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29365262_12-12-2025_07_47_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29365262 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29365262_12-12-2025_07_47_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29365263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29365264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29365265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29365266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29365267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29365268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29365269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29365270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29365271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29365272, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29365273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29365274, 'pht': 3726}}" where mtr_portfolio_id = 29365262 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29365262 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311416, 0.04932722121798659, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29365262_12-12-2025_07_47_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29365263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29365264, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29365265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29365266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29365267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29365268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29365269, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29365270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29365271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29365272, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29365273, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29365274, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29365724 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4213223, 'mtr_portfolio_id': 29365724, 'created_at': datetime.datetime(2025, 12, 12, 8, 5, 29), 'result': '0.05162450864096052', 'result_long': None, 'result_double': None}] Qualite : 0.05162450864096052 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29365724 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29365724_12-12-2025_08_05_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29365724 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29365724_12-12-2025_08_05_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29365739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29365740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29365741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29365742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29365743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29365744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29365745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29365746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29365747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29365748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29365749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29365750, 'pht': 3726}}" where mtr_portfolio_id = 29365724 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29365724 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311417, 0.05162450864096052, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29365724_12-12-2025_08_05_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29365739, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29365740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29365741, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29365742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29365743, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29365744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29365745, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29365746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29365747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29365748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29365749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29365750, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29366368 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4213341, 'mtr_portfolio_id': 29366368, 'created_at': datetime.datetime(2025, 12, 12, 9, 45, 58), 'result': '0.05825818152528428', 'result_long': None, 'result_double': None}] Qualite : 0.05825818152528428 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29366368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29366368_12-12-2025_09_45_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29366368 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29366368_12-12-2025_09_45_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29366370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29366371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29366372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29366373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29366374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29366375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29366376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29366377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29366378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29366379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29366380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29366381, 'pht': 3726}}" where mtr_portfolio_id = 29366368 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29366368 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311418, 0.05825818152528428, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29366368_12-12-2025_09_45_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29366370, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29366371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29366372, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29366373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29366374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29366375, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29366376, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29366377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29366378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29366379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29366380, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29366381, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29366602 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4213428, 'mtr_portfolio_id': 29366602, 'created_at': datetime.datetime(2025, 12, 12, 8, 34, 58), 'result': '0.037908967872370296', 'result_long': None, 'result_double': None}] Qualite : 0.037908967872370296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29366602 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29366602_12-12-2025_08_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29366602 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29366602_12-12-2025_08_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29366604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29366605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29366606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29366607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29366608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29366609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29366610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29366611, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29366612, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29366613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29366614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29366615, 'pht': 3726}}" where mtr_portfolio_id = 29366602 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29366602 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311419, 0.037908967872370296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29366602_12-12-2025_08_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29366604, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29366605, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29366606, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29366607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29366608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29366609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29366610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29366611, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29366612, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29366613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29366614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29366615, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29367216 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4213540, 'mtr_portfolio_id': 29367216, 'created_at': datetime.datetime(2025, 12, 12, 10, 15, 58), 'result': '0.05388012724944896', 'result_long': None, 'result_double': None}] Qualite : 0.05388012724944896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29367216 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29367216_12-12-2025_10_15_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29367216 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29367216_12-12-2025_10_15_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29367261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29367262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29367263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29367264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29367265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29367266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29367267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29367268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29367269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29367270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29367271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29367272, 'pht': 3726}}" where mtr_portfolio_id = 29367216 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29367216 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311420, 0.05388012724944896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29367216_12-12-2025_10_15_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29367261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29367262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29367263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29367264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29367265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29367266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29367267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29367268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29367269, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29367270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29367271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29367272, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29367911 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4213625, 'mtr_portfolio_id': 29367911, 'created_at': datetime.datetime(2025, 12, 12, 9, 5), 'result': '0.042402543049227796', 'result_long': None, 'result_double': None}] Qualite : 0.042402543049227796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29367911 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29367911_12-12-2025_09_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29367911 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29367911_12-12-2025_09_05_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29367917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29367918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29367919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29367920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29367921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29367922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29367923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29367924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29367925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29367926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29367927, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29367928, 'pht': 3726}}" where mtr_portfolio_id = 29367911 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29367911 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311421, 0.042402543049227796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29367911_12-12-2025_09_05_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29367917, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29367918, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29367919, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29367920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29367921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29367922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29367923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29367924, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29367925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29367926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29367927, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29367928, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29369385 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4213848, 'mtr_portfolio_id': 29369385, 'created_at': datetime.datetime(2025, 12, 12, 9, 49), 'result': '0.0385590613226671', 'result_long': None, 'result_double': None}] Qualite : 0.0385590613226671 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29369385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29369385_12-12-2025_09_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29369385 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29369385_12-12-2025_09_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29369401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29369402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29369403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29369404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29369405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29369406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29369407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29369408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29369409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29369410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29369411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29369412, 'pht': 3726}}" where mtr_portfolio_id = 29369385 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29369385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311422, 0.0385590613226671, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29369385_12-12-2025_09_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29369401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29369402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29369403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29369404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29369405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29369406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29369407, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29369408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29369409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29369410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29369411, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29369412, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29369990 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4213937, 'mtr_portfolio_id': 29369990, 'created_at': datetime.datetime(2025, 12, 12, 10, 2, 58), 'result': '0.0429118853872437', 'result_long': None, 'result_double': None}] Qualite : 0.0429118853872437 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29369990 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29369990_12-12-2025_10_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29369990 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29369990_12-12-2025_10_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29369997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29369998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29369999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370008, 'pht': 3726}}" where mtr_portfolio_id = 29369990 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29369990 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311423, 0.0429118853872437, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29369990_12-12-2025_10_02_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29369997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29369998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29369999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370000, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370002, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370008, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29370446 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4214023, 'mtr_portfolio_id': 29370446, 'created_at': datetime.datetime(2025, 12, 12, 10, 18, 59), 'result': '0.06737207834119728', 'result_long': None, 'result_double': None}] Qualite : 0.06737207834119728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29370446 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29370446_12-12-2025_10_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29370446 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29370446_12-12-2025_10_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29370463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29370465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29370469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370473, 'pht': 3726}}" where mtr_portfolio_id = 29370446 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29370446 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311424, 0.06737207834119728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29370446_12-12-2025_10_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29370463, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29370465, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370466, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29370469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370470, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370471, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370472, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370473, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29370838 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4214113, 'mtr_portfolio_id': 29370838, 'created_at': datetime.datetime(2025, 12, 12, 11, 46), 'result': '0.042436501863749955', 'result_long': None, 'result_double': None}] Qualite : 0.042436501863749955 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29370838 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29370838_12-12-2025_11_46_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29370838 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29370838_12-12-2025_11_46_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29370869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29370871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29370875, 'pht': 3726}}" where mtr_portfolio_id = 29370838 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29370838 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311425, 0.042436501863749955, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29370838_12-12-2025_11_46_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29370864, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29370865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29370866, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29370867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29370868, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29370869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29370870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29370871, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29370872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29370873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29370874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29370875, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29371214 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4214180, 'mtr_portfolio_id': 29371214, 'created_at': datetime.datetime(2025, 12, 12, 10, 48, 58), 'result': '0.05434890749502305', 'result_long': None, 'result_double': None}] Qualite : 0.05434890749502305 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29371214 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29371214_12-12-2025_10_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29371214 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29371214_12-12-2025_10_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29371231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29371232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29371233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29371234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29371235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29371236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29371237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29371238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29371239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29371240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29371241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29371242, 'pht': 3726}}" where mtr_portfolio_id = 29371214 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29371214 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311426, 0.05434890749502305, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29371214_12-12-2025_10_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29371231, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29371232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29371233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29371234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29371235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29371236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29371237, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29371238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29371239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29371240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29371241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29371242, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29371672 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4214269, 'mtr_portfolio_id': 29371672, 'created_at': datetime.datetime(2025, 12, 12, 11, 2, 59), 'result': '0.040953628451014475', 'result_long': None, 'result_double': None}] Qualite : 0.040953628451014475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29371672 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29371672_12-12-2025_11_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29371672 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29371672_12-12-2025_11_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29371718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29371719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29371720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29371721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29371722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29371723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29371724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29371725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29371726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29371727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29371728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29371729, 'pht': 3726}}" where mtr_portfolio_id = 29371672 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29371672 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311427, 0.040953628451014475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29371672_12-12-2025_11_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29371718, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29371719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29371720, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29371721, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29371722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29371723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29371724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29371725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29371726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29371727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29371728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29371729, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29372129 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4214393, 'mtr_portfolio_id': 29372129, 'created_at': datetime.datetime(2025, 12, 12, 11, 18, 59), 'result': '0.055977595132677756', 'result_long': None, 'result_double': None}] Qualite : 0.055977595132677756 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29372129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29372129_12-12-2025_11_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29372129 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29372129_12-12-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29372133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29372134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29372135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29372136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29372137, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29372138, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29372139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29372140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29372141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29372142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29372143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29372144, 'pht': 3726}}" where mtr_portfolio_id = 29372129 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29372129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311429, 0.055977595132677756, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29372129_12-12-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29372133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29372134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29372135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29372136, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29372137, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29372138, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29372139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29372140, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29372141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29372142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29372143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29372144, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29372543 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4214483, 'mtr_portfolio_id': 29372543, 'created_at': datetime.datetime(2025, 12, 12, 11, 32, 58), 'result': '0.06448349152766777', 'result_long': None, 'result_double': None}] Qualite : 0.06448349152766777 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29372543 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29372543_12-12-2025_11_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29372543 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29372543_12-12-2025_11_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29372593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29372594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29372595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29372596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29372597, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29372598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29372599, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29372600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29372601, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29372602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29372603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29372604, 'pht': 3726}}" where mtr_portfolio_id = 29372543 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29372543 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311430, 0.06448349152766777, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29372543_12-12-2025_11_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29372593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29372594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29372595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29372596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29372597, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29372598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29372599, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29372600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29372601, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29372602, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29372603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29372604, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29373212 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4214571, 'mtr_portfolio_id': 29373212, 'created_at': datetime.datetime(2025, 12, 12, 11, 49), 'result': '0.05618618445539988', 'result_long': None, 'result_double': None}] Qualite : 0.05618618445539988 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29373212 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29373212_12-12-2025_11_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29373212 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29373212_12-12-2025_11_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29373245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29373246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29373247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29373248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29373250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29373251, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29373252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29373254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29373255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29373256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29373258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29373259, 'pht': 3726}}" where mtr_portfolio_id = 29373212 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29373212 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311431, 0.05618618445539988, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29373212_12-12-2025_11_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29373245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29373246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29373247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29373248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29373250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29373251, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29373252, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29373254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29373255, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29373256, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29373258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29373259, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29373878 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4214678, 'mtr_portfolio_id': 29373878, 'created_at': datetime.datetime(2025, 12, 12, 12, 3), 'result': '0.05900566846151924', 'result_long': None, 'result_double': None}] Qualite : 0.05900566846151924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29373878 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29373878_12-12-2025_12_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29373878 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29373878_12-12-2025_12_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29373939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29373940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29373941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29373942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29373943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29373944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29373945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29373946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29373947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29373948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29373949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29373950, 'pht': 3726}}" where mtr_portfolio_id = 29373878 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29373878 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311432, 0.05900566846151924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29373878_12-12-2025_12_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29373939, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29373940, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29373941, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29373942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29373943, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29373944, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29373945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29373946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29373947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29373948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29373949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29373950, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29374651 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4214763, 'mtr_portfolio_id': 29374651, 'created_at': datetime.datetime(2025, 12, 12, 12, 26, 59), 'result': '0.045185960387545326', 'result_long': None, 'result_double': None}] Qualite : 0.045185960387545326 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29374651 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29374651_12-12-2025_12_26_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29374651 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29374651_12-12-2025_12_26_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29374686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29374687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29374688, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29374689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29374691, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29374692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29374693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29374694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29374695, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29374696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29374697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29374698, 'pht': 3726}}" where mtr_portfolio_id = 29374651 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29374651 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311433, 0.045185960387545326, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29374651_12-12-2025_12_26_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29374686, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29374687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29374688, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29374689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29374691, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29374692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29374693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29374694, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29374695, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29374696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29374697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29374698, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29377140 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4215018, 'mtr_portfolio_id': 29377140, 'created_at': datetime.datetime(2025, 12, 12, 13, 49, 1), 'result': '0.05456903745241976', 'result_long': None, 'result_double': None}] Qualite : 0.05456903745241976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29377140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29377140_12-12-2025_13_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29377140 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29377140_12-12-2025_13_49_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29377141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29377142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29377143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29377144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29377145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29377146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29377147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29377148, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29377149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29377150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29377151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29377152, 'pht': 3726}}" where mtr_portfolio_id = 29377140 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29377140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311434, 0.05456903745241976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29377140_12-12-2025_13_49_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29377141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29377142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29377143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29377144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29377145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29377146, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29377147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29377148, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29377149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29377150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29377151, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29377152, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29377556 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4215057, 'mtr_portfolio_id': 29377556, 'created_at': datetime.datetime(2025, 12, 12, 14, 2, 59), 'result': '0.04451009859397317', 'result_long': None, 'result_double': None}] Qualite : 0.04451009859397317 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29377556 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29377556_12-12-2025_14_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29377556 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29377556_12-12-2025_14_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29377560, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29377561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29377562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29377563, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29377564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29377565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29377566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29377567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29377568, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29377569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29377570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29377571, 'pht': 3726}}" where mtr_portfolio_id = 29377556 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29377556 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311435, 0.04451009859397317, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29377556_12-12-2025_14_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29377560, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29377561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29377562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29377563, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29377564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29377565, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29377566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29377567, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29377568, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29377569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29377570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29377571, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29377785 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4215104, 'mtr_portfolio_id': 29377785, 'created_at': datetime.datetime(2025, 12, 12, 14, 16, 58), 'result': '0.033130042127026416', 'result_long': None, 'result_double': None}] Qualite : 0.033130042127026416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29377785 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29377785_12-12-2025_14_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29377785 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29377785_12-12-2025_14_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29377800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29377801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29377802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29377803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29377804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29377805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29377806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29377807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29377808, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29377809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29377811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29377812, 'pht': 3726}}" where mtr_portfolio_id = 29377785 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29377785 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311436, 0.033130042127026416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29377785_12-12-2025_14_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29377800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29377801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29377802, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29377803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29377804, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29377805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29377806, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29377807, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29377808, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29377809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29377811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29377812, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29378344 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4215169, 'mtr_portfolio_id': 29378344, 'created_at': datetime.datetime(2025, 12, 12, 14, 32, 57), 'result': '0.04266367813159421', 'result_long': None, 'result_double': None}] Qualite : 0.04266367813159421 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29378344 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29378344_12-12-2025_14_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29378344 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29378344_12-12-2025_14_32_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29378352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29378353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29378354, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29378355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29378356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29378357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29378358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29378359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29378360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29378361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29378362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29378363, 'pht': 3726}}" where mtr_portfolio_id = 29378344 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29378344 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311437, 0.04266367813159421, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29378344_12-12-2025_14_32_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29378352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29378353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29378354, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29378355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29378356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29378357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29378358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29378359, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29378360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29378361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29378362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29378363, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29378900 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4215249, 'mtr_portfolio_id': 29378900, 'created_at': datetime.datetime(2025, 12, 12, 14, 46, 58), 'result': '0.06394208308382847', 'result_long': None, 'result_double': None}] Qualite : 0.06394208308382847 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29378900 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29378900_12-12-2025_14_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29378900 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29378900_12-12-2025_14_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29378916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29378917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29378918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29378919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29378920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29378921, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29378922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29378923, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29378924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29378925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29378926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29378927, 'pht': 3726}}" where mtr_portfolio_id = 29378900 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29378900 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311438, 0.06394208308382847, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29378900_12-12-2025_14_46_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29378916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29378917, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29378918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29378919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29378920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29378921, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29378922, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29378923, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29378924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29378925, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29378926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29378927, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29379334 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4215303, 'mtr_portfolio_id': 29379334, 'created_at': datetime.datetime(2025, 12, 12, 15, 2, 59), 'result': '0.06362848861400411', 'result_long': None, 'result_double': None}] Qualite : 0.06362848861400411 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29379334 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29379334_12-12-2025_15_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29379334 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29379334_12-12-2025_15_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29379337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29379338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29379339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29379340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29379341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29379342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29379343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29379344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29379345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29379346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29379347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29379348, 'pht': 3726}}" where mtr_portfolio_id = 29379334 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29379334 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311439, 0.06362848861400411, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29379334_12-12-2025_15_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29379337, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29379338, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29379339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29379340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29379341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29379342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29379343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29379344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29379345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29379346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29379347, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29379348, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29379624 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4215348, 'mtr_portfolio_id': 29379624, 'created_at': datetime.datetime(2025, 12, 12, 15, 16, 58), 'result': '0.044355183493345905', 'result_long': None, 'result_double': None}] Qualite : 0.044355183493345905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29379624 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29379624_12-12-2025_15_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29379624 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29379624_12-12-2025_15_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29379639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29379640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29379641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29379642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29379643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29379644, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29379645, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29379646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29379647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29379648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29379649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29379650, 'pht': 3726}}" where mtr_portfolio_id = 29379624 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29379624 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311440, 0.044355183493345905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29379624_12-12-2025_15_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29379639, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29379640, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29379641, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29379642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29379643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29379644, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29379645, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29379646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29379647, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29379648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29379649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29379650, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29380128 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4215399, 'mtr_portfolio_id': 29380128, 'created_at': datetime.datetime(2025, 12, 12, 15, 28, 58), 'result': '0.07234345488779766', 'result_long': None, 'result_double': None}] Qualite : 0.07234345488779766 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29380128 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29380128_12-12-2025_15_28_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29380128 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29380128_12-12-2025_15_28_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29380140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29380141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29380142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29380143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29380144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29380145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29380146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29380147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29380148, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29380149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29380150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29380151, 'pht': 3726}}" where mtr_portfolio_id = 29380128 and dashboard_run_id = 2736752 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29380128 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18311441, 0.07234345488779766, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29380128_12-12-2025_15_28_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29380140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29380141, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29380142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29380143, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29380144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29380145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29380146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29380147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29380148, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29380149, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29380150, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29380151, '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 (29353967,29354414,29354703,29355153,29356369,29356788,29357162,29357697,29358082,29358557,29358933,29359035,29359405,29359799,29360191,29361267,29361419,29361719,29362085,29362407,29362854,29363295,29363773,29364180,29364786,29365262,29365724,29366368,29366602,29367216,29367911,29369385,29369990,29370446,29370838,29371214,29371672,29372129,29372543,29373212,29373878,29374651,29377140,29377556,29377785,29378344,29378900,29379334,29379624,29380128) result : ((1398955948,), (1398955951,), (1398955953,), (1398955955,), (1398955958,), (1398956174,), (1398956207,), (1398956248,), (1398956287,), (1398956299,), (1398956413,), (1398956414,), (1398956417,), (1398956419,), (1398956458,), (1398956462,), (1398956499,), (1398956502,), (1398956535,), (1398956537,), (1398956569,), (1398956573,), (1398956728,), (1398956766,), (1398956802,), (1398956837,), (1398956876,), (1398957235,), (1398957280,), (1398957314,), (1398957359,), (1398957581,), (1398957616,), (1398957651,), (1398957685,), (1398958081,), (1398958115,), (1398958178,), (1398958243,), (1398959056,), (1398959095,), (1398959129,), (1398959259,), (1398959260,), (1398959262,), (1398959263,), (1398959265,), (1398959499,), (1398959536,), (1398959576,), (1398959611,), (1398959646,), (1398959782,), (1398959784,), (1398959786,), (1398959788,), (1398959791,), (1398959815,), (1398959816,), (1398959817,), (1398959827,), (1398959828,), (1398959831,), (1398959836,), (1398959839,), (1398959850,), (1398959852,), (1398959854,), (1398959861,), (1398959868,), (1398959881,), (1398959918,), (1398959934,), (1398959936,), (1398959938,), (1398959940,), (1398959977,), (1398959980,), (1398959981,), (1398959982,), (1398959985,), (1398959995,), (1398959997,), (1398959999,), (1398960001,), (1398960232,), (1398960233,), (1398960234,), (1398960235,), (1398960248,), (1398960251,), (1398960254,), (1398960294,), (1398960337,), (1398960370,), (1398960409,), (1398960553,), (1398960556,), (1398960559,), (1398960563,), (1398960567,), (1398960571,), (1398960586,), (1398960587,), (1398960588,), (1398960589,), (1398960602,), (1398960604,), (1398960606,), (1398960608,), (1398960610,), (1398960612,), (1398960633,), (1398960634,), (1398960658,), (1398960695,), (1398960731,), (1398960771,), (1398960890,), (1398960924,), (1398961059,), (1398961510,), (1398961576,), (1398961611,), (1398961646,), (1398961900,), (1398961928,), (1398961997,), (1398961999,), (1398962015,), (1398961988,), (1398961990,), (1398961992,), (1398961994,), (1398962137,), (1398962172,), (1398962214,), (1398962250,), (1398962686,), (1398962758,), (1398962830,), (1398962906,), (1398962974,), (1398963510,), (1398963549,), (1398963586,), (1398964022,), (1398964056,), (1398964088,), (1398964125,), (1398964158,), (1398964196,), (1398964464,), (1398964629,), (1398964667,), (1398964710,), (1398964773,), (1398964798,), (1398964894,), (1398964896,), (1398964899,), (1398964924,), (1398964926,), (1398964928,), (1398964935,), (1398964941,), (1398964957,), (1398964959,), (1398964962,), (1398964966,), (1398964969,), (1398965265,), (1398965301,), (1398965339,), (1398965998,), (1398966065,), (1398966129,), (1398966191,), (1398966866,), (1398966869,), (1398966871,), (1398966873,), (1398966876,), (1398966879,), (1398967116,), (1398967151,), (1398967185,), (1398967251,), (1398967556,), (1398967558,), (1398967560,), (1398967562,), (1398967656,), (1398967659,), (1398967660,), (1398967663,), (1398967666,), (1398967669,), (1398967684,), (1398967673,), (1398967675,), (1398967677,), (1398967679,), (1398967681,), (1398968022,), (1398968059,), (1398968096,), (1398968132,), (1398968424,), (1398968425,), (1398968426,), (1398968427,), (1398968612,), (1398968647,), (1398968661,), (1398968663,), (1398968686,), (1398968689,), (1398968730,), (1398968734,), (1398968736,), (1398968949,), (1398968984,), (1398969018,), (1398969066,), (1398969102,), (1398969138,), (1398969480,), (1398969516,), (1398969553,), (1398969588,), (1398969628,), (1398969666,), (1398969784,), (1398969786,), (1398969787,), (1398969987,), (1398970023,), (1398970061,), (1398970095,), (1398970108,), (1398970111,), (1398970231,), (1398970232,), (1398970234,), (1398970236,), (1398970239,), (1398970242,), (1398970252,), (1398970253,), (1398970254,), (1398970268,), (1398970270,), (1398970272,), (1398970274,), (1398970277,), (1398970281,), (1398970290,), (1398970292,), (1398970294,), (1398970296,), (1398970299,), (1398970342,), (1398970344,), (1398970346,), (1398970349,), (1398971710,), (1398975733,), (1398975742,), (1398975770,), (1398975798,), (1398975799,), (1398975800,), (1398975801,), (1398975804,), (1398975817,), (1398975819,), (1398975830,), (1398975835,), (1398975840,), (1398975842,), (1398975845,), (1398975855,), (1398975857,), (1398975858,), (1398975875,), (1398975911,), (1398976270,), (1398976306,), (1398976341,), (1398976749,), (1398976750,), (1398976751,), (1398976752,), (1398976755,), (1398976954,), (1398976962,), (1398976983,), (1398977016,), (1398977041,), (1398977080,), (1398977082,), (1398977085,), (1398977088,), (1398977106,), (1398977108,), (1398977110,), (1398977111,), (1398977113,), (1398977123,), (1398977124,), (1398977126,), (1398977128,), (1398977131,), (1398977133,), (1398977150,), (1398977153,), (1398977160,), (1398977162,), (1398977486,), (1398977521,), (1398977551,), (1398977585,), (1398977620,), (1398977856,), (1398977858,), (1398977890,), (1398977928,), (1398977965,), (1398978183,), (1398978218,), (1398978251,), (1398978290,), (1398978326,), (1398978363,), (1398978734,), (1398978671,), (1398978704,), (1398979122,), (1398979124,), (1398979126,), (1398979128,), (1398979131,), (1398979134,), (1398979311,), (1398979343,), (1398979350,), (1398979352,), (1398979376,), (1398979435,), (1398979442,), (1398979446,), (1398979468,), (1398979469,), (1398979470,), (1398979471,), (1398979473,), (1398979487,), (1398979490,), (1398979492,), (1398979494,), (1398979497,), (1398979501,), (1398979508,), (1398979514,), (1398979523,), (1398979526,), (1398979527,), (1398979534,), (1398979536,), (1398979539,), (1398979540,), (1398979541,), (1398979542,), (1398979554,), (1398979556,), (1398979557,), (1398979560,), (1398979568,), (1398979580,), (1398979582,), (1398979584,), (1398979586,), (1398979604,), (1398979605,), (1398979606,), (1398979620,), (1398979622,), (1398979624,), (1398979626,), (1398979637,), (1398979642,), (1398979644,), (1398979662,), (1398979665,), (1398979668,), (1398979671,), (1398979672,), (1398979674,), (1398979691,), (1398979684,), (1398979687,), (1398979689,), (1398979704,), (1398979705,), (1398979706,), (1398979707,), (1398979709,), (1398979712,), (1398979719,), (1398979741,), (1398979775,), (1398979808,), (1398980178,), (1398980212,), (1398980236,), (1398980237,), (1398980240,), (1398980627,), (1398980689,), (1398980723,), (1398980764,), (1398981148,), (1398981149,), (1398981150,), (1398981183,), (1398981218,), (1398981253,), (1398981573,), (1398981608,), (1398981642,), (1398981681,), (1398981749,), (1398981810,), (1398981986,), (1398981998,), (1398982000,), (1398982003,), (1398982011,), (1398982013,), (1398982015,), (1398982017,), (1398982020,), (1398982022,), (1398982030,), (1398982034,), (1398982036,), (1398982037,), (1398982039,), (1398982050,), (1398982051,), (1398982052,), (1398982053,), (1398982072,), (1398982413,), (1398982448,), (1398982481,), (1398982516,), (1398982899,), (1398982943,), (1398982978,), (1398982980,), (1398982983,), (1398982986,), (1398983007,), (1398984295,), (1398984050,), (1398984628,), (1398984717,), (1398984727,), (1398984729,), (1398984731,), (1398984747,), (1398984748,), (1398984749,), (1398984750,), (1398984766,), (1398984768,), (1398984774,), (1398984783,), (1398984799,), (1398984800,), (1398984801,), (1398984802,), (1398984837,), (1398984839,), (1398984841,), (1398984843,), (1398984846,), (1398984855,), (1398984858,), (1398984861,), (1398984865,), (1398984867,), (1398984891,), (1398984892,), (1398984893,), (1398984894,), (1398984936,), (1398984937,), (1398984940,), (1398984941,), (1398984942,), (1398984943,), (1398984959,), (1398984960,), (1398984961,), (1398984962,), (1398984963,), (1398984964,), (1398984965,), (1398984966,), (1398984926,), (1398984927,), (1398984928,), (1398984929,), (1398984930,), (1398984931,), (1398984932,), (1398984933,), (1398984934,), (1398984935,), (1398984938,), (1398984939,), (1398984948,), (1398984950,), (1398984951,), (1398984952,), (1398984953,), (1398984954,), (1398984955,), (1398984956,), (1398984957,), (1398984958,), (1398984967,), (1398984968,), (1398984969,), (1398984970,), (1398984971,), (1398984972,), (1398984973,), (1398984974,), (1398984975,), (1398984976,), (1398984977,), (1398984978,), (1398984980,), (1398984981,), (1398984982,), (1398984983,), (1398984984,), (1398984995,), (1398984996,), (1398984997,), (1398984998,), (1398984999,), (1398985000,), (1398985001,), (1398985002,), (1398985003,), (1398985004,), (1398985015,), (1398985016,), (1398985017,), (1398985018,), (1398985019,), (1398985026,), (1398985027,), (1398985028,), (1398985029,), (1398985030,), (1398985037,), (1398985456,), (1398985466,), (1398985468,), (1398985470,), (1398985476,), (1398985477,), (1398985479,), (1398985481,), (1398985484,), (1398985487,), (1398985503,), (1398985504,), (1398985507,), (1398985510,), (1398985512,), (1398985517,), (1398985519,), (1398985111,), (1398985112,), (1398985113,), (1398985114,), (1398985115,), (1398985116,), (1398985117,), (1398985118,), (1398985120,), (1398985122,), (1398985124,), (1398985126,), (1398985129,), (1398985130,), (1398985131,), (1398985133,), (1398985135,), (1398985137,), (1398985149,), (1398985181,), (1398985213,), (1398985245,), (1398985279,), (1398985312,), (1398985390,), (1398985392,), (1398985395,), (1398985399,), (1398985402,), (1398985405,), (1398985410,), (1398985412,), (1398985415,), (1398985418,), (1398985421,), (1398985424,), (1398985427,), (1398985428,), (1398985431,), (1398985434,), (1398985438,), (1398985445,), (1398985450,), (1398985451,), (1398985688,), (1398985501,), (1398985679,), (1398985681,), (1398985683,), (1398985685,), (1398985703,), (1398985705,), (1398985706,), (1398985709,), (1398985712,), (1398985715,), (1398985727,), (1398985730,), (1398985732,), (1398985734,), (1398985736,), (1398985738,), (1398985744,), (1398985747,), (1398985748,), (1398985749,), (1398985751,), (1398985753,), (1398985755,), (1398985770,), (1398985772,), (1398985773,), (1398985774,), (1398985809,), (1398985797,), (1398985799,), (1398985801,), (1398985803,), (1398985806,), (1398985817,), (1398985818,), (1398985819,), (1398985820,), (1398985823,), (1398985826,), (1398985837,), (1398985839,), (1398985841,), (1398985844,), (1398985847,), (1398985849,), (1398985855,), (1398985856,), (1398985860,), (1398985864,), (1398985865,), (1398985866,), (1398985869,), (1398985872,), (1398985882,), (1398985884,), (1398985892,), (1398985900,), (1398985907,), (1398985919,), (1398985921,), (1398985925,), (1398985929,), (1398985966,), (1398985975,), (1398985979,), (1398985981,), (1398985983,), (1398985986,), (1398986001,), (1398986002,), (1398986004,), (1398986006,), (1398986021,), (1398986022,), (1398986023,), (1398986024,), (1398986026,), (1398986038,), (1398986040,), (1398986042,), (1398986044,), (1398986048,), (1398986051,), (1398986062,), (1398986064,), (1398986066,), (1398986068,), (1398986070,), (1398986091,), (1398986093,), (1398986095,), (1398986098,), (1398986101,), (1398986104,), (1398986134,), (1398986140,), (1398986142,), (1398986144,), (1398986147,), (1398986160,), (1398986161,), (1398986162,), (1398986163,), (1398986166,), (1398986187,), (1398986188,), (1398986191,), (1398986193,), (1398986196,), (1398986200,), (1398986218,), (1398986206,), (1398986212,), (1398986239,), (1398986241,), (1398986253,), (1398986261,), (1398986263,), (1398986265,), (1398986278,), (1398986279,), (1398986280,), (1398986281,), (1398986291,), (1398986294,), (1398986297,), (1398986318,), (1398986320,), (1398986321,), (1398986322,), (1398986324,), (1398986348,), (1398986352,), (1398986354,), (1398986356,), (1398986359,), (1398986365,), (1398986367,), (1398986369,), (1398986371,), (1398986386,), (1398986387,), (1398986388,), (1398986390,), (1398986393,), (1398986396,), (1398986405,), (1398986406,), (1398986414,), (1398986418,), (1398986423,), (1398986425,), (1398986429,), (1398986432,), (1398986436,), (1398986439,), (1398986445,), (1398986446,), (1398986447,), (1398986448,), (1398986463,), (1398986464,), (1398986466,), (1398986468,), (1398986471,), (1398986503,), (1398986507,), (1398986508,), (1398986509,), (1398986512,), (1398986524,), (1398986526,), (1398986528,), (1398986544,), (1398986546,), (1398986547,), (1398986548,), (1398986551,), (1398986553,), (1398986574,), (1398986581,), (1398986582,), (1398986584,), (1398986587,), (1398986590,), (1398986620,), (1398986616,), (1398986618,), (1398986619,), (1398986636,), (1398986640,), (1398986643,), (1398986647,), (1398986650,), (1398986652,), (1398986670,), (1398986671,), (1398986672,), (1398986673,), (1398986679,), (1398986681,), (1398986693,), (1398986695,), (1398986697,), (1398986726,), (1398986728,), (1398986730,), (1398986732,), (1398986735,), (1398986736,), (1398986750,), (1398986751,), (1398986752,), (1398986753,), (1398986756,), (1398986758,), (1398986774,), (1398986775,), (1398986777,), (1398986780,), (1398986783,), (1398986785,), (1398986795,), (1398986796,), (1398986799,), (1398986802,), (1398986804,), (1398986806,), (1398986812,), (1398986813,), (1398986815,), (1398986818,), (1398986821,), (1398986822,), (1398986834,), (1398986839,), (1398986842,), (1398986846,), (1398986854,), (1398986857,), (1398986867,), (1398986869,), (1398986890,), (1398986891,), (1398986899,), (1398986901,), (1398986903,), (1398986904,), (1398986909,), (1398986912,), (1398986914,), (1398986922,), (1398986924,), (1398986927,), (1398986930,), (1398986944,), (1398986947,), (1398986949,), (1398986965,), (1398986968,), (1398986971,), (1398986974,), (1398986976,), (1398987140,), (1398986991,), (1398987027,), (1398987063,), (1398987102,), (1398987562,), (1398987596,), (1398987632,), (1398987665,), (1398987732,), (1398987796,), (1398988690,), (1398988753,), (1398988816,), (1398989359,), (1398989391,), (1398989426,), (1398989461,), (1398989820,), (1398989821,), (1398989822,), (1398989857,), (1398989862,), (1398990176,), (1398990213,), (1398990216,), (1398990217,), (1398990344,), (1398990347,), (1398990350,), (1398990377,), (1398990413,), (1398990451,), (1398990589,), (1398990593,), (1398990595,), (1398990596,), (1398990599,), (1398990916,), (1398990951,), (1398991430,), (1398991463,), (1398991517,), (1398991574,), (1398991605,), (1398991751,), (1398991795,), (1398993212,), (1398997259,), (1398998062,), (1398998097,), (1398998117,), (1398998455,), (1398998457,), (1398998476,), (1398998646,), (1398998647,), (1398998664,), (1398998666,), (1398998668,), (1398998670,), (1398998673,), (1398998676,), (1398998685,), (1398998686,), (1398998712,), (1398998710,), (1398998711,), (1398998723,), (1398998725,), (1398998727,), (1398998729,), (1398998732,), (1398998735,), (1398998746,), (1398998748,), (1398998751,), (1398998753,), (1398998756,), (1398998769,), (1398998770,), (1398998771,), (1398998772,), (1398998775,), (1398998805,), (1398998807,), (1398998809,), (1398998811,), (1398998814,), (1398998828,), (1398998830,), (1398998832,), (1398998836,), (1398998857,), (1398998859,), (1398998861,), (1398998863,), (1398998866,), (1398998869,), (1398998877,), (1398998878,), (1398998880,), (1398998914,), (1398998915,), (1398998916,), (1398998917,), (1398998919,), (1398998922,), (1398998935,), (1398998936,), (1398998937,), (1398998938,), (1398998958,), (1398998960,), (1398998962,), (1398998964,), (1398998967,), (1398998968,), (1398998979,), (1398998981,), (1398998982,), (1398998984,), (1398998987,), (1398999000,), (1398999002,), (1398999003,), (1398999020,), (1398999022,), (1398999024,), (1398999026,), (1398999029,), (1398999032,), (1398999056,), (1398999064,), (1398999066,), (1398999067,), (1398999087,), (1398999079,), (1398999081,), (1398999083,), (1398999085,), (1398999116,), (1398999117,), (1398999124,), (1398999133,), (1398999136,), (1398999139,), (1398999161,), (1398999163,), (1398999165,), (1398999167,), (1398999186,), (1398999187,), (1398999188,), (1398999189,), (1398999192,), (1398999195,), (1398999208,), (1398999210,), (1398999212,), (1398999214,), (1398999238,), (1398999239,), (1398999240,), (1398999241,), (1398999244,), (1398999246,), (1398999259,), (1398999261,), (1398999263,), (1398999265,), (1398999268,), (1398999291,), (1398999294,), (1398999295,), (1398999296,), (1398999299,), (1398999313,), (1398999315,), (1398999317,), (1398999319,), (1398999322,), (1398999325,), (1398999349,), (1398999350,), (1398999351,), (1398999352,), (1398999368,), (1398999370,), (1398999372,), (1398999374,), (1398999377,), (1398999393,), (1398999394,), (1398999395,), (1398999407,), (1398999409,), (1398999411,), (1398999413,), (1398999416,), (1398999418,), (1398999448,), (1398999451,), (1398999455,), (1398999456,), (1398999472,), (1398999475,), (1398999479,), (1398999481,), (1398999484,), (1398999515,), (1398999504,), (1398999505,), (1398999509,), (1398999512,), (1398999528,), (1398999530,), (1398999532,), (1398999534,), (1398999537,), (1398999555,), (1398999560,), (1398999561,), (1398999564,), (1398999567,), (1398999570,), (1398999578,), (1398999580,), (1398999582,), (1398999584,), (1398999587,), (1398999588,), (1398999602,), (1398999604,), (1398999605,), (1398999606,), (1398999609,), (1398999623,), (1398999625,), (1398999627,), (1398999631,), (1398999635,), (1398999638,), (1398999646,), (1398999647,), (1398999648,), (1398999658,), (1398999660,), (1398999662,), (1398999665,), (1398999667,), (1398999668,), (1398999684,), (1398999686,), (1398999688,), (1398999691,), (1398999693,), (1398999708,), (1398999709,), (1398999710,), (1398999711,), (1398999727,), (1398999729,), (1398999731,), (1398999733,), (1398999736,), (1398999738,), (1398999777,), (1398999779,), (1398999781,), (1398999783,), (1398999786,), (1398999801,), (1398999802,), (1398999803,), (1398999804,), (1398999807,), (1398999818,), (1398999821,), (1398999824,), (1398999826,), (1398999829,), (1398999853,), (1398999856,), (1398999859,), (1398999866,), (1398999879,), (1398999880,), (1398999882,), (1398999883,), (1398999884,), (1398999885,), (1398999888,), (1398999889,), (1398999892,), (1398999893,), (1398999900,), (1398999897,), (1398999898,), (1398999899,), (1398999915,), (1398999917,), (1398999919,), (1398999921,), (1398999937,), (1398999940,), (1398999942,), (1398999946,), (1398999950,), (1398999976,), (1398999979,), (1398999981,), (1398999985,), (1398999988,), (1398999997,), (1398999999,), (1399000001,), (1399000003,), (1399000006,), (1399000008,), (1399000022,), (1399000023,), (1399000024,), (1399000025,), (1399000028,), (1399000049,), (1399000051,), (1399000053,), (1399000055,), (1399000058,), (1399000061,), (1399000080,), (1399000081,), (1399000083,), (1399000085,), (1399000107,), (1399000112,), (1399000114,), (1399000116,), (1399000119,), (1399000122,), (1399000158,), (1399000160,), (1399000162,), (1399000164,), (1399000177,), (1399000179,), (1399000181,), (1399000183,), (1399000186,), (1399000189,), (1399000216,), (1399000220,), (1399000221,), (1399000222,), (1399000225,), (1399000239,), (1399000241,), (1399000243,), (1399000248,), (1399000254,), (1399000256,), (1399000266,), (1399000268,), (1399000270,), (1399000272,), (1399000303,), (1399000307,), (1399000309,), (1399000310,), (1399000313,), (1399000315,), (1399000346,), (1399000338,), (1399000342,), (1399000363,), (1399000365,), (1399000367,), (1399000371,), (1399000375,), (1399000395,), (1399000397,), (1399000399,), (1399000400,), (1399000403,), (1399000420,), (1399000422,), (1399000424,), (1399000426,), (1399000443,), (1399000444,), (1399000445,), (1399000446,), (1399000448,), (1399000450,), (1399000473,), (1399000474,), (1399000475,), (1399000476,), (1399000479,), (1399000493,), (1399000506,), (1399000514,), (1399000518,), (1399000521,), (1399000530,), (1399000533,), (1399000535,), (1399000537,), (1399000541,), (1399000570,), (1399000572,), (1399000574,), (1399000576,), (1399000578,), (1399000580,), (1399000591,), (1399000592,), (1399000593,), (1399000594,), (1399000626,), (1399000628,), (1399000637,), (1399000645,), (1399000649,), (1399000651,), (1399000692,), (1399000693,), (1399000694,), (1399000695,), (1399000716,), (1399000717,), (1399000718,), (1399000719,), (1399000722,), (1399000724,), (1399000737,), (1399000739,), (1399000741,), (1399000743,), (1399000746,), (1399000788,), (1399000790,), (1399000814,), (1399000808,), (1399000810,), (1399000812,), (1399000833,), (1399000835,), (1399000836,), (1399000837,), (1399000839,), (1399000841,), (1399000869,), (1399000870,), (1399000871,), (1399000904,), (1399000906,), (1399000908,), (1399000910,), (1399000935,), (1399000936,), (1399000937,), (1399000957,), (1399000959,), (1399000961,), (1399000963,), (1399000966,), (1399000968,), (1399000976,), (1399000979,), (1399000982,), (1399000986,), (1399001005,), (1399001007,), (1399001009,), (1399001011,), (1399001035,), (1399001040,), (1399001041,), (1399001042,), (1399001045,), (1399001064,), (1399001066,), (1399001068,), (1399001070,), (1399001073,), (1399001074,), (1399001084,), (1399001087,), (1399001089,), (1399001092,), (1399001095,), (1399001096,), (1399001112,), (1399001115,), (1399001122,), (1399001123,), (1399001124,), (1399001125,), (1399001128,), (1399001130,), (1399001149,), (1399001151,), (1399001153,), (1399001155,), (1399001158,), (1399001161,), (1399001174,), (1399001175,), (1399001176,), (1399001205,), (1399001207,), (1399001209,), (1399001211,), (1399001216,), (1399001220,), (1399001261,), (1399001262,), (1399001265,), (1399001268,), (1399001271,), (1399001274,), (1399001277,), (1399001243,), (1399001253,), (1399001256,), (1399001259,), (1399001281,), (1399001283,), (1399001285,), (1399001310,), (1399001312,), (1399001318,), (1399001327,), (1399001330,), (1399001333,), (1399001341,), (1399001343,), (1399001345,), (1399001347,), (1399001350,), (1399001363,), (1399001366,), (1399001368,), (1399001370,), (1399001420,), (1399001426,), (1399001428,), (1399001431,), (1399001434,), (1399001436,), (1399001438,), (1399001448,), (1399001450,), (1399001452,), (1399001454,), (1399001456,), (1399001459,), (1399001466,), (1399001468,), (1399001471,), (1399001474,), (1399001476,), (1399001478,), (1399001525,), (1399001526,), (1399001528,), (1399001529,), (1399001530,), (1399001531,), (1399001533,), (1399001534,), (1399001553,), (1399001554,), (1399001581,), (1399001584,), (1399001589,), (1399001593,), (1399001597,), (1399001604,), (1399001615,), (1399001617,), (1399001619,), (1399001621,), (1399001623,), (1399001625,), (1399001654,), (1399001656,), (1399001658,), (1399001662,), (1399001665,), (1399001666,), (1399001687,), (1399001689,), (1399001718,), (1399001753,), (1399001788,), (1399001824,), (1399002278,), (1399002338,), (1399002384,), (1399002420,), (1399002452,), (1399002484,), (1399002628,), (1399002630,), (1399002649,), (1399002652,), (1399002682,), (1399002718,), (1399003056,), (1399003091,), (1399003239,), (1399003284,), (1399003320,), (1399003353,), (1399003386,), (1399002854,), (1399002898,), (1399002993,), (1399003025,), (1399003525,), (1399003526,), (1399003530,), (1399003533,), (1399003536,), (1399003728,), (1399003763,), (1399003796,), (1399003827,), (1399003861,), (1399003905,), (1399004111,), (1399004171,), (1399004208,), (1399004241,), (1399004274,), (1399004316,), (1399004458,), (1399004472,), (1399004503,), (1399004542,), (1399004575,), (1399004645,), (1399004707,), (1399004829,), (1399004858,), (1399004859,), (1399004860,), (1399004934,), (1399004935,), (1399004936,), (1399004937,), (1399004940,), (1399004943,), (1399004971,), (1399005012,), (1399005022,), (1399005036,), (1399005051,), (1399005070,), (1399005071,), (1399005072,), (1399005073,), (1399005076,), (1399005119,), (1399005121,), (1399005123,), (1399005125,), (1399005127,), (1399005130,), (1399005141,), (1399005143,), (1399005437,), (1399005445,), (1399005446,), (1399005453,), (1399005456,), (1399005458,), (1399005471,), (1399005473,), (1399005475,), (1399005477,), (1399005481,), (1399005510,), (1399005512,), (1399005514,), (1399005516,), (1399005544,), (1399005548,), (1399005551,), (1399005582,), (1399005578,), (1399005580,), (1399005625,), (1399005628,), (1399005655,), (1399005669,), (1399005676,), (1399005886,), (1399005897,), (1399005901,), (1399005939,), (1399006087,), (1399006089,), (1399006091,), (1399006093,), (1399006096,), (1399006110,), (1399006111,), (1399006113,), (1399006115,), (1399006118,), (1399006120,), (1399006130,), (1399006132,), (1399006135,), (1399006139,), (1399006175,), (1399006178,), (1399006181,), (1399006188,), (1399006193,), (1399006209,), (1399006210,), (1399006211,), (1399006212,), (1399006214,), (1399006235,), (1399006236,), (1399006237,), (1399006239,), (1399006241,), (1399006268,), (1399006256,), (1399006258,), (1399006260,), (1399006262,), (1399006265,), (1399006278,), (1399006279,), (1399006280,), (1399006281,), (1399006301,), (1399006303,), (1399006305,), (1399006307,), (1399006310,), (1399006448,), (1399006450,), (1399006452,), (1399006454,), (1399006576,), (1399006582,), (1399006583,), (1399006584,), (1399006586,), (1399006595,), (1399006618,), (1399006619,), (1399006621,), (1399006623,), (1399006733,), (1399006735,), (1399006737,), (1399006739,), (1399006742,), (1399006745,), (1399006756,), (1399006758,), (1399006760,), (1399006762,), (1399007061,), (1399007102,), (1399007108,), (1399007111,), (1399007114,), (1399007116,), (1399007141,), (1399007148,), (1399007150,), (1399007152,), (1399007155,), (1399007158,), (1399007309,), (1399007311,), (1399007313,), (1399007360,), (1399007361,), (1399007362,), (1399007363,), (1399007366,), (1399007368,), (1399007506,), (1399007508,), (1399007510,), (1399007512,), (1399007564,), (1399007573,), (1399007576,), (1399007579,), (1399007582,), (1399007619,), (1399007705,), (1399007712,), (1399007761,), (1399007906,), (1399007899,), (1399007900,), (1399007901,), (1399007902,), (1399007916,), (1399007918,), (1399007920,), (1399007922,), (1399007924,), (1399007927,), (1399007951,), (1399007952,), (1399007956,), (1399007961,), (1399007964,), (1399007967,), (1399007980,), (1399007981,), (1399007982,), (1399007983,), (1399007984,), (1399007993,), (1399007996,), (1399007998,), (1399008004,), (1399008012,), (1399008016,), (1399008021,), (1399008023,), (1399008025,), (1399008027,), (1399008044,), (1399008049,), (1399008059,), (1399008069,), (1399008073,), (1399008087,), (1399008090,), (1399008097,), (1399008105,), (1399008114,), (1399008121,), (1399008136,), (1399008137,), (1399008142,), (1399008158,), (1399008204,), (1399008212,), (1399008214,), (1399008216,), (1399008241,), (1399008278,), (1399008429,), (1399008488,), (1399008523,), (1399008526,), (1399008595,), (1399008596,), (1399008597,), (1399008598,), (1399008601,), (1399008604,), (1399008615,), (1399008624,), (1399008628,), (1399008630,), (1399008633,), (1399008645,), (1399008647,), (1399008679,), (1399008711,), (1399008714,), (1399008716,), (1399008743,), (1399008748,), (1399008756,), (1399008764,), (1399008767,), (1399008772,), (1399008773,), (1399008777,), (1399008779,), (1399008781,), (1399008794,), (1399008787,), (1399008789,), (1399008791,), (1399008808,), (1399008811,), (1399008818,), (1399008819,), (1399008822,), (1399008834,), (1399008835,), (1399008836,), (1399008837,), (1399008871,), (1399008876,), (1399008881,), (1399008883,), (1399008886,), (1399008898,), (1399008921,), (1399008924,), (1399008925,), (1399008928,), (1399008941,), (1399008943,), (1399008945,), (1399008947,), (1399008950,), (1399008953,), (1399008963,), (1399008966,), (1399008968,), (1399008971,), (1399009004,), (1399009006,), (1399009007,), (1399009008,), (1399009011,), (1399009014,), (1399009028,), (1399009037,), (1399009040,), (1399009042,), (1399009059,), (1399009060,), (1399009061,), (1399009062,), (1399009186,), (1399009224,), (1399009258,), (1399009292,), (1399009326,), (1399009347,), (1399009351,), (1399009354,), (1399009387,), (1399009497,), (1399009553,), (1399009555,), (1399009557,), (1399009559,), (1399009562,), (1399009565,), (1399009575,), (1399009577,), (1399009580,), (1399009583,), (1399009587,), (1399009783,), (1399009690,), (1399009723,), (1399009752,), (1399010204,), (1399010260,), (1399010303,), (1399010337,), (1399010376,), (1399010423,), (1399010751,), (1399010787,), (1399010809,), (1399010812,), (1399010819,), (1399010833,), (1399010834,), (1399010835,), (1399010836,), (1399010837,), (1399011187,), (1399011219,), (1399011237,), (1399011238,), (1399011255,), (1399011375,), (1399011376,), (1399011377,), (1399011378,), (1399011381,), (1399011739,), (1399011772,), (1399011805,), (1399011837,), (1399012196,), (1399012311,), (1399012343,), (1399012379,), (1399012412,), (1399012445,), (1399012468,), (1399012470,), (1399012472,), (1399012474,), (1399012477,), (1399012683,), (1399012739,), (1399012810,), (1399012875,), (1399012944,), (1399012986,), (1399013349,), (1399013383,), (1399013415,), (1399013448,), (1399013482,), (1399013516,), (1399013930,), (1399013993,), (1399014058,), (1399014117,), (1399014153,), (1399014244,), (1399014246,), (1399014248,), (1399014250,), (1399014253,), (1399014256,), (1399014594,), (1399014611,), (1399014613,), (1399014622,), (1399014675,), (1399014708,), (1399014927,), (1399014949,), (1399014979,), (1399015006,), (1399015066,), (1399015051,), (1399015053,), (1399015056,), (1399015059,), (1399015062,), (1399015085,), (1399015094,), (1399015095,), (1399015129,), (1399015175,), (1399015215,), (1399015401,), (1399015421,), (1399015428,), (1399015432,), (1399015436,), (1399015438,), (1399015440,), (1399015442,), (1399015444,), (1399015448,), (1399015450,), (1399015451,), (1399015452,), (1399015455,), (1399015463,), (1399015465,), (1399015467,), (1399015469,), (1399015472,), (1399015632,), (1399015665,), (1399015693,), (1399015695,), (1399015698,), (1399015699,), (1399015795,), (1399015797,), (1399015799,), (1399015801,), (1399015846,), (1399015848,), (1399015850,), (1399015852,), (1399015855,), (1399015867,), (1399015902,), (1399015904,), (1399015907,), (1399015910,), (1399015913,), (1399015917,), (1399015981,), (1399015987,), (1399015988,), (1399016150,), (1399016152,), (1399016165,), (1399016198,), (1399016206,), (1399016209,), (1399016358,), (1399016360,), (1399016362,), (1399016374,), (1399016377,), (1399016379,), (1399016381,), (1399016384,), (1399016388,), (1399016679,), (1399016723,), (1399016777,), (1399016811,), (1399016842,), (1399016874,), (1399017170,), (1399017203,), (1399017236,), (1399017270,), (1399017495,), (1399017389,), (1399017423,), (1399017455,), (1399017471,), (1399017476,), (1399017576,), (1399017578,), (1399017586,), (1399017590,), (1399017593,), (1399017867,), (1399017897,), (1399017905,), (1399017940,), (1399017942,), (1399017944,), (1399017946,), (1399017949,), (1399017951,), (1399017958,), (1399017961,), (1399017963,), (1399017991,), (1399017999,), (1399018001,), (1399018003,), (1399018006,), (1399018008,), (1399018032,), (1399018034,), (1399018035,), (1399018037,), (1399018124,), (1399018136,), (1399018151,), (1399018161,), (1399018173,), (1399018204,), (1399018239,), (1399018252,), (1399018254,), (1399018256,), (1399018265,), (1399018322,), (1399018324,), (1399018327,), (1399018330,), (1399018354,), (1399018552,), (1399018567,), (1399018568,), (1399018592,), (1399018605,), (1399018614,), (1399018631,), (1399018633,), (1399018635,), (1399018637,), (1399018640,), (1399018655,), (1399018657,), (1399018659,), (1399018661,), (1399018664,), (1399019074,), (1399019084,), (1399019120,), (1399019155,), (1399019188,), (1399019796,), (1399032712,), (1399032847,), (1399032853,), (1399032860,), (1399032863,), (1399032866,), (1399032878,), (1399032881,), (1399032884,), (1399032895,), (1399033230,), (1399033288,), (1399033317,), (1399033347,), (1399033383,), (1399033417,), (1399033933,), (1399034020,), (1399034114,), (1399034192,), (1399034254,), (1399034832,), (1399034862,), (1399034877,), (1399034878,), (1399034881,), (1399034883,), (1399035153,), (1399035186,), (1399035220,), (1399035256,), (1399035287,), (1399035376,), (1399035406,), (1399035454,), (1399035522,), (1399035615,), (1399036063,), (1399036102,), (1399036164,), (1399036233,), (1399036300,), (1399036337,), (1399036527,), (1399036529,), (1399036531,), (1399036533,), (1399036560,), (1399036562,), (1399036564,), (1399036566,), (1399036568,), (1399036569,), (1399036584,), (1399036585,), (1399036586,), (1399036587,), (1399036602,), (1399036604,), (1399036606,), (1399036608,), (1399036612,), (1399036615,), (1399036657,), (1399036791,), (1399036792,), (1399036793,), (1399036794,), (1399036800,), (1399036816,), (1399036858,), (1399036846,), (1399036848,), (1399036850,), (1399036852,), (1399036855,), (1399036952,), (1399036987,), (1399037027,), (1399037065,), (1399037076,), (1399037095,), (1399037102,), (1399037103,), (1399037104,), (1399037106,), (1399037160,), (1399037162,), (1399037164,), (1399037166,), (1399037169,), (1399037193,), (1399037194,), (1399037200,), (1399037203,), (1399037206,), (1399037258,), (1399037291,), (1399037326,), (1399037361,), (1399037393,), (1399037424,), (1399037754,), (1399037791,), (1399037817,), (1399037819,), (1399037822,), (1399038003,), (1399038021,), (1399038044,), (1399038085,), (1399038416,), (1399038451,), (1399038485,), (1399038522,), (1399038556,), (1399038593,), (1399038684,), (1399038687,), (1399038690,), (1399038789,), (1399038791,), (1399038793,), (1399038795,), (1399038798,), (1399038809,), (1399038810,), (1399038811,), (1399038812,), (1399038815,), (1399038834,), (1399038836,), (1399038865,), (1399038921,), (1399038931,), (1399039176,), (1399039181,), (1399039190,), (1399039283,), (1399039274,), (1399039276,), (1399039278,), (1399039280,), (1399039299,), (1399039300,), (1399039302,), (1399039304,), (1399039322,), (1399039327,), (1399039329,), (1399039331,), (1399039334,), (1399039337,), (1399039455,), (1399039458,), (1399039462,), (1399039465,), (1399039468,), (1399039471,), (1399039486,), (1399039488,), (1399039490,), (1399039492,), (1399039527,), (1399039536,), (1399039551,), (1399039556,), (1399039559,), (1399039602,), (1399039774,), (1399039777,), (1399039781,), (1399039785,), (1399039788,), (1399039807,), (1399039809,), (1399039811,), (1399039813,), (1399039816,), (1399039823,), (1399039906,), (1399039907,), (1399039909,), (1399039911,), (1399039914,), (1399039922,), (1399039979,), (1399039981,), (1399039983,), (1399039985,), (1399039998,), (1399040001,), (1399040004,), (1399040007,), (1399040010,), (1399040012,), (1399040028,), (1399040029,), (1399040030,), (1399040202,), (1399040208,), (1399040212,), (1399040234,), (1399040236,), (1399040238,), (1399040411,), (1399040448,), (1399040450,), (1399040452,), (1399040475,), (1399040478,), (1399040480,), (1399040482,), (1399040486,), (1399040489,), (1399040548,), (1399040538,), (1399040541,), (1399040543,), (1399040545,), (1399040619,), (1399040652,), (1399040688,), (1399040728,), (1399040762,), (1399040783,), (1399040864,), (1399040881,), (1399040883,), (1399040885,), (1399040990,), (1399040991,), (1399040995,), (1399040997,), (1399041002,), (1399041007,), (1399041027,), (1399041030,), (1399041033,), (1399041036,), (1399041124,), (1399041133,), (1399041134,), (1399041139,), (1399041152,), (1399041155,), (1399041191,), (1399041218,), (1399041258,), (1399041292,), (1399041327,), (1399041583,), (1399041585,), (1399041587,), (1399041591,), (1399041595,), (1399041599,), (1399041616,), (1399041620,), (1399041624,), (1399041628,), (1399041632,), (1399041651,), (1399041655,), (1399041657,), (1399041659,), (1399041702,), (1399041703,), (1399041704,), (1399041705,), (1399041708,), (1399041711,), (1399041728,), (1399041730,), (1399041733,), (1399041736,), (1399041789,), (1399041794,), (1399041798,), (1399041810,), (1399041813,), (1399041829,), (1399041830,), (1399041832,), (1399041834,), (1399041837,), (1399041852,), (1399041854,), (1399041856,), (1399041864,), (1399041874,), (1399041876,), (1399041923,), (1399041918,), (1399041919,), (1399041921,), (1399041949,), (1399041950,), (1399041952,), (1399041954,), (1399041957,), (1399041960,), (1399041979,), (1399041981,), (1399041983,), (1399041985,), (1399041988,), (1399042010,), (1399042041,), (1399042075,), (1399042135,), (1399042172,), (1399042361,), (1399042383,), (1399042403,), (1399042407,), (1399042466,), (1399042468,), (1399042471,), (1399042475,), (1399042480,), (1399042482,), (1399042495,), (1399042497,), (1399042499,), (1399042501,), (1399042532,), (1399042546,), (1399042585,), (1399042623,), (1399042660,), (1399042791,), (1399042794,), (1399042796,), (1399042798,), (1399042801,), (1399042838,), (1399042840,), (1399042842,), (1399042860,), (1399042894,), (1399043060,), (1399043093,), (1399043129,), (1399043179,), (1399043193,), (1399043207,), (1399043265,), (1399043266,), (1399043268,), (1399043270,), (1399043289,), (1399043290,), (1399043291,), (1399043292,), (1399043295,), (1399043307,), (1399043310,), (1399043313,), (1399043316,), (1399043317,), (1399043359,), (1399043391,), (1399043423,), (1399043459,), (1399043494,), (1399043779,), (1399043740,), (1399043766,), (1399043771,), (1399043774,), (1399043777,), (1399043942,), (1399043943,), (1399043944,), (1399043945,), (1399044025,), (1399044058,), (1399044093,), (1399044127,), (1399044158,), (1399044396,), (1399044398,), (1399044401,), (1399044424,), (1399044461,), (1399044543,), (1399044545,), (1399044552,), (1399044592,), (1399044626,), (1399044633,), (1399044725,), (1399044727,), (1399044728,), (1399044729,), (1399044766,), (1399044768,), (1399044770,), (1399044773,), (1399044776,), (1399044777,), (1399044792,), (1399044793,), (1399044796,), (1399044799,), (1399044802,), (1399044811,), (1399044834,), (1399044835,), (1399044841,), (1399044848,), (1399044850,), (1399044853,), (1399044859,), (1399044861,), (1399044890,), (1399044927,), (1399044960,), (1399044996,), (1399045027,), (1399045050,), (1399045078,), (1399045097,), (1399045099,), (1399045101,), (1399045109,), (1399045110,), (1399045303,), (1399045307,), (1399045312,), (1399045374,), (1399045392,), (1399045394,), (1399045403,), (1399045406,), (1399045438,), (1399045458,), (1399045460,), (1399045462,), (1399045464,), (1399045466,), (1399045468,), (1399045477,), (1399045480,), (1399045483,), (1399045486,), (1399045505,), (1399045506,), (1399045507,), (1399045508,), (1399045511,), (1399045513,), (1399045818,), (1399045850,), (1399045886,), (1399045919,), (1399045954,), (1399046196,), (1399046197,), (1399046198,), (1399046199,), (1399046202,), (1399046229,), (1399046605,), (1399046666,), (1399046748,), (1399047255,), (1399047256,), (1399047257,), (1399047258,), (1399047261,), (1399047264,), (1399047440,), (1399047470,), (1399047495,), (1399047496,), (1399047516,), (1399047574,), (1399047576,), (1399047578,), (1399047580,), (1399047583,), (1399047586,), (1399047718,), (1399047752,), (1399047785,), (1399047817,), (1399047849,), (1399047886,), (1399048019,), (1399048054,), (1399048097,), (1399048133,), (1399048168,), (1399048285,), (1399048320,), (1399048361,), (1399048397,), (1399048399,), (1399048497,), (1399048498,), (1399048499,), (1399048500,), (1399048503,), (1399048539,), (1399048785,), (1399048846,), (1399048879,), (1399048914,), (1399048949,), (1399049193,), (1399049225,), (1399049251,), (1399049252,), (1399049536,), (1399049377,), (1399049389,), (1399049421,), (1399049460,), (1399049504,), (1399049809,), (1399049972,), (1399050025,), (1399050081,), (1399050350,), (1399050352,), (1399050364,), (1399050396,), (1399050429,), (1399050462,), (1399050738,), (1399050775,), (1399050798,), (1399050799,), (1399050987,), (1399050993,), (1399051011,), (1399051022,), (1399051042,), (1399051057,), (1399051058,), (1399051090,), (1399051206,), (1399051214,), (1399051225,), (1399051259,), (1399051266,), (1399051531,), (1399051565,), (1399051624,), (1399051665,), (1399051747,), (1399051750,), (1399051753,), (1399051757,), (1399051760,), (1399051764,), (1399051780,), (1399051787,), (1399051788,), (1399051790,), (1399051807,), (1399051809,), (1399051811,), (1399051832,), (1399051869,), (1399051906,), (1399052381,), (1399052457,), (1399052504,), (1399052520,), (1399052668,), (1399052670,), (1399052671,), (1399052695,), (1399052746,), (1399052798,), (1399052885,), (1399052943,), (1399052979,), (1399053012,), (1399053047,), (1399053292,), (1399053237,), (1399053239,), (1399053266,), (1399053290,), (1399053329,), (1399053367,), (1399053405,), (1399053431,), (1399053533,), (1399053535,), (1399053537,), (1399053539,), (1399053542,), (1399053545,), (1399053567,), (1399053568,), (1399053569,), (1399053570,), (1399053572,), (1399053614,), (1399053616,), (1399053620,), (1399053627,), (1399053630,), (1399053638,), (1399053812,), (1399053842,), (1399053848,), (1399053849,), (1399053932,), (1399053934,), (1399053951,), (1399053994,), (1399054275,), (1399054308,), (1399054339,), (1399054383,), (1399054735,), (1399054772,), (1399054778,), (1399054780,), (1399054942,), (1399054953,), (1399054960,), (1399054962,), (1399054976,), (1399055140,), (1399055216,), (1399055268,), (1399055310,), (1399055346,), (1399055363,), (1399055432,), (1399055464,), (1399055498,), (1399055534,), (1399055925,), (1399055959,), (1399055991,), (1399056026,), (1399056061,), (1399056096,), (1399056379,), (1399056471,), (1399056474,), (1399056478,), (1399056482,), (1399056617,), (1399056621,), (1399056624,), (1399056669,), (1399056709,), (1399057199,), (1399057070,), (1399057108,), (1399057145,), (1399057195,), (1399057310,), (1399057312,), (1399057338,), (1399057394,), (1399057809,), (1399057811,), (1399057813,), (1399057863,), (1399057880,), (1399057948,), (1399058386,), (1399058499,), (1399058502,), (1399058604,), (1399059827,), (1399059818,), (1399059821,), (1399059824,), (1399060178,), (1399060219,), (1399060262,), (1399060274,), (1399060276,), (1399060312,), (1399060485,), (1399060493,), (1399060496,), (1399060498,), (1399060516,), (1399060518,), (1399060520,), (1399060522,), (1399060525,), (1399060528,), (1399060549,), (1399060553,), (1399060558,), (1399060562,), (1399060631,), (1399060633,), (1399060635,), (1399060636,), (1399060675,), (1399060678,), (1399060680,), (1399060682,), (1399060685,), (1399060688,), (1399060702,), (1399060705,), (1399060708,), (1399060721,), (1399060737,), (1399060752,), (1399060766,), (1399060774,), (1399060779,), (1399060788,), (1399060818,), (1399060819,), (1399060820,), (1399060821,), (1399060827,), (1399060838,), (1399060840,), (1399060892,), (1399063181,), (1399078396,), (1399078483,), (1399078485,), (1399078648,), (1399078735,), (1399078750,), (1399078778,), (1399078786,), (1399078872,), (1399078874,), (1399078876,), (1399078878,), (1399078881,), (1399078921,), (1399078953,), (1399078954,), (1399078967,), (1399078972,), (1399079005,), (1399079034,), (1399079036,), (1399079040,), (1399079074,), (1399079107,), (1399079525,), (1399079470,), (1399079488,), (1399079494,), (1399079500,), (1399079622,), (1399079624,), (1399079626,), (1399079628,), (1399079650,), (1399079653,), (1399079655,), (1399079686,), (1399079688,), (1399079690,), (1399079692,), (1399079695,), (1399079712,), (1399079715,), (1399079716,), (1399079718,), (1399079721,), (1399079966,), (1399080001,), (1399080035,), (1399080068,), (1399080123,), (1399080125,), (1399080127,), (1399080129,), (1399080132,), (1399080135,), (1399080161,), (1399080163,), (1399080169,), (1399080185,), (1399080189,), (1399080511,), (1399080525,), (1399080528,), (1399080530,), (1399080568,), (1399080570,), (1399080572,), (1399080574,), (1399080577,), (1399080579,), (1399080599,), (1399080602,), (1399080605,), (1399080607,), (1399080629,), (1399080630,), (1399080631,), (1399080632,), (1399080674,), (1399080676,), (1399080678,), (1399080680,), (1399080683,), (1399080686,), (1399080712,), (1399080716,), (1399080719,), (1399080729,), (1399080731,), (1399080732,), (1399080733,), (1399080737,), (1399081076,), (1399080902,), (1399080939,), (1399080972,), (1399081010,), (1399081044,), (1399081288,), (1399081291,), (1399081293,), (1399081295,), (1399081514,), (1399081518,), (1399081522,), (1399081526,), (1399081530,), (1399081532,), (1399081550,), (1399081558,), (1399081560,), (1399081562,), (1399081565,), (1399081567,), (1399081581,), (1399081584,), (1399081586,), (1399081588,), (1399081709,), (1399081745,), (1399081779,), (1399081815,), (1399081850,), (1399081883,), (1399082206,), (1399082242,), (1399082276,), (1399082933,), (1399082966,), (1399083000,), (1399083033,), (1399083451,), (1399083498,), (1399083535,), (1399083568,), (1399083602,), (1399083844,), (1399083877,), (1399083938,), (1399083988,), (1399084034,), (1399084224,), (1399084232,), (1399084234,), (1399084236,), (1399084260,), (1399084262,), (1399084282,), (1399084319,), (1399084353,), (1399084388,), (1399084990,), (1399085022,), (1399085054,), (1399085088,), (1399085120,), (1399085663,), (1399085731,), (1399085793,), (1399086258,), (1399086293,), (1399086322,), (1399086352,), (1399086395,), (1399086430,), (1399086932,), (1399086738,), (1399086772,), (1399086830,), (1399086896,), (1399087087,), (1399087089,), (1399087113,), (1399087115,), (1399087116,), (1399087117,), (1399087120,), (1399087142,), (1399087144,), (1399087146,), (1399087148,), (1399087151,), (1399087153,), (1399087177,), (1399087179,), (1399087181,), (1399087183,), (1399087186,), (1399087200,), (1399087201,), (1399087281,), (1399087283,), (1399087285,), (1399087288,), (1399087314,), (1399087380,), (1399087389,), (1399087391,), (1399087393,), (1399087396,), (1399087398,), (1399087400,), (1399087415,), (1399087417,), (1399087419,), (1399087429,), (1399087430,), (1399087432,), (1399087434,), (1399087437,), (1399087470,), (1399087473,), (1399087476,), (1399087478,), (1399087480,), (1399087508,), (1399087510,), (1399087511,), (1399087527,), (1399087529,), (1399087531,), (1399087533,), (1399087576,), (1399087578,), (1399087579,), (1399087591,), (1399087625,), (1399087653,), (1399087656,), (1399087682,), (1399087724,), (1399087722,), (1399087752,), (1399087753,), (1399087767,), (1399087769,), (1399087856,), (1399088022,), (1399088155,), (1399088159,), (1399088284,), (1399088279,), (1399088282,), (1399088307,), (1399088309,), (1399088311,), (1399088313,), (1399088323,), (1399088324,), (1399088325,), (1399088326,), (1399088374,), (1399088375,), (1399088378,), (1399088381,), (1399088413,), (1399088534,), (1399088660,), (1399088713,), (1399088715,), (1399089580,), (1399089568,), (1399089573,), (1399089577,), (1399089929,), (1399089981,), (1399090023,), (1399090096,), (1399090132,), (1399090171,), (1399090554,), (1399090600,), (1399090662,), (1399090728,), (1399091241,), (1399091244,), (1399091247,), (1399091266,), (1399091281,), (1399091291,), (1399091382,), (1399091414,), (1399091449,), (1399091484,), (1399091738,), (1399091781,), (1399091794,), (1399091799,), (1399091802,), (1399091805,), (1399091831,), (1399091836,), (1399091847,), (1399091852,), (1399091939,), (1399091973,), (1399092006,), (1399092142,), (1399092143,), (1399092152,), (1399092153,), (1399092212,), (1399092214,), (1399092216,), (1399092222,), (1399092256,), (1399092288,), (1399092329,), (1399092350,), (1399092381,), (1399092413,), (1399092493,), (1399092498,), (1399092531,), (1399092535,), (1399092538,), (1399092542,), (1399092607,), (1399092609,), (1399092611,), (1399092613,), (1399092654,), (1399092687,), (1399092710,), (1399092713,), (1399092715,), (1399092717,), (1399092749,), (1399092744,), (1399092745,), (1399092746,), (1399092747,), (1399092762,), (1399092764,), (1399092766,), (1399092768,), (1399092770,), (1399092786,), (1399092788,), (1399092790,), (1399092792,), (1399092794,), (1399092809,), (1399092811,), (1399092814,), (1399092817,), (1399092820,), (1399092864,), (1399092865,), (1399092866,), (1399093023,), (1399093057,), (1399093093,), (1399093130,), (1399093166,), (1399093203,), (1399093228,), (1399093232,), (1399093234,), (1399093236,), (1399093253,), (1399093254,), (1399093255,), (1399093256,), (1399093278,), (1399093281,), (1399093284,), (1399093287,), (1399093332,), (1399093334,), (1399093335,), (1399093336,), (1399093339,), (1399093341,), (1399093424,), (1399093467,), (1399093503,), (1399093657,), (1399093659,), (1399093670,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12122025': {'nb_upload': 52, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29380128]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1399093670, 1399093659, 1399093657] map_info['map_portfolio_photo'] : {29380128: [1399093670, 1399093659, 1399093657, 1399093503, 1399093467, 1399093424, 1399093341, 1399093339, 1399093336, 1399093335, 1399093334, 1399093332, 1399093287, 1399093284, 1399093281, 1399093278, 1399093256, 1399093255, 1399093254, 1399093253, 1399093236, 1399093234, 1399093232, 1399093228, 1399093203, 1399093166, 1399093130, 1399093093, 1399093057, 1399093023, 1399092866, 1399092865, 1399092864, 1399092820, 1399092817, 1399092814, 1399092811, 1399092809, 1399092794, 1399092792, 1399092790, 1399092788, 1399092786, 1399092770, 1399092768, 1399092766, 1399092764, 1399092762, 1399092747, 1399092746, 1399092745, 1399092744]} final : True mtd_id 4302 list_pids : [1399093670, 1399093659, 1399093657] Looping around the photos to save general results len do output : 1 /29380128Didn'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, '4215399') ('4302', '29380128', '1399093670', None, None, None, None, None, '4215399') ('4302', None, None, None, None, None, None, None, '4215399') ('4302', '29380128', '1399093659', None, None, None, None, None, '4215399') ('4302', None, None, None, None, None, None, None, '4215399') ('4302', '29380128', '1399093657', None, None, None, None, None, '4215399') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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, '29380128', 'None', None, None, None, None, '4215399'), ('4302', '29380128', '1399093670', None, None, None, None, None, '4215399'), ('4302', '29380128', '1399093659', None, None, None, None, None, '4215399'), ('4302', '29380128', '1399093657', None, None, None, None, None, '4215399')] time used for this insertion : 0.013923406600952148 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.8824777603149414 time spend to save output : 0.014086246490478516 total time spend for step 5 : 3.89656400680542 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 (4215399) 2.20user 2.47system 0:13.32elapsed 35%CPU (0avgtext+0avgdata 166048maxresident)k 1072inputs+12504outputs (15major+75310minor)pagefaults 0swaps