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 : 2248987 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 (4230892) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4230892) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29442683 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4230892'] with mtr_portfolio_ids : ['29442683'] and first list_photo_ids : [] new path : /proc/2248987/ Name: python3 Umask: 0002 State: R (running) Tgid: 2248987 Ngid: 0 Pid: 2248987 PPid: 2248986 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2248987 NSpid: 2248987 NSpgid: 2247751 NSsid: 2247751 VmPeak: 1113376 kB VmSize: 1113376 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105352 kB VmRSS: 105352 kB RssAnon: 66304 kB RssFile: 39048 kB RssShmem: 0 kB VmData: 872104 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 628 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: 54 nonvoluntary_ctxt_switches: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2248987', 'Ngid': '0', 'Pid': '2248987', 'PPid': '2248986', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2248987', 'NSpid': '2248987', 'NSpgid': '2247751', 'NSsid': '2247751', 'VmPeak': '1113376 kB', 'VmSize': '1113376 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105352 kB', 'VmRSS': '105352 kB', 'RssAnon': '66304 kB', 'RssFile': '39048 kB', 'RssShmem': '0 kB', 'VmData': '872104 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '628 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': '54', 'nonvoluntary_ctxt_switches': '89'} ('datou_batch_current', '2248987', '1113376', '0', '1113376', '872104', '105352', b'', 'marlene', '4230892') 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 (29442683) 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 (4230892 ) ) 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 (29442683) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1399545272, 'portfolio_id': 29442683}, {'photo_id': 1399545271, 'portfolio_id': 29442683}, {'photo_id': 1399545262, 'portfolio_id': 29442683}, {'photo_id': 1399545244, 'portfolio_id': 29442683}, {'photo_id': 1399545220, 'portfolio_id': 29442683}, {'photo_id': 1399545218, 'portfolio_id': 29442683}, {'photo_id': 1399545216, 'portfolio_id': 29442683}, {'photo_id': 1399545215, 'portfolio_id': 29442683}, {'photo_id': 1399545214, 'portfolio_id': 29442683}, {'photo_id': 1399545213, 'portfolio_id': 29442683}, {'photo_id': 1399545191, 'portfolio_id': 29442683}, {'photo_id': 1399545189, 'portfolio_id': 29442683}, {'photo_id': 1399545187, 'portfolio_id': 29442683}, {'photo_id': 1399545186, 'portfolio_id': 29442683}, {'photo_id': 1399545185, 'portfolio_id': 29442683}, {'photo_id': 1399545183, 'portfolio_id': 29442683}, {'photo_id': 1399545161, 'portfolio_id': 29442683}, {'photo_id': 1399545160, 'portfolio_id': 29442683}, {'photo_id': 1399545159, 'portfolio_id': 29442683}, {'photo_id': 1399545158, 'portfolio_id': 29442683}, {'photo_id': 1399545142, 'portfolio_id': 29442683}, {'photo_id': 1399545140, 'portfolio_id': 29442683}, {'photo_id': 1399545138, 'portfolio_id': 29442683}, {'photo_id': 1399545136, 'portfolio_id': 29442683}, {'photo_id': 1399545120, 'portfolio_id': 29442683}, {'photo_id': 1399545116, 'portfolio_id': 29442683}, {'photo_id': 1399545112, 'portfolio_id': 29442683}, {'photo_id': 1399545108, 'portfolio_id': 29442683}, {'photo_id': 1399545106, 'portfolio_id': 29442683}, {'photo_id': 1399545104, 'portfolio_id': 29442683}, {'photo_id': 1399545089, 'portfolio_id': 29442683}, {'photo_id': 1399545086, 'portfolio_id': 29442683}, {'photo_id': 1399545084, 'portfolio_id': 29442683}, {'photo_id': 1399545082, 'portfolio_id': 29442683}, {'photo_id': 1399545080, 'portfolio_id': 29442683}, {'photo_id': 1399545078, 'portfolio_id': 29442683}, {'photo_id': 1399545062, 'portfolio_id': 29442683}, {'photo_id': 1399545061, 'portfolio_id': 29442683}, {'photo_id': 1399545060, 'portfolio_id': 29442683}, {'photo_id': 1399545046, 'portfolio_id': 29442683}, {'photo_id': 1399545045, 'portfolio_id': 29442683}, {'photo_id': 1399545043, 'portfolio_id': 29442683}, {'photo_id': 1399545027, 'portfolio_id': 29442683}, {'photo_id': 1399545026, 'portfolio_id': 29442683}, {'photo_id': 1399545025, 'portfolio_id': 29442683}, {'photo_id': 1399545006, 'portfolio_id': 29442683}, {'photo_id': 1399545005, 'portfolio_id': 29442683}, {'photo_id': 1399545004, 'portfolio_id': 29442683}, {'photo_id': 1399545003, 'portfolio_id': 29442683}, {'photo_id': 1399544981, 'portfolio_id': 29442683}] map_portfolio_id_photo_id: {29442683: [1399545272, 1399545271, 1399545262, 1399545244, 1399545220, 1399545218, 1399545216, 1399545215, 1399545214, 1399545213, 1399545191, 1399545189, 1399545187, 1399545186, 1399545185, 1399545183, 1399545161, 1399545160, 1399545159, 1399545158, 1399545142, 1399545140, 1399545138, 1399545136, 1399545120, 1399545116, 1399545112, 1399545108, 1399545106, 1399545104, 1399545089, 1399545086, 1399545084, 1399545082, 1399545080, 1399545078, 1399545062, 1399545061, 1399545060, 1399545046, 1399545045, 1399545043, 1399545027, 1399545026, 1399545025, 1399545006, 1399545005, 1399545004, 1399545003, 1399544981]} ##### 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.018956899642944336 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Dec 15 20:14: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29442683) 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 : 29442683 get user id for portfolio 29442683 get sub ptf for main ptf 29442683, type 3726 and hashtags ['environnement', 'autre_refus', 'plastique', 'kraft', 'metal', 'Carton_brun', 'Carton_gris', 'cartonnette', 'flou', 'mal_croppe', 'Teint_Dans_La_Masse', 'papier'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29442683 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','plastique','kraft','metal','Carton_brun','Carton_gris','cartonnette','flou','mal_croppe','Teint_Dans_La_Masse','papier')) 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`=29442683 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','plastique','kraft','metal','Carton_brun','Carton_gris','cartonnette','flou','mal_croppe','Teint_Dans_La_Masse','papier')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 29442683, 'sub_port_id': 29442692, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066473, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 26)}, 'autre_refus': {'main_port_id': 29442683, 'sub_port_id': 29442693, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066474, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 26)}, 'metal': {'main_port_id': 29442683, 'sub_port_id': 29442694, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066475, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 26)}, 'environnement': {'main_port_id': 29442683, 'sub_port_id': 29442695, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066476, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 29442683, 'sub_port_id': 29442696, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066477, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 26)}, 'Carton_brun': {'main_port_id': 29442683, 'sub_port_id': 29442697, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066478, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 26)}, 'mal_croppe': {'main_port_id': 29442683, 'sub_port_id': 29442698, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066479, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 26)}, 'flou': {'main_port_id': 29442683, 'sub_port_id': 29442699, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066480, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 26)}, 'kraft': {'main_port_id': 29442683, 'sub_port_id': 29442700, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066481, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 26)}, 'Carton_gris': {'main_port_id': 29442683, 'sub_port_id': 29442701, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066482, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 26)}, 'plastique': {'main_port_id': 29442683, 'sub_port_id': 29442702, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066483, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 26)}, 'cartonnette': {'main_port_id': 29442683, 'sub_port_id': 29442703, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066484, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29442692 , 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=29442683 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 (29442692) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29442683) result : ((1399544981,), (1399545003,), (1399545004,), (1399545005,), (1399545006,), (1399545025,), (1399545026,), (1399545027,), (1399545043,), (1399545045,), (1399545046,), (1399545060,), (1399545061,), (1399545062,), (1399545078,), (1399545080,), (1399545082,), (1399545084,), (1399545086,), (1399545089,), (1399545104,), (1399545106,), (1399545108,), (1399545112,), (1399545116,), (1399545120,), (1399545136,), (1399545138,), (1399545140,), (1399545142,), (1399545158,), (1399545159,), (1399545160,), (1399545161,), (1399545183,), (1399545185,), (1399545186,), (1399545187,), (1399545189,), (1399545191,), (1399545213,), (1399545214,), (1399545215,), (1399545216,), (1399545218,), (1399545220,), (1399545244,), (1399545262,), (1399545271,), (1399545272,)) 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 29442693 , 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=29442683 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 (29442693) result : ((1399545098,), (1399545124,), (1399545204,), (1399545205,), (1399545232,), (1399545256,), (1399545258,), (1399545259,), (1399545261,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29442683) result : ((1399544981,), (1399545003,), (1399545004,), (1399545005,), (1399545006,), (1399545025,), (1399545026,), (1399545027,), (1399545043,), (1399545045,), (1399545046,), (1399545060,), (1399545061,), (1399545062,), (1399545078,), (1399545080,), (1399545082,), (1399545084,), (1399545086,), (1399545089,), (1399545104,), (1399545106,), (1399545108,), (1399545112,), (1399545116,), (1399545120,), (1399545136,), (1399545138,), (1399545140,), (1399545142,), (1399545158,), (1399545159,), (1399545160,), (1399545161,), (1399545183,), (1399545185,), (1399545186,), (1399545187,), (1399545189,), (1399545191,), (1399545213,), (1399545214,), (1399545215,), (1399545216,), (1399545218,), (1399545220,), (1399545244,), (1399545262,), (1399545271,), (1399545272,)) 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 29442694 , 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=29442683 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 (29442694) result : ((1399545257,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29442683) result : ((1399544981,), (1399545003,), (1399545004,), (1399545005,), (1399545006,), (1399545025,), (1399545026,), (1399545027,), (1399545043,), (1399545045,), (1399545046,), (1399545060,), (1399545061,), (1399545062,), (1399545078,), (1399545080,), (1399545082,), (1399545084,), (1399545086,), (1399545089,), (1399545104,), (1399545106,), (1399545108,), (1399545112,), (1399545116,), (1399545120,), (1399545136,), (1399545138,), (1399545140,), (1399545142,), (1399545158,), (1399545159,), (1399545160,), (1399545161,), (1399545183,), (1399545185,), (1399545186,), (1399545187,), (1399545189,), (1399545191,), (1399545213,), (1399545214,), (1399545215,), (1399545216,), (1399545218,), (1399545220,), (1399545244,), (1399545262,), (1399545271,), (1399545272,)) 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 29442695 , 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=29442683 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 (29442695) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29442683) result : ((1399544981,), (1399545003,), (1399545004,), (1399545005,), (1399545006,), (1399545025,), (1399545026,), (1399545027,), (1399545043,), (1399545045,), (1399545046,), (1399545060,), (1399545061,), (1399545062,), (1399545078,), (1399545080,), (1399545082,), (1399545084,), (1399545086,), (1399545089,), (1399545104,), (1399545106,), (1399545108,), (1399545112,), (1399545116,), (1399545120,), (1399545136,), (1399545138,), (1399545140,), (1399545142,), (1399545158,), (1399545159,), (1399545160,), (1399545161,), (1399545183,), (1399545185,), (1399545186,), (1399545187,), (1399545189,), (1399545191,), (1399545213,), (1399545214,), (1399545215,), (1399545216,), (1399545218,), (1399545220,), (1399545244,), (1399545262,), (1399545271,), (1399545272,)) 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 29442696 , 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=29442683 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 (29442696) result : ((1399545121,), (1399545122,), (1399545231,), (1399545243,), (1399545245,), (1399545246,), (1399545247,), (1399545248,), (1399545249,), (1399545250,), (1399545251,), (1399545253,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29442683) result : ((1399544981,), (1399545003,), (1399545004,), (1399545005,), (1399545006,), (1399545025,), (1399545026,), (1399545027,), (1399545043,), (1399545045,), (1399545046,), (1399545060,), (1399545061,), (1399545062,), (1399545078,), (1399545080,), (1399545082,), (1399545084,), (1399545086,), (1399545089,), (1399545104,), (1399545106,), (1399545108,), (1399545112,), (1399545116,), (1399545120,), (1399545136,), (1399545138,), (1399545140,), (1399545142,), (1399545158,), (1399545159,), (1399545160,), (1399545161,), (1399545183,), (1399545185,), (1399545186,), (1399545187,), (1399545189,), (1399545191,), (1399545213,), (1399545214,), (1399545215,), (1399545216,), (1399545218,), (1399545220,), (1399545244,), (1399545262,), (1399545271,), (1399545272,)) 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 29442697 , 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=29442683 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 (29442697) result : ((1399545127,), (1399545206,), (1399545207,), (1399545252,), (1399545254,), (1399545266,), (1399545267,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29442683) result : ((1399544981,), (1399545003,), (1399545004,), (1399545005,), (1399545006,), (1399545025,), (1399545026,), (1399545027,), (1399545043,), (1399545045,), (1399545046,), (1399545060,), (1399545061,), (1399545062,), (1399545078,), (1399545080,), (1399545082,), (1399545084,), (1399545086,), (1399545089,), (1399545104,), (1399545106,), (1399545108,), (1399545112,), (1399545116,), (1399545120,), (1399545136,), (1399545138,), (1399545140,), (1399545142,), (1399545158,), (1399545159,), (1399545160,), (1399545161,), (1399545183,), (1399545185,), (1399545186,), (1399545187,), (1399545189,), (1399545191,), (1399545213,), (1399545214,), (1399545215,), (1399545216,), (1399545218,), (1399545220,), (1399545244,), (1399545262,), (1399545271,), (1399545272,)) 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 29442698 , 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=29442683 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 (29442698) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29442683) result : ((1399544981,), (1399545003,), (1399545004,), (1399545005,), (1399545006,), (1399545025,), (1399545026,), (1399545027,), (1399545043,), (1399545045,), (1399545046,), (1399545060,), (1399545061,), (1399545062,), (1399545078,), (1399545080,), (1399545082,), (1399545084,), (1399545086,), (1399545089,), (1399545104,), (1399545106,), (1399545108,), (1399545112,), (1399545116,), (1399545120,), (1399545136,), (1399545138,), (1399545140,), (1399545142,), (1399545158,), (1399545159,), (1399545160,), (1399545161,), (1399545183,), (1399545185,), (1399545186,), (1399545187,), (1399545189,), (1399545191,), (1399545213,), (1399545214,), (1399545215,), (1399545216,), (1399545218,), (1399545220,), (1399545244,), (1399545262,), (1399545271,), (1399545272,)) 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 29442699 , 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=29442683 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 (29442699) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29442683) result : ((1399544981,), (1399545003,), (1399545004,), (1399545005,), (1399545006,), (1399545025,), (1399545026,), (1399545027,), (1399545043,), (1399545045,), (1399545046,), (1399545060,), (1399545061,), (1399545062,), (1399545078,), (1399545080,), (1399545082,), (1399545084,), (1399545086,), (1399545089,), (1399545104,), (1399545106,), (1399545108,), (1399545112,), (1399545116,), (1399545120,), (1399545136,), (1399545138,), (1399545140,), (1399545142,), (1399545158,), (1399545159,), (1399545160,), (1399545161,), (1399545183,), (1399545185,), (1399545186,), (1399545187,), (1399545189,), (1399545191,), (1399545213,), (1399545214,), (1399545215,), (1399545216,), (1399545218,), (1399545220,), (1399545244,), (1399545262,), (1399545271,), (1399545272,)) 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 29442700 , 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=29442683 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 (29442700) result : ((1399545128,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29442683) result : ((1399544981,), (1399545003,), (1399545004,), (1399545005,), (1399545006,), (1399545025,), (1399545026,), (1399545027,), (1399545043,), (1399545045,), (1399545046,), (1399545060,), (1399545061,), (1399545062,), (1399545078,), (1399545080,), (1399545082,), (1399545084,), (1399545086,), (1399545089,), (1399545104,), (1399545106,), (1399545108,), (1399545112,), (1399545116,), (1399545120,), (1399545136,), (1399545138,), (1399545140,), (1399545142,), (1399545158,), (1399545159,), (1399545160,), (1399545161,), (1399545183,), (1399545185,), (1399545186,), (1399545187,), (1399545189,), (1399545191,), (1399545213,), (1399545214,), (1399545215,), (1399545216,), (1399545218,), (1399545220,), (1399545244,), (1399545262,), (1399545271,), (1399545272,)) 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 29442701 , 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=29442683 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 (29442701) result : ((1399545099,), (1399545126,), (1399545233,), (1399545234,), (1399545235,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29442683) result : ((1399544981,), (1399545003,), (1399545004,), (1399545005,), (1399545006,), (1399545025,), (1399545026,), (1399545027,), (1399545043,), (1399545045,), (1399545046,), (1399545060,), (1399545061,), (1399545062,), (1399545078,), (1399545080,), (1399545082,), (1399545084,), (1399545086,), (1399545089,), (1399545104,), (1399545106,), (1399545108,), (1399545112,), (1399545116,), (1399545120,), (1399545136,), (1399545138,), (1399545140,), (1399545142,), (1399545158,), (1399545159,), (1399545160,), (1399545161,), (1399545183,), (1399545185,), (1399545186,), (1399545187,), (1399545189,), (1399545191,), (1399545213,), (1399545214,), (1399545215,), (1399545216,), (1399545218,), (1399545220,), (1399545244,), (1399545262,), (1399545271,), (1399545272,)) 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 29442702 , 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=29442683 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 (29442702) result : ((1399545208,), (1399545255,), (1399545268,), (1399545269,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29442683) result : ((1399544981,), (1399545003,), (1399545004,), (1399545005,), (1399545006,), (1399545025,), (1399545026,), (1399545027,), (1399545043,), (1399545045,), (1399545046,), (1399545060,), (1399545061,), (1399545062,), (1399545078,), (1399545080,), (1399545082,), (1399545084,), (1399545086,), (1399545089,), (1399545104,), (1399545106,), (1399545108,), (1399545112,), (1399545116,), (1399545120,), (1399545136,), (1399545138,), (1399545140,), (1399545142,), (1399545158,), (1399545159,), (1399545160,), (1399545161,), (1399545183,), (1399545185,), (1399545186,), (1399545187,), (1399545189,), (1399545191,), (1399545213,), (1399545214,), (1399545215,), (1399545216,), (1399545218,), (1399545220,), (1399545244,), (1399545262,), (1399545271,), (1399545272,)) 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 29442703 , 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=29442683 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 (29442703) result : ((1399545238,), (1399545239,), (1399545240,), (1399545241,), (1399545242,), (1399545263,), (1399545264,), (1399545265,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29442683) result : ((1399544981,), (1399545003,), (1399545004,), (1399545005,), (1399545006,), (1399545025,), (1399545026,), (1399545027,), (1399545043,), (1399545045,), (1399545046,), (1399545060,), (1399545061,), (1399545062,), (1399545078,), (1399545080,), (1399545082,), (1399545084,), (1399545086,), (1399545089,), (1399545104,), (1399545106,), (1399545108,), (1399545112,), (1399545116,), (1399545120,), (1399545136,), (1399545138,), (1399545140,), (1399545142,), (1399545158,), (1399545159,), (1399545160,), (1399545161,), (1399545183,), (1399545185,), (1399545186,), (1399545187,), (1399545189,), (1399545191,), (1399545213,), (1399545214,), (1399545215,), (1399545216,), (1399545218,), (1399545220,), (1399545244,), (1399545262,), (1399545271,), (1399545272,)) 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`=29442683 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','plastique','kraft','metal','Carton_brun','Carton_gris','cartonnette','flou','mal_croppe','Teint_Dans_La_Masse','papier')) 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`=29442683 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','plastique','kraft','metal','Carton_brun','Carton_gris','cartonnette','flou','mal_croppe','Teint_Dans_La_Masse','papier')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 29442683, 'sub_port_id': 29442717, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066497, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 5, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 5, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 33)}, 'autre_refus': {'main_port_id': 29442683, 'sub_port_id': 29442718, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066498, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 5, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 5, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 33)}, 'metal': {'main_port_id': 29442683, 'sub_port_id': 29442719, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066499, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 5, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 5, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 33)}, 'environnement': {'main_port_id': 29442683, 'sub_port_id': 29442720, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066500, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 5, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 5, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 29442683, 'sub_port_id': 29442721, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066501, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 5, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 5, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 33)}, 'Carton_brun': {'main_port_id': 29442683, 'sub_port_id': 29442722, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066502, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 5, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 5, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 33)}, 'mal_croppe': {'main_port_id': 29442683, 'sub_port_id': 29442723, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066503, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 5, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 5, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 33)}, 'flou': {'main_port_id': 29442683, 'sub_port_id': 29442724, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066504, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 5, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 5, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 33)}, 'kraft': {'main_port_id': 29442683, 'sub_port_id': 29442725, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066505, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 5, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 5, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 33)}, 'Carton_gris': {'main_port_id': 29442683, 'sub_port_id': 29442726, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066506, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 5, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 5, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 33)}, 'plastique': {'main_port_id': 29442683, 'sub_port_id': 29442727, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066507, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 5, 33), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 5, 33), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 33)}, 'cartonnette': {'main_port_id': 29442683, 'sub_port_id': 29442728, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20066508, 'last_updated_at': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 15, 20, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 15, 20, 5, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29442717,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29442692 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29442718,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29442693 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29442719,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29442694 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29442720,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29442695 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29442721,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29442696 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29442722,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29442697 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29442723,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29442698 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29442724,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29442699 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29442725,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29442700 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29442726,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29442701 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29442727,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29442702 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29442728,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29442703 lien utilise dans velours : https://marlene.fotonower.com/velours/29442717,29442718,29442719,29442720,29442721,29442722,29442723,29442724,29442725,29442726,29442727,29442728?tags=papier,autre_refus,metal,environnement,Teint_Dans_La_Masse,Carton_brun,mal_croppe,flou,kraft,Carton_gris,plastique,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29442683]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1399545272, 1399545271, 1399545262, 1399545244, 1399545220, 1399545218, 1399545216, 1399545215, 1399545214, 1399545213, 1399545191, 1399545189, 1399545187, 1399545186, 1399545185, 1399545183] map_info['map_portfolio_photo'] : {29442683: [1399545272, 1399545271, 1399545262, 1399545244, 1399545220, 1399545218, 1399545216, 1399545215, 1399545214, 1399545213, 1399545191, 1399545189, 1399545187, 1399545186, 1399545185, 1399545183, 1399545161, 1399545160, 1399545159, 1399545158, 1399545142, 1399545140, 1399545138, 1399545136, 1399545120, 1399545116, 1399545112, 1399545108, 1399545106, 1399545104, 1399545089, 1399545086, 1399545084, 1399545082, 1399545080, 1399545078, 1399545062, 1399545061, 1399545060, 1399545046, 1399545045, 1399545043, 1399545027, 1399545026, 1399545025, 1399545006, 1399545005, 1399545004, 1399545003, 1399544981]} final : False mtd_id 4302 list_pids : [1399545272, 1399545271, 1399545262, 1399545244, 1399545220, 1399545218, 1399545216, 1399545215, 1399545214, 1399545213, 1399545191, 1399545189, 1399545187, 1399545186, 1399545185, 1399545183] Looping around the photos to save general results len do output : 1 /29442683. 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, '4230892') ('4302', '29442683', '1399545272', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545271', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545262', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545244', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545220', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545218', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545216', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545215', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545214', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545213', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545191', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545189', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545187', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545186', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545185', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545183', None, None, None, None, None, '4230892') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '29442683', "{'papier': 29442692, 'autre_refus': 29442693, 'metal': 29442694, 'environnement': 29442695, 'Teint_Dans_La_Masse': 29442696, 'Carton_brun': 29442697, 'mal_croppe': 29442698, 'flou': 29442699, 'kraft': 29442700, 'Carton_gris': 29442701, 'plastique': 29442702, 'cartonnette': 29442703}", None, None, None, None, '4230892'), ('4302', '29442683', '1399545272', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545271', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545262', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545244', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545220', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545218', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545216', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545215', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545214', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545213', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545191', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545189', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545187', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545186', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545185', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545183', None, None, None, None, None, '4230892')] time used for this insertion : 0.01695847511291504 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8185853958129883 time spend to save output : 0.017253875732421875 total time spend for step 1 : 1.8358392715454102 step2:final Mon Dec 15 20:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29442683) 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 29442683 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1399544981,1399545006,1399545005,1399545004,1399545003,1399545027,1399545026,1399545025,1399545046,1399545045,1399545043,1399545062,1399545061,1399545060,1399545089,1399545086,1399545084,1399545082,1399545080,1399545078,1399545120,1399545116,1399545112,1399545108,1399545106,1399545104,1399545142,1399545140,1399545138,1399545136,1399545161,1399545160,1399545159,1399545158,1399545191,1399545189,1399545187,1399545186,1399545185,1399545183,1399545220,1399545218,1399545216,1399545215,1399545214,1399545213,1399545272,1399545271,1399545262,1399545244); 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([29442683]) Inside saveOutput : final : False verbose : True original output for save of step final : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ('0.04452403275494677',), 1399545186: ('0.04452403275494677',), 1399545185: ('0.04452403275494677',), 1399545183: ('0.04452403275494677',)} new output for save of step final : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ('0.04452403275494677',), 1399545186: ('0.04452403275494677',), 1399545185: ('0.04452403275494677',), 1399545183: ('0.04452403275494677',)} [1399545272, 1399545271, 1399545262, 1399545244, 1399545220, 1399545218, 1399545216, 1399545215, 1399545214, 1399545213, 1399545191, 1399545189, 1399545187, 1399545186, 1399545185, 1399545183] map_info['map_portfolio_photo'] : {29442683: [1399545272, 1399545271, 1399545262, 1399545244, 1399545220, 1399545218, 1399545216, 1399545215, 1399545214, 1399545213, 1399545191, 1399545189, 1399545187, 1399545186, 1399545185, 1399545183, 1399545161, 1399545160, 1399545159, 1399545158, 1399545142, 1399545140, 1399545138, 1399545136, 1399545120, 1399545116, 1399545112, 1399545108, 1399545106, 1399545104, 1399545089, 1399545086, 1399545084, 1399545082, 1399545080, 1399545078, 1399545062, 1399545061, 1399545060, 1399545046, 1399545045, 1399545043, 1399545027, 1399545026, 1399545025, 1399545006, 1399545005, 1399545004, 1399545003, 1399544981]} final : False mtd_id 4302 list_pids : [1399545272, 1399545271, 1399545262, 1399545244, 1399545220, 1399545218, 1399545216, 1399545215, 1399545214, 1399545213, 1399545191, 1399545189, 1399545187, 1399545186, 1399545185, 1399545183] Looping around the photos to save general results len do output : 16 /1399545272.Didn't retrieve data . /1399545271.Didn't retrieve data . /1399545262.Didn't retrieve data . /1399545244.Didn't retrieve data . /1399545220.Didn't retrieve data . /1399545218.Didn't retrieve data . /1399545216.Didn't retrieve data . /1399545215.Didn't retrieve data . /1399545214.Didn't retrieve data . /1399545213.Didn't retrieve data . /1399545191.Didn't retrieve data . /1399545189.Didn't retrieve data . /1399545187.Didn't retrieve data . /1399545186.Didn't retrieve data . /1399545185.Didn't retrieve data . /1399545183.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, '4230892') ('4302', '29442683', '1399545272', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545271', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545262', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545244', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545220', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545218', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545216', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545215', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545214', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545213', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545191', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545189', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545187', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545186', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545185', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545183', None, None, None, None, None, '4230892') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 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', '29442683', '1399545272', '0.04452403275494677', None, None, None, None, '4230892'), ('4302', '29442683', '1399545271', '0.04452403275494677', None, None, None, None, '4230892'), ('4302', '29442683', '1399545262', '0.04452403275494677', None, None, None, None, '4230892'), ('4302', '29442683', '1399545244', '0.04452403275494677', None, None, None, None, '4230892'), ('4302', '29442683', '1399545220', '0.04452403275494677', None, None, None, None, '4230892'), ('4302', '29442683', '1399545218', '0.04452403275494677', None, None, None, None, '4230892'), ('4302', '29442683', '1399545216', '0.04452403275494677', None, None, None, None, '4230892'), ('4302', '29442683', '1399545215', '0.04452403275494677', None, None, None, None, '4230892'), ('4302', '29442683', '1399545214', '0.04452403275494677', None, None, None, None, '4230892'), ('4302', '29442683', '1399545213', '0.04452403275494677', None, None, None, None, '4230892'), ('4302', '29442683', '1399545191', '0.04452403275494677', None, None, None, None, '4230892'), ('4302', '29442683', '1399545189', '0.04452403275494677', None, None, None, None, '4230892'), ('4302', '29442683', '1399545187', '0.04452403275494677', None, None, None, None, '4230892'), ('4302', '29442683', '1399545186', '0.04452403275494677', None, None, None, None, '4230892'), ('4302', '29442683', '1399545185', '0.04452403275494677', None, None, None, None, '4230892'), ('4302', '29442683', '1399545183', '0.04452403275494677', None, None, None, None, '4230892')] time used for this insertion : 0.016190290451049805 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0796506404876709 time spend to save output : 0.016876220703125 total time spend for step 2 : 0.0965268611907959 step3:velours_tree Mon Dec 15 20:15:00 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 : {29442683: [{'papier': 29442692, 'autre_refus': 29442693, 'metal': 29442694, 'environnement': 29442695, 'Teint_Dans_La_Masse': 29442696, 'Carton_brun': 29442697, 'mal_croppe': 29442698, 'flou': 29442699, 'kraft': 29442700, 'Carton_gris': 29442701, 'plastique': 29442702, 'cartonnette': 29442703}]} input_args_next_step : {29442683: ()} output_args : {29442683: [{'papier': 29442692, 'autre_refus': 29442693, 'metal': 29442694, 'environnement': 29442695, 'Teint_Dans_La_Masse': 29442696, 'Carton_brun': 29442697, 'mal_croppe': 29442698, 'flou': 29442699, 'kraft': 29442700, 'Carton_gris': 29442701, 'plastique': 29442702, 'cartonnette': 29442703}]} args : 29442683 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 : ({'papier': 29442692, 'autre_refus': 29442693, 'metal': 29442694, 'environnement': 29442695, 'Teint_Dans_La_Masse': 29442696, 'Carton_brun': 29442697, 'mal_croppe': 29442698, 'flou': 29442699, 'kraft': 29442700, 'Carton_gris': 29442701, 'plastique': 29442702, 'cartonnette': 29442703},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29442683) 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([29442683]) 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.2393784523010254 time spend to save output : 4.76837158203125e-05 total time spend for step 3 : 0.2394261360168457 step4:send_mail_cod Mon Dec 15 20:15:00 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 : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ('0.04452403275494677',), 1399545186: ('0.04452403275494677',), 1399545185: ('0.04452403275494677',), 1399545183: ('0.04452403275494677',)} input_args_next_step : {1399545272: ()} output_args : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ('0.04452403275494677',), 1399545186: ('0.04452403275494677',), 1399545185: ('0.04452403275494677',), 1399545183: ('0.04452403275494677',)} args : 1399545272 depend.output_id : 0 input_args_next_step : {1399545272: ('0.04452403275494677',), 1399545271: ()} output_args : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ('0.04452403275494677',), 1399545186: ('0.04452403275494677',), 1399545185: ('0.04452403275494677',), 1399545183: ('0.04452403275494677',)} args : 1399545271 depend.output_id : 0 input_args_next_step : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ()} output_args : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ('0.04452403275494677',), 1399545186: ('0.04452403275494677',), 1399545185: ('0.04452403275494677',), 1399545183: ('0.04452403275494677',)} args : 1399545262 depend.output_id : 0 input_args_next_step : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ()} output_args : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ('0.04452403275494677',), 1399545186: ('0.04452403275494677',), 1399545185: ('0.04452403275494677',), 1399545183: ('0.04452403275494677',)} args : 1399545244 depend.output_id : 0 input_args_next_step : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ()} output_args : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ('0.04452403275494677',), 1399545186: ('0.04452403275494677',), 1399545185: ('0.04452403275494677',), 1399545183: ('0.04452403275494677',)} args : 1399545220 depend.output_id : 0 input_args_next_step : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ()} output_args : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ('0.04452403275494677',), 1399545186: ('0.04452403275494677',), 1399545185: ('0.04452403275494677',), 1399545183: ('0.04452403275494677',)} args : 1399545218 depend.output_id : 0 input_args_next_step : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ()} output_args : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ('0.04452403275494677',), 1399545186: ('0.04452403275494677',), 1399545185: ('0.04452403275494677',), 1399545183: ('0.04452403275494677',)} args : 1399545216 depend.output_id : 0 input_args_next_step : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ()} output_args : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ('0.04452403275494677',), 1399545186: ('0.04452403275494677',), 1399545185: ('0.04452403275494677',), 1399545183: ('0.04452403275494677',)} args : 1399545215 depend.output_id : 0 input_args_next_step : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ()} output_args : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ('0.04452403275494677',), 1399545186: ('0.04452403275494677',), 1399545185: ('0.04452403275494677',), 1399545183: ('0.04452403275494677',)} args : 1399545214 depend.output_id : 0 input_args_next_step : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ()} output_args : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ('0.04452403275494677',), 1399545186: ('0.04452403275494677',), 1399545185: ('0.04452403275494677',), 1399545183: ('0.04452403275494677',)} args : 1399545213 depend.output_id : 0 input_args_next_step : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ()} output_args : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ('0.04452403275494677',), 1399545186: ('0.04452403275494677',), 1399545185: ('0.04452403275494677',), 1399545183: ('0.04452403275494677',)} args : 1399545191 depend.output_id : 0 input_args_next_step : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ()} output_args : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ('0.04452403275494677',), 1399545186: ('0.04452403275494677',), 1399545185: ('0.04452403275494677',), 1399545183: ('0.04452403275494677',)} args : 1399545189 depend.output_id : 0 input_args_next_step : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ()} output_args : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ('0.04452403275494677',), 1399545186: ('0.04452403275494677',), 1399545185: ('0.04452403275494677',), 1399545183: ('0.04452403275494677',)} args : 1399545187 depend.output_id : 0 input_args_next_step : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ('0.04452403275494677',), 1399545186: ()} output_args : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ('0.04452403275494677',), 1399545186: ('0.04452403275494677',), 1399545185: ('0.04452403275494677',), 1399545183: ('0.04452403275494677',)} args : 1399545186 depend.output_id : 0 input_args_next_step : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ('0.04452403275494677',), 1399545186: ('0.04452403275494677',), 1399545185: ()} output_args : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ('0.04452403275494677',), 1399545186: ('0.04452403275494677',), 1399545185: ('0.04452403275494677',), 1399545183: ('0.04452403275494677',)} args : 1399545185 depend.output_id : 0 input_args_next_step : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ('0.04452403275494677',), 1399545186: ('0.04452403275494677',), 1399545185: ('0.04452403275494677',), 1399545183: ()} output_args : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ('0.04452403275494677',), 1399545186: ('0.04452403275494677',), 1399545185: ('0.04452403275494677',), 1399545183: ('0.04452403275494677',)} args : 1399545183 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 : {29442683: [{'papier': 29442692, 'autre_refus': 29442693, 'metal': 29442694, 'environnement': 29442695, 'Teint_Dans_La_Masse': 29442696, 'Carton_brun': 29442697, 'mal_croppe': 29442698, 'flou': 29442699, 'kraft': 29442700, 'Carton_gris': 29442701, 'plastique': 29442702, 'cartonnette': 29442703}]} input_args_next_step : {1399545272: ('0.04452403275494677',), 1399545271: ('0.04452403275494677',), 1399545262: ('0.04452403275494677',), 1399545244: ('0.04452403275494677',), 1399545220: ('0.04452403275494677',), 1399545218: ('0.04452403275494677',), 1399545216: ('0.04452403275494677',), 1399545215: ('0.04452403275494677',), 1399545214: ('0.04452403275494677',), 1399545213: ('0.04452403275494677',), 1399545191: ('0.04452403275494677',), 1399545189: ('0.04452403275494677',), 1399545187: ('0.04452403275494677',), 1399545186: ('0.04452403275494677',), 1399545185: ('0.04452403275494677',), 1399545183: ('0.04452403275494677',), 29442683: ()} output_args : {29442683: [{'papier': 29442692, 'autre_refus': 29442693, 'metal': 29442694, 'environnement': 29442695, 'Teint_Dans_La_Masse': 29442696, 'Carton_brun': 29442697, 'mal_croppe': 29442698, 'flou': 29442699, 'kraft': 29442700, 'Carton_gris': 29442701, 'plastique': 29442702, 'cartonnette': 29442703}]} args : 29442683 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 :17, first value : ('0.04452403275494677',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29442683) 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 (1399545272,1399545271,1399545262,1399545244,1399545220,1399545218,1399545216,1399545215,1399545214,1399545213,1399545191,1399545189,1399545187,1399545186,1399545185,1399545183) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1399545183 begin to download photo : 1399545189 begin to download photo : 1399545215 begin to download photo : 1399545244 download finish for photo 1399545183 begin to download photo : 1399545185 download finish for photo 1399545244 begin to download photo : 1399545262 download finish for photo 1399545189 begin to download photo : 1399545191 download finish for photo 1399545215 begin to download photo : 1399545216 download finish for photo 1399545185 begin to download photo : 1399545186 download finish for photo 1399545262 begin to download photo : 1399545271 download finish for photo 1399545216 begin to download photo : 1399545218 download finish for photo 1399545191 begin to download photo : 1399545213 download finish for photo 1399545186 begin to download photo : 1399545187 download finish for photo 1399545271 begin to download photo : 1399545272 download finish for photo 1399545213 begin to download photo : 1399545214 download finish for photo 1399545218 begin to download photo : 1399545220 download finish for photo 1399545272 download finish for photo 1399545187 download finish for photo 1399545214 download finish for photo 1399545220 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P29442683_15-12-2025_20_15_00.pdf 29442693 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=29442693 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399545098: '1765825706_2165629_1399545045_3da142e23bdf7340d4106075606ec331_rle_crop_4071112433_0.png', 1399545124: '1765825747_2166422_1399545026_b93039b30252675ad9aa421f7f4d5ae4_rle_crop_4071112552_0.png', 1399545204: '1765825947_2179289_1399545140_134278ed073a7c7f9979dc2023b2d455_rle_crop_4071112937_0.png', 1399545205: '1765825947_2179289_1399545140_134278ed073a7c7f9979dc2023b2d455_rle_crop_4071112935_0.png', 1399545232: '1765826005_2184585_1399545078_b0e4984b0a3e503654192d09f1eca1ed_rle_crop_4071113390_0.png', 1399545256: '1765825987_2182164_1399545116_7f879baf141eee5331837d3822d54678_rle_crop_4071113346_0.png', 1399545258: '1765825987_2182164_1399545108_4203c6b07f89dda3b0b5c59088a4ff98_rle_crop_4071113416_0.png', 1399545259: '1765825987_2182164_1399545104_bc5b3f49106e39b3b8eafbad22ca77ce_rle_crop_4071113438_0.png', 1399545261: '1765825987_2182164_1399545104_bc5b3f49106e39b3b8eafbad22ca77ce_rle_crop_4071113440_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/4c9589e0dade0fbfef51e0861814636b_68659834.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/55526957330d5094acdf0e0bacf2b20a_55484342.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/a09ff8b0b60ec4deae04d61f92bdc881_30950586.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/c27524ad4d893d91920240c813eb2801_40470195.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/f40e6e48175015013204e0eeca8874a2_95821920.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/f1ae850f0f99cbcd8d16b329c5ee95ef_65149615.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/0d06df7d388e7d921ec28332f0177172_14813725.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/4a68116631bb66b1ab0078ccd1b19155_62305920.png change filename to text .imagette294426931765826100/ imagette294426931765826100/1765825706_2165629_1399545045_3da142e23bdf7340d4106075606ec331_rle_crop_4071112433_0.png.png imagette294426931765826100/1765826005_2184585_1399545078_b0e4984b0a3e503654192d09f1eca1ed_rle_crop_4071113390_0.png.png imagette294426931765826100/1765825947_2179289_1399545140_134278ed073a7c7f9979dc2023b2d455_rle_crop_4071112935_0.png.png imagette294426931765826100/1765825987_2182164_1399545108_4203c6b07f89dda3b0b5c59088a4ff98_rle_crop_4071113416_0.png.png imagette294426931765826100/1765825747_2166422_1399545026_b93039b30252675ad9aa421f7f4d5ae4_rle_crop_4071112552_0.png.png imagette294426931765826100/1765825987_2182164_1399545116_7f879baf141eee5331837d3822d54678_rle_crop_4071113346_0.png.png imagette294426931765826100/1765825947_2179289_1399545140_134278ed073a7c7f9979dc2023b2d455_rle_crop_4071112937_0.png.png imagette294426931765826100/1765825987_2182164_1399545104_bc5b3f49106e39b3b8eafbad22ca77ce_rle_crop_4071113440_0.png.png imagette294426931765826100/1765825987_2182164_1399545104_bc5b3f49106e39b3b8eafbad22ca77ce_rle_crop_4071113438_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/9a60268b977cce996d792a149db77d93_13946309.png imagette294426931765826100 29442694 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=29442694 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399545257: '1765826005_2184585_1399545078_b0e4984b0a3e503654192d09f1eca1ed_rle_crop_4071113395_0.png'} change filename to text .imagette294426941765826101/ imagette294426941765826101/1765826005_2184585_1399545078_b0e4984b0a3e503654192d09f1eca1ed_rle_crop_4071113395_0.png.png imagette294426981765826101/ imagette294426991765826101/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/c74c1bf0cc2d7b39af0370108a50dc96_8927343.png imagette294426941765826101 29442698 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=29442698 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294426981765826101 29442699 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=29442699 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294426991765826101 29442700 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=29442700 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399545128: '1765825747_2166422_1399545046_59210d91c2b82b7dca5ee850becae350_rle_crop_4071112533_0.png'} change filename to text .imagette294427001765826101/ imagette294427001765826101/1765825747_2166422_1399545046_59210d91c2b82b7dca5ee850becae350_rle_crop_4071112533_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/ac9f0f7737ae5ba1d3087a3d233ed3f8_82185563.png imagette294427001765826101 29442702 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=29442702 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399545208: '1765825947_2179289_1399545140_134278ed073a7c7f9979dc2023b2d455_rle_crop_4071112946_0.png', 1399545255: '1765826005_2184585_1399545082_fe2adb26f63d40dd1e2821d48d1b8c7a_rle_crop_4071113337_0.png', 1399545268: '1765825987_2182164_1399545142_ca34faa6cbb77ac4c670fc0892d61f08_rle_crop_4071113318_0.png', 1399545269: '1765825987_2182164_1399545112_1d429961fafbe0695dcbb66a395279f0_rle_crop_4071113377_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/bc4d2f34c9c2ea43652e32a4fc2db7c7_68313878.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/f212b618b36d9c0a383ae1bf1f64ad06_89629730.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/b4a7357726973a93a900e5c806f2ef7e_94218577.png change filename to text .imagette294427021765826101/ imagette294427021765826101/1765825987_2182164_1399545142_ca34faa6cbb77ac4c670fc0892d61f08_rle_crop_4071113318_0.png.png imagette294427021765826101/1765825987_2182164_1399545112_1d429961fafbe0695dcbb66a395279f0_rle_crop_4071113377_0.png.png imagette294427021765826101/1765825947_2179289_1399545140_134278ed073a7c7f9979dc2023b2d455_rle_crop_4071112946_0.png.png imagette294427021765826101/1765826005_2184585_1399545082_fe2adb26f63d40dd1e2821d48d1b8c7a_rle_crop_4071113337_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/50cc5e845f2c9409cfb22e0b1ef33ad2_45194873.png imagette294427021765826101 29442703 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=29442703 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399545238: '1765826005_2184585_1399545120_64ed21f16342fd8930f5ecb5b9d24d3f_rle_crop_4071113299_0.png', 1399545239: '1765826005_2184585_1399545082_fe2adb26f63d40dd1e2821d48d1b8c7a_rle_crop_4071113335_0.png', 1399545240: '1765826005_2184585_1399545080_42b196ffab578057d6c432126476395d_rle_crop_4071113362_0.png', 1399545241: '1765826005_2184585_1399545078_b0e4984b0a3e503654192d09f1eca1ed_rle_crop_4071113401_0.png', 1399545242: '1765826005_2184585_1399545078_b0e4984b0a3e503654192d09f1eca1ed_rle_crop_4071113393_0.png', 1399545263: '1765825987_2182164_1399545142_ca34faa6cbb77ac4c670fc0892d61f08_rle_crop_4071113314_0.png', 1399545264: '1765825987_2182164_1399545112_1d429961fafbe0695dcbb66a395279f0_rle_crop_4071113374_0.png', 1399545265: '1765825987_2182164_1399545106_a39e0a79356f01afdaa332e9aacfd27f_rle_crop_4071113422_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/ae78dfdfa21af80cd7e5153d905a8278_40477720.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/caa408e3ca3a44d4de6b6074d43e5160_28119442.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/c52008d5304ce5bb5541842666bec681_13317024.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/b46cca289f575b75f50c107ea1b3a40b_7436764.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/851d825a7ecd4ec8c893c6a0e195d9db_47439555.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/16ff22d4f96abff9606a64c79b8587d0_49164992.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/ed0b595180c699efb55fc11a41db6b18_89500454.png change filename to text .imagette294427031765826102/ imagette294427031765826102/1765826005_2184585_1399545120_64ed21f16342fd8930f5ecb5b9d24d3f_rle_crop_4071113299_0.png.png imagette294427031765826102/1765826005_2184585_1399545082_fe2adb26f63d40dd1e2821d48d1b8c7a_rle_crop_4071113335_0.png.png imagette294427031765826102/1765825987_2182164_1399545112_1d429961fafbe0695dcbb66a395279f0_rle_crop_4071113374_0.png.png imagette294427031765826102/1765826005_2184585_1399545080_42b196ffab578057d6c432126476395d_rle_crop_4071113362_0.png.png imagette294427031765826102/1765825987_2182164_1399545106_a39e0a79356f01afdaa332e9aacfd27f_rle_crop_4071113422_0.png.png imagette294427031765826102/1765826005_2184585_1399545078_b0e4984b0a3e503654192d09f1eca1ed_rle_crop_4071113393_0.png.png imagette294427031765826102/1765825987_2182164_1399545142_ca34faa6cbb77ac4c670fc0892d61f08_rle_crop_4071113314_0.png.png imagette294427031765826102/1765826005_2184585_1399545078_b0e4984b0a3e503654192d09f1eca1ed_rle_crop_4071113401_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/b89aa59ba3cc4af661dfc86e7495cc8e_64096732.png imagette294427031765826102 29442696 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=29442696 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399545121: '1765825747_2166422_1399545046_59210d91c2b82b7dca5ee850becae350_rle_crop_4071112538_0.png', 1399545122: '1765825747_2166422_1399545025_b4d2557cac9c8a90e8cd6c2cc511d3d8_rle_crop_4071112566_0.png', 1399545231: '1765826005_2184585_1399545078_b0e4984b0a3e503654192d09f1eca1ed_rle_crop_4071113396_0.png', 1399545243: '1765825987_2182164_1399545142_ca34faa6cbb77ac4c670fc0892d61f08_rle_crop_4071113319_0.png', 1399545245: '1765825987_2182164_1399545116_7f879baf141eee5331837d3822d54678_rle_crop_4071113356_0.png', 1399545246: '1765825987_2182164_1399545108_4203c6b07f89dda3b0b5c59088a4ff98_rle_crop_4071113417_0.png', 1399545247: '1765825987_2182164_1399545108_4203c6b07f89dda3b0b5c59088a4ff98_rle_crop_4071113415_0.png', 1399545248: '1765825987_2182164_1399545106_a39e0a79356f01afdaa332e9aacfd27f_rle_crop_4071113432_0.png', 1399545249: '1765825987_2182164_1399545106_a39e0a79356f01afdaa332e9aacfd27f_rle_crop_4071113430_0.png', 1399545250: '1765825987_2182164_1399545106_a39e0a79356f01afdaa332e9aacfd27f_rle_crop_4071113428_0.png', 1399545251: '1765825987_2182164_1399545104_bc5b3f49106e39b3b8eafbad22ca77ce_rle_crop_4071113447_0.png', 1399545253: '1765825987_2182164_1399545104_bc5b3f49106e39b3b8eafbad22ca77ce_rle_crop_4071113443_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/9f616b82d37f06cac169565c7e6aa02f_94591831.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/2a86cc32eb1a3befdbef97ec726718d8_3510887.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/934f041500ae0822ea53611e4ddd5e1d_97095088.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/278207bef80f7eca7f86dcb8e270ad11_96945881.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/a314996a92860fff951355923509e79b_34413294.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/80fc3cd4e9e1de21e52b284a8adce056_57001134.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/93314b002f64bd57adb1c17c62bc3600_7510730.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/2986ef9534b25c09859420af01360f27_89802202.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/91bfdfa417556ab874fcbf456804f82f_42488607.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/0e6b86d708cfa1538e76f0caa664c1c5_10951497.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/fda56f863f7a772e88dfca89cfd2127d_62373420.png change filename to text .imagette294426961765826102/ imagette294426961765826102/1765825987_2182164_1399545106_a39e0a79356f01afdaa332e9aacfd27f_rle_crop_4071113430_0.png.png imagette294426961765826102/1765825747_2166422_1399545046_59210d91c2b82b7dca5ee850becae350_rle_crop_4071112538_0.png.png imagette294426961765826102/1765825987_2182164_1399545104_bc5b3f49106e39b3b8eafbad22ca77ce_rle_crop_4071113443_0.png.png imagette294426961765826102/1765825987_2182164_1399545106_a39e0a79356f01afdaa332e9aacfd27f_rle_crop_4071113428_0.png.png imagette294426961765826102/1765825987_2182164_1399545142_ca34faa6cbb77ac4c670fc0892d61f08_rle_crop_4071113319_0.png.png imagette294426961765826102/1765825987_2182164_1399545104_bc5b3f49106e39b3b8eafbad22ca77ce_rle_crop_4071113447_0.png.png imagette294426961765826102/1765825747_2166422_1399545025_b4d2557cac9c8a90e8cd6c2cc511d3d8_rle_crop_4071112566_0.png.png imagette294426961765826102/1765825987_2182164_1399545108_4203c6b07f89dda3b0b5c59088a4ff98_rle_crop_4071113417_0.png.png imagette294426961765826102/1765826005_2184585_1399545078_b0e4984b0a3e503654192d09f1eca1ed_rle_crop_4071113396_0.png.png imagette294426961765826102/1765825987_2182164_1399545106_a39e0a79356f01afdaa332e9aacfd27f_rle_crop_4071113432_0.png.png imagette294426961765826102/1765825987_2182164_1399545116_7f879baf141eee5331837d3822d54678_rle_crop_4071113356_0.png.png imagette294426961765826102/1765825987_2182164_1399545108_4203c6b07f89dda3b0b5c59088a4ff98_rle_crop_4071113415_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/6a54b77cce6c6e07a17916dd8274af0c_39884833.png imagette294426961765826102 29442697 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=29442697 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399545127: '1765825747_2166422_1399545025_b4d2557cac9c8a90e8cd6c2cc511d3d8_rle_crop_4071112563_0.png', 1399545206: '1765825947_2179289_1399545140_134278ed073a7c7f9979dc2023b2d455_rle_crop_4071112939_0.png', 1399545207: '1765825947_2179289_1399545136_38aedf5fe63622250ca9e4e321391731_rle_crop_4071112964_0.png', 1399545252: '1765826005_2184585_1399545120_64ed21f16342fd8930f5ecb5b9d24d3f_rle_crop_4071113302_0.png', 1399545254: '1765826005_2184585_1399545078_b0e4984b0a3e503654192d09f1eca1ed_rle_crop_4071113399_0.png', 1399545266: '1765825987_2182164_1399545116_7f879baf141eee5331837d3822d54678_rle_crop_4071113353_0.png', 1399545267: '1765825987_2182164_1399545106_a39e0a79356f01afdaa332e9aacfd27f_rle_crop_4071113427_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/3247de59932eafb2e94d80563809d7a4_22389203.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/2c36fdec0da1e6f1d6293144f51449ab_27349294.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/92e01fcdcfcd0816abc64bd284d5ab40_4603787.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/f1b66a46da2ccd9cab4493c20dba6315_45934441.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/648b687377ffe512eb49fdb23ab2375b_59658422.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/85f0060cc54dae3f0ea5119b8ad2b6d2_20485787.png change filename to text .imagette294426971765826103/ imagette294426971765826103/1765825987_2182164_1399545106_a39e0a79356f01afdaa332e9aacfd27f_rle_crop_4071113427_0.png.png imagette294426971765826103/1765826005_2184585_1399545078_b0e4984b0a3e503654192d09f1eca1ed_rle_crop_4071113399_0.png.png imagette294426971765826103/1765825747_2166422_1399545025_b4d2557cac9c8a90e8cd6c2cc511d3d8_rle_crop_4071112563_0.png.png imagette294426971765826103/1765825947_2179289_1399545136_38aedf5fe63622250ca9e4e321391731_rle_crop_4071112964_0.png.png imagette294426971765826103/1765825947_2179289_1399545140_134278ed073a7c7f9979dc2023b2d455_rle_crop_4071112939_0.png.png imagette294426971765826103/1765826005_2184585_1399545120_64ed21f16342fd8930f5ecb5b9d24d3f_rle_crop_4071113302_0.png.png imagette294426971765826103/1765825987_2182164_1399545116_7f879baf141eee5331837d3822d54678_rle_crop_4071113353_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/75edc29c4b60586175868911c5fbadf4_40349743.png imagette294426971765826103 29442701 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=29442701 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399545099: '1765825706_2165629_1399545045_3da142e23bdf7340d4106075606ec331_rle_crop_4071112431_0.png', 1399545126: '1765825747_2166422_1399545046_59210d91c2b82b7dca5ee850becae350_rle_crop_4071112541_0.png', 1399545233: '1765826005_2184585_1399545082_fe2adb26f63d40dd1e2821d48d1b8c7a_rle_crop_4071113334_0.png', 1399545234: '1765826005_2184585_1399545080_42b196ffab578057d6c432126476395d_rle_crop_4071113364_0.png', 1399545235: '1765826005_2184585_1399545078_b0e4984b0a3e503654192d09f1eca1ed_rle_crop_4071113403_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/934906a1abb9a046a958590d7a8990aa_81443615.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/7a1edbe9e25e6a129f0e23c08c702944_67984531.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/ca9ebbe76446554262aec595bd3f95d7_95205018.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/5b722488bf14ba37c9dec088e56f1169_20771529.png change filename to text .imagette294427011765826103/ imagette294427011765826103/1765826005_2184585_1399545080_42b196ffab578057d6c432126476395d_rle_crop_4071113364_0.png.png imagette294427011765826103/1765826005_2184585_1399545082_fe2adb26f63d40dd1e2821d48d1b8c7a_rle_crop_4071113334_0.png.png imagette294427011765826103/1765825706_2165629_1399545045_3da142e23bdf7340d4106075606ec331_rle_crop_4071112431_0.png.png imagette294427011765826103/1765826005_2184585_1399545078_b0e4984b0a3e503654192d09f1eca1ed_rle_crop_4071113403_0.png.png imagette294427011765826103/1765825747_2166422_1399545046_59210d91c2b82b7dca5ee850becae350_rle_crop_4071112541_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/9251f7e24b1d1418bde62914d0c6e0d4_5774761.png imagette294427011765826103 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29442683 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29442717,29442718,29442719,29442720,29442721,29442722,29442723,29442724,29442725,29442726,29442727,29442728?tags=papier,autre_refus,metal,environnement,Teint_Dans_La_Masse,Carton_brun,mal_croppe,flou,kraft,Carton_gris,plastique,cartonnette your option no_mail is active, we will not send the real mail to your client args[1399545272] : ('0.04452403275494677',) no score found for photo 1399545272 We are sending mail with results at report@fotonower.com args[1399545271] : ('0.04452403275494677',) no score found for photo 1399545271 We are sending mail with results at report@fotonower.com args[1399545262] : ('0.04452403275494677',) no score found for photo 1399545262 We are sending mail with results at report@fotonower.com args[1399545244] : ('0.04452403275494677',) no score found for photo 1399545244 We are sending mail with results at report@fotonower.com args[1399545220] : ('0.04452403275494677',) no score found for photo 1399545220 We are sending mail with results at report@fotonower.com args[1399545218] : ('0.04452403275494677',) no score found for photo 1399545218 We are sending mail with results at report@fotonower.com args[1399545216] : ('0.04452403275494677',) no score found for photo 1399545216 We are sending mail with results at report@fotonower.com args[1399545215] : ('0.04452403275494677',) no score found for photo 1399545215 We are sending mail with results at report@fotonower.com args[1399545214] : ('0.04452403275494677',) no score found for photo 1399545214 We are sending mail with results at report@fotonower.com args[1399545213] : ('0.04452403275494677',) no score found for photo 1399545213 We are sending mail with results at report@fotonower.com args[1399545191] : ('0.04452403275494677',) no score found for photo 1399545191 We are sending mail with results at report@fotonower.com args[1399545189] : ('0.04452403275494677',) no score found for photo 1399545189 We are sending mail with results at report@fotonower.com args[1399545187] : ('0.04452403275494677',) no score found for photo 1399545187 We are sending mail with results at report@fotonower.com args[1399545186] : ('0.04452403275494677',) no score found for photo 1399545186 We are sending mail with results at report@fotonower.com args[1399545185] : ('0.04452403275494677',) no score found for photo 1399545185 We are sending mail with results at report@fotonower.com args[1399545183] : ('0.04452403275494677',) no score found for photo 1399545183 We are sending mail with results at report@fotonower.com refus_total : 0.04452403275494677 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=29442683 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_P29442683_15-12-2025_20_15_00.pdf results_Auto_P29442683_15-12-2025_20_15_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29442683_15-12-2025_20_15_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29442683','results_Auto_P29442683_15-12-2025_20_15_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29442683_15-12-2025_20_15_00.pdf','pdf','','0.25','0.04452403275494677') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29442683]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1399545272, 1399545271, 1399545262, 1399545244, 1399545220, 1399545218, 1399545216, 1399545215, 1399545214, 1399545213, 1399545191, 1399545189, 1399545187, 1399545186, 1399545185, 1399545183] map_info['map_portfolio_photo'] : {29442683: [1399545272, 1399545271, 1399545262, 1399545244, 1399545220, 1399545218, 1399545216, 1399545215, 1399545214, 1399545213, 1399545191, 1399545189, 1399545187, 1399545186, 1399545185, 1399545183, 1399545161, 1399545160, 1399545159, 1399545158, 1399545142, 1399545140, 1399545138, 1399545136, 1399545120, 1399545116, 1399545112, 1399545108, 1399545106, 1399545104, 1399545089, 1399545086, 1399545084, 1399545082, 1399545080, 1399545078, 1399545062, 1399545061, 1399545060, 1399545046, 1399545045, 1399545043, 1399545027, 1399545026, 1399545025, 1399545006, 1399545005, 1399545004, 1399545003, 1399544981]} final : False mtd_id 4302 list_pids : [1399545272, 1399545271, 1399545262, 1399545244, 1399545220, 1399545218, 1399545216, 1399545215, 1399545214, 1399545213, 1399545191, 1399545189, 1399545187, 1399545186, 1399545185, 1399545183] 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, '4230892') ('4302', '29442683', '1399545272', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545271', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545262', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545244', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545220', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545218', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545216', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545215', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545214', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545213', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545191', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545189', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545187', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545186', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545185', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545183', None, None, None, None, None, '4230892') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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', '29442683', '1399545272', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545271', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545262', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545244', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545220', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545218', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545216', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545215', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545214', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545213', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545191', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545189', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545187', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545186', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545185', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545183', None, None, None, None, None, '4230892')] time used for this insertion : 0.016064882278442383 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.267262697219849 time spend to save output : 0.01631021499633789 total time spend for step 4 : 5.2835729122161865 step5:split_time_score Mon Dec 15 20:15:05 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 : ['29442683'] 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 : [('29442683',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29442683) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1399545244: {'path': 'temp/1765826100_2248987_1399545244_b3b5900cb5cee59824d6afbddf780ad9.jpg', 'extension': 'jpg'}, 1399545262: {'path': 'temp/1765826100_2248987_1399545262_80f71e5bfd99a3549d7d15e8fa8176dd.jpg', 'extension': 'jpg'}, 1399545271: {'path': 'temp/1765826100_2248987_1399545271_0e4721797db14f2dd6dba188b90d4769.jpg', 'extension': 'jpg'}, 1399545272: {'path': 'temp/1765826100_2248987_1399545272_b02ca5d992718cbbe153dd31a019679b.jpg', 'extension': 'jpg'}, 1399545183: {'path': 'temp/1765826100_2248987_1399545183_6241577858a9d080899b78fa762ad561.jpg', 'extension': 'jpg'}, 1399545185: {'path': 'temp/1765826100_2248987_1399545185_ef5a0e3214c01a1b047afee12baa91a3.jpg', 'extension': 'jpg'}, 1399545186: {'path': 'temp/1765826100_2248987_1399545186_1797ceffd664b7d357c34595d2ae1d0a.jpg', 'extension': 'jpg'}, 1399545187: {'path': 'temp/1765826100_2248987_1399545187_89f46b1a79c32fefaf38a9263140ed21.jpg', 'extension': 'jpg'}, 1399545189: {'path': 'temp/1765826100_2248987_1399545189_67fd6cacb492c8156e94e014435ba91c.jpg', 'extension': 'jpg'}, 1399545191: {'path': 'temp/1765826100_2248987_1399545191_6bb7a61c088497ea9e72db262267a7bf.jpg', 'extension': 'jpg'}, 1399545213: {'path': 'temp/1765826100_2248987_1399545213_6d3dce0960c8b6dfab3d13a07bf0d88f.jpg', 'extension': 'jpg'}, 1399545214: {'path': 'temp/1765826100_2248987_1399545214_998d69c1c64b5a2d9d51016cdc53a498.jpg', 'extension': 'jpg'}, 1399545215: {'path': 'temp/1765826100_2248987_1399545215_cfe9a74200416df742cfdf2e85a19047.jpg', 'extension': 'jpg'}, 1399545216: {'path': 'temp/1765826100_2248987_1399545216_c48416e0943b3be1add4a991b3f348e0.jpg', 'extension': 'jpg'}, 1399545218: {'path': 'temp/1765826100_2248987_1399545218_c75def5fde96c83207ab078e1e80bc83.jpg', 'extension': 'jpg'}, 1399545220: {'path': 'temp/1765826100_2248987_1399545220_36b08d58469e3aa30cfcbd54b38db56d.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 = 29442683; (('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 = 29442683 group by h (('20', 50),) 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=29442683 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 (29442683) 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 (29442683) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 15122025 29442683 Nombre de photos uploadées : 50 / 23040 (0%) 15122025 29442683 Nombre de photos taguées (types de déchets): 0 / 50 (0%) 15122025 29442683 Nombre de photos taguées (volume) : 0 / 50 (0%) [{'photo_id': 1399544981, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/cd17869e0d3e0f344e6423597986a316.jpg', 'username': None, 'uploaded_at': 1765825383, 'text': 'image_15122025_20_02_24_010139m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399545006, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/868b3775d87d41f618b4f9307ddbc61b.jpg', 'username': None, 'uploaded_at': 1765825447, 'text': 'image_15122025_20_02_34_010142m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399545005, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/f1bc7cd3133401c4dfbbd8c5770686e5.jpg', 'username': None, 'uploaded_at': 1765825447, 'text': 'image_15122025_20_03_24_10139.jpg'}, {'photo_id': 1399545004, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/15/dc5e68ee5255ea5add726b612b850217.jpg', 'username': None, 'uploaded_at': 1765825447, 'text': 'image_15122025_20_03_34_10147.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ?????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0021393299102783203 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29442683, '2025-12-15' ) 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-15' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2736782,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2398698329925537 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= 2736782 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29417280, 'dashboard_result_id': 18389200, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417280_15-12-2025_05_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417286, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417292, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29417539, 'dashboard_result_id': 18389201, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417539_15-12-2025_05_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417553, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29417857, 'dashboard_result_id': 18389202, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417857_15-12-2025_06_02_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417866, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417870, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417874, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29418257, 'dashboard_result_id': 18389203, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29418257_15-12-2025_06_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29418264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29418265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29418266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29418267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29418268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29418269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29418270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29418271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29418272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29418273, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29418274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29418275, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29418780, 'dashboard_result_id': 18389204, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29418780_15-12-2025_06_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29418785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29418786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29418787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29418788, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29418789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29418790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29418791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29418792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29418793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29418794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29418795, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29418796, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29419219, 'dashboard_result_id': 18389205, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29419219_15-12-2025_06_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29419252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29419253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29419254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29419255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29419256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29419257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29419258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29419259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29419260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29419261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29419262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29419263, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29419682, 'dashboard_result_id': 18389206, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29419682_15-12-2025_07_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29419708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29419709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29419710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29419711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29419712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29419713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29419714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29419715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29419716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29419717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29419718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29419719, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29420083, 'dashboard_result_id': 18389207, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29420083_15-12-2025_07_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29420109, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29420110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29420111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29420112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29420113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29420114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29420115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29420116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29420117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29420118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29420119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29420120, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29420617, 'dashboard_result_id': 18389208, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29420617_15-12-2025_07_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29420626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29420627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29420628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29420629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29420630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29420631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29420632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29420633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29420634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29420635, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29420636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29420637, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29421087, 'dashboard_result_id': 18389209, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29421087_15-12-2025_07_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29421094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29421095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29421096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29421097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29421098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29421099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29421100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29421101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29421102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29421103, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29421104, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29421105, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29421545, 'dashboard_result_id': 18389210, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29421545_15-12-2025_08_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29421546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29421547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29421548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29421549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29421550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29421551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29421552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29421553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29421554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29421555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29421556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29421557, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29422017, 'dashboard_result_id': 18389211, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422017_15-12-2025_08_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29422023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29422024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29422025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29422027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422028, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29422029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29422030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29422033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29422034, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29422537, 'dashboard_result_id': 18389212, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422537_15-12-2025_08_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29422542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29422544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29422546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29422551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29422553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29422555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29422556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29422558, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29422986, 'dashboard_result_id': 18389213, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422986_15-12-2025_08_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29423000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29423001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29423002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29423003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29423004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29423005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29423006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29423007, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29423463, 'dashboard_result_id': 18389214, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29423463_15-12-2025_09_39_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29423472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29423473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29423474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29423475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29423476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29423477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29423478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29423479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29423480, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29423481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29423482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29423483, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29424399, 'dashboard_result_id': 18389215, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424399_15-12-2025_09_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29424417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29424418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29424419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29424420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29424421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29424422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29424423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29424424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29424425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29424426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29424427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29424428, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29424626, 'dashboard_result_id': 18389216, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424626_15-12-2025_10_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29424631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29424632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29424633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29424634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29424635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29424636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29424637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29424638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29424639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29424640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29424641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29424642, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29424984, 'dashboard_result_id': 18389217, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424984_15-12-2025_10_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29425000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29425001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29425002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29425003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29425004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29425005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29425006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29425007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29425008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29425009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29425010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29425011, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29425574, 'dashboard_result_id': 18389218, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29425574_15-12-2025_10_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29425583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29425584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29425585, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29425586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29425587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29425588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29425589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29425590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29425591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29425592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29425593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29425594, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29426150, 'dashboard_result_id': 18389219, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29426150_15-12-2025_10_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29426158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29426159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29426160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29426161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29426162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29426163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29426164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29426165, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29426166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29426167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29426168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29426169, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29426847, 'dashboard_result_id': 18389220, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29426847_15-12-2025_11_03_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29426855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29426856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29426857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29426858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29426859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29426860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29426861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29426862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29426863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29426864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29426865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29426866, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29427202, 'dashboard_result_id': 18389221, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29427202_15-12-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29427206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29427207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29427208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29427209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29427210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29427211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29427212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29427213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29427214, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29427215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29427216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29427217, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29427865, 'dashboard_result_id': 18389222, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29427865_15-12-2025_11_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29427874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29427875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29427876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29427877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29427878, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29427880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29427882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29427884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29427887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29427890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29427892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29427894, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29428659, 'dashboard_result_id': 18389223, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29428659_15-12-2025_11_49_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29428713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29428714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29428715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29428716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29428717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29428718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29428719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29428720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29428721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29428722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29428723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29428724, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29429470, 'dashboard_result_id': 18389224, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29429470_15-12-2025_12_03_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29429477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29429478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29429479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29429480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29429481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29429482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29429483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29429484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29429485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29429486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29429487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29429488, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29430268, 'dashboard_result_id': 18389225, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29430268_15-12-2025_13_59_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29430343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29430344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29430345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29430346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29430347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29430348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29430349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29430350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29430351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29430352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29430353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29430354, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29432889, 'dashboard_result_id': 18389226, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29432889_15-12-2025_15_31_13.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29432891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29432892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29432893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29432894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29432895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29432896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29432897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29432898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29432899, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29432900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29432901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29432902, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29433153, 'dashboard_result_id': 18389227, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29433153_15-12-2025_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29433162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29433163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29433164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29433165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29433166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29433167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29433168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29433169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29433170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29433171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29433172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29433173, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29433905, 'dashboard_result_id': 18389228, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29433905_15-12-2025_14_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29433943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29433944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29433945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29433946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29433947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29433948, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29433949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29433950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29433951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29433952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29433953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29433954, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29434385, 'dashboard_result_id': 18389229, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29434385_15-12-2025_14_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29434405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29434406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29434407, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29434408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29434409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29434410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29434411, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29434412, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29434413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29434414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29434415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29434416, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29434903, 'dashboard_result_id': 18389230, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29434903_15-12-2025_15_03_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29434945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29434946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29434947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29434948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29434949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29434950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29434951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29434952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29434953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29434954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29434955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29434956, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29435551, 'dashboard_result_id': 18389231, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29435551_15-12-2025_15_17_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29435586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29435587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29435588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29435589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29435590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29435591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29435592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29435593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29435594, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29435595, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29435596, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29435597, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29436113, 'dashboard_result_id': 18389232, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29436113_15-12-2025_17_00_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29436117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29436118, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29436119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29436120, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29436121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29436122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29436123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29436124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29436125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29436126, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29436127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29436128, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29437436, 'dashboard_result_id': 18389233, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29437436_15-12-2025_17_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29437437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29437438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29437439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29437440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29437441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29437442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29437443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29437444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29437445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29437446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29437447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29437448, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29437655, 'dashboard_result_id': 18389234, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29437655_15-12-2025_17_22_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29437671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29437672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29437673, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29437674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29437675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29437676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29437677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29437678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29437679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29437680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29437681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29437682, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29438148, 'dashboard_result_id': 18389235, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29438148_15-12-2025_18_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29438150, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29438151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29438152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29438153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29438154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29438155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29438156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29438157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29438158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29438159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29438160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29438161, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29438540, 'dashboard_result_id': 18389236, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29438540_15-12-2025_18_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29438544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29438545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29438546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29438547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29438548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29438549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29438550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29438551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29438552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29438553, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29438554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29438555, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29439224, 'dashboard_result_id': 18389237, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29439224_15-12-2025_18_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29439228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29439229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29439230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29439231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29439232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29439233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29439234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29439235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29439236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29439237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29439238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29439239, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29439596, 'dashboard_result_id': 18389238, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29439596_15-12-2025_18_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29439610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29439611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29439612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29439613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29439614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29439615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29439616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29439617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29439618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29439619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29439620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29439621, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29440007, 'dashboard_result_id': 18389239, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29440007_15-12-2025_19_04_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29440012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29440013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29440014, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29440015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29440016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29440017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29440018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29440019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29440020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29440021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29440022, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29440023, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29440533, 'dashboard_result_id': 18389240, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29440533_15-12-2025_19_19_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29440560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29440561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29440562, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29440563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29440564, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29440565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29440566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29440567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29440568, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29440569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29440570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29440571, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29441116, 'dashboard_result_id': 18389241, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29441116_15-12-2025_19_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29441142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29441143, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29441144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29441145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29441146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29441147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29441148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29441149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29441150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29441151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29441152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29441153, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29441499, 'dashboard_result_id': 18389242, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29441499_15-12-2025_19_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29441542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29441543, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29441544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29441545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29441546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29441547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29441548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29441549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29441550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29441551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29441552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29441553, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29442030, 'dashboard_result_id': 18389243, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29442030_15-12-2025_20_05_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29442071, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29442072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29442073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29442074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29442075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29442076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29442077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29442078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29442080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29442081, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29442082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29442083, 'pht': 3726}}"}, {'dashboat_entry_day': 2736782, 'dashboard_run_id': 2747528, 'mtr_portfolio_id': 29442683, 'dashboard_result_id': 18389244, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29442683_15-12-2025_20_11_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29442692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29442693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29442694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29442695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29442696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29442697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29442698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29442699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29442700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29442701, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29442702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29442703, '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 = 29417280 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4221122, 'mtr_portfolio_id': 29417280, 'created_at': datetime.datetime(2025, 12, 15, 5, 33, 1), 'result': '0.08095185877014659', 'result_long': None, 'result_double': None}] Qualite : 0.08095185877014659 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29417280 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417280_15-12-2025_05_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29417280 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417280_15-12-2025_05_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417286, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417292, 'pht': 3726}}" where mtr_portfolio_id = 29417280 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29417280 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389200, 0.08095185877014659, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417280_15-12-2025_05_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417282, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417283, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417286, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417292, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29417539 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4221177, 'mtr_portfolio_id': 29417539, 'created_at': datetime.datetime(2025, 12, 15, 5, 48, 58), 'result': '0.059275304972668336', 'result_long': None, 'result_double': None}] Qualite : 0.059275304972668336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29417539 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417539_15-12-2025_05_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29417539 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417539_15-12-2025_05_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417553, 'pht': 3726}}" where mtr_portfolio_id = 29417539 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29417539 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389201, 0.059275304972668336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417539_15-12-2025_05_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417547, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417548, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417549, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417551, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417553, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29417857 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4221221, 'mtr_portfolio_id': 29417857, 'created_at': datetime.datetime(2025, 12, 15, 6, 2, 57), 'result': '0.054923622241066304', 'result_long': None, 'result_double': None}] Qualite : 0.054923622241066304 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29417857 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417857_15-12-2025_06_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29417857 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417857_15-12-2025_06_02_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417866, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417870, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417874, 'pht': 3726}}" where mtr_portfolio_id = 29417857 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29417857 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389202, 0.054923622241066304, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29417857_15-12-2025_06_02_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29417863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29417864, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29417865, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29417866, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29417867, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29417868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29417869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29417870, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29417871, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29417872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29417873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29417874, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29418257 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4221292, 'mtr_portfolio_id': 29418257, 'created_at': datetime.datetime(2025, 12, 15, 6, 16, 57), 'result': '0.035379643720681885', 'result_long': None, 'result_double': None}] Qualite : 0.035379643720681885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29418257 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29418257_15-12-2025_06_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29418257 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29418257_15-12-2025_06_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29418264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29418265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29418266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29418267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29418268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29418269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29418270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29418271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29418272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29418273, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29418274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29418275, 'pht': 3726}}" where mtr_portfolio_id = 29418257 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29418257 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389203, 0.035379643720681885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29418257_15-12-2025_06_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29418264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29418265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29418266, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29418267, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29418268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29418269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29418270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29418271, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29418272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29418273, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29418274, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29418275, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29418780 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4221376, 'mtr_portfolio_id': 29418780, 'created_at': datetime.datetime(2025, 12, 15, 6, 32, 59), 'result': '0.04544697938526784', 'result_long': None, 'result_double': None}] Qualite : 0.04544697938526784 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29418780 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29418780_15-12-2025_06_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29418780 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29418780_15-12-2025_06_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29418785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29418786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29418787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29418788, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29418789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29418790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29418791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29418792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29418793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29418794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29418795, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29418796, 'pht': 3726}}" where mtr_portfolio_id = 29418780 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29418780 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389204, 0.04544697938526784, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29418780_15-12-2025_06_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29418785, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29418786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29418787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29418788, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29418789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29418790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29418791, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29418792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29418793, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29418794, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29418795, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29418796, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29419219 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4221438, 'mtr_portfolio_id': 29419219, 'created_at': datetime.datetime(2025, 12, 15, 6, 46, 59), 'result': '0.0747152341677419', 'result_long': None, 'result_double': None}] Qualite : 0.0747152341677419 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29419219 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29419219_15-12-2025_06_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29419219 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29419219_15-12-2025_06_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29419252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29419253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29419254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29419255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29419256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29419257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29419258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29419259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29419260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29419261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29419262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29419263, 'pht': 3726}}" where mtr_portfolio_id = 29419219 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29419219 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389205, 0.0747152341677419, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29419219_15-12-2025_06_46_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29419252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29419253, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29419254, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29419255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29419256, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29419257, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29419258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29419259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29419260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29419261, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29419262, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29419263, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29419682 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4221506, 'mtr_portfolio_id': 29419682, 'created_at': datetime.datetime(2025, 12, 15, 7, 2, 58), 'result': '0.06600998562564021', 'result_long': None, 'result_double': None}] Qualite : 0.06600998562564021 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29419682 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29419682_15-12-2025_07_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29419682 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29419682_15-12-2025_07_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29419708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29419709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29419710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29419711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29419712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29419713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29419714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29419715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29419716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29419717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29419718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29419719, 'pht': 3726}}" where mtr_portfolio_id = 29419682 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29419682 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389206, 0.06600998562564021, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29419682_15-12-2025_07_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29419708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29419709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29419710, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29419711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29419712, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29419713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29419714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29419715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29419716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29419717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29419718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29419719, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29420083 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4221578, 'mtr_portfolio_id': 29420083, 'created_at': datetime.datetime(2025, 12, 15, 7, 16, 59), 'result': '0.05533257670567931', 'result_long': None, 'result_double': None}] Qualite : 0.05533257670567931 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29420083 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29420083_15-12-2025_07_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29420083 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29420083_15-12-2025_07_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29420109, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29420110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29420111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29420112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29420113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29420114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29420115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29420116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29420117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29420118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29420119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29420120, 'pht': 3726}}" where mtr_portfolio_id = 29420083 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29420083 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389207, 0.05533257670567931, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29420083_15-12-2025_07_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29420109, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29420110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29420111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29420112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29420113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29420114, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29420115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29420116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29420117, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29420118, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29420119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29420120, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29420617 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4221640, 'mtr_portfolio_id': 29420617, 'created_at': datetime.datetime(2025, 12, 15, 7, 32, 59), 'result': '0.044055000795832806', 'result_long': None, 'result_double': None}] Qualite : 0.044055000795832806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29420617 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29420617_15-12-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29420617 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29420617_15-12-2025_07_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29420626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29420627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29420628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29420629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29420630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29420631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29420632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29420633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29420634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29420635, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29420636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29420637, 'pht': 3726}}" where mtr_portfolio_id = 29420617 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29420617 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389208, 0.044055000795832806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29420617_15-12-2025_07_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29420626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29420627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29420628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29420629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29420630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29420631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29420632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29420633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29420634, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29420635, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29420636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29420637, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29421087 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4221714, 'mtr_portfolio_id': 29421087, 'created_at': datetime.datetime(2025, 12, 15, 7, 47), 'result': '0.0482016232493782', 'result_long': None, 'result_double': None}] Qualite : 0.0482016232493782 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29421087 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29421087_15-12-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29421087 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29421087_15-12-2025_07_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29421094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29421095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29421096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29421097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29421098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29421099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29421100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29421101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29421102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29421103, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29421104, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29421105, 'pht': 3726}}" where mtr_portfolio_id = 29421087 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29421087 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389209, 0.0482016232493782, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29421087_15-12-2025_07_47_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29421094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29421095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29421096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29421097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29421098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29421099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29421100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29421101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29421102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29421103, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29421104, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29421105, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29421545 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4221777, 'mtr_portfolio_id': 29421545, 'created_at': datetime.datetime(2025, 12, 15, 8, 2, 58), 'result': '0.04200446576288482', 'result_long': None, 'result_double': None}] Qualite : 0.04200446576288482 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29421545 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29421545_15-12-2025_08_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29421545 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29421545_15-12-2025_08_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29421546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29421547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29421548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29421549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29421550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29421551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29421552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29421553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29421554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29421555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29421556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29421557, 'pht': 3726}}" where mtr_portfolio_id = 29421545 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29421545 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389210, 0.04200446576288482, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29421545_15-12-2025_08_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29421546, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29421547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29421548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29421549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29421550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29421551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29421552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29421553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29421554, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29421555, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29421556, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29421557, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29422017 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4221848, 'mtr_portfolio_id': 29422017, 'created_at': datetime.datetime(2025, 12, 15, 8, 18, 59), 'result': '0.061341590517899613', 'result_long': None, 'result_double': None}] Qualite : 0.061341590517899613 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29422017 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422017_15-12-2025_08_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29422017 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422017_15-12-2025_08_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29422023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29422024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29422025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29422027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422028, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29422029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29422030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29422033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29422034, 'pht': 3726}}" where mtr_portfolio_id = 29422017 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29422017 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389211, 0.061341590517899613, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422017_15-12-2025_08_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29422023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29422024, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29422025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29422027, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422028, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29422029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29422030, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422031, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29422033, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29422034, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29422537 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4221908, 'mtr_portfolio_id': 29422537, 'created_at': datetime.datetime(2025, 12, 15, 8, 32, 58), 'result': '0.048219534664280514', 'result_long': None, 'result_double': None}] Qualite : 0.048219534664280514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29422537 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422537_15-12-2025_08_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29422537 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422537_15-12-2025_08_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29422542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29422544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29422546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29422551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29422553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29422555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29422556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29422558, 'pht': 3726}}" where mtr_portfolio_id = 29422537 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29422537 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389212, 0.048219534664280514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422537_15-12-2025_08_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29422542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29422544, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422545, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29422546, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422548, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29422551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422552, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29422553, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29422555, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29422556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29422558, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29422986 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4221960, 'mtr_portfolio_id': 29422986, 'created_at': datetime.datetime(2025, 12, 15, 8, 46, 59), 'result': '0.04898624944448178', 'result_long': None, 'result_double': None}] Qualite : 0.04898624944448178 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29422986 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422986_15-12-2025_08_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29422986 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422986_15-12-2025_08_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29423000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29423001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29423002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29423003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29423004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29423005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29423006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29423007, 'pht': 3726}}" where mtr_portfolio_id = 29422986 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29422986 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389213, 0.04898624944448178, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29422986_15-12-2025_08_47_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29422996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29422997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29422998, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29422999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29423000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29423001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29423002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29423003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29423004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29423005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29423006, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29423007, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29423463 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4222030, 'mtr_portfolio_id': 29423463, 'created_at': datetime.datetime(2025, 12, 15, 9, 39), 'result': '0.04124339822580909', 'result_long': None, 'result_double': None}] Qualite : 0.04124339822580909 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29423463 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29423463_15-12-2025_09_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29423463 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29423463_15-12-2025_09_39_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29423472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29423473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29423474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29423475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29423476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29423477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29423478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29423479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29423480, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29423481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29423482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29423483, 'pht': 3726}}" where mtr_portfolio_id = 29423463 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29423463 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389214, 0.04124339822580909, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29423463_15-12-2025_09_39_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29423472, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29423473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29423474, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29423475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29423476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29423477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29423478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29423479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29423480, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29423481, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29423482, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29423483, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29424399 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4222215, 'mtr_portfolio_id': 29424399, 'created_at': datetime.datetime(2025, 12, 15, 9, 48, 59), 'result': '0.023366036070767617', 'result_long': None, 'result_double': None}] Qualite : 0.023366036070767617 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29424399 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424399_15-12-2025_09_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29424399 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424399_15-12-2025_09_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29424417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29424418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29424419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29424420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29424421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29424422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29424423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29424424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29424425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29424426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29424427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29424428, 'pht': 3726}}" where mtr_portfolio_id = 29424399 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29424399 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389215, 0.023366036070767617, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424399_15-12-2025_09_49_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29424417, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29424418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29424419, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29424420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29424421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29424422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29424423, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29424424, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29424425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29424426, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29424427, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29424428, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29424626 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4222240, 'mtr_portfolio_id': 29424626, 'created_at': datetime.datetime(2025, 12, 15, 10, 3), 'result': '0.050377449323845976', 'result_long': None, 'result_double': None}] Qualite : 0.050377449323845976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29424626 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424626_15-12-2025_10_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29424626 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424626_15-12-2025_10_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29424631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29424632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29424633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29424634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29424635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29424636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29424637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29424638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29424639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29424640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29424641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29424642, 'pht': 3726}}" where mtr_portfolio_id = 29424626 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29424626 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389216, 0.050377449323845976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424626_15-12-2025_10_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29424631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29424632, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29424633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29424634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29424635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29424636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29424637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29424638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29424639, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29424640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29424641, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29424642, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29424984 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4222310, 'mtr_portfolio_id': 29424984, 'created_at': datetime.datetime(2025, 12, 15, 10, 16, 58), 'result': '0.03910905134750454', 'result_long': None, 'result_double': None}] Qualite : 0.03910905134750454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29424984 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424984_15-12-2025_10_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29424984 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424984_15-12-2025_10_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29425000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29425001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29425002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29425003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29425004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29425005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29425006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29425007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29425008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29425009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29425010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29425011, 'pht': 3726}}" where mtr_portfolio_id = 29424984 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29424984 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389217, 0.03910905134750454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29424984_15-12-2025_10_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29425000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29425001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29425002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29425003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29425004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29425005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29425006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29425007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29425008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29425009, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29425010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29425011, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29425574 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4222390, 'mtr_portfolio_id': 29425574, 'created_at': datetime.datetime(2025, 12, 15, 10, 33), 'result': '0.044997294513022486', 'result_long': None, 'result_double': None}] Qualite : 0.044997294513022486 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29425574 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29425574_15-12-2025_10_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29425574 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29425574_15-12-2025_10_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29425583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29425584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29425585, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29425586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29425587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29425588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29425589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29425590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29425591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29425592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29425593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29425594, 'pht': 3726}}" where mtr_portfolio_id = 29425574 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29425574 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389218, 0.044997294513022486, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29425574_15-12-2025_10_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29425583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29425584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29425585, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29425586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29425587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29425588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29425589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29425590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29425591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29425592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29425593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29425594, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29426150 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4222461, 'mtr_portfolio_id': 29426150, 'created_at': datetime.datetime(2025, 12, 15, 10, 48, 59), 'result': '0.041089215346454225', 'result_long': None, 'result_double': None}] Qualite : 0.041089215346454225 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29426150 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29426150_15-12-2025_10_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29426150 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29426150_15-12-2025_10_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29426158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29426159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29426160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29426161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29426162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29426163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29426164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29426165, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29426166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29426167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29426168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29426169, 'pht': 3726}}" where mtr_portfolio_id = 29426150 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29426150 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389219, 0.041089215346454225, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29426150_15-12-2025_10_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29426158, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29426159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29426160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29426161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29426162, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29426163, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29426164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29426165, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29426166, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29426167, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29426168, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29426169, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29426847 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4222552, 'mtr_portfolio_id': 29426847, 'created_at': datetime.datetime(2025, 12, 15, 11, 3, 27), 'result': '0.03976516800076462', 'result_long': None, 'result_double': None}] Qualite : 0.03976516800076462 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29426847 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29426847_15-12-2025_11_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29426847 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29426847_15-12-2025_11_03_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29426855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29426856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29426857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29426858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29426859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29426860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29426861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29426862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29426863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29426864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29426865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29426866, 'pht': 3726}}" where mtr_portfolio_id = 29426847 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29426847 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389220, 0.03976516800076462, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29426847_15-12-2025_11_03_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29426855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29426856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29426857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29426858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29426859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29426860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29426861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29426862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29426863, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29426864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29426865, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29426866, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29427202 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4222630, 'mtr_portfolio_id': 29427202, 'created_at': datetime.datetime(2025, 12, 15, 11, 18, 58), 'result': '0.04408849281219146', 'result_long': None, 'result_double': None}] Qualite : 0.04408849281219146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29427202 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29427202_15-12-2025_11_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29427202 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29427202_15-12-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29427206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29427207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29427208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29427209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29427210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29427211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29427212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29427213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29427214, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29427215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29427216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29427217, 'pht': 3726}}" where mtr_portfolio_id = 29427202 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29427202 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389221, 0.04408849281219146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29427202_15-12-2025_11_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29427206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29427207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29427208, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29427209, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29427210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29427211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29427212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29427213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29427214, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29427215, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29427216, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29427217, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29427865 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4222741, 'mtr_portfolio_id': 29427865, 'created_at': datetime.datetime(2025, 12, 15, 11, 33), 'result': '0.06248692052815361', 'result_long': None, 'result_double': None}] Qualite : 0.06248692052815361 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29427865 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29427865_15-12-2025_11_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29427865 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29427865_15-12-2025_11_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29427874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29427875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29427876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29427877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29427878, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29427880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29427882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29427884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29427887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29427890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29427892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29427894, 'pht': 3726}}" where mtr_portfolio_id = 29427865 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29427865 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389222, 0.06248692052815361, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29427865_15-12-2025_11_33_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29427874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29427875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29427876, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29427877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29427878, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29427880, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29427882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29427884, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29427887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29427890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29427892, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29427894, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29428659 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4222866, 'mtr_portfolio_id': 29428659, 'created_at': datetime.datetime(2025, 12, 15, 11, 49, 28), 'result': '0.07080270824002162', 'result_long': None, 'result_double': None}] Qualite : 0.07080270824002162 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29428659 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29428659_15-12-2025_11_49_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29428659 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29428659_15-12-2025_11_49_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29428713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29428714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29428715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29428716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29428717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29428718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29428719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29428720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29428721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29428722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29428723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29428724, 'pht': 3726}}" where mtr_portfolio_id = 29428659 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29428659 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389223, 0.07080270824002162, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29428659_15-12-2025_11_49_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29428713, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29428714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29428715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29428716, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29428717, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29428718, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29428719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29428720, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29428721, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29428722, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29428723, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29428724, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29429470 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4222952, 'mtr_portfolio_id': 29429470, 'created_at': datetime.datetime(2025, 12, 15, 12, 3, 30), 'result': '0.04664622241252287', 'result_long': None, 'result_double': None}] Qualite : 0.04664622241252287 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29429470 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29429470_15-12-2025_12_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29429470 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29429470_15-12-2025_12_03_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29429477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29429478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29429479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29429480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29429481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29429482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29429483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29429484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29429485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29429486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29429487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29429488, 'pht': 3726}}" where mtr_portfolio_id = 29429470 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29429470 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389224, 0.04664622241252287, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29429470_15-12-2025_12_03_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29429477, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29429478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29429479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29429480, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29429481, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29429482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29429483, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29429484, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29429485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29429486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29429487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29429488, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29430268 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4223072, 'mtr_portfolio_id': 29430268, 'created_at': datetime.datetime(2025, 12, 15, 13, 59, 58), 'result': '0.051451681152082505', 'result_long': None, 'result_double': None}] Qualite : 0.051451681152082505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29430268 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29430268_15-12-2025_13_59_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29430268 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29430268_15-12-2025_13_59_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29430343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29430344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29430345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29430346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29430347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29430348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29430349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29430350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29430351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29430352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29430353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29430354, 'pht': 3726}}" where mtr_portfolio_id = 29430268 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29430268 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389225, 0.051451681152082505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29430268_15-12-2025_13_59_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29430343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29430344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29430345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29430346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29430347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29430348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29430349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29430350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29430351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29430352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29430353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29430354, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29432889 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4223393, 'mtr_portfolio_id': 29432889, 'created_at': datetime.datetime(2025, 12, 15, 15, 31, 12), 'result': '0.049269932742528146', 'result_long': None, 'result_double': None}] Qualite : 0.049269932742528146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29432889 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29432889_15-12-2025_15_31_13.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29432889 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29432889_15-12-2025_15_31_13.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29432891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29432892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29432893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29432894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29432895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29432896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29432897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29432898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29432899, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29432900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29432901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29432902, 'pht': 3726}}" where mtr_portfolio_id = 29432889 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29432889 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389226, 0.049269932742528146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29432889_15-12-2025_15_31_13.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29432891, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29432892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29432893, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29432894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29432895, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29432896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29432897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29432898, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29432899, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29432900, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29432901, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29432902, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29433153 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4223435, 'mtr_portfolio_id': 29433153, 'created_at': datetime.datetime(2025, 12, 15, 14, 16, 59), 'result': '0.05549547159519192', 'result_long': None, 'result_double': None}] Qualite : 0.05549547159519192 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29433153 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29433153_15-12-2025_14_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29433153 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29433153_15-12-2025_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29433162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29433163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29433164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29433165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29433166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29433167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29433168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29433169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29433170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29433171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29433172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29433173, 'pht': 3726}}" where mtr_portfolio_id = 29433153 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29433153 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389227, 0.05549547159519192, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29433153_15-12-2025_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29433162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29433163, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29433164, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29433165, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29433166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29433167, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29433168, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29433169, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29433170, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29433171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29433172, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29433173, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29433905 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4223496, 'mtr_portfolio_id': 29433905, 'created_at': datetime.datetime(2025, 12, 15, 14, 32, 59), 'result': '0.050189537108803944', 'result_long': None, 'result_double': None}] Qualite : 0.050189537108803944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29433905 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29433905_15-12-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29433905 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29433905_15-12-2025_14_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29433943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29433944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29433945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29433946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29433947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29433948, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29433949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29433950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29433951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29433952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29433953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29433954, 'pht': 3726}}" where mtr_portfolio_id = 29433905 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29433905 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389228, 0.050189537108803944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29433905_15-12-2025_14_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29433943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29433944, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29433945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29433946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29433947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29433948, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29433949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29433950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29433951, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29433952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29433953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29433954, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29434385 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4223568, 'mtr_portfolio_id': 29434385, 'created_at': datetime.datetime(2025, 12, 15, 14, 46, 57), 'result': '0.05789859931694508', 'result_long': None, 'result_double': None}] Qualite : 0.05789859931694508 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29434385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29434385_15-12-2025_14_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29434385 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29434385_15-12-2025_14_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29434405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29434406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29434407, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29434408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29434409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29434410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29434411, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29434412, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29434413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29434414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29434415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29434416, 'pht': 3726}}" where mtr_portfolio_id = 29434385 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29434385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389229, 0.05789859931694508, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29434385_15-12-2025_14_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29434405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29434406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29434407, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29434408, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29434409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29434410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29434411, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29434412, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29434413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29434414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29434415, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29434416, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29434903 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4223642, 'mtr_portfolio_id': 29434903, 'created_at': datetime.datetime(2025, 12, 15, 15, 3, 1), 'result': '0.05715806604027841', 'result_long': None, 'result_double': None}] Qualite : 0.05715806604027841 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29434903 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29434903_15-12-2025_15_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29434903 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29434903_15-12-2025_15_03_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29434945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29434946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29434947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29434948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29434949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29434950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29434951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29434952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29434953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29434954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29434955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29434956, 'pht': 3726}}" where mtr_portfolio_id = 29434903 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29434903 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389230, 0.05715806604027841, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29434903_15-12-2025_15_03_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29434945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29434946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29434947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29434948, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29434949, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29434950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29434951, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29434952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29434953, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29434954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29434955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29434956, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29435551 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4223757, 'mtr_portfolio_id': 29435551, 'created_at': datetime.datetime(2025, 12, 15, 15, 17, 29), 'result': '0.06764419629511244', 'result_long': None, 'result_double': None}] Qualite : 0.06764419629511244 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29435551 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29435551_15-12-2025_15_17_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29435551 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29435551_15-12-2025_15_17_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29435586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29435587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29435588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29435589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29435590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29435591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29435592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29435593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29435594, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29435595, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29435596, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29435597, 'pht': 3726}}" where mtr_portfolio_id = 29435551 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29435551 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389231, 0.06764419629511244, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29435551_15-12-2025_15_17_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29435586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29435587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29435588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29435589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29435590, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29435591, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29435592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29435593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29435594, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29435595, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29435596, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29435597, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29436113 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4223817, 'mtr_portfolio_id': 29436113, 'created_at': datetime.datetime(2025, 12, 15, 17, 0), 'result': '0.07659178525822109', 'result_long': None, 'result_double': None}] Qualite : 0.07659178525822109 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29436113 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29436113_15-12-2025_17_00_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29436113 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29436113_15-12-2025_17_00_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29436117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29436118, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29436119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29436120, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29436121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29436122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29436123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29436124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29436125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29436126, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29436127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29436128, 'pht': 3726}}" where mtr_portfolio_id = 29436113 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29436113 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389232, 0.07659178525822109, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29436113_15-12-2025_17_00_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29436117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29436118, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29436119, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29436120, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29436121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29436122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29436123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29436124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29436125, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29436126, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29436127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29436128, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29437436 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4230188, 'mtr_portfolio_id': 29437436, 'created_at': datetime.datetime(2025, 12, 15, 17, 2, 58), 'result': '0.06790046533854109', 'result_long': None, 'result_double': None}] Qualite : 0.06790046533854109 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29437436 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29437436_15-12-2025_17_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29437436 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29437436_15-12-2025_17_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29437437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29437438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29437439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29437440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29437441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29437442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29437443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29437444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29437445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29437446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29437447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29437448, 'pht': 3726}}" where mtr_portfolio_id = 29437436 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29437436 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389233, 0.06790046533854109, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29437436_15-12-2025_17_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29437437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29437438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29437439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29437440, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29437441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29437442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29437443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29437444, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29437445, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29437446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29437447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29437448, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29437655 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4230226, 'mtr_portfolio_id': 29437655, 'created_at': datetime.datetime(2025, 12, 15, 17, 22, 56), 'result': '0.05734789577549617', 'result_long': None, 'result_double': None}] Qualite : 0.05734789577549617 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29437655 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29437655_15-12-2025_17_22_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29437655 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29437655_15-12-2025_17_22_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29437671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29437672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29437673, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29437674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29437675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29437676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29437677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29437678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29437679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29437680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29437681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29437682, 'pht': 3726}}" where mtr_portfolio_id = 29437655 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29437655 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389234, 0.05734789577549617, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29437655_15-12-2025_17_22_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29437671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29437672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29437673, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29437674, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29437675, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29437676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29437677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29437678, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29437679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29437680, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29437681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29437682, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29438148 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4230291, 'mtr_portfolio_id': 29438148, 'created_at': datetime.datetime(2025, 12, 15, 18, 4, 58), 'result': '0.030854252528100163', 'result_long': None, 'result_double': None}] Qualite : 0.030854252528100163 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29438148 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29438148_15-12-2025_18_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29438148 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29438148_15-12-2025_18_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29438150, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29438151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29438152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29438153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29438154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29438155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29438156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29438157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29438158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29438159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29438160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29438161, 'pht': 3726}}" where mtr_portfolio_id = 29438148 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29438148 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389235, 0.030854252528100163, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29438148_15-12-2025_18_04_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29438150, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29438151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29438152, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29438153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29438154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29438155, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29438156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29438157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29438158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29438159, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29438160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29438161, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29438540 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4230383, 'mtr_portfolio_id': 29438540, 'created_at': datetime.datetime(2025, 12, 15, 18, 18, 58), 'result': '0.052467402099074835', 'result_long': None, 'result_double': None}] Qualite : 0.052467402099074835 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29438540 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29438540_15-12-2025_18_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29438540 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29438540_15-12-2025_18_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29438544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29438545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29438546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29438547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29438548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29438549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29438550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29438551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29438552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29438553, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29438554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29438555, 'pht': 3726}}" where mtr_portfolio_id = 29438540 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29438540 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389236, 0.052467402099074835, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29438540_15-12-2025_18_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29438544, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29438545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29438546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29438547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29438548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29438549, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29438550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29438551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29438552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29438553, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29438554, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29438555, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29439224 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4230431, 'mtr_portfolio_id': 29439224, 'created_at': datetime.datetime(2025, 12, 15, 18, 33), 'result': '0.05777832445585288', 'result_long': None, 'result_double': None}] Qualite : 0.05777832445585288 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29439224 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29439224_15-12-2025_18_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29439224 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29439224_15-12-2025_18_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29439228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29439229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29439230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29439231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29439232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29439233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29439234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29439235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29439236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29439237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29439238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29439239, 'pht': 3726}}" where mtr_portfolio_id = 29439224 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29439224 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389237, 0.05777832445585288, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29439224_15-12-2025_18_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29439228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29439229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29439230, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29439231, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29439232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29439233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29439234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29439235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29439236, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29439237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29439238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29439239, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29439596 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4230465, 'mtr_portfolio_id': 29439596, 'created_at': datetime.datetime(2025, 12, 15, 18, 48, 58), 'result': '0.05076267624795852', 'result_long': None, 'result_double': None}] Qualite : 0.05076267624795852 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29439596 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29439596_15-12-2025_18_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29439596 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29439596_15-12-2025_18_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29439610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29439611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29439612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29439613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29439614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29439615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29439616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29439617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29439618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29439619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29439620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29439621, 'pht': 3726}}" where mtr_portfolio_id = 29439596 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29439596 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389238, 0.05076267624795852, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29439596_15-12-2025_18_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29439610, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29439611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29439612, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29439613, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29439614, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29439615, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29439616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29439617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29439618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29439619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29439620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29439621, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29440007 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4230518, 'mtr_portfolio_id': 29440007, 'created_at': datetime.datetime(2025, 12, 15, 19, 4, 57), 'result': '0.05841197488792572', 'result_long': None, 'result_double': None}] Qualite : 0.05841197488792572 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29440007 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29440007_15-12-2025_19_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29440007 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29440007_15-12-2025_19_04_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29440012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29440013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29440014, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29440015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29440016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29440017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29440018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29440019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29440020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29440021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29440022, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29440023, 'pht': 3726}}" where mtr_portfolio_id = 29440007 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29440007 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389239, 0.05841197488792572, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29440007_15-12-2025_19_04_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29440012, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29440013, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29440014, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29440015, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29440016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29440017, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29440018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29440019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29440020, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29440021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29440022, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29440023, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29440533 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4230595, 'mtr_portfolio_id': 29440533, 'created_at': datetime.datetime(2025, 12, 15, 19, 19), 'result': '0.05269368882626987', 'result_long': None, 'result_double': None}] Qualite : 0.05269368882626987 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29440533 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29440533_15-12-2025_19_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29440533 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29440533_15-12-2025_19_19_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29440560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29440561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29440562, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29440563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29440564, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29440565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29440566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29440567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29440568, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29440569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29440570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29440571, 'pht': 3726}}" where mtr_portfolio_id = 29440533 and dashboard_run_id = 2747528 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29440533 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389240, 0.05269368882626987, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29440533_15-12-2025_19_19_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29440560, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29440561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29440562, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29440563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29440564, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29440565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29440566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29440567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29440568, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29440569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29440570, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29440571, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29441116 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4230668, 'mtr_portfolio_id': 29441116, 'created_at': datetime.datetime(2025, 12, 15, 19, 32, 59), 'result': '0.034061071088877015', 'result_long': None, 'result_double': None}] Qualite : 0.034061071088877015 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29441116 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29441116_15-12-2025_19_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29441116 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29441116_15-12-2025_19_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29441142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29441143, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29441144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29441145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29441146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29441147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29441148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29441149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29441150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29441151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29441152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29441153, 'pht': 3726}}" where mtr_portfolio_id = 29441116 and dashboard_run_id = 2747526 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29441116 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389241, 0.034061071088877015, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29441116_15-12-2025_19_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29441142, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29441143, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29441144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29441145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29441146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29441147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29441148, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29441149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29441150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29441151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29441152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29441153, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29441499 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4230726, 'mtr_portfolio_id': 29441499, 'created_at': datetime.datetime(2025, 12, 15, 19, 47, 1), 'result': '0.05794444561786007', 'result_long': None, 'result_double': None}] Qualite : 0.05794444561786007 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29441499 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29441499_15-12-2025_19_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29441499 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29441499_15-12-2025_19_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29441542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29441543, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29441544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29441545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29441546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29441547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29441548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29441549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29441550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29441551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29441552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29441553, 'pht': 3726}}" where mtr_portfolio_id = 29441499 and dashboard_run_id = 2747526 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29441499 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389242, 0.05794444561786007, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29441499_15-12-2025_19_47_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29441542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29441543, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29441544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29441545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29441546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29441547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29441548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29441549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29441550, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29441551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29441552, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29441553, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29442030 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4230795, 'mtr_portfolio_id': 29442030, 'created_at': datetime.datetime(2025, 12, 15, 20, 4, 59), 'result': '0.05167239080343178', 'result_long': None, 'result_double': None}] Qualite : 0.05167239080343178 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29442030 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29442030_15-12-2025_20_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29442030 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29442030_15-12-2025_20_05_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29442071, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29442072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29442073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29442074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29442075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29442076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29442077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29442078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29442080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29442081, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29442082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29442083, 'pht': 3726}}" where mtr_portfolio_id = 29442030 and dashboard_run_id = 2747526 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29442030 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389243, 0.05167239080343178, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29442030_15-12-2025_20_05_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29442071, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29442072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29442073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29442074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29442075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29442076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29442077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29442078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29442080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29442081, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29442082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29442083, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29442683 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4230892, 'mtr_portfolio_id': 29442683, 'created_at': datetime.datetime(2025, 12, 15, 20, 15), 'result': '0.04452403275494677', 'result_long': None, 'result_double': None}] Qualite : 0.04452403275494677 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29442683 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29442683_15-12-2025_20_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29442683 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29442683_15-12-2025_20_15_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29442692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29442693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29442694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29442695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29442696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29442697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29442698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29442699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29442700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29442701, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29442702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29442703, 'pht': 3726}}" where mtr_portfolio_id = 29442683 and dashboard_run_id = 2747526 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29442683 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18389244, 0.04452403275494677, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29442683_15-12-2025_20_15_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29442692, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29442693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29442694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29442695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29442696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29442697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29442698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29442699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29442700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29442701, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29442702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29442703, '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 (29417280,29417539,29417857,29418257,29418780,29419219,29419682,29420083,29420617,29421087,29421545,29422017,29422537,29422986,29423463,29424399,29424626,29424984,29425574,29426150,29426847,29427202,29427865,29428659,29429470,29430268,29432889,29433153,29433905,29434385,29434903,29435551,29436113,29437436,29437655,29438148,29438540,29439224,29439596,29440007,29440533,29441116,29441499,29442030,29442683) result : ((1399431985,), (1399432443,), (1399432911,), (1399432913,), (1399432950,), (1399432963,), (1399432964,), (1399432965,), (1399432976,), (1399433319,), (1399433313,), (1399433324,), (1399433326,), (1399433328,), (1399433339,), (1399433340,), (1399433341,), (1399433342,), (1399433344,), (1399433358,), (1399433360,), (1399433362,), (1399433373,), (1399433374,), (1399433375,), (1399433376,), (1399433395,), (1399433397,), (1399433399,), (1399433401,), (1399433418,), (1399433419,), (1399433420,), (1399433422,), (1399433424,), (1399433427,), (1399433434,), (1399433436,), (1399433438,), (1399433446,), (1399433451,), (1399433452,), (1399433454,), (1399433456,), (1399433465,), (1399433467,), (1399433469,), (1399433471,), (1399433473,), (1399433503,), (1399433505,), (1399433506,), (1399433507,), (1399433519,), (1399433521,), (1399433523,), (1399433526,), (1399433529,), (1399433550,), (1399433552,), (1399433554,), (1399433557,), (1399433567,), (1399433569,), (1399433570,), (1399433572,), (1399433574,), (1399433599,), (1399433601,), (1399433603,), (1399433605,), (1399433607,), (1399433609,), (1399433616,), (1399433617,), (1399433619,), (1399433620,), (1399433653,), (1399433688,), (1399433643,), (1399433645,), (1399433647,), (1399433649,), (1399433651,), (1399433662,), (1399433663,), (1399433664,), (1399433665,), (1399433666,), (1399433667,), (1399433675,), (1399433683,), (1399433686,), (1399433694,), (1399433696,), (1399433698,), (1399433699,), (1399433700,), (1399433701,), (1399433715,), (1399433717,), (1399433718,), (1399433719,), (1399433721,), (1399433723,), (1399433742,), (1399433744,), (1399433746,), (1399433748,), (1399433759,), (1399433760,), (1399433761,), (1399433762,), (1399433764,), (1399433766,), (1399433787,), (1399433789,), (1399433791,), (1399433793,), (1399433795,), (1399433803,), (1399433804,), (1399433805,), (1399433806,), (1399433830,), (1399433832,), (1399433834,), (1399433836,), (1399433838,), (1399433847,), (1399433849,), (1399433851,), (1399433854,), (1399433857,), (1399433860,), (1399433874,), (1399433875,), (1399433881,), (1399433887,), (1399433903,), (1399433904,), (1399433905,), (1399433906,), (1399433907,), (1399433928,), (1399433929,), (1399433930,), (1399433931,), (1399433933,), (1399433934,), (1399434155,), (1399434167,), (1399434200,), (1399434339,), (1399434376,), (1399434413,), (1399434445,), (1399434481,), (1399434723,), (1399434651,), (1399434690,), (1399434957,), (1399435741,), (1399435759,), (1399435761,), (1399435762,), (1399435763,), (1399435795,), (1399435800,), (1399435802,), (1399435804,), (1399435807,), (1399435823,), (1399435824,), (1399435825,), (1399435828,), (1399435831,), (1399435833,), (1399435854,), (1399435857,), (1399435858,), (1399435859,), (1399435860,), (1399435864,), (1399435866,), (1399435882,), (1399435883,), (1399435884,), (1399435885,), (1399435888,), (1399435891,), (1399435912,), (1399435914,), (1399435916,), (1399435918,), (1399435921,), (1399435924,), (1399435935,), (1399435937,), (1399435938,), (1399435941,), (1399435944,), (1399435947,), (1399435964,), (1399435968,), (1399435975,), (1399435984,), (1399435987,), (1399435988,), (1399436006,), (1399436008,), (1399436010,), (1399436014,), (1399436018,), (1399436032,), (1399436034,), (1399436036,), (1399436039,), (1399436053,), (1399436055,), (1399436058,), (1399436062,), (1399436067,), (1399436069,), (1399436097,), (1399436090,), (1399436112,), (1399436114,), (1399436115,), (1399436116,), (1399436118,), (1399436121,), (1399436142,), (1399436143,), (1399436144,), (1399436145,), (1399436147,), (1399436150,), (1399436165,), (1399436167,), (1399436168,), (1399436169,), (1399436199,), (1399436200,), (1399436201,), (1399436214,), (1399436216,), (1399436218,), (1399436237,), (1399436238,), (1399436239,), (1399436240,), (1399436243,), (1399436261,), (1399436263,), (1399436265,), (1399436267,), (1399436293,), (1399436295,), (1399436296,), (1399436297,), (1399436299,), (1399436313,), (1399436314,), (1399436315,), (1399436316,), (1399436318,), (1399436321,), (1399436348,), (1399436351,), (1399436353,), (1399436355,), (1399436358,), (1399436376,), (1399436378,), (1399436381,), (1399436384,), (1399436387,), (1399436393,), (1399436402,), (1399436404,), (1399436406,), (1399436416,), (1399436417,), (1399436419,), (1399436422,), (1399436425,), (1399436428,), (1399436438,), (1399436444,), (1399436446,), (1399436448,), (1399436470,), (1399436471,), (1399436473,), (1399436501,), (1399436489,), (1399436491,), (1399436493,), (1399436495,), (1399436498,), (1399436521,), (1399436528,), (1399436529,), (1399436530,), (1399436533,), (1399436536,), (1399436553,), (1399436561,), (1399436563,), (1399436565,), (1399436568,), (1399436570,), (1399436590,), (1399436592,), (1399436594,), (1399436596,), (1399436598,), (1399436622,), (1399436623,), (1399436624,), (1399436625,), (1399436627,), (1399436656,), (1399436661,), (1399436663,), (1399436665,), (1399436668,), (1399436671,), (1399436684,), (1399436685,), (1399436686,), (1399436689,), (1399436692,), (1399436695,), (1399436714,), (1399436716,), (1399436724,), (1399436729,), (1399436732,), (1399436734,), (1399436736,), (1399436738,), (1399436741,), (1399436749,), (1399436750,), (1399436757,), (1399436762,), (1399436765,), (1399436768,), (1399436794,), (1399436796,), (1399436812,), (1399436815,), (1399436817,), (1399436821,), (1399436824,), (1399436831,), (1399436840,), (1399436842,), (1399436844,), (1399436893,), (1399436898,), (1399436899,), (1399436900,), (1399436935,), (1399436947,), (1399436951,), (1399436967,), (1399436969,), (1399436971,), (1399436973,), (1399436976,), (1399437024,), (1399437013,), (1399437022,), (1399437044,), (1399437046,), (1399437048,), (1399437051,), (1399437078,), (1399437079,), (1399437080,), (1399437081,), (1399437084,), (1399437086,), (1399437099,), (1399437101,), (1399437103,), (1399437134,), (1399437135,), (1399437136,), (1399437137,), (1399437139,), (1399437142,), (1399437165,), (1399437166,), (1399437168,), (1399437170,), (1399437172,), (1399437173,), (1399437182,), (1399437184,), (1399437187,), (1399437190,), (1399437199,), (1399437201,), (1399437204,), (1399437219,), (1399437221,), (1399437222,), (1399437224,), (1399437227,), (1399437230,), (1399437257,), (1399437258,), (1399437259,), (1399437260,), (1399437263,), (1399437265,), (1399437281,), (1399437284,), (1399437286,), (1399437325,), (1399437326,), (1399437327,), (1399437328,), (1399437331,), (1399437333,), (1399437347,), (1399437350,), (1399437353,), (1399437358,), (1399437361,), (1399437364,), (1399437372,), (1399437374,), (1399437375,), (1399437377,), (1399437379,), (1399437436,), (1399437472,), (1399437506,), (1399437543,), (1399437625,), (1399437629,), (1399437633,), (1399437636,), (1399437639,), (1399437643,), (1399437872,), (1399437743,), (1399437776,), (1399437807,), (1399437840,), (1399438224,), (1399438247,), (1399438249,), (1399438421,), (1399438430,), (1399438451,), (1399438452,), (1399438455,), (1399438486,), (1399438815,), (1399438845,), (1399438877,), (1399439303,), (1399439336,), (1399439342,), (1399439344,), (1399439347,), (1399439350,), (1399439379,), (1399439413,), (1399439444,), (1399439476,), (1399439737,), (1399439743,), (1399439745,), (1399439761,), (1399439794,), (1399439838,), (1399439842,), (1399439843,), (1399439870,), (1399439872,), (1399439874,), (1399439898,), (1399439922,), (1399439924,), (1399439926,), (1399439961,), (1399439963,), (1399439965,), (1399439967,), (1399439985,), (1399439986,), (1399439987,), (1399439988,), (1399440009,), (1399440011,), (1399440013,), (1399440015,), (1399440040,), (1399440044,), (1399440046,), (1399440047,), (1399440050,), (1399440054,), (1399440084,), (1399440078,), (1399440080,), (1399440082,), (1399440102,), (1399440103,), (1399440104,), (1399440105,), (1399440108,), (1399440111,), (1399440124,), (1399440125,), (1399440127,), (1399440129,), (1399440132,), (1399440135,), (1399440149,), (1399440151,), (1399440153,), (1399440180,), (1399440182,), (1399440184,), (1399440186,), (1399440189,), (1399440191,), (1399440201,), (1399440203,), (1399440205,), (1399440207,), (1399440226,), (1399440227,), (1399440228,), (1399440229,), (1399440253,), (1399440259,), (1399440261,), (1399440263,), (1399440266,), (1399440271,), (1399440288,), (1399440290,), (1399440292,), (1399440294,), (1399440297,), (1399440300,), (1399440311,), (1399440312,), (1399440313,), (1399440314,), (1399440341,), (1399440344,), (1399440346,), (1399440369,), (1399440371,), (1399440373,), (1399440377,), (1399440397,), (1399440399,), (1399440401,), (1399440403,), (1399440420,), (1399440421,), (1399440441,), (1399440443,), (1399440445,), (1399440447,), (1399440450,), (1399440482,), (1399440479,), (1399440480,), (1399440520,), (1399440521,), (1399440522,), (1399440536,), (1399440538,), (1399440540,), (1399440542,), (1399440545,), (1399440546,), (1399440572,), (1399440573,), (1399440574,), (1399440575,), (1399440578,), (1399440581,), (1399440596,), (1399440598,), (1399440600,), (1399440626,), (1399440628,), (1399440630,), (1399440632,), (1399440635,), (1399440638,), (1399440649,), (1399440651,), (1399440655,), (1399440659,), (1399440667,), (1399440671,), (1399440676,), (1399440677,), (1399440678,), (1399440685,), (1399440688,), (1399440692,), (1399440694,), (1399440697,), (1399440710,), (1399440711,), (1399440713,), (1399440714,), (1399440717,), (1399440749,), (1399440751,), (1399440753,), (1399440755,), (1399440758,), (1399440773,), (1399440775,), (1399440777,), (1399440798,), (1399440799,), (1399440800,), (1399440809,), (1399440847,), (1399440855,), (1399440857,), (1399440859,), (1399440891,), (1399440894,), (1399440895,), (1399440914,), (1399440916,), (1399440918,), (1399440922,), (1399440926,), (1399440963,), (1399440983,), (1399440984,), (1399440986,), (1399440988,), (1399441012,), (1399441014,), (1399441016,), (1399441018,), (1399441021,), (1399441041,), (1399441042,), (1399441043,), (1399441044,), (1399441066,), (1399441068,), (1399441070,), (1399441072,), (1399441090,), (1399441091,), (1399441092,), (1399441118,), (1399441122,), (1399441124,), (1399441146,), (1399441148,), (1399441150,), (1399441155,), (1399441159,), (1399441163,), (1399441177,), (1399441179,), (1399441181,), (1399441183,), (1399441186,), (1399441202,), (1399441205,), (1399441210,), (1399441214,), (1399441221,), (1399441227,), (1399441234,), (1399441237,), (1399441240,), (1399441242,), (1399441247,), (1399441249,), (1399441251,), (1399441274,), (1399441275,), (1399441278,), (1399441283,), (1399441288,), (1399441293,), (1399441297,), (1399441299,), (1399441300,), (1399441304,), (1399441306,), (1399441309,), (1399441312,), (1399441337,), (1399441339,), (1399441342,), (1399441344,), (1399441704,), (1399441572,), (1399441605,), (1399441637,), (1399441668,), (1399442096,), (1399442124,), (1399442171,), (1399442225,), (1399442286,), (1399442825,), (1399442858,), (1399442890,), (1399443000,), (1399443002,), (1399443004,), (1399443006,), (1399443375,), (1399443381,), (1399443389,), (1399443390,), (1399443415,), (1399443573,), (1399443579,), (1399443580,), (1399443596,), (1399443598,), (1399443599,), (1399443601,), (1399443621,), (1399443622,), (1399443623,), (1399443646,), (1399443670,), (1399443691,), (1399443696,), (1399443954,), (1399443969,), (1399444076,), (1399444074,), (1399444075,), (1399444295,), (1399444329,), (1399444335,), (1399444337,), (1399444355,), (1399444470,), (1399444473,), (1399444475,), (1399444477,), (1399444480,), (1399444497,), (1399444500,), (1399444503,), (1399444506,), (1399444510,), (1399444528,), (1399444541,), (1399444629,), (1399444649,), (1399444652,), (1399444654,), (1399444665,), (1399444667,), (1399444670,), (1399444841,), (1399444842,), (1399444843,), (1399444844,), (1399444858,), (1399444860,), (1399444862,), (1399444898,), (1399444899,), (1399444900,), (1399444914,), (1399444916,), (1399444919,), (1399444921,), (1399444924,), (1399444951,), (1399444953,), (1399444955,), (1399444957,), (1399444972,), (1399444973,), (1399444974,), (1399444975,), (1399444996,), (1399444999,), (1399445001,), (1399445003,), (1399445006,), (1399445031,), (1399445023,), (1399445024,), (1399445026,), (1399445028,), (1399445056,), (1399445058,), (1399445060,), (1399445076,), (1399445078,), (1399445079,), (1399445080,), (1399445102,), (1399445103,), (1399445104,), (1399445105,), (1399445108,), (1399445111,), (1399445122,), (1399445124,), (1399445126,), (1399445128,), (1399445131,), (1399445153,), (1399445154,), (1399445155,), (1399445182,), (1399445184,), (1399445186,), (1399445188,), (1399445228,), (1399445247,), (1399445251,), (1399445254,), (1399445264,), (1399445267,), (1399445320,), (1399445323,), (1399445327,), (1399445332,), (1399445336,), (1399445343,), (1399445370,), (1399445374,), (1399445375,), (1399445602,), (1399445628,), (1399445664,), (1399445697,), (1399445731,), (1399445739,), (1399445759,), (1399445760,), (1399445761,), (1399445762,), (1399445765,), (1399445788,), (1399445789,), (1399445790,), (1399445791,), (1399445794,), (1399445797,), (1399445844,), (1399445853,), (1399445855,), (1399446035,), (1399446038,), (1399446040,), (1399446065,), (1399446252,), (1399446229,), (1399446248,), (1399446250,), (1399446278,), (1399446289,), (1399446329,), (1399446356,), (1399446359,), (1399446363,), (1399446379,), (1399446381,), (1399446383,), (1399446385,), (1399446388,), (1399446406,), (1399446408,), (1399446410,), (1399446414,), (1399446418,), (1399446421,), (1399446644,), (1399446680,), (1399446713,), (1399446747,), (1399446776,), (1399446787,), (1399446790,), (1399446793,), (1399446797,), (1399446801,), (1399446827,), (1399446829,), (1399446831,), (1399446833,), (1399446836,), (1399446838,), (1399446876,), (1399446884,), (1399446885,), (1399446886,), (1399446944,), (1399446951,), (1399446953,), (1399446955,), (1399446975,), (1399446977,), (1399446979,), (1399446981,), (1399446984,), (1399446987,), (1399447007,), (1399447008,), (1399447009,), (1399447012,), (1399447015,), (1399447018,), (1399447035,), (1399447037,), (1399447039,), (1399447042,), (1399447048,), (1399447050,), (1399447064,), (1399447065,), (1399447067,), (1399447069,), (1399447070,), (1399447071,), (1399447078,), (1399447079,), (1399447081,), (1399447082,), (1399447085,), (1399447086,), (1399447089,), (1399447090,), (1399447093,), (1399447094,), (1399452528,), (1399452527,), (1399452545,), (1399452546,), (1399452548,), (1399452550,), (1399452695,), (1399452697,), (1399452699,), (1399452701,), (1399452704,), (1399452743,), (1399452746,), (1399452757,), (1399452766,), (1399452774,), (1399452778,), (1399452881,), (1399452945,), (1399453013,), (1399453110,), (1399453396,), (1399453429,), (1399453440,), (1399453783,), (1399453824,), (1399453772,), (1399453774,), (1399453777,), (1399453780,), (1399453798,), (1399453799,), (1399453800,), (1399453803,), (1399453806,), (1399453809,), (1399453817,), (1399453819,), (1399453821,), (1399453829,), (1399453831,), (1399453834,), (1399453836,), (1399453857,), (1399453859,), (1399453861,), (1399454199,), (1399454203,), (1399454208,), (1399454224,), (1399454226,), (1399454228,), (1399454232,), (1399454236,), (1399454259,), (1399454261,), (1399454263,), (1399454265,), (1399454268,), (1399454282,), (1399454284,), (1399454285,), (1399454287,), (1399454326,), (1399454328,), (1399454329,), (1399454330,), (1399454352,), (1399454353,), (1399454354,), (1399454355,), (1399454372,), (1399454374,), (1399454381,), (1399454458,), (1399454459,), (1399454460,), (1399454461,), (1399454464,), (1399454465,), (1399454561,), (1399454595,), (1399454633,), (1399454929,), (1399454934,), (1399454939,), (1399454943,), (1399455355,), (1399455327,), (1399455349,), (1399455352,), (1399455523,), (1399455547,), (1399455571,), (1399455604,), (1399455934,), (1399455937,), (1399455941,), (1399455945,), (1399455949,), (1399455954,), (1399455971,), (1399455972,), (1399456006,), (1399456040,), (1399456077,), (1399456114,), (1399456212,), (1399456214,), (1399456216,), (1399456270,), (1399456272,), (1399456273,), (1399456274,), (1399456442,), (1399456443,), (1399456444,), (1399456445,), (1399456447,), (1399456449,), (1399456481,), (1399456483,), (1399456485,), (1399456487,), (1399456490,), (1399456504,), (1399456505,), (1399456507,), (1399456514,), (1399456519,), (1399456522,), (1399456591,), (1399456613,), (1399456615,), (1399456617,), (1399456620,), (1399456858,), (1399456859,), (1399456860,), (1399457001,), (1399457003,), (1399457010,), (1399457012,), (1399457015,), (1399457018,), (1399457109,), (1399457110,), (1399457113,), (1399457203,), (1399457287,), (1399457378,), (1399457458,), (1399457462,), (1399457472,), (1399457496,), (1399457498,), (1399457499,), (1399457500,), (1399457502,), (1399457504,), (1399457543,), (1399457538,), (1399457541,), (1399457586,), (1399457587,), (1399457610,), (1399457650,), (1399457693,), (1399457728,), (1399458077,), (1399458100,), (1399458102,), (1399458104,), (1399458107,), (1399458194,), (1399458214,), (1399458262,), (1399458285,), (1399458316,), (1399458330,), (1399458339,), (1399458340,), (1399458343,), (1399458356,), (1399458366,), (1399458399,), (1399458430,), (1399458462,), (1399458495,), (1399458764,), (1399458807,), (1399458816,), (1399458822,), (1399459076,), (1399459077,), (1399459078,), (1399459079,), (1399459082,), (1399459085,), (1399459109,), (1399459110,), (1399459111,), (1399459112,), (1399459156,), (1399459157,), (1399459159,), (1399459192,), (1399459193,), (1399459194,), (1399459195,), (1399459215,), (1399459217,), (1399459219,), (1399459221,), (1399459223,), (1399459266,), (1399459267,), (1399459282,), (1399459284,), (1399459286,), (1399459288,), (1399459347,), (1399459357,), (1399459360,), (1399459362,), (1399459365,), (1399459368,), (1399459396,), (1399459387,), (1399459389,), (1399459391,), (1399459394,), (1399459412,), (1399459414,), (1399459416,), (1399459417,), (1399459435,), (1399459437,), (1399459439,), (1399459441,), (1399459444,), (1399459447,), (1399459467,), (1399459468,), (1399459469,), (1399459470,), (1399459472,), (1399459488,), (1399459535,), (1399459536,), (1399459537,), (1399459538,), (1399459540,), (1399459561,), (1399459563,), (1399459564,), (1399459566,), (1399459569,), (1399459572,), (1399459587,), (1399459589,), (1399459594,), (1399459597,), (1399459600,), (1399459603,), (1399459612,), (1399459613,), (1399459614,), (1399459615,), (1399459693,), (1399459725,), (1399459755,), (1399459769,), (1399459783,), (1399459789,), (1399459830,), (1399459832,), (1399459834,), (1399459838,), (1399459841,), (1399459845,), (1399459877,), (1399459879,), (1399459881,), (1399459883,), (1399459986,), (1399459992,), (1399460001,), (1399460002,), (1399460005,), (1399460008,), (1399460020,), (1399460022,), (1399460024,), (1399460026,), (1399460028,), (1399460031,), (1399460103,), (1399460104,), (1399460105,), (1399460213,), (1399460218,), (1399460239,), (1399460242,), (1399460251,), (1399460258,), (1399460277,), (1399460278,), (1399460280,), (1399460282,), (1399460285,), (1399460383,), (1399460736,), (1399460372,), (1399460374,), (1399460376,), (1399460378,), (1399460381,), (1399460396,), (1399460397,), (1399460398,), (1399460401,), (1399460404,), (1399460407,), (1399460455,), (1399460545,), (1399460636,), (1399460729,), (1399460733,), (1399460808,), (1399460810,), (1399460863,), (1399460867,), (1399460936,), (1399460937,), (1399460938,), (1399460973,), (1399460975,), (1399460977,), (1399460979,), (1399460982,), (1399460996,), (1399461001,), (1399461009,), (1399461012,), (1399461049,), (1399461050,), (1399461070,), (1399461072,), (1399461074,), (1399461076,), (1399461079,), (1399461098,), (1399461099,), (1399461100,), (1399461101,), (1399461102,), (1399461105,), (1399461123,), (1399461125,), (1399461127,), (1399461129,), (1399461132,), (1399461151,), (1399461152,), (1399461154,), (1399461170,), (1399461171,), (1399461172,), (1399461173,), (1399461176,), (1399461179,), (1399461193,), (1399461195,), (1399461197,), (1399461199,), (1399461202,), (1399461545,), (1399461579,), (1399461613,), (1399461646,), (1399461680,), (1399461831,), (1399461832,), (1399461838,), (1399461996,), (1399461851,), (1399461887,), (1399461919,), (1399461955,), (1399462595,), (1399462665,), (1399462725,), (1399462789,), (1399462858,), (1399463633,), (1399463696,), (1399463758,), (1399463831,), (1399464668,), (1399464867,), (1399464917,), (1399464933,), (1399464943,), (1399464976,), (1399465186,), (1399465246,), (1399465309,), (1399465368,), (1399465752,), (1399465765,), (1399465780,), (1399465788,), (1399465792,), (1399465812,), (1399465834,), (1399465837,), (1399465838,), (1399465841,), (1399465844,), (1399465847,), (1399465856,), (1399465857,), (1399465860,), (1399465864,), (1399466011,), (1399466074,), (1399466302,), (1399466304,), (1399466306,), (1399466307,), (1399466310,), (1399466341,), (1399466342,), (1399466343,), (1399466411,), (1399466444,), (1399466499,), (1399466551,), (1399466553,), (1399466571,), (1399466626,), (1399466738,), (1399466742,), (1399466744,), (1399466871,), (1399466890,), (1399466898,), (1399466900,), (1399466902,), (1399466967,), (1399466984,), (1399466986,), (1399466987,), (1399466990,), (1399467027,), (1399467089,), (1399467018,), (1399467020,), (1399467022,), (1399467024,), (1399467041,), (1399467043,), (1399467046,), (1399467053,), (1399467058,), (1399467059,), (1399467067,), (1399467070,), (1399467085,), (1399467096,), (1399467136,), (1399467176,), (1399467240,), (1399467304,), (1399467695,), (1399467758,), (1399467829,), (1399467916,), (1399468028,), (1399469020,), (1399469114,), (1399469209,), (1399470213,), (1399470289,), (1399470344,), (1399470363,), (1399470367,), (1399470370,), (1399470428,), (1399470476,), (1399470514,), (1399470552,), (1399470588,), (1399470654,), (1399471445,), (1399471506,), (1399471599,), (1399472193,), (1399472273,), (1399472331,), (1399472371,), (1399472408,), (1399472441,), (1399472772,), (1399472805,), (1399472837,), (1399472872,), (1399472905,), (1399472942,), (1399473257,), (1399473291,), (1399473332,), (1399473342,), (1399473422,), (1399473458,), (1399473491,), (1399473572,), (1399473661,), (1399473783,), (1399474092,), (1399474162,), (1399474246,), (1399474315,), (1399474403,), (1399474816,), (1399474844,), (1399474863,), (1399474899,), (1399474903,), (1399474913,), (1399474953,), (1399474987,), (1399475025,), (1399475437,), (1399475318,), (1399475353,), (1399475394,), (1399475412,), (1399475451,), (1399475452,), (1399475453,), (1399475454,), (1399475471,), (1399475472,), (1399475474,), (1399475476,), (1399475516,), (1399475622,), (1399476381,), (1399476434,), (1399476435,), (1399476436,), (1399476438,), (1399476743,), (1399476789,), (1399476820,), (1399477634,), (1399477689,), (1399477847,), (1399477931,), (1399477967,), (1399478002,), (1399478427,), (1399478459,), (1399478473,), (1399478476,), (1399478487,), (1399478537,), (1399478760,), (1399478821,), (1399478874,), (1399479006,), (1399479129,), (1399479568,), (1399479569,), (1399479678,), (1399479693,), (1399479795,), (1399479804,), (1399479901,), (1399479917,), (1399480352,), (1399480390,), (1399480426,), (1399480456,), (1399480491,), (1399480922,), (1399481062,), (1399481172,), (1399481294,), (1399481350,), (1399481613,), (1399481614,), (1399481615,), (1399481616,), (1399481650,), (1399481651,), (1399481652,), (1399481653,), (1399481655,), (1399482532,), (1399482548,), (1399482551,), (1399482553,), (1399482555,), (1399482575,), (1399482580,), (1399482585,), (1399482644,), (1399482741,), (1399482828,), (1399482970,), (1399483008,), (1399483076,), (1399483287,), (1399483322,), (1399483360,), (1399483399,), (1399483435,), (1399483848,), (1399483736,), (1399483773,), (1399483809,), (1399483989,), (1399483991,), (1399483993,), (1399484089,), (1399484131,), (1399484173,), (1399484222,), (1399484256,), (1399484655,), (1399484695,), (1399484729,), (1399484791,), (1399484827,), (1399485331,), (1399485369,), (1399485401,), (1399485435,), (1399485468,), (1399486466,), (1399486611,), (1399486764,), (1399486917,), (1399487035,), (1399487810,), (1399487857,), (1399487892,), (1399487915,), (1399487917,), (1399487919,), (1399487941,), (1399487943,), (1399487971,), (1399488024,), (1399488091,), (1399489224,), (1399489352,), (1399489500,), (1399490144,), (1399490146,), (1399490148,), (1399490285,), (1399490379,), (1399490406,), (1399490439,), (1399490441,), (1399490443,), (1399490445,), (1399490448,), (1399490450,), (1399490459,), (1399490461,), (1399490463,), (1399490466,), (1399490469,), (1399490473,), (1399490481,), (1399490482,), (1399490484,), (1399490488,), (1399490543,), (1399490579,), (1399491791,), (1399491826,), (1399491861,), (1399491896,), (1399491931,), (1399492282,), (1399492370,), (1399492439,), (1399492527,), (1399492659,), (1399492648,), (1399492656,), (1399492736,), (1399492739,), (1399492746,), (1399492756,), (1399492764,), (1399492768,), (1399492772,), (1399492776,), (1399492784,), (1399492846,), (1399492882,), (1399492923,), (1399492956,), (1399492992,), (1399493324,), (1399493327,), (1399493329,), (1399493555,), (1399493573,), (1399493577,), (1399493590,), (1399493593,), (1399494769,), (1399494820,), (1399494852,), (1399495589,), (1399495618,), (1399496411,), (1399496432,), (1399496435,), (1399506887,), (1399507486,), (1399507524,), (1399507526,), (1399507527,), (1399507528,), (1399507544,), (1399507545,), (1399507547,), (1399507549,), (1399507552,), (1399507555,), (1399507569,), (1399507570,), (1399507571,), (1399507572,), (1399507593,), (1399507594,), (1399507595,), (1399507596,), (1399507599,), (1399507602,), (1399507614,), (1399507616,), (1399507618,), (1399507620,), (1399507622,), (1399507640,), (1399507642,), (1399507644,), (1399507646,), (1399507667,), (1399507687,), (1399507720,), (1399507755,), (1399507788,), (1399507815,), (1399507817,), (1399507821,), (1399507856,), (1399507896,), (1399508332,), (1399508337,), (1399508342,), (1399508345,), (1399508348,), (1399508354,), (1399508355,), (1399508359,), (1399508362,), (1399508666,), (1399508495,), (1399508530,), (1399508563,), (1399508596,), (1399508631,), (1399508968,), (1399509057,), (1399509352,), (1399509354,), (1399509356,), (1399509358,), (1399509361,), (1399509457,), (1399509488,), (1399509518,), (1399509551,), (1399509586,), (1399509620,), (1399509963,), (1399509983,), (1399509985,), (1399510100,), (1399510134,), (1399510164,), (1399510195,), (1399510227,), (1399510366,), (1399510367,), (1399510369,), (1399510372,), (1399510375,), (1399510377,), (1399510388,), (1399510397,), (1399510401,), (1399510405,), (1399510532,), (1399510591,), (1399510664,), (1399510722,), (1399510903,), (1399510939,), (1399510978,), (1399511194,), (1399511196,), (1399511198,), (1399511293,), (1399511313,), (1399511315,), (1399511366,), (1399511368,), (1399511384,), (1399511421,), (1399511425,), (1399511518,), (1399511617,), (1399511658,), (1399511857,), (1399511859,), (1399511885,), (1399511879,), (1399511881,), (1399511883,), (1399512010,), (1399512012,), (1399512014,), (1399512018,), (1399512026,), (1399512044,), (1399512051,), (1399512053,), (1399512055,), (1399512059,), (1399512084,), (1399512085,), (1399512086,), (1399512087,), (1399512119,), (1399512122,), (1399512124,), (1399512131,), (1399512406,), (1399512408,), (1399512410,), (1399512412,), (1399512415,), (1399512417,), (1399512449,), (1399512451,), (1399512453,), (1399512455,), (1399512466,), (1399512468,), (1399512470,), (1399512472,), (1399512475,), (1399512492,), (1399512493,), (1399512494,), (1399512495,), (1399512498,), (1399512514,), (1399512517,), (1399512520,), (1399512523,), (1399512525,), (1399512573,), (1399512575,), (1399512577,), (1399512579,), (1399512601,), (1399512636,), (1399512788,), (1399512789,), (1399512790,), (1399512792,), (1399512820,), (1399512822,), (1399512850,), (1399512854,), (1399512856,), (1399512863,), (1399512864,), (1399512867,), (1399512964,), (1399512969,), (1399512971,), (1399512981,), (1399512982,), (1399512983,), (1399513015,), (1399513018,), (1399513020,), (1399513022,), (1399513045,), (1399513034,), (1399513035,), (1399513036,), (1399513038,), (1399513042,), (1399513070,), (1399513072,), (1399513074,), (1399513076,), (1399513116,), (1399513117,), (1399513118,), (1399513119,), (1399513150,), (1399513152,), (1399513154,), (1399513156,), (1399513174,), (1399513178,), (1399513238,), (1399513273,), (1399513308,), (1399513317,), (1399513338,), (1399513345,), (1399513426,), (1399513428,), (1399513430,), (1399513431,), (1399513488,), (1399513489,), (1399513491,), (1399513493,), (1399513495,), (1399513498,), (1399513520,), (1399513526,), (1399513538,), (1399513539,), (1399513746,), (1399513765,), (1399513766,), (1399513767,), (1399513770,), (1399513795,), (1399513798,), (1399513800,), (1399513802,), (1399513805,), (1399513830,), (1399513831,), (1399513832,), (1399513854,), (1399513856,), (1399513858,), (1399513860,), (1399513863,), (1399513898,), (1399513899,), (1399513900,), (1399513901,), (1399513904,), (1399513906,), (1399514000,), (1399514010,), (1399514020,), (1399514023,), (1399514202,), (1399514205,), (1399514207,), (1399514603,), (1399514458,), (1399514490,), (1399514552,), (1399514723,), (1399514732,), (1399514747,), (1399514779,), (1399514815,), (1399515038,), (1399515039,), (1399515040,), (1399515041,), (1399515043,), (1399515075,), (1399515076,), (1399515077,), (1399515127,), (1399515132,), (1399515134,), (1399515136,), (1399515139,), (1399515142,), (1399515173,), (1399515175,), (1399515177,), (1399515210,), (1399515261,), (1399515282,), (1399515317,), (1399515318,), (1399515319,), (1399515360,), (1399515365,), (1399515367,), (1399515370,), (1399515373,), (1399515376,), (1399515412,), (1399515415,), (1399515416,), (1399515417,), (1399515420,), (1399515423,), (1399515437,), (1399515448,), (1399515453,), (1399515481,), (1399515490,), (1399515492,), (1399515494,), (1399515497,), (1399515582,), (1399515584,), (1399515599,), (1399515602,), (1399515605,), (1399515608,), (1399515622,), (1399515623,), (1399515627,), (1399515633,), (1399515635,), (1399515640,), (1399515643,), (1399515645,), (1399515665,), (1399515668,), (1399515672,), (1399515677,), (1399515680,), (1399515686,), (1399515687,), (1399515692,), (1399515701,), (1399515703,), (1399515732,), (1399515720,), (1399515731,), (1399515746,), (1399515769,), (1399515836,), (1399515900,), (1399515965,), (1399516002,), (1399516148,), (1399516150,), (1399516153,), (1399516156,), (1399516177,), (1399516178,), (1399516179,), (1399516180,), (1399516183,), (1399516229,), (1399516231,), (1399516233,), (1399516235,), (1399516239,), (1399516275,), (1399516277,), (1399516279,), (1399516281,), (1399516312,), (1399516314,), (1399516348,), (1399516350,), (1399516352,), (1399516354,), (1399516357,), (1399516378,), (1399516379,), (1399516380,), (1399516381,), (1399516384,), (1399516387,), (1399516413,), (1399516415,), (1399516417,), (1399516419,), (1399516437,), (1399516438,), (1399516439,), (1399516440,), (1399516442,), (1399516472,), (1399516475,), (1399516478,), (1399516480,), (1399516484,), (1399516487,), (1399516534,), (1399516536,), (1399516538,), (1399516540,), (1399516566,), (1399516567,), (1399516568,), (1399516569,), (1399516572,), (1399516575,), (1399516593,), (1399516595,), (1399516598,), (1399516600,), (1399516604,), (1399516608,), (1399516672,), (1399516663,), (1399516668,), (1399516670,), (1399516683,), (1399516684,), (1399516686,), (1399516688,), (1399516691,), (1399516701,), (1399516704,), (1399516790,), (1399517145,), (1399526276,), (1399526273,), (1399526292,), (1399526293,), (1399526294,), (1399526295,), (1399526298,), (1399526311,), (1399526317,), (1399526319,), (1399526320,), (1399526337,), (1399526350,), (1399526353,), (1399526386,), (1399526388,), (1399526389,), (1399526420,), (1399526422,), (1399526424,), (1399526427,), (1399526430,), (1399526440,), (1399526442,), (1399526444,), (1399526446,), (1399526450,), (1399526453,), (1399526487,), (1399526525,), (1399526532,), (1399526533,), (1399526534,), (1399526563,), (1399526567,), (1399526571,), (1399526574,), (1399526580,), (1399526581,), (1399526582,), (1399526586,), (1399526590,), (1399526601,), (1399526599,), (1399526600,), (1399526630,), (1399526632,), (1399526634,), (1399526651,), (1399526652,), (1399526653,), (1399526654,), (1399526657,), (1399526674,), (1399526676,), (1399526678,), (1399526680,), (1399526682,), (1399526692,), (1399526694,), (1399526696,), (1399526720,), (1399526721,), (1399526728,), (1399526734,), (1399526742,), (1399526758,), (1399526759,), (1399526762,), (1399526765,), (1399526768,), (1399526771,), (1399526791,), (1399526792,), (1399526797,), (1399526829,), (1399528304,), (1399528342,), (1399528343,), (1399528344,), (1399528345,), (1399528640,), (1399528641,), (1399528642,), (1399528643,), (1399528646,), (1399528647,), (1399528663,), (1399528665,), (1399528668,), (1399528672,), (1399528676,), (1399528689,), (1399528691,), (1399528705,), (1399528707,), (1399528708,), (1399528710,), (1399528741,), (1399528744,), (1399528745,), (1399528746,), (1399528749,), (1399528752,), (1399528765,), (1399528766,), (1399528768,), (1399528770,), (1399530780,), (1399530656,), (1399530714,), (1399531389,), (1399531400,), (1399531424,), (1399531490,), (1399531556,), (1399531821,), (1399531823,), (1399532242,), (1399532275,), (1399532311,), (1399532344,), (1399532533,), (1399532563,), (1399532588,), (1399532591,), (1399532616,), (1399532620,), (1399532665,), (1399532671,), (1399532679,), (1399532689,), (1399532691,), (1399532692,), (1399532972,), (1399533014,), (1399533048,), (1399533083,), (1399533455,), (1399533488,), (1399533519,), (1399533543,), (1399533548,), (1399533551,), (1399533651,), (1399533653,), (1399533654,), (1399533656,), (1399533659,), (1399533684,), (1399533686,), (1399533688,), (1399533690,), (1399533803,), (1399533813,), (1399533903,), (1399533977,), (1399534012,), (1399534045,), (1399534077,), (1399534110,), (1399534270,), (1399534315,), (1399534356,), (1399534393,), (1399534433,), (1399534619,), (1399534652,), (1399534687,), (1399535156,), (1399535216,), (1399535286,), (1399535351,), (1399535833,), (1399535977,), (1399536030,), (1399536213,), (1399536214,), (1399536215,), (1399536216,), (1399536219,), (1399536612,), (1399536808,), (1399536888,), (1399536889,), (1399536890,), (1399536891,), (1399536893,), (1399536915,), (1399536916,), (1399536917,), (1399536918,), (1399536921,), (1399536933,), (1399536935,), (1399536937,), (1399536939,), (1399536942,), (1399536964,), (1399536966,), (1399536968,), (1399536984,), (1399536980,), (1399536981,), (1399536982,), (1399537006,), (1399537007,), (1399537008,), (1399537009,), (1399537012,), (1399537025,), (1399537027,), (1399537029,), (1399537031,), (1399537034,), (1399537037,), (1399537075,), (1399537076,), (1399537077,), (1399537078,), (1399537081,), (1399537108,), (1399537265,), (1399537267,), (1399537269,), (1399537371,), (1399537373,), (1399537375,), (1399537377,), (1399537380,), (1399537404,), (1399537410,), (1399537411,), (1399537418,), (1399537427,), (1399537432,), (1399537449,), (1399537450,), (1399537452,), (1399537459,), (1399537475,), (1399537477,), (1399537480,), (1399537482,), (1399537484,), (1399537495,), (1399537496,), (1399537497,), (1399537498,), (1399537501,), (1399537714,), (1399537746,), (1399537782,), (1399537805,), (1399537808,), (1399537904,), (1399537906,), (1399537924,), (1399537927,), (1399537929,), (1399537932,), (1399537936,), (1399537972,), (1399538019,), (1399537964,), (1399537966,), (1399537968,), (1399537990,), (1399537993,), (1399537996,), (1399537999,), (1399538006,), (1399538010,), (1399538017,), (1399538021,), (1399538022,), (1399538025,), (1399538028,), (1399538045,), (1399538047,), (1399538049,), (1399538165,), (1399538179,), (1399538193,), (1399538203,), (1399538219,), (1399538220,), (1399538221,), (1399538222,), (1399538225,), (1399538244,), (1399538245,), (1399538246,), (1399538247,), (1399538249,), (1399538251,), (1399538358,), (1399538360,), (1399538378,), (1399538382,), (1399538400,), (1399538401,), (1399538402,), (1399538403,), (1399538406,), (1399538409,), (1399538421,), (1399538422,), (1399538423,), (1399538424,), (1399538427,), (1399538430,), (1399538489,), (1399538521,), (1399538550,), (1399538625,), (1399538626,), (1399538627,), (1399538650,), (1399538684,), (1399538720,), (1399538837,), (1399540084,), (1399539837,), (1399539878,), (1399539944,), (1399540005,), (1399540532,), (1399540563,), (1399540627,), (1399540666,), (1399540673,), (1399540778,), (1399540779,), (1399540780,), (1399540781,), (1399540794,), (1399540825,), (1399540857,), (1399540887,), (1399540920,), (1399541022,), (1399541024,), (1399541025,), (1399541027,), (1399541038,), (1399541040,), (1399541042,), (1399541044,), (1399541048,), (1399541051,), (1399541072,), (1399541150,), (1399541184,), (1399541217,), (1399541299,), (1399541301,), (1399541303,), (1399541307,), (1399541311,), (1399541316,), (1399541339,), (1399541341,), (1399541343,), (1399541345,), (1399541360,), (1399541361,), (1399541362,), (1399541363,), (1399541366,), (1399541368,), (1399541399,), (1399541403,), (1399541405,), (1399541407,), (1399541428,), (1399541429,), (1399541430,), (1399541431,), (1399541433,), (1399541458,), (1399541460,), (1399541461,), (1399541462,), (1399541492,), (1399541498,), (1399541499,), (1399541501,), (1399541504,), (1399541508,), (1399541532,), (1399541570,), (1399541522,), (1399541524,), (1399541525,), (1399541526,), (1399541529,), (1399541544,), (1399541546,), (1399541548,), (1399541551,), (1399541554,), (1399541556,), (1399541567,), (1399541568,), (1399541578,), (1399541579,), (1399541580,), (1399541583,), (1399541602,), (1399541604,), (1399541606,), (1399541608,), (1399541611,), (1399541613,), (1399541626,), (1399541628,), (1399541630,), (1399541632,), (1399541648,), (1399541650,), (1399541652,), (1399541655,), (1399541657,), (1399541677,), (1399541678,), (1399541679,), (1399541680,), (1399541698,), (1399541701,), (1399541746,), (1399541747,), (1399541771,), (1399541773,), (1399541775,), (1399541777,), (1399541780,), (1399541783,), (1399541799,), (1399541802,), (1399541806,), (1399541809,), (1399541812,), (1399541821,), (1399541837,), (1399541838,), (1399541841,), (1399541842,), (1399541845,), (1399541848,), (1399541862,), (1399541865,), (1399541868,), (1399541875,), (1399541878,), (1399541882,), (1399541886,), (1399541907,), (1399541915,), (1399541926,), (1399541930,), (1399541932,), (1399541947,), (1399541942,), (1399541944,), (1399541970,), (1399541972,), (1399541974,), (1399541976,), (1399541979,), (1399541981,), (1399541997,), (1399541999,), (1399542001,), (1399542003,), (1399542006,), (1399542009,), (1399542027,), (1399542029,), (1399542031,), (1399542033,), (1399542036,), (1399542050,), (1399542051,), (1399542052,), (1399542053,), (1399542056,), (1399542059,), (1399542073,), (1399542075,), (1399542077,), (1399542079,), (1399542082,), (1399542107,), (1399542112,), (1399542124,), (1399542130,), (1399542134,), (1399542138,), (1399542145,), (1399542146,), (1399542147,), (1399542190,), (1399542236,), (1399542238,), (1399542241,), (1399542244,), (1399542248,), (1399542251,), (1399542254,), (1399542256,), (1399542257,), (1399542270,), (1399542303,), (1399542304,), (1399542305,), (1399542310,), (1399542313,), (1399542316,), (1399542435,), (1399542468,), (1399542501,), (1399542553,), (1399542561,), (1399542568,), (1399542585,), (1399542587,), (1399542589,), (1399542593,), (1399542597,), (1399542601,), (1399542651,), (1399542653,), (1399542664,), (1399542674,), (1399542709,), (1399542710,), (1399542712,), (1399542713,), (1399542972,), (1399542930,), (1399542943,), (1399543331,), (1399543333,), (1399543335,), (1399543358,), (1399543359,), (1399543360,), (1399543361,), (1399543363,), (1399543366,), (1399543385,), (1399543386,), (1399543387,), (1399543388,), (1399543410,), (1399543412,), (1399543414,), (1399543416,), (1399543433,), (1399543434,), (1399543435,), (1399543436,), (1399543439,), (1399543442,), (1399543462,), (1399543483,), (1399543516,), (1399543818,), (1399543821,), (1399543823,), (1399543825,), (1399543828,), (1399543841,), (1399543842,), (1399543843,), (1399543844,), (1399543847,), (1399543850,), (1399544148,), (1399544151,), (1399544153,), (1399544169,), (1399544170,), (1399544171,), (1399544172,), (1399544175,), (1399544178,), (1399544207,), (1399544242,), (1399544274,), (1399544983,), (1399544981,), (1399545003,), (1399545004,), (1399545005,), (1399545006,), (1399545025,), (1399545026,), (1399545027,), (1399545043,), (1399545045,), (1399545046,), (1399545060,), (1399545061,), (1399545062,), (1399545078,), (1399545080,), (1399545082,), (1399545084,), (1399545086,), (1399545089,), (1399545104,), (1399545106,), (1399545108,), (1399545112,), (1399545116,), (1399545120,), (1399545136,), (1399545138,), (1399545140,), (1399545142,), (1399545158,), (1399545159,), (1399545160,), (1399545161,), (1399545183,), (1399545185,), (1399545186,), (1399545187,), (1399545189,), (1399545191,), (1399545213,), (1399545214,), (1399545215,), (1399545216,), (1399545218,), (1399545220,), (1399545244,), (1399545262,), (1399545271,), (1399545272,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'15122025': {'nb_upload': 50, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29442683]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1399545272, 1399545271, 1399545262, 1399545244, 1399545220, 1399545218, 1399545216, 1399545215, 1399545214, 1399545213, 1399545191, 1399545189, 1399545187, 1399545186, 1399545185, 1399545183] map_info['map_portfolio_photo'] : {29442683: [1399545272, 1399545271, 1399545262, 1399545244, 1399545220, 1399545218, 1399545216, 1399545215, 1399545214, 1399545213, 1399545191, 1399545189, 1399545187, 1399545186, 1399545185, 1399545183, 1399545161, 1399545160, 1399545159, 1399545158, 1399545142, 1399545140, 1399545138, 1399545136, 1399545120, 1399545116, 1399545112, 1399545108, 1399545106, 1399545104, 1399545089, 1399545086, 1399545084, 1399545082, 1399545080, 1399545078, 1399545062, 1399545061, 1399545060, 1399545046, 1399545045, 1399545043, 1399545027, 1399545026, 1399545025, 1399545006, 1399545005, 1399545004, 1399545003, 1399544981]} final : True mtd_id 4302 list_pids : [1399545272, 1399545271, 1399545262, 1399545244, 1399545220, 1399545218, 1399545216, 1399545215, 1399545214, 1399545213, 1399545191, 1399545189, 1399545187, 1399545186, 1399545185, 1399545183] Looping around the photos to save general results len do output : 1 /29442683Didn'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, '4230892') ('4302', '29442683', '1399545272', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545271', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545262', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545244', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545220', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545218', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545216', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545215', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545214', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545213', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545191', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545189', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545187', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545186', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545185', None, None, None, None, None, '4230892') ('4302', None, None, None, None, None, None, None, '4230892') ('4302', '29442683', '1399545183', None, None, None, None, None, '4230892') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '29442683', 'None', None, None, None, None, '4230892'), ('4302', '29442683', '1399545272', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545271', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545262', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545244', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545220', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545218', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545216', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545215', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545214', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545213', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545191', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545189', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545187', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545186', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545185', None, None, None, None, None, '4230892'), ('4302', '29442683', '1399545183', None, None, None, None, None, '4230892')] time used for this insertion : 0.016118764877319336 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.455709218978882 time spend to save output : 0.01630258560180664 total time spend for step 5 : 3.4720118045806885 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 (4230892) 2.36user 2.50system 0:13.83elapsed 35%CPU (0avgtext+0avgdata 168056maxresident)k 0inputs+16168outputs (2major+79653minor)pagefaults 0swaps