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 : 1000203 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 (4183576) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4183576) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29158804 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4183576'] with mtr_portfolio_ids : ['29158804'] and first list_photo_ids : [] new path : /proc/1000203/ Name: python3 Umask: 0002 State: R (running) Tgid: 1000203 Ngid: 0 Pid: 1000203 PPid: 1000202 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1000203 NSpid: 1000203 NSpgid: 999760 NSsid: 999760 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104196 kB VmRSS: 104196 kB RssAnon: 66288 kB RssFile: 37908 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 576 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: 37 nonvoluntary_ctxt_switches: 135 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1000203', 'Ngid': '0', 'Pid': '1000203', 'PPid': '1000202', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1000203', 'NSpid': '1000203', 'NSpgid': '999760', 'NSsid': '999760', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104196 kB', 'VmRSS': '104196 kB', 'RssAnon': '66288 kB', 'RssFile': '37908 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '576 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': '37', 'nonvoluntary_ctxt_switches': '135'} ('datou_batch_current', '1000203', '1113364', '0', '1113364', '872092', '104196', b'', 'marlene', '4183576') 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 (29158804) 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 (4183576 ) ) 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 (29158804) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1397697459, 'portfolio_id': 29158804}, {'photo_id': 1397695610, 'portfolio_id': 29158804}, {'photo_id': 1397695608, 'portfolio_id': 29158804}, {'photo_id': 1397695599, 'portfolio_id': 29158804}, {'photo_id': 1397695590, 'portfolio_id': 29158804}, {'photo_id': 1397695584, 'portfolio_id': 29158804}, {'photo_id': 1397695557, 'portfolio_id': 29158804}, {'photo_id': 1397695553, 'portfolio_id': 29158804}, {'photo_id': 1397695552, 'portfolio_id': 29158804}, {'photo_id': 1397695550, 'portfolio_id': 29158804}, {'photo_id': 1397695548, 'portfolio_id': 29158804}, {'photo_id': 1397695547, 'portfolio_id': 29158804}, {'photo_id': 1397695546, 'portfolio_id': 29158804}, {'photo_id': 1397695508, 'portfolio_id': 29158804}, {'photo_id': 1397695507, 'portfolio_id': 29158804}, {'photo_id': 1397695014, 'portfolio_id': 29158804}, {'photo_id': 1397695012, 'portfolio_id': 29158804}, {'photo_id': 1397694970, 'portfolio_id': 29158804}, {'photo_id': 1397694968, 'portfolio_id': 29158804}, {'photo_id': 1397694966, 'portfolio_id': 29158804}, {'photo_id': 1397694964, 'portfolio_id': 29158804}, {'photo_id': 1397694962, 'portfolio_id': 29158804}] map_portfolio_id_photo_id: {29158804: [1397697459, 1397695610, 1397695608, 1397695599, 1397695590, 1397695584, 1397695557, 1397695553, 1397695552, 1397695550, 1397695548, 1397695547, 1397695546, 1397695508, 1397695507, 1397695014, 1397695012, 1397694970, 1397694968, 1397694966, 1397694964, 1397694962]} ##### 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.017899751663208008 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Dec 4 06:14:27 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 (29158804) 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 : 29158804 get user id for portfolio 29158804 get sub ptf for main ptf 29158804, type 3726 and hashtags ['papier', 'Teint_Dans_La_Masse', 'autre_refus', 'flou', 'kraft', 'mal_croppe', 'metal', 'cartonnette', 'Carton_gris', 'environnement', 'plastique', 'Carton_brun'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29158804 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','autre_refus','flou','kraft','mal_croppe','metal','cartonnette','Carton_gris','environnement','plastique','Carton_brun')) 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`=29158804 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','autre_refus','flou','kraft','mal_croppe','metal','cartonnette','Carton_gris','environnement','plastique','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29158804, 'sub_port_id': 29158820, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818824, 'last_updated_at': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 28)}, 'papier': {'main_port_id': 29158804, 'sub_port_id': 29158821, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818825, 'last_updated_at': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 28)}, 'plastique': {'main_port_id': 29158804, 'sub_port_id': 29158822, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818826, 'last_updated_at': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 28)}, 'mal_croppe': {'main_port_id': 29158804, 'sub_port_id': 29158823, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818827, 'last_updated_at': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 28)}, 'metal': {'main_port_id': 29158804, 'sub_port_id': 29158824, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818828, 'last_updated_at': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 28)}, 'autre_refus': {'main_port_id': 29158804, 'sub_port_id': 29158825, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818829, 'last_updated_at': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 28)}, 'kraft': {'main_port_id': 29158804, 'sub_port_id': 29158826, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818830, 'last_updated_at': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 28)}, 'Carton_brun': {'main_port_id': 29158804, 'sub_port_id': 29158827, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818831, 'last_updated_at': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 28)}, 'cartonnette': {'main_port_id': 29158804, 'sub_port_id': 29158828, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818832, 'last_updated_at': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 28)}, 'flou': {'main_port_id': 29158804, 'sub_port_id': 29158829, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818833, 'last_updated_at': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 28)}, 'environnement': {'main_port_id': 29158804, 'sub_port_id': 29158830, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818834, 'last_updated_at': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 29158804, 'sub_port_id': 29158831, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818835, 'last_updated_at': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 21, 2, 31), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29158820 , 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=29158804 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 (29158820) result : ((1397695703,), (1397695704,), (1397695705,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29158804) result : ((1397694962,), (1397694964,), (1397694966,), (1397694968,), (1397694970,), (1397695012,), (1397695014,), (1397695507,), (1397695508,), (1397695546,), (1397695547,), (1397695548,), (1397695550,), (1397695552,), (1397695553,), (1397695557,), (1397695584,), (1397695590,), (1397695599,), (1397695608,), (1397695610,), (1397697459,)) 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 29158821 , 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=29158804 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 (29158821) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29158804) result : ((1397694962,), (1397694964,), (1397694966,), (1397694968,), (1397694970,), (1397695012,), (1397695014,), (1397695507,), (1397695508,), (1397695546,), (1397695547,), (1397695548,), (1397695550,), (1397695552,), (1397695553,), (1397695557,), (1397695584,), (1397695590,), (1397695599,), (1397695608,), (1397695610,), (1397697459,)) 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 29158822 , 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=29158804 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 (29158822) result : ((1397695631,), (1397695714,), (1397695715,), (1397695717,), (1397695803,), (1397695863,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29158804) result : ((1397694962,), (1397694964,), (1397694966,), (1397694968,), (1397694970,), (1397695012,), (1397695014,), (1397695507,), (1397695508,), (1397695546,), (1397695547,), (1397695548,), (1397695550,), (1397695552,), (1397695553,), (1397695557,), (1397695584,), (1397695590,), (1397695599,), (1397695608,), (1397695610,), (1397697459,)) 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 29158823 , 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=29158804 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 (29158823) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29158804) result : ((1397694962,), (1397694964,), (1397694966,), (1397694968,), (1397694970,), (1397695012,), (1397695014,), (1397695507,), (1397695508,), (1397695546,), (1397695547,), (1397695548,), (1397695550,), (1397695552,), (1397695553,), (1397695557,), (1397695584,), (1397695590,), (1397695599,), (1397695608,), (1397695610,), (1397697459,)) 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 29158824 , 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=29158804 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 (29158824) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29158804) result : ((1397694962,), (1397694964,), (1397694966,), (1397694968,), (1397694970,), (1397695012,), (1397695014,), (1397695507,), (1397695508,), (1397695546,), (1397695547,), (1397695548,), (1397695550,), (1397695552,), (1397695553,), (1397695557,), (1397695584,), (1397695590,), (1397695599,), (1397695608,), (1397695610,), (1397697459,)) 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 29158825 , 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=29158804 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 (29158825) result : ((1397695630,), (1397695699,), (1397695700,), (1397695701,), (1397695801,), (1397695802,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29158804) result : ((1397694962,), (1397694964,), (1397694966,), (1397694968,), (1397694970,), (1397695012,), (1397695014,), (1397695507,), (1397695508,), (1397695546,), (1397695547,), (1397695548,), (1397695550,), (1397695552,), (1397695553,), (1397695557,), (1397695584,), (1397695590,), (1397695599,), (1397695608,), (1397695610,), (1397697459,)) 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 29158826 , 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=29158804 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 (29158826) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29158804) result : ((1397694962,), (1397694964,), (1397694966,), (1397694968,), (1397694970,), (1397695012,), (1397695014,), (1397695507,), (1397695508,), (1397695546,), (1397695547,), (1397695548,), (1397695550,), (1397695552,), (1397695553,), (1397695557,), (1397695584,), (1397695590,), (1397695599,), (1397695608,), (1397695610,), (1397697459,)) 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 29158827 , 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=29158804 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 (29158827) result : ((1397695503,), (1397695504,), (1397695712,), (1397695713,), (1397698618,), (1397698623,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29158804) result : ((1397694962,), (1397694964,), (1397694966,), (1397694968,), (1397694970,), (1397695012,), (1397695014,), (1397695507,), (1397695508,), (1397695546,), (1397695547,), (1397695548,), (1397695550,), (1397695552,), (1397695553,), (1397695557,), (1397695584,), (1397695590,), (1397695599,), (1397695608,), (1397695610,), (1397697459,)) 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 29158828 , 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=29158804 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 (29158828) result : ((1397695499,), (1397695500,), (1397695501,), (1397695502,), (1397695706,), (1397695707,), (1397695708,), (1397695709,), (1397695710,), (1397698608,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29158804) result : ((1397694962,), (1397694964,), (1397694966,), (1397694968,), (1397694970,), (1397695012,), (1397695014,), (1397695507,), (1397695508,), (1397695546,), (1397695547,), (1397695548,), (1397695550,), (1397695552,), (1397695553,), (1397695557,), (1397695584,), (1397695590,), (1397695599,), (1397695608,), (1397695610,), (1397697459,)) 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 29158829 , 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=29158804 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 (29158829) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29158804) result : ((1397694962,), (1397694964,), (1397694966,), (1397694968,), (1397694970,), (1397695012,), (1397695014,), (1397695507,), (1397695508,), (1397695546,), (1397695547,), (1397695548,), (1397695550,), (1397695552,), (1397695553,), (1397695557,), (1397695584,), (1397695590,), (1397695599,), (1397695608,), (1397695610,), (1397697459,)) 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 29158830 , 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=29158804 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 (29158830) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29158804) result : ((1397694962,), (1397694964,), (1397694966,), (1397694968,), (1397694970,), (1397695012,), (1397695014,), (1397695507,), (1397695508,), (1397695546,), (1397695547,), (1397695548,), (1397695550,), (1397695552,), (1397695553,), (1397695557,), (1397695584,), (1397695590,), (1397695599,), (1397695608,), (1397695610,), (1397697459,)) 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 29158831 , 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=29158804 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 (29158831) result : ((1397695498,), (1397695796,), (1397695797,), (1397695798,), (1397698599,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29158804) result : ((1397694962,), (1397694964,), (1397694966,), (1397694968,), (1397694970,), (1397695012,), (1397695014,), (1397695507,), (1397695508,), (1397695546,), (1397695547,), (1397695548,), (1397695550,), (1397695552,), (1397695553,), (1397695557,), (1397695584,), (1397695590,), (1397695599,), (1397695608,), (1397695610,), (1397697459,)) 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`=29158804 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','autre_refus','flou','kraft','mal_croppe','metal','cartonnette','Carton_gris','environnement','plastique','Carton_brun')) 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`=29158804 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Teint_Dans_La_Masse','autre_refus','flou','kraft','mal_croppe','metal','cartonnette','Carton_gris','environnement','plastique','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 29158804, 'sub_port_id': 29158833, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818836, 'last_updated_at': datetime.datetime(2025, 12, 3, 20, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 20, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 34)}, 'papier': {'main_port_id': 29158804, 'sub_port_id': 29158834, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818837, 'last_updated_at': datetime.datetime(2025, 12, 3, 20, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 20, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 34)}, 'plastique': {'main_port_id': 29158804, 'sub_port_id': 29158835, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818838, 'last_updated_at': datetime.datetime(2025, 12, 3, 20, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 20, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 34)}, 'mal_croppe': {'main_port_id': 29158804, 'sub_port_id': 29158836, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818839, 'last_updated_at': datetime.datetime(2025, 12, 3, 20, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 20, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 34)}, 'metal': {'main_port_id': 29158804, 'sub_port_id': 29158837, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818840, 'last_updated_at': datetime.datetime(2025, 12, 3, 20, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 20, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 34)}, 'autre_refus': {'main_port_id': 29158804, 'sub_port_id': 29158838, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818841, 'last_updated_at': datetime.datetime(2025, 12, 3, 20, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 20, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 34)}, 'kraft': {'main_port_id': 29158804, 'sub_port_id': 29158839, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818842, 'last_updated_at': datetime.datetime(2025, 12, 3, 20, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 20, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 34)}, 'Carton_brun': {'main_port_id': 29158804, 'sub_port_id': 29158840, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818843, 'last_updated_at': datetime.datetime(2025, 12, 3, 20, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 20, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 34)}, 'cartonnette': {'main_port_id': 29158804, 'sub_port_id': 29158841, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818844, 'last_updated_at': datetime.datetime(2025, 12, 3, 20, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 20, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 34)}, 'flou': {'main_port_id': 29158804, 'sub_port_id': 29158842, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818845, 'last_updated_at': datetime.datetime(2025, 12, 3, 20, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 20, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 34)}, 'environnement': {'main_port_id': 29158804, 'sub_port_id': 29158843, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818846, 'last_updated_at': datetime.datetime(2025, 12, 3, 20, 33, 34), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 20, 33, 34), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 29158804, 'sub_port_id': 29158844, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19818847, 'last_updated_at': datetime.datetime(2025, 12, 3, 21, 2, 32), 'last_updated_at_desc': datetime.datetime(2025, 12, 3, 21, 2, 32), 'last_updated_at_asc': datetime.datetime(2025, 12, 3, 20, 33, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29158833,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29158820 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29158834,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29158821 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29158835,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29158822 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29158836,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29158823 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29158837,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29158824 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29158838,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29158825 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29158839,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29158826 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29158840,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29158827 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29158841,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29158828 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29158842,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29158829 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29158843,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29158830 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29158844,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29158831 lien utilise dans velours : https://marlene.fotonower.com/velours/29158833,29158834,29158835,29158836,29158837,29158838,29158839,29158840,29158841,29158842,29158843,29158844?tags=Carton_gris,papier,plastique,mal_croppe,metal,autre_refus,kraft,Carton_brun,cartonnette,flou,environnement,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29158804]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1397697459, 1397695610, 1397695608, 1397695599, 1397695590, 1397695584, 1397695557, 1397695553, 1397695552, 1397695550, 1397695548, 1397695547, 1397695546, 1397695508, 1397695507, 1397695014, 1397695012, 1397694970, 1397694968, 1397694966, 1397694964, 1397694962] map_info['map_portfolio_photo'] : {29158804: [1397697459, 1397695610, 1397695608, 1397695599, 1397695590, 1397695584, 1397695557, 1397695553, 1397695552, 1397695550, 1397695548, 1397695547, 1397695546, 1397695508, 1397695507, 1397695014, 1397695012, 1397694970, 1397694968, 1397694966, 1397694964, 1397694962]} final : False mtd_id 4302 list_pids : [1397697459, 1397695610, 1397695608, 1397695599, 1397695590, 1397695584, 1397695557, 1397695553, 1397695552, 1397695550, 1397695548, 1397695547, 1397695546, 1397695508, 1397695507, 1397695014, 1397695012, 1397694970, 1397694968, 1397694966, 1397694964, 1397694962] Looping around the photos to save general results len do output : 1 /29158804. 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, '4183576') ('4302', '29158804', '1397697459', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695610', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695608', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695599', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695590', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695584', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695557', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695553', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695552', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695550', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695548', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695547', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695546', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695508', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695507', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695014', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695012', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397694970', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397694968', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397694966', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397694964', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397694962', None, None, None, None, None, '4183576') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 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, '29158804', "{'Carton_gris': 29158820, 'papier': 29158821, 'plastique': 29158822, 'mal_croppe': 29158823, 'metal': 29158824, 'autre_refus': 29158825, 'kraft': 29158826, 'Carton_brun': 29158827, 'cartonnette': 29158828, 'flou': 29158829, 'environnement': 29158830, 'Teint_Dans_La_Masse': 29158831}", None, None, None, None, '4183576'), ('4302', '29158804', '1397697459', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695610', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695608', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695599', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695590', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695584', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695557', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695553', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695552', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695550', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695548', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695547', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695546', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695508', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695507', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695014', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695012', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397694970', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397694968', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397694966', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397694964', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397694962', None, None, None, None, None, '4183576')] time used for this insertion : 0.02155756950378418 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8886291980743408 time spend to save output : 0.021869421005249023 total time spend for step 1 : 1.9104986190795898 step2:final Thu Dec 4 06:14:29 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 (29158804) 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 29158804 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1397694970,1397694968,1397694966,1397694964,1397694962,1397695014,1397695012,1397695508,1397695557,1397695507,1397695553,1397695552,1397695550,1397695548,1397695547,1397695546,1397695610,1397695608,1397695599,1397695590,1397695584,1397697459); 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([29158804]) Inside saveOutput : final : False verbose : True original output for save of step final : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} new output for save of step final : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} [1397697459, 1397695610, 1397695608, 1397695599, 1397695590, 1397695584, 1397695557, 1397695553, 1397695552, 1397695550, 1397695548, 1397695547, 1397695546, 1397695508, 1397695507, 1397695014, 1397695012, 1397694970, 1397694968, 1397694966, 1397694964, 1397694962] map_info['map_portfolio_photo'] : {29158804: [1397697459, 1397695610, 1397695608, 1397695599, 1397695590, 1397695584, 1397695557, 1397695553, 1397695552, 1397695550, 1397695548, 1397695547, 1397695546, 1397695508, 1397695507, 1397695014, 1397695012, 1397694970, 1397694968, 1397694966, 1397694964, 1397694962]} final : False mtd_id 4302 list_pids : [1397697459, 1397695610, 1397695608, 1397695599, 1397695590, 1397695584, 1397695557, 1397695553, 1397695552, 1397695550, 1397695548, 1397695547, 1397695546, 1397695508, 1397695507, 1397695014, 1397695012, 1397694970, 1397694968, 1397694966, 1397694964, 1397694962] Looping around the photos to save general results len do output : 22 /1397697459.Didn't retrieve data . /1397695610.Didn't retrieve data . /1397695608.Didn't retrieve data . /1397695599.Didn't retrieve data . /1397695590.Didn't retrieve data . /1397695584.Didn't retrieve data . /1397695557.Didn't retrieve data . /1397695553.Didn't retrieve data . /1397695552.Didn't retrieve data . /1397695550.Didn't retrieve data . /1397695548.Didn't retrieve data . /1397695547.Didn't retrieve data . /1397695546.Didn't retrieve data . /1397695508.Didn't retrieve data . /1397695507.Didn't retrieve data . /1397695014.Didn't retrieve data . /1397695012.Didn't retrieve data . /1397694970.Didn't retrieve data . /1397694968.Didn't retrieve data . /1397694966.Didn't retrieve data . /1397694964.Didn't retrieve data . /1397694962.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, '4183576') ('4302', '29158804', '1397697459', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695610', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695608', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695599', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695590', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695584', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695557', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695553', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695552', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695550', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695548', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695547', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695546', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695508', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695507', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695014', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695012', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397694970', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397694968', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397694966', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397694964', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397694962', None, None, None, None, None, '4183576') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 66 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', '29158804', '1397697459', '0.06792489028402139', None, None, None, None, '4183576'), ('4302', '29158804', '1397695610', '0.06792489028402139', None, None, None, None, '4183576'), ('4302', '29158804', '1397695608', '0.06792489028402139', None, None, None, None, '4183576'), ('4302', '29158804', '1397695599', '0.06792489028402139', None, None, None, None, '4183576'), ('4302', '29158804', '1397695590', '0.06792489028402139', None, None, None, None, '4183576'), ('4302', '29158804', '1397695584', '0.06792489028402139', None, None, None, None, '4183576'), ('4302', '29158804', '1397695557', '0.06792489028402139', None, None, None, None, '4183576'), ('4302', '29158804', '1397695553', '0.06792489028402139', None, None, None, None, '4183576'), ('4302', '29158804', '1397695552', '0.06792489028402139', None, None, None, None, '4183576'), ('4302', '29158804', '1397695550', '0.06792489028402139', None, None, None, None, '4183576'), ('4302', '29158804', '1397695548', '0.06792489028402139', None, None, None, None, '4183576'), ('4302', '29158804', '1397695547', '0.06792489028402139', None, None, None, None, '4183576'), ('4302', '29158804', '1397695546', '0.06792489028402139', None, None, None, None, '4183576'), ('4302', '29158804', '1397695508', '0.06792489028402139', None, None, None, None, '4183576'), ('4302', '29158804', '1397695507', '0.06792489028402139', None, None, None, None, '4183576'), ('4302', '29158804', '1397695014', '0.06792489028402139', None, None, None, None, '4183576'), ('4302', '29158804', '1397695012', '0.06792489028402139', None, None, None, None, '4183576'), ('4302', '29158804', '1397694970', '0.06792489028402139', None, None, None, None, '4183576'), ('4302', '29158804', '1397694968', '0.06792489028402139', None, None, None, None, '4183576'), ('4302', '29158804', '1397694966', '0.06792489028402139', None, None, None, None, '4183576'), ('4302', '29158804', '1397694964', '0.06792489028402139', None, None, None, None, '4183576'), ('4302', '29158804', '1397694962', '0.06792489028402139', None, None, None, None, '4183576')] time used for this insertion : 0.019816875457763672 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08442139625549316 time spend to save output : 0.020784616470336914 total time spend for step 2 : 0.10520601272583008 step3:velours_tree Thu Dec 4 06:14:29 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 : {29158804: [{'Carton_gris': 29158820, 'papier': 29158821, 'plastique': 29158822, 'mal_croppe': 29158823, 'metal': 29158824, 'autre_refus': 29158825, 'kraft': 29158826, 'Carton_brun': 29158827, 'cartonnette': 29158828, 'flou': 29158829, 'environnement': 29158830, 'Teint_Dans_La_Masse': 29158831}]} input_args_next_step : {29158804: ()} output_args : {29158804: [{'Carton_gris': 29158820, 'papier': 29158821, 'plastique': 29158822, 'mal_croppe': 29158823, 'metal': 29158824, 'autre_refus': 29158825, 'kraft': 29158826, 'Carton_brun': 29158827, 'cartonnette': 29158828, 'flou': 29158829, 'environnement': 29158830, 'Teint_Dans_La_Masse': 29158831}]} args : 29158804 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 : ({'Carton_gris': 29158820, 'papier': 29158821, 'plastique': 29158822, 'mal_croppe': 29158823, 'metal': 29158824, 'autre_refus': 29158825, 'kraft': 29158826, 'Carton_brun': 29158827, 'cartonnette': 29158828, 'flou': 29158829, 'environnement': 29158830, 'Teint_Dans_La_Masse': 29158831},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29158804) 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([29158804]) 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.24779176712036133 time spend to save output : 5.078315734863281e-05 total time spend for step 3 : 0.24784255027770996 step4:send_mail_cod Thu Dec 4 06:14:29 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 : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} input_args_next_step : {1397697459: ()} output_args : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} args : 1397697459 depend.output_id : 0 input_args_next_step : {1397697459: ('0.06792489028402139',), 1397695610: ()} output_args : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} args : 1397695610 depend.output_id : 0 input_args_next_step : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ()} output_args : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} args : 1397695608 depend.output_id : 0 input_args_next_step : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ()} output_args : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} args : 1397695599 depend.output_id : 0 input_args_next_step : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ()} output_args : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} args : 1397695590 depend.output_id : 0 input_args_next_step : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ()} output_args : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} args : 1397695584 depend.output_id : 0 input_args_next_step : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ()} output_args : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} args : 1397695557 depend.output_id : 0 input_args_next_step : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ()} output_args : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} args : 1397695553 depend.output_id : 0 input_args_next_step : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ()} output_args : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} args : 1397695552 depend.output_id : 0 input_args_next_step : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ()} output_args : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} args : 1397695550 depend.output_id : 0 input_args_next_step : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ()} output_args : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} args : 1397695548 depend.output_id : 0 input_args_next_step : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ()} output_args : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} args : 1397695547 depend.output_id : 0 input_args_next_step : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ()} output_args : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} args : 1397695546 depend.output_id : 0 input_args_next_step : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ()} output_args : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} args : 1397695508 depend.output_id : 0 input_args_next_step : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ()} output_args : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} args : 1397695507 depend.output_id : 0 input_args_next_step : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ()} output_args : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} args : 1397695014 depend.output_id : 0 input_args_next_step : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ()} output_args : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} args : 1397695012 depend.output_id : 0 input_args_next_step : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ()} output_args : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} args : 1397694970 depend.output_id : 0 input_args_next_step : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ()} output_args : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} args : 1397694968 depend.output_id : 0 input_args_next_step : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ()} output_args : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} args : 1397694966 depend.output_id : 0 input_args_next_step : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ()} output_args : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} args : 1397694964 depend.output_id : 0 input_args_next_step : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ()} output_args : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',)} args : 1397694962 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 : {29158804: [{'Carton_gris': 29158820, 'papier': 29158821, 'plastique': 29158822, 'mal_croppe': 29158823, 'metal': 29158824, 'autre_refus': 29158825, 'kraft': 29158826, 'Carton_brun': 29158827, 'cartonnette': 29158828, 'flou': 29158829, 'environnement': 29158830, 'Teint_Dans_La_Masse': 29158831}]} input_args_next_step : {1397697459: ('0.06792489028402139',), 1397695610: ('0.06792489028402139',), 1397695608: ('0.06792489028402139',), 1397695599: ('0.06792489028402139',), 1397695590: ('0.06792489028402139',), 1397695584: ('0.06792489028402139',), 1397695557: ('0.06792489028402139',), 1397695553: ('0.06792489028402139',), 1397695552: ('0.06792489028402139',), 1397695550: ('0.06792489028402139',), 1397695548: ('0.06792489028402139',), 1397695547: ('0.06792489028402139',), 1397695546: ('0.06792489028402139',), 1397695508: ('0.06792489028402139',), 1397695507: ('0.06792489028402139',), 1397695014: ('0.06792489028402139',), 1397695012: ('0.06792489028402139',), 1397694970: ('0.06792489028402139',), 1397694968: ('0.06792489028402139',), 1397694966: ('0.06792489028402139',), 1397694964: ('0.06792489028402139',), 1397694962: ('0.06792489028402139',), 29158804: ()} output_args : {29158804: [{'Carton_gris': 29158820, 'papier': 29158821, 'plastique': 29158822, 'mal_croppe': 29158823, 'metal': 29158824, 'autre_refus': 29158825, 'kraft': 29158826, 'Carton_brun': 29158827, 'cartonnette': 29158828, 'flou': 29158829, 'environnement': 29158830, 'Teint_Dans_La_Masse': 29158831}]} args : 29158804 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 :23, first value : ('0.06792489028402139',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29158804) 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 (1397697459,1397695610,1397695608,1397695599,1397695590,1397695584,1397695557,1397695553,1397695552,1397695550,1397695548,1397695547,1397695546,1397695508,1397695507,1397695014,1397695012,1397694970,1397694968,1397694966,1397694964,1397694962) Found this number of photos: 22 ##### Call download_photos : nb_thread : 5 begin to download photo : 1397694962 begin to download photo : 1397695012 begin to download photo : 1397695547 begin to download photo : 1397695557 begin to download photo : 1397695610 download finish for photo 1397695557 begin to download photo : 1397695584 download finish for photo 1397695547 begin to download photo : 1397695548 download finish for photo 1397695610 begin to download photo : 1397697459 download finish for photo 1397695012 begin to download photo : 1397695014 download finish for photo 1397694962 begin to download photo : 1397694964 download finish for photo 1397695584 begin to download photo : 1397695590 download finish for photo 1397695014 begin to download photo : 1397695507 download finish for photo 1397697459 download finish for photo 1397695548 begin to download photo : 1397695550 download finish for photo 1397694964 begin to download photo : 1397694966 download finish for photo 1397695590 begin to download photo : 1397695599 download finish for photo 1397695507 begin to download photo : 1397695508 download finish for photo 1397695550 begin to download photo : 1397695552 download finish for photo 1397694966 begin to download photo : 1397694968 download finish for photo 1397695599 begin to download photo : 1397695608 download finish for photo 1397695508 begin to download photo : 1397695546 download finish for photo 1397695552 begin to download photo : 1397695553 download finish for photo 1397694968 begin to download photo : 1397694970 download finish for photo 1397695608 download finish for photo 1397695546 download finish for photo 1397695553 download finish for photo 1397694970 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 : 22 ; length of list_pids : 22 ; length of list_args : 22 results_Auto_P29158804_04-12-2025_06_14_30.pdf 29158822 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=29158822 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397695631: '1764790865_2688344_1397695012_e0134cf7178ec2a45ec6522f3eef39de_rle_crop_4057335451_0.png', 1397695714: '1764790983_2694944_1397695550_6297b6d55a47d40d18f74e7b110e62a0_rle_crop_4057336355_0.png', 1397695715: '1764790983_2694944_1397695546_a30a2d69508e2254b253188cfebb8ef7_rle_crop_4057337005_0.png', 1397695717: '1764791006_2695643_1397695552_1a2fd7f62013e9ee1c7e6b05d0ce6e3a_rle_crop_4057337054_0.png', 1397695803: '1764791105_2702170_1397695608_3f6ab31fa676df230cb2ac51c4055037_rle_crop_4057337602_0.png', 1397695863: '1764791247_2709099_1397695610_7b46d9b6e986a7c70df8a1b373665274_rle_crop_4057340283_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/1442594536b33378e1d6d5a767e86008_26056082.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/f1ac6b3f2f5625b05eba9bc84ff6aebc_97638522.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/acb763587a402a8618284427bdb9d042_81902854.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/2d5e088fb168b564f1f7f012b6cf92ef_62970182.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/eaf80deff511705bc980a63be6c17345_29015263.png change filename to text .imagette291588221764825270/ imagette291588221764825270/1764791105_2702170_1397695608_3f6ab31fa676df230cb2ac51c4055037_rle_crop_4057337602_0.png.png imagette291588221764825270/1764791247_2709099_1397695610_7b46d9b6e986a7c70df8a1b373665274_rle_crop_4057340283_0.png.png imagette291588221764825270/1764791006_2695643_1397695552_1a2fd7f62013e9ee1c7e6b05d0ce6e3a_rle_crop_4057337054_0.png.png imagette291588221764825270/1764790865_2688344_1397695012_e0134cf7178ec2a45ec6522f3eef39de_rle_crop_4057335451_0.png.png imagette291588221764825270/1764790983_2694944_1397695546_a30a2d69508e2254b253188cfebb8ef7_rle_crop_4057337005_0.png.png imagette291588221764825270/1764790983_2694944_1397695550_6297b6d55a47d40d18f74e7b110e62a0_rle_crop_4057336355_0.png.png imagette291588231764825271/ imagette291588241764825271/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/a3a493b34e46b42017f8bec3ff21b295_17908956.png imagette291588221764825270 29158823 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=29158823 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291588231764825271 29158824 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=29158824 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291588241764825271 29158825 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=29158825 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397695630: '1764790865_2688344_1397695012_e0134cf7178ec2a45ec6522f3eef39de_rle_crop_4057335444_0.png', 1397695699: '1764790983_2694944_1397695550_6297b6d55a47d40d18f74e7b110e62a0_rle_crop_4057336348_0.png', 1397695700: '1764790983_2694944_1397695550_6297b6d55a47d40d18f74e7b110e62a0_rle_crop_4057336345_0.png', 1397695701: '1764790983_2694944_1397695548_127d3b089822f2b2d08cb0ea026fc7fd_rle_crop_4057336371_0.png', 1397695801: '1764791105_2702170_1397695590_9cc5c66485fb59d1b96033752e928e4f_rle_crop_4057337619_0.png', 1397695802: '1764791105_2702170_1397695584_36c13534aef63f1b1b3d0d4b2a963adb_rle_crop_4057337640_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/8739b058282ad2a94ab0af070cda55b4_49013343.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/8e1f65a6c23eec3353db0e90ab908d73_47129039.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/d084f8dbaa95bd99b7a1ce86a7968084_63429131.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/62f3cd2600ba8ad4aa5c04e3269a211d_97174001.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/b7e25b0ad180118c75a0851fc30b99e2_45907770.png change filename to text .imagette291588251764825271/ imagette291588251764825271/1764791105_2702170_1397695590_9cc5c66485fb59d1b96033752e928e4f_rle_crop_4057337619_0.png.png imagette291588251764825271/1764790983_2694944_1397695550_6297b6d55a47d40d18f74e7b110e62a0_rle_crop_4057336345_0.png.png imagette291588251764825271/1764790983_2694944_1397695550_6297b6d55a47d40d18f74e7b110e62a0_rle_crop_4057336348_0.png.png imagette291588251764825271/1764791105_2702170_1397695584_36c13534aef63f1b1b3d0d4b2a963adb_rle_crop_4057337640_0.png.png imagette291588251764825271/1764790983_2694944_1397695548_127d3b089822f2b2d08cb0ea026fc7fd_rle_crop_4057336371_0.png.png imagette291588251764825271/1764790865_2688344_1397695012_e0134cf7178ec2a45ec6522f3eef39de_rle_crop_4057335444_0.png.png imagette291588261764825271/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/b21486839d95dbc2a33bae810c381b57_18696237.png imagette291588251764825271 29158826 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=29158826 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291588261764825271 29158828 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=29158828 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397695499: '1764790625_2677638_1397694970_f8f7712be83124d7a0d4e7d271f9279f_rle_crop_4057333144_0.png', 1397695500: '1764790625_2677638_1397694968_37b64fe3cbf54a91a1115ab1d8069094_rle_crop_4057333160_0.png', 1397695501: '1764790625_2677638_1397694966_2b7ccdb0140ea9bacfe9f90d676d7d0b_rle_crop_4057333169_0.png', 1397695502: '1764790625_2677638_1397694962_cabe6726d20a7bfa924157c880c47291_rle_crop_4057333189_0.png', 1397695706: '1764790983_2694944_1397695550_6297b6d55a47d40d18f74e7b110e62a0_rle_crop_4057336347_0.png', 1397695707: '1764790983_2694944_1397695548_127d3b089822f2b2d08cb0ea026fc7fd_rle_crop_4057336366_0.png', 1397695708: '1764790983_2694944_1397695547_8914cb4738cafc8b6247a0b9997ea4c9_rle_crop_4057336387_0.png', 1397695709: '1764790983_2694944_1397695547_8914cb4738cafc8b6247a0b9997ea4c9_rle_crop_4057336386_0.png', 1397695710: '1764790983_2694944_1397695546_a30a2d69508e2254b253188cfebb8ef7_rle_crop_4057337003_0.png', 1397698608: '1764792185_2743862_1397697459_34827f93283e821bf928a8abb4425509_rle_crop_4057375430_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/6142aee50ad3574c8c7fff5e872283ea_44781039.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/26bbe0c21a04488d2256de2532ee4a45_30004675.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/db7152240d9d226be5155768baa07aff_44827780.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/121b01ca5b5807b7331d13d71561a4a7_84761728.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/d7952d30faefcf6ae66e6be79ca0481f_50702991.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/a378ced1d83b8041d2e7d04b469f2052_9857419.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/433481ab79560f10e6b518a90089ae26_33903154.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/db4a02654222c77dce083293f79274d0_72491214.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/d1fa333a06144ab5d3bef72bfc274b30_7152011.png change filename to text .imagette291588281764825271/ imagette291588281764825271/1764790625_2677638_1397694968_37b64fe3cbf54a91a1115ab1d8069094_rle_crop_4057333160_0.png.png imagette291588281764825271/1764790983_2694944_1397695547_8914cb4738cafc8b6247a0b9997ea4c9_rle_crop_4057336387_0.png.png imagette291588281764825271/1764790983_2694944_1397695550_6297b6d55a47d40d18f74e7b110e62a0_rle_crop_4057336347_0.png.png imagette291588281764825271/1764790625_2677638_1397694962_cabe6726d20a7bfa924157c880c47291_rle_crop_4057333189_0.png.png imagette291588281764825271/1764790983_2694944_1397695547_8914cb4738cafc8b6247a0b9997ea4c9_rle_crop_4057336386_0.png.png imagette291588281764825271/1764790625_2677638_1397694966_2b7ccdb0140ea9bacfe9f90d676d7d0b_rle_crop_4057333169_0.png.png imagette291588281764825271/1764790983_2694944_1397695546_a30a2d69508e2254b253188cfebb8ef7_rle_crop_4057337003_0.png.png imagette291588281764825271/1764792185_2743862_1397697459_34827f93283e821bf928a8abb4425509_rle_crop_4057375430_0.png.png imagette291588281764825271/1764790625_2677638_1397694970_f8f7712be83124d7a0d4e7d271f9279f_rle_crop_4057333144_0.png.png imagette291588281764825271/1764790983_2694944_1397695548_127d3b089822f2b2d08cb0ea026fc7fd_rle_crop_4057336366_0.png.png imagette291588291764825273/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/05f46ccc0b0b3722e7478e8bad701e3d_17811969.png imagette291588281764825271 29158829 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=29158829 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291588291764825273 29158820 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=29158820 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397695703: '1764790983_2694944_1397695548_127d3b089822f2b2d08cb0ea026fc7fd_rle_crop_4057336363_0.png', 1397695704: '1764790983_2694944_1397695548_127d3b089822f2b2d08cb0ea026fc7fd_rle_crop_4057336361_0.png', 1397695705: '1764790983_2694944_1397695547_8914cb4738cafc8b6247a0b9997ea4c9_rle_crop_4057336385_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/51dac9f02b4a74746a7959e00e46a008_85247747.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/2c5d45a364e9f774ab5febca84a35cd5_45928230.png change filename to text .imagette291588201764825273/ imagette291588201764825273/1764790983_2694944_1397695547_8914cb4738cafc8b6247a0b9997ea4c9_rle_crop_4057336385_0.png.png imagette291588201764825273/1764790983_2694944_1397695548_127d3b089822f2b2d08cb0ea026fc7fd_rle_crop_4057336363_0.png.png imagette291588201764825273/1764790983_2694944_1397695548_127d3b089822f2b2d08cb0ea026fc7fd_rle_crop_4057336361_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/aa273d951b31f43b7ca332fcddad38f3_20987690.png imagette291588201764825273 29158827 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=29158827 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397695503: '1764790625_2677638_1397694970_f8f7712be83124d7a0d4e7d271f9279f_rle_crop_4057333140_0.png', 1397695504: '1764790625_2677638_1397694968_37b64fe3cbf54a91a1115ab1d8069094_rle_crop_4057333156_0.png', 1397695712: '1764790983_2694944_1397695548_127d3b089822f2b2d08cb0ea026fc7fd_rle_crop_4057336367_0.png', 1397695713: '1764790983_2694944_1397695548_127d3b089822f2b2d08cb0ea026fc7fd_rle_crop_4057336369_0.png', 1397698618: '1764792185_2743862_1397697459_34827f93283e821bf928a8abb4425509_rle_crop_4057375439_0.png', 1397698623: '1764792185_2743862_1397697459_34827f93283e821bf928a8abb4425509_rle_crop_4057375438_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/c0db6907baf2686eff68658d8d86bfff_86353150.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/236c3dd82a626b7188c51a9e73e936b5_84897168.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/3be41121d213fdbd040d97f19ac68496_30717663.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/c2be86d2edc290a54f8461f67de5898d_8537448.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/d061fbe181f3c3bc997da67430f033e3_67525674.png change filename to text .imagette291588271764825273/ imagette291588271764825273/1764790983_2694944_1397695548_127d3b089822f2b2d08cb0ea026fc7fd_rle_crop_4057336367_0.png.png imagette291588271764825273/1764792185_2743862_1397697459_34827f93283e821bf928a8abb4425509_rle_crop_4057375438_0.png.png imagette291588271764825273/1764790625_2677638_1397694970_f8f7712be83124d7a0d4e7d271f9279f_rle_crop_4057333140_0.png.png imagette291588271764825273/1764792185_2743862_1397697459_34827f93283e821bf928a8abb4425509_rle_crop_4057375439_0.png.png imagette291588271764825273/1764790983_2694944_1397695548_127d3b089822f2b2d08cb0ea026fc7fd_rle_crop_4057336369_0.png.png imagette291588271764825273/1764790625_2677638_1397694968_37b64fe3cbf54a91a1115ab1d8069094_rle_crop_4057333156_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/703575cf0d9d909c919909e0dbba6163_57244391.png imagette291588271764825273 29158831 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=29158831 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397695498: '1764790625_2677638_1397694966_2b7ccdb0140ea9bacfe9f90d676d7d0b_rle_crop_4057333168_0.png', 1397695796: '1764791105_2702170_1397695608_3f6ab31fa676df230cb2ac51c4055037_rle_crop_4057337593_0.png', 1397695797: '1764791105_2702170_1397695584_36c13534aef63f1b1b3d0d4b2a963adb_rle_crop_4057337643_0.png', 1397695798: '1764791105_2702170_1397695584_36c13534aef63f1b1b3d0d4b2a963adb_rle_crop_4057337645_0.png', 1397698599: '1764792185_2743862_1397697459_34827f93283e821bf928a8abb4425509_rle_crop_4057375441_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/47974aa151f65ab72c598b216e2ae3f2_72239109.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/bd87fce258718345f3eb4290f2c9580a_48750467.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/5091a2fa2ba3b6d4bd400201b159df42_41072181.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/2f7debe50be6586789f27a5f1c1995aa_74358817.png change filename to text .imagette291588311764825273/ imagette291588311764825273/1764791105_2702170_1397695608_3f6ab31fa676df230cb2ac51c4055037_rle_crop_4057337593_0.png.png imagette291588311764825273/1764791105_2702170_1397695584_36c13534aef63f1b1b3d0d4b2a963adb_rle_crop_4057337643_0.png.png imagette291588311764825273/1764791105_2702170_1397695584_36c13534aef63f1b1b3d0d4b2a963adb_rle_crop_4057337645_0.png.png imagette291588311764825273/1764792185_2743862_1397697459_34827f93283e821bf928a8abb4425509_rle_crop_4057375441_0.png.png imagette291588311764825273/1764790625_2677638_1397694966_2b7ccdb0140ea9bacfe9f90d676d7d0b_rle_crop_4057333168_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/7a3402529a631ea255cdd70758c3d257_85231940.png imagette291588311764825273 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29158804 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29158833,29158834,29158835,29158836,29158837,29158838,29158839,29158840,29158841,29158842,29158843,29158844?tags=Carton_gris,papier,plastique,mal_croppe,metal,autre_refus,kraft,Carton_brun,cartonnette,flou,environnement,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1397697459] : ('0.06792489028402139',) no score found for photo 1397697459 We are sending mail with results at report@fotonower.com args[1397695610] : ('0.06792489028402139',) no score found for photo 1397695610 We are sending mail with results at report@fotonower.com args[1397695608] : ('0.06792489028402139',) no score found for photo 1397695608 We are sending mail with results at report@fotonower.com args[1397695599] : ('0.06792489028402139',) no score found for photo 1397695599 We are sending mail with results at report@fotonower.com args[1397695590] : ('0.06792489028402139',) no score found for photo 1397695590 We are sending mail with results at report@fotonower.com args[1397695584] : ('0.06792489028402139',) no score found for photo 1397695584 We are sending mail with results at report@fotonower.com args[1397695557] : ('0.06792489028402139',) no score found for photo 1397695557 We are sending mail with results at report@fotonower.com args[1397695553] : ('0.06792489028402139',) no score found for photo 1397695553 We are sending mail with results at report@fotonower.com args[1397695552] : ('0.06792489028402139',) no score found for photo 1397695552 We are sending mail with results at report@fotonower.com args[1397695550] : ('0.06792489028402139',) no score found for photo 1397695550 We are sending mail with results at report@fotonower.com args[1397695548] : ('0.06792489028402139',) no score found for photo 1397695548 We are sending mail with results at report@fotonower.com args[1397695547] : ('0.06792489028402139',) no score found for photo 1397695547 We are sending mail with results at report@fotonower.com args[1397695546] : ('0.06792489028402139',) no score found for photo 1397695546 We are sending mail with results at report@fotonower.com args[1397695508] : ('0.06792489028402139',) no score found for photo 1397695508 We are sending mail with results at report@fotonower.com args[1397695507] : ('0.06792489028402139',) no score found for photo 1397695507 We are sending mail with results at report@fotonower.com args[1397695014] : ('0.06792489028402139',) no score found for photo 1397695014 We are sending mail with results at report@fotonower.com args[1397695012] : ('0.06792489028402139',) no score found for photo 1397695012 We are sending mail with results at report@fotonower.com args[1397694970] : ('0.06792489028402139',) no score found for photo 1397694970 We are sending mail with results at report@fotonower.com args[1397694968] : ('0.06792489028402139',) no score found for photo 1397694968 We are sending mail with results at report@fotonower.com args[1397694966] : ('0.06792489028402139',) no score found for photo 1397694966 We are sending mail with results at report@fotonower.com args[1397694964] : ('0.06792489028402139',) no score found for photo 1397694964 We are sending mail with results at report@fotonower.com args[1397694962] : ('0.06792489028402139',) no score found for photo 1397694962 We are sending mail with results at report@fotonower.com refus_total : 0.06792489028402139 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=29158804 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_P29158804_04-12-2025_06_14_30.pdf results_Auto_P29158804_04-12-2025_06_14_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29158804_04-12-2025_06_14_30.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','29158804','results_Auto_P29158804_04-12-2025_06_14_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29158804_04-12-2025_06_14_30.pdf','pdf','','0.3','0.06792489028402139') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29158804]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1397697459, 1397695610, 1397695608, 1397695599, 1397695590, 1397695584, 1397695557, 1397695553, 1397695552, 1397695550, 1397695548, 1397695547, 1397695546, 1397695508, 1397695507, 1397695014, 1397695012, 1397694970, 1397694968, 1397694966, 1397694964, 1397694962] map_info['map_portfolio_photo'] : {29158804: [1397697459, 1397695610, 1397695608, 1397695599, 1397695590, 1397695584, 1397695557, 1397695553, 1397695552, 1397695550, 1397695548, 1397695547, 1397695546, 1397695508, 1397695507, 1397695014, 1397695012, 1397694970, 1397694968, 1397694966, 1397694964, 1397694962]} final : False mtd_id 4302 list_pids : [1397697459, 1397695610, 1397695608, 1397695599, 1397695590, 1397695584, 1397695557, 1397695553, 1397695552, 1397695550, 1397695548, 1397695547, 1397695546, 1397695508, 1397695507, 1397695014, 1397695012, 1397694970, 1397694968, 1397694966, 1397694964, 1397694962] 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, '4183576') ('4302', '29158804', '1397697459', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695610', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695608', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695599', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695590', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695584', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695557', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695553', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695552', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695550', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695548', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695547', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695546', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695508', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695507', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695014', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695012', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397694970', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397694968', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397694966', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397694964', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397694962', None, None, None, None, None, '4183576') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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', '29158804', '1397697459', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695610', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695608', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695599', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695590', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695584', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695557', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695553', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695552', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695550', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695548', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695547', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695546', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695508', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695507', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695014', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695012', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397694970', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397694968', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397694966', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397694964', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397694962', None, None, None, None, None, '4183576')] time used for this insertion : 0.02102375030517578 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.659515380859375 time spend to save output : 0.021320104598999023 total time spend for step 4 : 6.680835485458374 step5:split_time_score Thu Dec 4 06:14:36 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 : ['29158804'] 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 : [('29158804',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29158804) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1397695610: {'path': 'temp/1764825269_1000203_1397695610_7b46d9b6e986a7c70df8a1b373665274.jpg', 'extension': 'jpg'}, 1397697459: {'path': 'temp/1764825269_1000203_1397697459_34827f93283e821bf928a8abb4425509.jpg', 'extension': 'jpg'}, 1397695557: {'path': 'temp/1764825269_1000203_1397695557_22dea9a2a3c031de5d7887af9c553864.jpg', 'extension': 'jpg'}, 1397695584: {'path': 'temp/1764825269_1000203_1397695584_36c13534aef63f1b1b3d0d4b2a963adb.jpg', 'extension': 'jpg'}, 1397695590: {'path': 'temp/1764825269_1000203_1397695590_9cc5c66485fb59d1b96033752e928e4f.jpg', 'extension': 'jpg'}, 1397695599: {'path': 'temp/1764825269_1000203_1397695599_3ad4c0d05c231a1a71ae708ff871cc30.jpg', 'extension': 'jpg'}, 1397695608: {'path': 'temp/1764825269_1000203_1397695608_3f6ab31fa676df230cb2ac51c4055037.jpg', 'extension': 'jpg'}, 1397695012: {'path': 'temp/1764825269_1000203_1397695012_e0134cf7178ec2a45ec6522f3eef39de.jpg', 'extension': 'jpg'}, 1397695014: {'path': 'temp/1764825269_1000203_1397695014_bf2e736939e578e7f98d34ef7f9e673b.jpg', 'extension': 'jpg'}, 1397695507: {'path': 'temp/1764825269_1000203_1397695507_20cdc979e38a19af03627d0006c29c91.jpg', 'extension': 'jpg'}, 1397695508: {'path': 'temp/1764825269_1000203_1397695508_120a4d809351b83cf6e22f20a38ee6ab.jpg', 'extension': 'jpg'}, 1397695546: {'path': 'temp/1764825269_1000203_1397695546_a30a2d69508e2254b253188cfebb8ef7.jpg', 'extension': 'jpg'}, 1397695547: {'path': 'temp/1764825269_1000203_1397695547_8914cb4738cafc8b6247a0b9997ea4c9.jpg', 'extension': 'jpg'}, 1397695548: {'path': 'temp/1764825269_1000203_1397695548_127d3b089822f2b2d08cb0ea026fc7fd.jpg', 'extension': 'jpg'}, 1397695550: {'path': 'temp/1764825269_1000203_1397695550_6297b6d55a47d40d18f74e7b110e62a0.jpg', 'extension': 'jpg'}, 1397695552: {'path': 'temp/1764825269_1000203_1397695552_1a2fd7f62013e9ee1c7e6b05d0ce6e3a.jpg', 'extension': 'jpg'}, 1397695553: {'path': 'temp/1764825269_1000203_1397695553_e084a7393a1191f1b7e6745b6801e2ee.jpg', 'extension': 'jpg'}, 1397694962: {'path': 'temp/1764825269_1000203_1397694962_cabe6726d20a7bfa924157c880c47291.jpg', 'extension': 'jpg'}, 1397694964: {'path': 'temp/1764825269_1000203_1397694964_fb58a5463fc99a40355ccf3492b9671c.jpg', 'extension': 'jpg'}, 1397694966: {'path': 'temp/1764825269_1000203_1397694966_2b7ccdb0140ea9bacfe9f90d676d7d0b.jpg', 'extension': 'jpg'}, 1397694968: {'path': 'temp/1764825269_1000203_1397694968_37b64fe3cbf54a91a1115ab1d8069094.jpg', 'extension': 'jpg'}, 1397694970: {'path': 'temp/1764825269_1000203_1397694970_f8f7712be83124d7a0d4e7d271f9279f.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 = 29158804; (('arc_en_ciel_jrm_bis',), ('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 = 29158804 group by h (('20', 22),) 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=29158804 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 (29158804) 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 (29158804) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03122025 29158804 Nombre de photos uploadées : 22 / 23040 (0%) 03122025 29158804 Nombre de photos taguées (types de déchets): 0 / 22 (0%) 03122025 29158804 Nombre de photos taguées (volume) : 0 / 22 (0%) [{'photo_id': 1397694970, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/f8f7712be83124d7a0d4e7d271f9279f.jpg', 'username': None, 'uploaded_at': 1764790282, 'text': 'image_03122025_20_30_04_010140m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1397694968, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/37b64fe3cbf54a91a1115ab1d8069094.jpg', 'username': None, 'uploaded_at': 1764790282, 'text': 'image_03122025_20_30_14_010134m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1397694966, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/2b7ccdb0140ea9bacfe9f90d676d7d0b.jpg', 'username': None, 'uploaded_at': 1764790282, 'text': 'image_03122025_20_30_25_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1397694964, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/3/fb58a5463fc99a40355ccf3492b9671c.jpg', 'username': None, 'uploaded_at': 1764790282, 'text': 'image_03122025_20_30_34_009124m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ?????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0009605884552001953 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29158804, '2025-12-03' ) 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-03' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2683135,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24982666969299316 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= 2683135 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29118472, 'dashboard_result_id': 18049317, '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_P29118472_04-12-2025_05_34_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29118473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29118474, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29118475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29118476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29118477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29118478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29118479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29118480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29118481, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29118482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29118483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29118484, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29119115, 'dashboard_result_id': 18049318, '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_P29119115_04-12-2025_05_34_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29119121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29119122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29119123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29119124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29119125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29119126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29119127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29119128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29119129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29119130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29119131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29119132, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29119691, 'dashboard_result_id': 18049319, '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_P29119691_04-12-2025_05_35_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29119699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29119700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29119701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29119702, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29119703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29119704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29119705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29119706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29119707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29119708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29119709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29119710, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29120310, 'dashboard_result_id': 18049321, '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_P29120310_04-12-2025_05_36_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29120319, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29120320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29120321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29120322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29120323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29120324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29120325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29120326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29120327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29120328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29120329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29120330, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29122211, 'dashboard_result_id': 18049322, '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_P29122211_04-12-2025_05_36_11.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29122252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29122253, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29122254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29122255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29122256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29122257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29122258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29122259, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29122260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29122261, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29122262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29122263, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29122760, 'dashboard_result_id': 18049323, '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_P29122760_04-12-2025_05_36_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29122768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29122769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29122770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29122771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29122772, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29122773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29122774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29122775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29122776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29122777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29122778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29122779, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29123215, 'dashboard_result_id': 18049324, '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_P29123215_04-12-2025_05_37_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29123264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29123265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29123266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29123268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29123269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29123270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29123271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29123272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29123273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29123274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29123275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29123276, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29123936, 'dashboard_result_id': 18049326, '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_P29123936_04-12-2025_05_38_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29123977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29123978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29123979, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29123980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29123981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29123982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29123983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29123984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29123985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29123986, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29123987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29123988, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29124511, 'dashboard_result_id': 18049327, '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_P29124511_04-12-2025_05_38_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29124515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29124516, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29124517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29124518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29124519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29124520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29124521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29124522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29124523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29124524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29124525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29124526, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29125212, 'dashboard_result_id': 18049328, '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_P29125212_04-12-2025_05_39_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29125222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29125223, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29125224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29125225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29125226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29125227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29125228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29125229, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29125230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29125231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29125232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29125233, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29125708, 'dashboard_result_id': 18049329, '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_P29125708_04-12-2025_05_40_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29125724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29125725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29125726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29125727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29125728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29125729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29125730, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29125731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29125732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29125733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29125734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29125735, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29126179, 'dashboard_result_id': 18049331, '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_P29126179_04-12-2025_05_40_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29126220, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29126221, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29126222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29126223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29126224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29126225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29126226, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29126227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29126228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29126229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29126230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29126231, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29126661, 'dashboard_result_id': 18049332, '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_P29126661_04-12-2025_05_41_16.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29126663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29126664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29126665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29126666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29126667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29126668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29126669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29126670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29126671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29126672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29126673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29126674, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29126976, 'dashboard_result_id': 18049333, '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_P29126976_04-12-2025_05_41_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29126985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29126986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29126987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29126988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29126989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29126990, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29126991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29126992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29126993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29126994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29126995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29126996, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29127436, 'dashboard_result_id': 18049334, '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_P29127436_04-12-2025_05_42_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29127500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29127501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29127503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29127504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29127505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29127506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29127507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29127508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29127509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29127510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29127511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29127512, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29129057, 'dashboard_result_id': 18049336, '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_P29129057_04-12-2025_05_42_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29129058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29129059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29129060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29129061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29129062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29129063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29129064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29129065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29129066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29129067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29129068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29129069, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29129398, 'dashboard_result_id': 18049337, '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_P29129398_04-12-2025_05_43_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29129402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29129403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29129404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29129405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29129406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29129407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29129408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29129409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29129410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29129411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29129412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29129413, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29129845, 'dashboard_result_id': 18049338, '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_P29129845_04-12-2025_05_44_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29129887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29129888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29129889, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29129890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29129891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29129892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29129893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29129894, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29129895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29129896, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29129897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29129898, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29130321, 'dashboard_result_id': 18049339, '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_P29130321_04-12-2025_05_44_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29130328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29130329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29130330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29130331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29130332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29130333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29130334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29130335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29130336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29130337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29130338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29130339, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29130674, 'dashboard_result_id': 18049341, '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_P29130674_04-12-2025_05_45_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29130686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29130687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29130688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29130689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29130690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29130691, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29130692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29130693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29130694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29130695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29130696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29130697, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29131471, 'dashboard_result_id': 18049342, '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_P29131471_04-12-2025_05_46_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29131493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29131494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29131495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29131496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29131497, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29131498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29131499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29131500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29131501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29131502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29131503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29131504, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29131997, 'dashboard_result_id': 18049343, '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_P29131997_04-12-2025_05_46_14.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29132038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29132039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29132040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29132041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29132042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29132043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29132044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29132045, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29132046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29132047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29132048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29132049, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29132670, 'dashboard_result_id': 18049345, '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_P29132670_04-12-2025_05_46_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29132708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29132709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29132710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29132711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29132712, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29132713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29132714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29132715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29132716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29132717, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29132718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29132719, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29133186, 'dashboard_result_id': 18049346, '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_P29133186_04-12-2025_05_47_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29133187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29133188, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29133189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29133190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29133191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29133192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29133193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29133194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29133195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29133196, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29133197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29133198, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29133916, 'dashboard_result_id': 18049347, '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_P29133916_04-12-2025_05_48_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29133958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29133959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29133960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29133961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29133962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29133963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29133964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29133965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29133966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29133967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29133968, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29133969, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29134419, 'dashboard_result_id': 18049348, '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_P29134419_04-12-2025_05_48_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29134421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29134422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29134423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29134424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29134426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29134427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29134428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29134429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29134430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29134431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29134432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29134433, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29135015, 'dashboard_result_id': 18049350, '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_P29135015_04-12-2025_05_49_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29135019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29135020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29135021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29135022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29135023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29135024, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29135025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29135026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29135027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29135028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29135029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29135030, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29135469, 'dashboard_result_id': 18049351, '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_P29135469_04-12-2025_05_50_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29135475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29135476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29135477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29135478, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29135479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29135480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29135481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29135482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29135483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29135484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29135485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29135486, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29136074, 'dashboard_result_id': 18049352, '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_P29136074_04-12-2025_05_50_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29136075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29136076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29136077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29136078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29136079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29136080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29136081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29136082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29136083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29136084, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29136085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29136086, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29136449, 'dashboard_result_id': 18049354, '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_P29136449_04-12-2025_05_51_14.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29136461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29136462, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29136463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29136464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29136465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29136466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29136467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29136468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29136469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29136470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29136471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29136472, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29136954, 'dashboard_result_id': 18049355, '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_P29136954_04-12-2025_05_51_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29136982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29136983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29136984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29136985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29136986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29136987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29136988, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29136989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29136990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29136991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29136992, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29136993, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29138307, 'dashboard_result_id': 18049356, '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_P29138307_04-12-2025_05_52_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29138380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29138381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29138382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29138383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29138384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29138385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29138386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29138387, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29138388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29138389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29138390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29138391, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29138941, 'dashboard_result_id': 18049357, '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_P29138941_04-12-2025_05_52_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29138947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29138948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29138949, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29138950, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29138951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29138952, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29138953, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29138954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29138955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29138956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29138957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29138958, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29139485, 'dashboard_result_id': 18049359, '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_P29139485_04-12-2025_05_53_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29139498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29139499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29139500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29139501, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29139502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29139503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29139504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29139505, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29139506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29139507, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29139508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29139509, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29140236, 'dashboard_result_id': 18049360, '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_P29140236_04-12-2025_05_54_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29140268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29140269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29140270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29140271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29140272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29140273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29140274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29140275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29140276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29140277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29140278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29140279, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29140878, 'dashboard_result_id': 18049361, '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_P29140878_04-12-2025_05_54_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29140886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29140887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29140888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29140890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29140891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29140893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29140894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29140895, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29140896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29140898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29140899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29140900, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29141501, 'dashboard_result_id': 18049363, '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_P29141501_04-12-2025_05_55_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29141527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29141528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29141529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29141530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29141531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29141532, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29141533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29141534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29141535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29141536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29141537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29141538, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29141834, 'dashboard_result_id': 18049364, '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_P29141834_04-12-2025_05_56_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29141850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29141851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29141852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29141853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29141854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29141855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29141856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29141857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29141858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29141859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29141860, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29141861, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29142582, 'dashboard_result_id': 18049365, '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_P29142582_04-12-2025_05_56_12.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29142583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29142584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29142585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29142586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29142587, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29142588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29142589, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29142590, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29142591, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29142592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29142593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29142594, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29143128, 'dashboard_result_id': 18049366, '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_P29143128_04-12-2025_05_56_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29143171, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29143172, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29143174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29143175, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29143176, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29143177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29143178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29143179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29143180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29143181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29143182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29143183, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29143757, 'dashboard_result_id': 18049368, '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_P29143757_04-12-2025_05_57_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29143777, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29143778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29143779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29143780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29143781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29143782, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29143783, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29143784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29143785, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29143786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29143787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29143788, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29144152, 'dashboard_result_id': 18049369, '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_P29144152_04-12-2025_05_58_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29144164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29144165, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29144166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29144167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29144168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29144169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29144170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29144171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29144172, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29144173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29144174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29144175, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29145570, 'dashboard_result_id': 18049370, '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_P29145570_04-12-2025_05_58_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29145572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29145573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29145574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29145575, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29145576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29145577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29145578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29145579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29145580, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29145581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29145582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29145583, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29145757, 'dashboard_result_id': 18049372, '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_P29145757_04-12-2025_05_59_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29145784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29145785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29145786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29145787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29145788, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29145789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29145790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29145791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29145792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29145793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29145794, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29145795, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29146199, 'dashboard_result_id': 18049373, '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_P29146199_04-12-2025_06_01_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29146248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29146249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29146250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29146251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29146252, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29146253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29146254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29146255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29146256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29146257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29146258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29146259, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29146725, 'dashboard_result_id': 18049374, '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_P29146725_04-12-2025_06_01_17.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29146733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29146734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29146735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29146736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29146737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29146738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29146739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29146740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29146741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29146742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29146743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29146744, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29147127, 'dashboard_result_id': 18049375, '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_P29147127_04-12-2025_06_01_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29147169, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29147170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29147171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29147173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29147174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29147175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29147176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29147177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29147178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29147179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29147180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29147181, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29147688, 'dashboard_result_id': 18049377, '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_P29147688_04-12-2025_06_02_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29147701, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29147702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29147703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29147704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29147705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29147706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29147707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29147708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29147709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29147710, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29147711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29147712, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29148406, 'dashboard_result_id': 18049378, '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_P29148406_04-12-2025_06_02_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29148408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29148409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29148410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29148411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29148412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29148413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29148414, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29148415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29148416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29148417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29148418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29148419, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29148755, 'dashboard_result_id': 18049379, '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_P29148755_04-12-2025_06_03_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29148775, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29148776, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29148777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29148778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29148779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29148780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29148781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29148782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29148783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29148784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29148785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29148786, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29149334, 'dashboard_result_id': 18049380, '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_P29149334_04-12-2025_06_04_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29149351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29149352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29149353, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29149354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29149356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29149357, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29149358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29149359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29149360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29149361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29149362, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29149363, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29150029, 'dashboard_result_id': 18049382, '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_P29150029_04-12-2025_06_04_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29150038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29150039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29150040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29150041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29150042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29150043, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29150044, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29150045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29150046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29150047, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29150048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29150049, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29150435, 'dashboard_result_id': 18049383, '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_P29150435_04-12-2025_06_05_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29150470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29150471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29150472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29150473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29150474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29150475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29150476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29150477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29150478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29150479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29150480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29150481, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29150856, 'dashboard_result_id': 18049384, '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_P29150856_04-12-2025_06_06_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29150881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29150882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29150883, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29150884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29150885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29150886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29150887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29150888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29150889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29150890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29150891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29150892, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29151377, 'dashboard_result_id': 18049385, '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_P29151377_04-12-2025_06_06_12.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29151412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29151413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29151414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29151415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29151416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29151417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29151418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29151419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29151420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29151421, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29151422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29151423, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29151897, 'dashboard_result_id': 18049386, '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_P29151897_04-12-2025_06_06_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29151922, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29151923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29151924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29151925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29151926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29151927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29151928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29151929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29151930, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29151931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29151932, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29151933, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29152268, 'dashboard_result_id': 18049387, '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_P29152268_04-12-2025_06_07_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29152285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29152286, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29152287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29152288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29152289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29152290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29152292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29152293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29152294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29152295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29152296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29152297, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29152784, 'dashboard_result_id': 18049388, '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_P29152784_04-12-2025_06_08_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29152809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29152810, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29152811, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29152812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29152813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29152814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29152815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29152816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29152817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29152818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29152819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29152820, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29153645, 'dashboard_result_id': 18049389, '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_P29153645_04-12-2025_06_08_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29153658, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29153659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29153660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29153661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29153662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29153663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29153664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29153665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29153666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29153667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29153668, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29153669, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29154118, 'dashboard_result_id': 18049390, '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_P29154118_04-12-2025_06_09_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29154139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29154140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29154141, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29154142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29154143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29154144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29154145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29154146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29154147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29154148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29154149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29154150, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29154543, 'dashboard_result_id': 18049391, '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_P29154543_04-12-2025_06_10_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29154558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29154559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29154560, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29154561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29154562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29154563, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29154564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29154565, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29154566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29154567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29154568, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29154569, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29155038, 'dashboard_result_id': 18049392, '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_P29155038_04-12-2025_06_10_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29155046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29155047, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29155048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29155049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29155050, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29155051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29155052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29155053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29155054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29155055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29155056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29155057, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29155506, 'dashboard_result_id': 18049393, '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_P29155506_04-12-2025_06_11_12.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29155523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29155524, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29155525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29155526, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29155527, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29155528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29155529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29155530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29155531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29155532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29155533, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29155534, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29156114, 'dashboard_result_id': 18049394, '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_P29156114_04-12-2025_06_11_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29156138, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29156139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29156140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29156141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29156142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29156143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29156144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29156145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29156146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29156147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29156148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29156149, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29156678, 'dashboard_result_id': 18049395, '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_P29156678_04-12-2025_06_12_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29156721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29156722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29156723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29156724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29156725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29156726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29156727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29156728, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29156729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29156730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29156731, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29156732, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29157379, 'dashboard_result_id': 18049396, '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_P29157379_04-12-2025_06_12_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29157383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29157384, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29157385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29157386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29157387, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29157388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29157389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29157390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29157391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29157392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29157393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29157394, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29157736, 'dashboard_result_id': 18049397, '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_P29157736_04-12-2025_06_13_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29157770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29157771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29157772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29157773, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29157774, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29157775, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29157776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29157777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29157778, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29157779, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29157780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29157781, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29158499, 'dashboard_result_id': 18049398, '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_P29158499_04-12-2025_06_14_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29158517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29158518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29158519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29158520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29158521, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29158522, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29158523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29158524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29158525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29158526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29158527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29158528, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29158804, 'dashboard_result_id': 18049399, '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_P29158804_03-12-2025_21_02_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29158820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29158821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29158822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29158823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29158824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29158825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29158826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29158827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29158828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29158829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29158830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29158831, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29159253, 'dashboard_result_id': 18049400, '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_P29159253_03-12-2025_21_17_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29159258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29159259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29159260, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29159261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29159262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29159263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29159264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29159265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29159266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29159267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29159268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29159269, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29159583, 'dashboard_result_id': 18049401, '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_P29159583_03-12-2025_23_00_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29159586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29159587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29159588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29159589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29159590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29159591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29159592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29159593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29159594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29159595, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29159596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29159597, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29161607, 'dashboard_result_id': 18049402, '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_P29161607_03-12-2025_23_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29161656, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29161657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29161658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29161659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29161660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29161661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29161662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29161663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29161664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29161665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29161666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29161667, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29161867, 'dashboard_result_id': 18049403, '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_P29161867_03-12-2025_23_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29161872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29161873, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29161874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29161875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29161876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29161877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29161878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29161879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29161880, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29161881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29161882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29161883, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29162414, 'dashboard_result_id': 18049404, '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_P29162414_03-12-2025_23_34_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29162421, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29162422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29162423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29162424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29162425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29162426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29162427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29162428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29162429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29162430, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29162431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29162432, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29163127, 'dashboard_result_id': 18049405, '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_P29163127_03-12-2025_23_47_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29163132, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29163133, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29163134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29163135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29163136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29163137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29163138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29163139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29163140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29163141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29163142, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29163143, 'pht': 3726}}"}, {'dashboat_entry_day': 2683135, 'dashboard_run_id': 2698866, 'mtr_portfolio_id': 29163631, 'dashboard_result_id': 18049406, '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_P29163631_04-12-2025_01_12_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29163632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29163633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29163634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29163635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29163636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29163637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29163638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29163639, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29163640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29163641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29163642, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29163643, '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 = 29118472 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': 4183508, 'mtr_portfolio_id': 29118472, 'created_at': datetime.datetime(2025, 12, 4, 5, 34, 28), 'result': '0.05717041802253947', 'result_long': None, 'result_double': None}] Qualite : 0.05717041802253947 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29118472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29118472_04-12-2025_05_34_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29118472 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_P29118472_04-12-2025_05_34_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29118473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29118474, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29118475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29118476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29118477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29118478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29118479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29118480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29118481, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29118482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29118483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29118484, 'pht': 3726}}" where mtr_portfolio_id = 29118472 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29118472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049317, 0.05717041802253947, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29118472_04-12-2025_05_34_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29118473, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29118474, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29118475, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29118476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29118477, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29118478, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29118479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29118480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29118481, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29118482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29118483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29118484, '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 = 29119115 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': 4183509, 'mtr_portfolio_id': 29119115, 'created_at': datetime.datetime(2025, 12, 4, 5, 34, 28), 'result': '0.039785255993734746', 'result_long': None, 'result_double': None}] Qualite : 0.039785255993734746 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29119115 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29119115_04-12-2025_05_34_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29119115 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_P29119115_04-12-2025_05_34_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29119121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29119122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29119123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29119124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29119125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29119126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29119127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29119128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29119129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29119130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29119131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29119132, 'pht': 3726}}" where mtr_portfolio_id = 29119115 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29119115 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049318, 0.039785255993734746, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29119115_04-12-2025_05_34_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29119121, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29119122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29119123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29119124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29119125, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29119126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29119127, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29119128, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29119129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29119130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29119131, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29119132, '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 = 29119691 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': 4183510, 'mtr_portfolio_id': 29119691, 'created_at': datetime.datetime(2025, 12, 4, 5, 35, 31), 'result': '0.048204214138979226', 'result_long': None, 'result_double': None}] Qualite : 0.048204214138979226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29119691 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29119691_04-12-2025_05_35_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29119691 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_P29119691_04-12-2025_05_35_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29119699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29119700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29119701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29119702, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29119703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29119704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29119705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29119706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29119707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29119708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29119709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29119710, 'pht': 3726}}" where mtr_portfolio_id = 29119691 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29119691 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049319, 0.048204214138979226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29119691_04-12-2025_05_35_35.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29119699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29119700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29119701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29119702, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29119703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29119704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29119705, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29119706, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29119707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29119708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29119709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29119710, '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 = 29120310 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': 4183511, 'mtr_portfolio_id': 29120310, 'created_at': datetime.datetime(2025, 12, 4, 5, 36, 1), 'result': '0.03965239765601538', 'result_long': None, 'result_double': None}] Qualite : 0.03965239765601538 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29120310 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29120310_04-12-2025_05_36_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29120310 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_P29120310_04-12-2025_05_36_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29120319, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29120320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29120321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29120322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29120323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29120324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29120325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29120326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29120327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29120328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29120329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29120330, 'pht': 3726}}" where mtr_portfolio_id = 29120310 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29120310 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049321, 0.03965239765601538, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29120310_04-12-2025_05_36_03.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29120319, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29120320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29120321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29120322, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29120323, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29120324, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29120325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29120326, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29120327, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29120328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29120329, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29120330, '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 = 29122211 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': 4183512, 'mtr_portfolio_id': 29122211, 'created_at': datetime.datetime(2025, 12, 4, 5, 36, 8), 'result': '0.0491163231113767', 'result_long': None, 'result_double': None}] Qualite : 0.0491163231113767 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29122211 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29122211_04-12-2025_05_36_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29122211 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_P29122211_04-12-2025_05_36_11.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29122252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29122253, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29122254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29122255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29122256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29122257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29122258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29122259, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29122260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29122261, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29122262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29122263, 'pht': 3726}}" where mtr_portfolio_id = 29122211 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29122211 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049322, 0.0491163231113767, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29122211_04-12-2025_05_36_11.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29122252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29122253, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29122254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29122255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29122256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29122257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29122258, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29122259, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29122260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29122261, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29122262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29122263, '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 = 29122760 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': 4183513, 'mtr_portfolio_id': 29122760, 'created_at': datetime.datetime(2025, 12, 4, 5, 36, 30), 'result': '0.060331859583243184', 'result_long': None, 'result_double': None}] Qualite : 0.060331859583243184 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29122760 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29122760_04-12-2025_05_36_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29122760 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_P29122760_04-12-2025_05_36_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29122768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29122769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29122770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29122771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29122772, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29122773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29122774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29122775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29122776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29122777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29122778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29122779, 'pht': 3726}}" where mtr_portfolio_id = 29122760 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29122760 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049323, 0.060331859583243184, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29122760_04-12-2025_05_36_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29122768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29122769, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29122770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29122771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29122772, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29122773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29122774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29122775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29122776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29122777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29122778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29122779, '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 = 29123215 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': 4183514, 'mtr_portfolio_id': 29123215, 'created_at': datetime.datetime(2025, 12, 4, 5, 37, 29), 'result': '0.04297450858999243', 'result_long': None, 'result_double': None}] Qualite : 0.04297450858999243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29123215 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29123215_04-12-2025_05_37_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29123215 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_P29123215_04-12-2025_05_37_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29123264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29123265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29123266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29123268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29123269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29123270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29123271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29123272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29123273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29123274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29123275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29123276, 'pht': 3726}}" where mtr_portfolio_id = 29123215 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29123215 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049324, 0.04297450858999243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29123215_04-12-2025_05_37_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29123264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29123265, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29123266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29123268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29123269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29123270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29123271, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29123272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29123273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29123274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29123275, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29123276, '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 = 29123936 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': 4183515, 'mtr_portfolio_id': 29123936, 'created_at': datetime.datetime(2025, 12, 4, 5, 37, 57), 'result': '0.03358173793778079', 'result_long': None, 'result_double': None}] Qualite : 0.03358173793778079 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29123936 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29123936_04-12-2025_05_38_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29123936 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_P29123936_04-12-2025_05_38_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29123977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29123978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29123979, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29123980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29123981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29123982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29123983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29123984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29123985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29123986, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29123987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29123988, 'pht': 3726}}" where mtr_portfolio_id = 29123936 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29123936 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049326, 0.03358173793778079, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29123936_04-12-2025_05_38_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29123977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29123978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29123979, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29123980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29123981, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29123982, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29123983, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29123984, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29123985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29123986, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29123987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29123988, '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 = 29124511 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': 4183516, 'mtr_portfolio_id': 29124511, 'created_at': datetime.datetime(2025, 12, 4, 5, 38, 26), 'result': '0.0441126809723629', 'result_long': None, 'result_double': None}] Qualite : 0.0441126809723629 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29124511 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29124511_04-12-2025_05_38_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29124511 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_P29124511_04-12-2025_05_38_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29124515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29124516, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29124517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29124518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29124519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29124520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29124521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29124522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29124523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29124524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29124525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29124526, 'pht': 3726}}" where mtr_portfolio_id = 29124511 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29124511 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049327, 0.0441126809723629, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29124511_04-12-2025_05_38_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29124515, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29124516, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29124517, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29124518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29124519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29124520, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29124521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29124522, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29124523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29124524, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29124525, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29124526, '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 = 29125212 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': 4183517, 'mtr_portfolio_id': 29125212, 'created_at': datetime.datetime(2025, 12, 4, 5, 39, 30), 'result': '0.03742456887606826', 'result_long': None, 'result_double': None}] Qualite : 0.03742456887606826 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29125212 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29125212_04-12-2025_05_39_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29125212 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_P29125212_04-12-2025_05_39_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29125222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29125223, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29125224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29125225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29125226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29125227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29125228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29125229, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29125230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29125231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29125232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29125233, 'pht': 3726}}" where mtr_portfolio_id = 29125212 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29125212 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049328, 0.03742456887606826, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29125212_04-12-2025_05_39_34.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29125222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29125223, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29125224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29125225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29125226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29125227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29125228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29125229, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29125230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29125231, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29125232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29125233, '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 = 29125708 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': 4183518, 'mtr_portfolio_id': 29125708, 'created_at': datetime.datetime(2025, 12, 4, 5, 40, 1), 'result': '0.06473496591589313', 'result_long': None, 'result_double': None}] Qualite : 0.06473496591589313 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29125708 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29125708_04-12-2025_05_40_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29125708 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_P29125708_04-12-2025_05_40_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29125724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29125725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29125726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29125727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29125728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29125729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29125730, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29125731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29125732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29125733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29125734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29125735, 'pht': 3726}}" where mtr_portfolio_id = 29125708 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29125708 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049329, 0.06473496591589313, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29125708_04-12-2025_05_40_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29125724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29125725, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29125726, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29125727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29125728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29125729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29125730, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29125731, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29125732, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29125733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29125734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29125735, '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 = 29126179 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': 4183519, 'mtr_portfolio_id': 29126179, 'created_at': datetime.datetime(2025, 12, 4, 5, 40, 31), 'result': '0.1106890530209358', 'result_long': None, 'result_double': None}] Qualite : 0.1106890530209358 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29126179 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29126179_04-12-2025_05_40_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29126179 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_P29126179_04-12-2025_05_40_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29126220, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29126221, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29126222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29126223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29126224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29126225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29126226, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29126227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29126228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29126229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29126230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29126231, 'pht': 3726}}" where mtr_portfolio_id = 29126179 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29126179 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049331, 0.1106890530209358, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29126179_04-12-2025_05_40_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29126220, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29126221, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29126222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29126223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29126224, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29126225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29126226, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29126227, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29126228, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29126229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29126230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29126231, '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 = 29126661 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': 4183520, 'mtr_portfolio_id': 29126661, 'created_at': datetime.datetime(2025, 12, 4, 5, 41, 13), 'result': '0.04509200941847892', 'result_long': None, 'result_double': None}] Qualite : 0.04509200941847892 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29126661 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29126661_04-12-2025_05_41_16.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29126661 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_P29126661_04-12-2025_05_41_16.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29126663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29126664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29126665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29126666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29126667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29126668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29126669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29126670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29126671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29126672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29126673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29126674, 'pht': 3726}}" where mtr_portfolio_id = 29126661 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29126661 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049332, 0.04509200941847892, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29126661_04-12-2025_05_41_16.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29126663, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29126664, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29126665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29126666, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29126667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29126668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29126669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29126670, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29126671, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29126672, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29126673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29126674, '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 = 29126976 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': 4183521, 'mtr_portfolio_id': 29126976, 'created_at': datetime.datetime(2025, 12, 4, 5, 41, 29), 'result': '0.03827401233085563', 'result_long': None, 'result_double': None}] Qualite : 0.03827401233085563 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29126976 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29126976_04-12-2025_05_41_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29126976 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_P29126976_04-12-2025_05_41_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29126985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29126986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29126987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29126988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29126989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29126990, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29126991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29126992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29126993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29126994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29126995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29126996, 'pht': 3726}}" where mtr_portfolio_id = 29126976 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29126976 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049333, 0.03827401233085563, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29126976_04-12-2025_05_41_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29126985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29126986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29126987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29126988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29126989, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29126990, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29126991, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29126992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29126993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29126994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29126995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29126996, '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 = 29127436 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': 4183522, 'mtr_portfolio_id': 29127436, 'created_at': datetime.datetime(2025, 12, 4, 5, 41, 59), 'result': '0.07838707616961561', 'result_long': None, 'result_double': None}] Qualite : 0.07838707616961561 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29127436 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29127436_04-12-2025_05_42_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29127436 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_P29127436_04-12-2025_05_42_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29127500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29127501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29127503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29127504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29127505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29127506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29127507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29127508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29127509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29127510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29127511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29127512, 'pht': 3726}}" where mtr_portfolio_id = 29127436 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29127436 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049334, 0.07838707616961561, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29127436_04-12-2025_05_42_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29127500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29127501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29127503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29127504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29127505, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29127506, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29127507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29127508, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29127509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29127510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29127511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29127512, '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 = 29129057 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': 4183523, 'mtr_portfolio_id': 29129057, 'created_at': datetime.datetime(2025, 12, 4, 5, 42, 30), 'result': '0.05007503929749467', 'result_long': None, 'result_double': None}] Qualite : 0.05007503929749467 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29129057 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29129057_04-12-2025_05_42_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29129057 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_P29129057_04-12-2025_05_42_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29129058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29129059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29129060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29129061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29129062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29129063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29129064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29129065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29129066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29129067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29129068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29129069, 'pht': 3726}}" where mtr_portfolio_id = 29129057 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29129057 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049336, 0.05007503929749467, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29129057_04-12-2025_05_42_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29129058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29129059, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29129060, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29129061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29129062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29129063, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29129064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29129065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29129066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29129067, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29129068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29129069, '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 = 29129398 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': 4183524, 'mtr_portfolio_id': 29129398, 'created_at': datetime.datetime(2025, 12, 4, 5, 43, 28), 'result': '0.03706779200738154', 'result_long': None, 'result_double': None}] Qualite : 0.03706779200738154 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29129398 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29129398_04-12-2025_05_43_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29129398 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_P29129398_04-12-2025_05_43_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29129402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29129403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29129404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29129405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29129406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29129407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29129408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29129409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29129410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29129411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29129412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29129413, 'pht': 3726}}" where mtr_portfolio_id = 29129398 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29129398 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049337, 0.03706779200738154, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29129398_04-12-2025_05_43_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29129402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29129403, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29129404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29129405, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29129406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29129407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29129408, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29129409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29129410, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29129411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29129412, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29129413, '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 = 29129845 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': 4183525, 'mtr_portfolio_id': 29129845, 'created_at': datetime.datetime(2025, 12, 4, 5, 43, 58), 'result': '0.03946949386364241', 'result_long': None, 'result_double': None}] Qualite : 0.03946949386364241 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29129845 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29129845_04-12-2025_05_44_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29129845 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_P29129845_04-12-2025_05_44_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29129887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29129888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29129889, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29129890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29129891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29129892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29129893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29129894, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29129895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29129896, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29129897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29129898, 'pht': 3726}}" where mtr_portfolio_id = 29129845 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29129845 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049338, 0.03946949386364241, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29129845_04-12-2025_05_44_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29129887, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29129888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29129889, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29129890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29129891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29129892, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29129893, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29129894, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29129895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29129896, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29129897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29129898, '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 = 29130321 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': 4183526, 'mtr_portfolio_id': 29130321, 'created_at': datetime.datetime(2025, 12, 4, 5, 44, 29), 'result': '0.03841671178437472', 'result_long': None, 'result_double': None}] Qualite : 0.03841671178437472 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29130321 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29130321_04-12-2025_05_44_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29130321 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_P29130321_04-12-2025_05_44_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29130328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29130329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29130330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29130331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29130332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29130333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29130334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29130335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29130336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29130337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29130338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29130339, 'pht': 3726}}" where mtr_portfolio_id = 29130321 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29130321 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049339, 0.03841671178437472, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29130321_04-12-2025_05_44_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29130328, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29130329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29130330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29130331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29130332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29130333, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29130334, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29130335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29130336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29130337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29130338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29130339, '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 = 29130674 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': 4183527, 'mtr_portfolio_id': 29130674, 'created_at': datetime.datetime(2025, 12, 4, 5, 45, 30), 'result': '0.05324152793151342', 'result_long': None, 'result_double': None}] Qualite : 0.05324152793151342 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29130674 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29130674_04-12-2025_05_45_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29130674 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_P29130674_04-12-2025_05_45_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29130686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29130687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29130688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29130689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29130690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29130691, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29130692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29130693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29130694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29130695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29130696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29130697, 'pht': 3726}}" where mtr_portfolio_id = 29130674 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29130674 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049341, 0.05324152793151342, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29130674_04-12-2025_05_45_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29130686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29130687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29130688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29130689, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29130690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29130691, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29130692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29130693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29130694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29130695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29130696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29130697, '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 = 29131471 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': 4183528, 'mtr_portfolio_id': 29131471, 'created_at': datetime.datetime(2025, 12, 4, 5, 46), 'result': '0.040894034732004314', 'result_long': None, 'result_double': None}] Qualite : 0.040894034732004314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29131471 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29131471_04-12-2025_05_46_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29131471 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_P29131471_04-12-2025_05_46_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29131493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29131494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29131495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29131496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29131497, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29131498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29131499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29131500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29131501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29131502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29131503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29131504, 'pht': 3726}}" where mtr_portfolio_id = 29131471 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29131471 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049342, 0.040894034732004314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29131471_04-12-2025_05_46_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29131493, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29131494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29131495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29131496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29131497, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29131498, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29131499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29131500, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29131501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29131502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29131503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29131504, '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 = 29131997 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': 4183529, 'mtr_portfolio_id': 29131997, 'created_at': datetime.datetime(2025, 12, 4, 5, 46, 10), 'result': '0.03866241025154891', 'result_long': None, 'result_double': None}] Qualite : 0.03866241025154891 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29131997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29131997_04-12-2025_05_46_14.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29131997 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_P29131997_04-12-2025_05_46_14.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29132038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29132039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29132040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29132041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29132042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29132043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29132044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29132045, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29132046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29132047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29132048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29132049, 'pht': 3726}}" where mtr_portfolio_id = 29131997 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29131997 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049343, 0.03866241025154891, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29131997_04-12-2025_05_46_14.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29132038, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29132039, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29132040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29132041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29132042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29132043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29132044, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29132045, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29132046, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29132047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29132048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29132049, '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 = 29132670 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': 4183530, 'mtr_portfolio_id': 29132670, 'created_at': datetime.datetime(2025, 12, 4, 5, 46, 28), 'result': '0.04534493683217688', 'result_long': None, 'result_double': None}] Qualite : 0.04534493683217688 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29132670 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29132670_04-12-2025_05_46_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29132670 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_P29132670_04-12-2025_05_46_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29132708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29132709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29132710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29132711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29132712, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29132713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29132714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29132715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29132716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29132717, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29132718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29132719, 'pht': 3726}}" where mtr_portfolio_id = 29132670 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29132670 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049345, 0.04534493683217688, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29132670_04-12-2025_05_46_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29132708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29132709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29132710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29132711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29132712, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29132713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29132714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29132715, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29132716, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29132717, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29132718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29132719, '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 = 29133186 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': 4183531, 'mtr_portfolio_id': 29133186, 'created_at': datetime.datetime(2025, 12, 4, 5, 47, 30), 'result': '0.04894595886937058', 'result_long': None, 'result_double': None}] Qualite : 0.04894595886937058 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29133186 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29133186_04-12-2025_05_47_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29133186 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_P29133186_04-12-2025_05_47_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29133187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29133188, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29133189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29133190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29133191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29133192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29133193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29133194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29133195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29133196, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29133197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29133198, 'pht': 3726}}" where mtr_portfolio_id = 29133186 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29133186 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049346, 0.04894595886937058, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29133186_04-12-2025_05_47_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29133187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29133188, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29133189, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29133190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29133191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29133192, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29133193, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29133194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29133195, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29133196, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29133197, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29133198, '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 = 29133916 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': 4183532, 'mtr_portfolio_id': 29133916, 'created_at': datetime.datetime(2025, 12, 4, 5, 47, 59), 'result': '0.03409185150475043', 'result_long': None, 'result_double': None}] Qualite : 0.03409185150475043 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29133916 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29133916_04-12-2025_05_48_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29133916 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_P29133916_04-12-2025_05_48_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29133958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29133959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29133960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29133961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29133962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29133963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29133964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29133965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29133966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29133967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29133968, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29133969, 'pht': 3726}}" where mtr_portfolio_id = 29133916 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29133916 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049347, 0.03409185150475043, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29133916_04-12-2025_05_48_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29133958, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29133959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29133960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29133961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29133962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29133963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29133964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29133965, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29133966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29133967, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29133968, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29133969, '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 = 29134419 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': 4183533, 'mtr_portfolio_id': 29134419, 'created_at': datetime.datetime(2025, 12, 4, 5, 48, 29), 'result': '0.045225180578752376', 'result_long': None, 'result_double': None}] Qualite : 0.045225180578752376 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29134419 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29134419_04-12-2025_05_48_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29134419 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_P29134419_04-12-2025_05_48_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29134421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29134422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29134423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29134424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29134426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29134427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29134428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29134429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29134430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29134431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29134432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29134433, 'pht': 3726}}" where mtr_portfolio_id = 29134419 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29134419 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049348, 0.045225180578752376, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29134419_04-12-2025_05_48_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29134421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29134422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29134423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29134424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29134426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29134427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29134428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29134429, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29134430, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29134431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29134432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29134433, '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 = 29135015 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': 4183534, 'mtr_portfolio_id': 29135015, 'created_at': datetime.datetime(2025, 12, 4, 5, 49, 29), 'result': '0.0365601355717031', 'result_long': None, 'result_double': None}] Qualite : 0.0365601355717031 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29135015 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29135015_04-12-2025_05_49_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29135015 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_P29135015_04-12-2025_05_49_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29135019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29135020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29135021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29135022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29135023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29135024, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29135025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29135026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29135027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29135028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29135029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29135030, 'pht': 3726}}" where mtr_portfolio_id = 29135015 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29135015 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049350, 0.0365601355717031, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29135015_04-12-2025_05_49_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29135019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29135020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29135021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29135022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29135023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29135024, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29135025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29135026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29135027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29135028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29135029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29135030, '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 = 29135469 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': 4183535, 'mtr_portfolio_id': 29135469, 'created_at': datetime.datetime(2025, 12, 4, 5, 49, 57), 'result': '0.03945861443336465', 'result_long': None, 'result_double': None}] Qualite : 0.03945861443336465 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29135469 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29135469_04-12-2025_05_50_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29135469 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_P29135469_04-12-2025_05_50_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29135475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29135476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29135477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29135478, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29135479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29135480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29135481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29135482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29135483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29135484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29135485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29135486, 'pht': 3726}}" where mtr_portfolio_id = 29135469 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29135469 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049351, 0.03945861443336465, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29135469_04-12-2025_05_50_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29135475, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29135476, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29135477, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29135478, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29135479, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29135480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29135481, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29135482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29135483, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29135484, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29135485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29135486, '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 = 29136074 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': 4183536, 'mtr_portfolio_id': 29136074, 'created_at': datetime.datetime(2025, 12, 4, 5, 50, 31), 'result': '0.06358415594242246', 'result_long': None, 'result_double': None}] Qualite : 0.06358415594242246 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29136074 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29136074_04-12-2025_05_50_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29136074 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_P29136074_04-12-2025_05_50_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29136075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29136076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29136077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29136078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29136079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29136080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29136081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29136082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29136083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29136084, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29136085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29136086, 'pht': 3726}}" where mtr_portfolio_id = 29136074 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29136074 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049352, 0.06358415594242246, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29136074_04-12-2025_05_50_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29136075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29136076, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29136077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29136078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29136079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29136080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29136081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29136082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29136083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29136084, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29136085, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29136086, '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 = 29136449 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': 4183537, 'mtr_portfolio_id': 29136449, 'created_at': datetime.datetime(2025, 12, 4, 5, 51, 10), 'result': '0.04533438695580473', 'result_long': None, 'result_double': None}] Qualite : 0.04533438695580473 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29136449 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29136449_04-12-2025_05_51_14.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29136449 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_P29136449_04-12-2025_05_51_14.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29136461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29136462, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29136463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29136464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29136465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29136466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29136467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29136468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29136469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29136470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29136471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29136472, 'pht': 3726}}" where mtr_portfolio_id = 29136449 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29136449 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049354, 0.04533438695580473, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29136449_04-12-2025_05_51_14.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29136461, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29136462, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29136463, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29136464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29136465, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29136466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29136467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29136468, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29136469, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29136470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29136471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29136472, '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 = 29136954 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': 4183538, 'mtr_portfolio_id': 29136954, 'created_at': datetime.datetime(2025, 12, 4, 5, 51, 30), 'result': '0.0545420706391385', 'result_long': None, 'result_double': None}] Qualite : 0.0545420706391385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29136954 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29136954_04-12-2025_05_51_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29136954 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_P29136954_04-12-2025_05_51_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29136982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29136983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29136984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29136985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29136986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29136987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29136988, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29136989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29136990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29136991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29136992, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29136993, 'pht': 3726}}" where mtr_portfolio_id = 29136954 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29136954 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049355, 0.0545420706391385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29136954_04-12-2025_05_51_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29136982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29136983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29136984, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29136985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29136986, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29136987, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29136988, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29136989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29136990, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29136991, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29136992, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29136993, '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 = 29138307 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': 4183539, 'mtr_portfolio_id': 29138307, 'created_at': datetime.datetime(2025, 12, 4, 5, 51, 59), 'result': '0.04293762998476888', 'result_long': None, 'result_double': None}] Qualite : 0.04293762998476888 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29138307 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29138307_04-12-2025_05_52_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29138307 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_P29138307_04-12-2025_05_52_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29138380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29138381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29138382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29138383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29138384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29138385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29138386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29138387, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29138388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29138389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29138390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29138391, 'pht': 3726}}" where mtr_portfolio_id = 29138307 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29138307 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049356, 0.04293762998476888, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29138307_04-12-2025_05_52_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29138380, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29138381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29138382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29138383, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29138384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29138385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29138386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29138387, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29138388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29138389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29138390, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29138391, '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 = 29138941 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': 4183540, 'mtr_portfolio_id': 29138941, 'created_at': datetime.datetime(2025, 12, 4, 5, 52, 30), 'result': '0.042757126182110264', 'result_long': None, 'result_double': None}] Qualite : 0.042757126182110264 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29138941 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29138941_04-12-2025_05_52_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29138941 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_P29138941_04-12-2025_05_52_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29138947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29138948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29138949, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29138950, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29138951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29138952, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29138953, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29138954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29138955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29138956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29138957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29138958, 'pht': 3726}}" where mtr_portfolio_id = 29138941 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29138941 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049357, 0.042757126182110264, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29138941_04-12-2025_05_52_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29138947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29138948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29138949, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29138950, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29138951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29138952, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29138953, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29138954, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29138955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29138956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29138957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29138958, '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 = 29139485 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': 4183541, 'mtr_portfolio_id': 29139485, 'created_at': datetime.datetime(2025, 12, 4, 5, 53, 30), 'result': '0.04427394989185326', 'result_long': None, 'result_double': None}] Qualite : 0.04427394989185326 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29139485 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29139485_04-12-2025_05_53_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29139485 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_P29139485_04-12-2025_05_53_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29139498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29139499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29139500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29139501, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29139502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29139503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29139504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29139505, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29139506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29139507, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29139508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29139509, 'pht': 3726}}" where mtr_portfolio_id = 29139485 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29139485 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049359, 0.04427394989185326, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29139485_04-12-2025_05_53_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29139498, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29139499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29139500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29139501, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29139502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29139503, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29139504, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29139505, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29139506, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29139507, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29139508, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29139509, '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 = 29140236 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': 4183542, 'mtr_portfolio_id': 29140236, 'created_at': datetime.datetime(2025, 12, 4, 5, 53, 57), 'result': '0.03799309735732766', 'result_long': None, 'result_double': None}] Qualite : 0.03799309735732766 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29140236 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29140236_04-12-2025_05_54_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29140236 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_P29140236_04-12-2025_05_54_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29140268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29140269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29140270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29140271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29140272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29140273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29140274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29140275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29140276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29140277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29140278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29140279, 'pht': 3726}}" where mtr_portfolio_id = 29140236 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29140236 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049360, 0.03799309735732766, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29140236_04-12-2025_05_54_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29140268, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29140269, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29140270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29140271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29140272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29140273, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29140274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29140275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29140276, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29140277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29140278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29140279, '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 = 29140878 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': 4183543, 'mtr_portfolio_id': 29140878, 'created_at': datetime.datetime(2025, 12, 4, 5, 54, 30), 'result': '0.04460205706764622', 'result_long': None, 'result_double': None}] Qualite : 0.04460205706764622 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29140878 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29140878_04-12-2025_05_54_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29140878 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_P29140878_04-12-2025_05_54_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29140886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29140887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29140888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29140890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29140891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29140893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29140894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29140895, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29140896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29140898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29140899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29140900, 'pht': 3726}}" where mtr_portfolio_id = 29140878 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29140878 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049361, 0.04460205706764622, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29140878_04-12-2025_05_54_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29140886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29140887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29140888, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29140890, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29140891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29140893, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29140894, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29140895, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29140896, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29140898, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29140899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29140900, '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 = 29141501 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': 4183544, 'mtr_portfolio_id': 29141501, 'created_at': datetime.datetime(2025, 12, 4, 5, 55, 30), 'result': '0.03861650630058324', 'result_long': None, 'result_double': None}] Qualite : 0.03861650630058324 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29141501 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29141501_04-12-2025_05_55_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29141501 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_P29141501_04-12-2025_05_55_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29141527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29141528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29141529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29141530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29141531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29141532, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29141533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29141534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29141535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29141536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29141537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29141538, 'pht': 3726}}" where mtr_portfolio_id = 29141501 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29141501 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049363, 0.03861650630058324, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29141501_04-12-2025_05_55_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29141527, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29141528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29141529, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29141530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29141531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29141532, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29141533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29141534, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29141535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29141536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29141537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29141538, '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 = 29141834 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': 4183545, 'mtr_portfolio_id': 29141834, 'created_at': datetime.datetime(2025, 12, 4, 5, 55, 57), 'result': '0.04265007373903344', 'result_long': None, 'result_double': None}] Qualite : 0.04265007373903344 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29141834 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29141834_04-12-2025_05_56_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29141834 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_P29141834_04-12-2025_05_56_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29141850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29141851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29141852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29141853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29141854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29141855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29141856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29141857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29141858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29141859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29141860, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29141861, 'pht': 3726}}" where mtr_portfolio_id = 29141834 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29141834 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049364, 0.04265007373903344, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29141834_04-12-2025_05_56_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29141850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29141851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29141852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29141853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29141854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29141855, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29141856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29141857, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29141858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29141859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29141860, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29141861, '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 = 29142582 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': 4183546, 'mtr_portfolio_id': 29142582, 'created_at': datetime.datetime(2025, 12, 4, 5, 56, 7), 'result': '0.05527552501517671', 'result_long': None, 'result_double': None}] Qualite : 0.05527552501517671 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29142582 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29142582_04-12-2025_05_56_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29142582 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_P29142582_04-12-2025_05_56_12.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29142583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29142584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29142585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29142586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29142587, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29142588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29142589, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29142590, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29142591, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29142592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29142593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29142594, 'pht': 3726}}" where mtr_portfolio_id = 29142582 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29142582 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049365, 0.05527552501517671, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29142582_04-12-2025_05_56_12.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29142583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29142584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29142585, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29142586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29142587, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29142588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29142589, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29142590, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29142591, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29142592, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29142593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29142594, '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 = 29143128 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': 4183547, 'mtr_portfolio_id': 29143128, 'created_at': datetime.datetime(2025, 12, 4, 5, 56, 30), 'result': '0.06384746797758413', 'result_long': None, 'result_double': None}] Qualite : 0.06384746797758413 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29143128 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29143128_04-12-2025_05_56_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29143128 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_P29143128_04-12-2025_05_56_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29143171, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29143172, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29143174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29143175, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29143176, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29143177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29143178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29143179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29143180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29143181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29143182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29143183, 'pht': 3726}}" where mtr_portfolio_id = 29143128 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29143128 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049366, 0.06384746797758413, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29143128_04-12-2025_05_56_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29143171, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29143172, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29143174, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29143175, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29143176, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29143177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29143178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29143179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29143180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29143181, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29143182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29143183, '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 = 29143757 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': 4183548, 'mtr_portfolio_id': 29143757, 'created_at': datetime.datetime(2025, 12, 4, 5, 57, 30), 'result': '0.043184692762441225', 'result_long': None, 'result_double': None}] Qualite : 0.043184692762441225 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29143757 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29143757_04-12-2025_05_57_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29143757 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_P29143757_04-12-2025_05_57_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29143777, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29143778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29143779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29143780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29143781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29143782, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29143783, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29143784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29143785, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29143786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29143787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29143788, 'pht': 3726}}" where mtr_portfolio_id = 29143757 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29143757 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049368, 0.043184692762441225, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29143757_04-12-2025_05_57_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29143777, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29143778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29143779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29143780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29143781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29143782, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29143783, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29143784, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29143785, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29143786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29143787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29143788, '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 = 29144152 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': 4183549, 'mtr_portfolio_id': 29144152, 'created_at': datetime.datetime(2025, 12, 4, 5, 58), 'result': '0.05907255872228122', 'result_long': None, 'result_double': None}] Qualite : 0.05907255872228122 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29144152 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29144152_04-12-2025_05_58_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29144152 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_P29144152_04-12-2025_05_58_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29144164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29144165, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29144166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29144167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29144168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29144169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29144170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29144171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29144172, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29144173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29144174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29144175, 'pht': 3726}}" where mtr_portfolio_id = 29144152 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29144152 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049369, 0.05907255872228122, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29144152_04-12-2025_05_58_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29144164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29144165, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29144166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29144167, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29144168, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29144169, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29144170, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29144171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29144172, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29144173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29144174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29144175, '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 = 29145570 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': 4183550, 'mtr_portfolio_id': 29145570, 'created_at': datetime.datetime(2025, 12, 4, 5, 58, 29), 'result': '0.0702652029519858', 'result_long': None, 'result_double': None}] Qualite : 0.0702652029519858 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29145570 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29145570_04-12-2025_05_58_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29145570 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_P29145570_04-12-2025_05_58_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29145572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29145573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29145574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29145575, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29145576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29145577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29145578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29145579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29145580, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29145581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29145582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29145583, 'pht': 3726}}" where mtr_portfolio_id = 29145570 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29145570 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049370, 0.0702652029519858, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29145570_04-12-2025_05_58_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29145572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29145573, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29145574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29145575, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29145576, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29145577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29145578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29145579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29145580, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29145581, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29145582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29145583, '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 = 29145757 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': 4183551, 'mtr_portfolio_id': 29145757, 'created_at': datetime.datetime(2025, 12, 4, 5, 59, 27), 'result': '0.04368855479306888', 'result_long': None, 'result_double': None}] Qualite : 0.04368855479306888 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29145757 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29145757_04-12-2025_05_59_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29145757 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_P29145757_04-12-2025_05_59_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29145784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29145785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29145786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29145787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29145788, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29145789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29145790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29145791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29145792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29145793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29145794, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29145795, 'pht': 3726}}" where mtr_portfolio_id = 29145757 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29145757 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049372, 0.04368855479306888, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29145757_04-12-2025_05_59_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29145784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29145785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29145786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29145787, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29145788, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29145789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29145790, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29145791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29145792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29145793, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29145794, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29145795, '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 = 29146199 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': 4183552, 'mtr_portfolio_id': 29146199, 'created_at': datetime.datetime(2025, 12, 4, 6, 0, 58), 'result': '0.04541126040535351', 'result_long': None, 'result_double': None}] Qualite : 0.04541126040535351 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29146199 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29146199_04-12-2025_06_01_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29146199 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_P29146199_04-12-2025_06_01_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29146248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29146249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29146250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29146251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29146252, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29146253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29146254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29146255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29146256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29146257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29146258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29146259, 'pht': 3726}}" where mtr_portfolio_id = 29146199 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29146199 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049373, 0.04541126040535351, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29146199_04-12-2025_06_01_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29146248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29146249, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29146250, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29146251, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29146252, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29146253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29146254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29146255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29146256, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29146257, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29146258, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29146259, '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 = 29146725 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': 4183553, 'mtr_portfolio_id': 29146725, 'created_at': datetime.datetime(2025, 12, 4, 6, 1, 13), 'result': '0.06464744460923941', 'result_long': None, 'result_double': None}] Qualite : 0.06464744460923941 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29146725 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29146725_04-12-2025_06_01_17.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29146725 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_P29146725_04-12-2025_06_01_17.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29146733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29146734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29146735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29146736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29146737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29146738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29146739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29146740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29146741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29146742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29146743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29146744, 'pht': 3726}}" where mtr_portfolio_id = 29146725 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29146725 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049374, 0.06464744460923941, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29146725_04-12-2025_06_01_17.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29146733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29146734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29146735, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29146736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29146737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29146738, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29146739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29146740, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29146741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29146742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29146743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29146744, '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 = 29147127 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': 4183554, 'mtr_portfolio_id': 29147127, 'created_at': datetime.datetime(2025, 12, 4, 6, 1, 29), 'result': '0.047906524355259265', 'result_long': None, 'result_double': None}] Qualite : 0.047906524355259265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29147127 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29147127_04-12-2025_06_01_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29147127 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_P29147127_04-12-2025_06_01_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29147169, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29147170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29147171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29147173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29147174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29147175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29147176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29147177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29147178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29147179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29147180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29147181, 'pht': 3726}}" where mtr_portfolio_id = 29147127 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29147127 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049375, 0.047906524355259265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29147127_04-12-2025_06_01_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29147169, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29147170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29147171, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29147173, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29147174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29147175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29147176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29147177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29147178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29147179, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29147180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29147181, '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 = 29147688 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': 4183555, 'mtr_portfolio_id': 29147688, 'created_at': datetime.datetime(2025, 12, 4, 6, 2, 2), 'result': '0.02852725683796647', 'result_long': None, 'result_double': None}] Qualite : 0.02852725683796647 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29147688 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29147688_04-12-2025_06_02_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29147688 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_P29147688_04-12-2025_06_02_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29147701, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29147702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29147703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29147704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29147705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29147706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29147707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29147708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29147709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29147710, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29147711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29147712, 'pht': 3726}}" where mtr_portfolio_id = 29147688 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29147688 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049377, 0.02852725683796647, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29147688_04-12-2025_06_02_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29147701, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29147702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29147703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29147704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29147705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29147706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29147707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29147708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29147709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29147710, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29147711, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29147712, '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 = 29148406 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': 4183556, 'mtr_portfolio_id': 29148406, 'created_at': datetime.datetime(2025, 12, 4, 6, 2, 30), 'result': '0.04668910557310455', 'result_long': None, 'result_double': None}] Qualite : 0.04668910557310455 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29148406 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29148406_04-12-2025_06_02_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29148406 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_P29148406_04-12-2025_06_02_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29148408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29148409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29148410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29148411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29148412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29148413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29148414, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29148415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29148416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29148417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29148418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29148419, 'pht': 3726}}" where mtr_portfolio_id = 29148406 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29148406 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049378, 0.04668910557310455, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29148406_04-12-2025_06_02_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29148408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29148409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29148410, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29148411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29148412, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29148413, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29148414, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29148415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29148416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29148417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29148418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29148419, '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 = 29148755 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': 4183557, 'mtr_portfolio_id': 29148755, 'created_at': datetime.datetime(2025, 12, 4, 6, 3, 31), 'result': '0.0557673480764862', 'result_long': None, 'result_double': None}] Qualite : 0.0557673480764862 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29148755 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29148755_04-12-2025_06_03_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29148755 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_P29148755_04-12-2025_06_03_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29148775, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29148776, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29148777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29148778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29148779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29148780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29148781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29148782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29148783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29148784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29148785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29148786, 'pht': 3726}}" where mtr_portfolio_id = 29148755 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29148755 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049379, 0.0557673480764862, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29148755_04-12-2025_06_03_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29148775, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29148776, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29148777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29148778, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29148779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29148780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29148781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29148782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29148783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29148784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29148785, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29148786, '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 = 29149334 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': 4183558, 'mtr_portfolio_id': 29149334, 'created_at': datetime.datetime(2025, 12, 4, 6, 4, 1), 'result': '0.04088340582076924', 'result_long': None, 'result_double': None}] Qualite : 0.04088340582076924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29149334 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29149334_04-12-2025_06_04_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29149334 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_P29149334_04-12-2025_06_04_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29149351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29149352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29149353, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29149354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29149356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29149357, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29149358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29149359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29149360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29149361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29149362, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29149363, 'pht': 3726}}" where mtr_portfolio_id = 29149334 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29149334 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049380, 0.04088340582076924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29149334_04-12-2025_06_04_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29149351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29149352, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29149353, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29149354, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29149356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29149357, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29149358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29149359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29149360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29149361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29149362, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29149363, '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 = 29150029 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': 4183559, 'mtr_portfolio_id': 29150029, 'created_at': datetime.datetime(2025, 12, 4, 6, 4, 30), 'result': '0.04361165023574831', 'result_long': None, 'result_double': None}] Qualite : 0.04361165023574831 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29150029 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29150029_04-12-2025_06_04_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29150029 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_P29150029_04-12-2025_06_04_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29150038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29150039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29150040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29150041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29150042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29150043, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29150044, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29150045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29150046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29150047, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29150048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29150049, 'pht': 3726}}" where mtr_portfolio_id = 29150029 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29150029 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049382, 0.04361165023574831, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29150029_04-12-2025_06_04_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29150038, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29150039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29150040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29150041, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29150042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29150043, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29150044, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29150045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29150046, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29150047, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29150048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29150049, '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 = 29150435 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': 4183560, 'mtr_portfolio_id': 29150435, 'created_at': datetime.datetime(2025, 12, 4, 6, 5, 28), 'result': '0.04635361109277978', 'result_long': None, 'result_double': None}] Qualite : 0.04635361109277978 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29150435 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29150435_04-12-2025_06_05_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29150435 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_P29150435_04-12-2025_06_05_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29150470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29150471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29150472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29150473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29150474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29150475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29150476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29150477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29150478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29150479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29150480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29150481, 'pht': 3726}}" where mtr_portfolio_id = 29150435 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29150435 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049383, 0.04635361109277978, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29150435_04-12-2025_06_05_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29150470, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29150471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29150472, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29150473, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29150474, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29150475, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29150476, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29150477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29150478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29150479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29150480, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29150481, '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 = 29150856 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': 4183561, 'mtr_portfolio_id': 29150856, 'created_at': datetime.datetime(2025, 12, 4, 6, 6, 1), 'result': '0.04970695653616544', 'result_long': None, 'result_double': None}] Qualite : 0.04970695653616544 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29150856 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29150856_04-12-2025_06_06_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29150856 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_P29150856_04-12-2025_06_06_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29150881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29150882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29150883, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29150884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29150885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29150886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29150887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29150888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29150889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29150890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29150891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29150892, 'pht': 3726}}" where mtr_portfolio_id = 29150856 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29150856 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049384, 0.04970695653616544, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29150856_04-12-2025_06_06_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29150881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29150882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29150883, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29150884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29150885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29150886, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29150887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29150888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29150889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29150890, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29150891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29150892, '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 = 29151377 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': 4183562, 'mtr_portfolio_id': 29151377, 'created_at': datetime.datetime(2025, 12, 4, 6, 6, 8), 'result': '0.04782545535797798', 'result_long': None, 'result_double': None}] Qualite : 0.04782545535797798 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29151377 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29151377_04-12-2025_06_06_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29151377 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_P29151377_04-12-2025_06_06_12.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29151412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29151413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29151414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29151415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29151416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29151417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29151418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29151419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29151420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29151421, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29151422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29151423, 'pht': 3726}}" where mtr_portfolio_id = 29151377 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29151377 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049385, 0.04782545535797798, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29151377_04-12-2025_06_06_12.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29151412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29151413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29151414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29151415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29151416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29151417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29151418, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29151419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29151420, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29151421, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29151422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29151423, '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 = 29151897 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': 4183563, 'mtr_portfolio_id': 29151897, 'created_at': datetime.datetime(2025, 12, 4, 6, 6, 29), 'result': '0.04622399538402728', 'result_long': None, 'result_double': None}] Qualite : 0.04622399538402728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29151897 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29151897_04-12-2025_06_06_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29151897 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_P29151897_04-12-2025_06_06_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29151922, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29151923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29151924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29151925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29151926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29151927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29151928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29151929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29151930, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29151931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29151932, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29151933, 'pht': 3726}}" where mtr_portfolio_id = 29151897 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29151897 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049386, 0.04622399538402728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29151897_04-12-2025_06_06_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29151922, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29151923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29151924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29151925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29151926, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29151927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29151928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29151929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29151930, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29151931, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29151932, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29151933, '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 = 29152268 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': 4183564, 'mtr_portfolio_id': 29152268, 'created_at': datetime.datetime(2025, 12, 4, 6, 7, 30), 'result': '0.03759900176453157', 'result_long': None, 'result_double': None}] Qualite : 0.03759900176453157 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29152268 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29152268_04-12-2025_06_07_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29152268 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_P29152268_04-12-2025_06_07_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29152285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29152286, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29152287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29152288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29152289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29152290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29152292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29152293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29152294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29152295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29152296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29152297, 'pht': 3726}}" where mtr_portfolio_id = 29152268 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29152268 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049387, 0.03759900176453157, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29152268_04-12-2025_06_07_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29152285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29152286, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29152287, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29152288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29152289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29152290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29152292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29152293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29152294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29152295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29152296, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29152297, '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 = 29152784 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': 4183565, 'mtr_portfolio_id': 29152784, 'created_at': datetime.datetime(2025, 12, 4, 6, 7, 59), 'result': '0.05970646428923881', 'result_long': None, 'result_double': None}] Qualite : 0.05970646428923881 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29152784 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29152784_04-12-2025_06_08_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29152784 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_P29152784_04-12-2025_06_08_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29152809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29152810, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29152811, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29152812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29152813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29152814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29152815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29152816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29152817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29152818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29152819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29152820, 'pht': 3726}}" where mtr_portfolio_id = 29152784 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29152784 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049388, 0.05970646428923881, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29152784_04-12-2025_06_08_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29152809, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29152810, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29152811, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29152812, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29152813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29152814, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29152815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29152816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29152817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29152818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29152819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29152820, '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 = 29153645 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': 4183566, 'mtr_portfolio_id': 29153645, 'created_at': datetime.datetime(2025, 12, 4, 6, 8, 29), 'result': '0.059762347155636275', 'result_long': None, 'result_double': None}] Qualite : 0.059762347155636275 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29153645 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29153645_04-12-2025_06_08_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29153645 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_P29153645_04-12-2025_06_08_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29153658, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29153659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29153660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29153661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29153662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29153663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29153664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29153665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29153666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29153667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29153668, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29153669, 'pht': 3726}}" where mtr_portfolio_id = 29153645 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29153645 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049389, 0.059762347155636275, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29153645_04-12-2025_06_08_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29153658, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29153659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29153660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29153661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29153662, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29153663, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29153664, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29153665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29153666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29153667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29153668, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29153669, '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 = 29154118 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': 4183567, 'mtr_portfolio_id': 29154118, 'created_at': datetime.datetime(2025, 12, 4, 6, 9, 30), 'result': '0.036959827610804664', 'result_long': None, 'result_double': None}] Qualite : 0.036959827610804664 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29154118 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29154118_04-12-2025_06_09_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29154118 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_P29154118_04-12-2025_06_09_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29154139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29154140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29154141, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29154142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29154143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29154144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29154145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29154146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29154147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29154148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29154149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29154150, 'pht': 3726}}" where mtr_portfolio_id = 29154118 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29154118 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049390, 0.036959827610804664, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29154118_04-12-2025_06_09_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29154139, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29154140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29154141, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29154142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29154143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29154144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29154145, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29154146, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29154147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29154148, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29154149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29154150, '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 = 29154543 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': 4183568, 'mtr_portfolio_id': 29154543, 'created_at': datetime.datetime(2025, 12, 4, 6, 9, 57), 'result': '0.049043025452566835', 'result_long': None, 'result_double': None}] Qualite : 0.049043025452566835 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29154543 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29154543_04-12-2025_06_10_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29154543 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_P29154543_04-12-2025_06_10_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29154558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29154559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29154560, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29154561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29154562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29154563, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29154564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29154565, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29154566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29154567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29154568, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29154569, 'pht': 3726}}" where mtr_portfolio_id = 29154543 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29154543 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049391, 0.049043025452566835, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29154543_04-12-2025_06_10_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29154558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29154559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29154560, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29154561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29154562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29154563, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29154564, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29154565, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29154566, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29154567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29154568, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29154569, '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 = 29155038 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': 4183569, 'mtr_portfolio_id': 29155038, 'created_at': datetime.datetime(2025, 12, 4, 6, 10, 30), 'result': '0.03757224001471376', 'result_long': None, 'result_double': None}] Qualite : 0.03757224001471376 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29155038 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29155038_04-12-2025_06_10_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29155038 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_P29155038_04-12-2025_06_10_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29155046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29155047, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29155048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29155049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29155050, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29155051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29155052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29155053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29155054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29155055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29155056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29155057, 'pht': 3726}}" where mtr_portfolio_id = 29155038 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29155038 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049392, 0.03757224001471376, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29155038_04-12-2025_06_10_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29155046, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29155047, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29155048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29155049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29155050, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29155051, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29155052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29155053, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29155054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29155055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29155056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29155057, '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 = 29155506 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': 4183570, 'mtr_portfolio_id': 29155506, 'created_at': datetime.datetime(2025, 12, 4, 6, 11, 8), 'result': '0.036624379693067956', 'result_long': None, 'result_double': None}] Qualite : 0.036624379693067956 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29155506 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29155506_04-12-2025_06_11_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29155506 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_P29155506_04-12-2025_06_11_12.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29155523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29155524, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29155525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29155526, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29155527, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29155528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29155529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29155530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29155531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29155532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29155533, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29155534, 'pht': 3726}}" where mtr_portfolio_id = 29155506 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29155506 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049393, 0.036624379693067956, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29155506_04-12-2025_06_11_12.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29155523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29155524, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29155525, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29155526, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29155527, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29155528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29155529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29155530, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29155531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29155532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29155533, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29155534, '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 = 29156114 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': 4183571, 'mtr_portfolio_id': 29156114, 'created_at': datetime.datetime(2025, 12, 4, 6, 11, 29), 'result': '0.03871151943103673', 'result_long': None, 'result_double': None}] Qualite : 0.03871151943103673 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29156114 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29156114_04-12-2025_06_11_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29156114 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_P29156114_04-12-2025_06_11_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29156138, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29156139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29156140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29156141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29156142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29156143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29156144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29156145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29156146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29156147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29156148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29156149, 'pht': 3726}}" where mtr_portfolio_id = 29156114 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29156114 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049394, 0.03871151943103673, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29156114_04-12-2025_06_11_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29156138, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29156139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29156140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29156141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29156142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29156143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29156144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29156145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29156146, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29156147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29156148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29156149, '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 = 29156678 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': 4183572, 'mtr_portfolio_id': 29156678, 'created_at': datetime.datetime(2025, 12, 4, 6, 11, 59), 'result': '0.04036618235480482', 'result_long': None, 'result_double': None}] Qualite : 0.04036618235480482 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29156678 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29156678_04-12-2025_06_12_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29156678 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_P29156678_04-12-2025_06_12_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29156721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29156722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29156723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29156724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29156725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29156726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29156727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29156728, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29156729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29156730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29156731, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29156732, 'pht': 3726}}" where mtr_portfolio_id = 29156678 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29156678 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049395, 0.04036618235480482, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29156678_04-12-2025_06_12_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29156721, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29156722, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29156723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29156724, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29156725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29156726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29156727, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29156728, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29156729, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29156730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29156731, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29156732, '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 = 29157379 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': 4183573, 'mtr_portfolio_id': 29157379, 'created_at': datetime.datetime(2025, 12, 4, 6, 12, 28), 'result': '0.0486788629351327', 'result_long': None, 'result_double': None}] Qualite : 0.0486788629351327 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29157379 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29157379_04-12-2025_06_12_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29157379 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_P29157379_04-12-2025_06_12_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29157383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29157384, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29157385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29157386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29157387, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29157388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29157389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29157390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29157391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29157392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29157393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29157394, 'pht': 3726}}" where mtr_portfolio_id = 29157379 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29157379 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049396, 0.0486788629351327, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29157379_04-12-2025_06_12_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29157383, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29157384, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29157385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29157386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29157387, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29157388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29157389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29157390, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29157391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29157392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29157393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29157394, '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 = 29157736 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': 4183574, 'mtr_portfolio_id': 29157736, 'created_at': datetime.datetime(2025, 12, 4, 6, 13, 26), 'result': '0.04935388471078761', 'result_long': None, 'result_double': None}] Qualite : 0.04935388471078761 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29157736 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29157736_04-12-2025_06_13_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29157736 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_P29157736_04-12-2025_06_13_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29157770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29157771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29157772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29157773, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29157774, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29157775, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29157776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29157777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29157778, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29157779, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29157780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29157781, 'pht': 3726}}" where mtr_portfolio_id = 29157736 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29157736 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049397, 0.04935388471078761, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29157736_04-12-2025_06_13_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29157770, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29157771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29157772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29157773, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29157774, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29157775, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29157776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29157777, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29157778, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29157779, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29157780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29157781, '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 = 29158499 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': 4183575, 'mtr_portfolio_id': 29158499, 'created_at': datetime.datetime(2025, 12, 4, 6, 13, 58), 'result': '0.04827366803148098', 'result_long': None, 'result_double': None}] Qualite : 0.04827366803148098 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29158499 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29158499_04-12-2025_06_14_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29158499 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_P29158499_04-12-2025_06_14_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29158517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29158518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29158519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29158520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29158521, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29158522, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29158523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29158524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29158525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29158526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29158527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29158528, 'pht': 3726}}" where mtr_portfolio_id = 29158499 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29158499 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049398, 0.04827366803148098, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29158499_04-12-2025_06_14_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29158517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29158518, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29158519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29158520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29158521, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29158522, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29158523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29158524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29158525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29158526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29158527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29158528, '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 = 29158804 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': 4183576, 'mtr_portfolio_id': 29158804, 'created_at': datetime.datetime(2025, 12, 4, 6, 14, 29), 'result': '0.06792489028402139', 'result_long': None, 'result_double': None}] Qualite : 0.06792489028402139 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29158804 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29158804_04-12-2025_06_14_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29158804 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_P29158804_04-12-2025_06_14_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29158820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29158821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29158822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29158823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29158824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29158825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29158826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29158827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29158828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29158829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29158830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29158831, 'pht': 3726}}" where mtr_portfolio_id = 29158804 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29158804 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049399, 0.06792489028402139, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29158804_04-12-2025_06_14_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29158820, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29158821, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29158822, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29158823, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29158824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29158825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29158826, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29158827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29158828, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29158829, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29158830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29158831, '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 = 29159253 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': 4181829, 'mtr_portfolio_id': 29159253, 'created_at': datetime.datetime(2025, 12, 3, 21, 17, 30), 'result': '0.06408226699978833', 'result_long': None, 'result_double': None}] Qualite : 0.06408226699978833 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29159253 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29159253_03-12-2025_21_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29159253 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_P29159253_03-12-2025_21_17_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29159258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29159259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29159260, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29159261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29159262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29159263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29159264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29159265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29159266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29159267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29159268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29159269, 'pht': 3726}}" where mtr_portfolio_id = 29159253 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29159253 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049400, 0.06408226699978833, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29159253_03-12-2025_21_17_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29159258, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29159259, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29159260, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29159261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29159262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29159263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29159264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29159265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29159266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29159267, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29159268, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29159269, '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 = 29159583 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': 4181855, 'mtr_portfolio_id': 29159583, 'created_at': datetime.datetime(2025, 12, 3, 23, 0), 'result': '0.0565748869236966', 'result_long': None, 'result_double': None}] Qualite : 0.0565748869236966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29159583 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29159583_03-12-2025_23_00_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29159583 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_P29159583_03-12-2025_23_00_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29159586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29159587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29159588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29159589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29159590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29159591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29159592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29159593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29159594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29159595, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29159596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29159597, 'pht': 3726}}" where mtr_portfolio_id = 29159583 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29159583 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049401, 0.0565748869236966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29159583_03-12-2025_23_00_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29159586, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29159587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29159588, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29159589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29159590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29159591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29159592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29159593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29159594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29159595, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29159596, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29159597, '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 = 29161607 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': 4182100, 'mtr_portfolio_id': 29161607, 'created_at': datetime.datetime(2025, 12, 3, 23, 2, 59), 'result': '0.05162173210716093', 'result_long': None, 'result_double': None}] Qualite : 0.05162173210716093 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29161607 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29161607_03-12-2025_23_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29161607 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_P29161607_03-12-2025_23_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29161656, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29161657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29161658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29161659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29161660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29161661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29161662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29161663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29161664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29161665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29161666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29161667, 'pht': 3726}}" where mtr_portfolio_id = 29161607 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29161607 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049402, 0.05162173210716093, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29161607_03-12-2025_23_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29161656, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29161657, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29161658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29161659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29161660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29161661, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29161662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29161663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29161664, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29161665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29161666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29161667, '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 = 29161867 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': 4182116, 'mtr_portfolio_id': 29161867, 'created_at': datetime.datetime(2025, 12, 3, 23, 18, 59), 'result': '0.035252776173224434', 'result_long': None, 'result_double': None}] Qualite : 0.035252776173224434 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29161867 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29161867_03-12-2025_23_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29161867 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_P29161867_03-12-2025_23_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29161872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29161873, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29161874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29161875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29161876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29161877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29161878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29161879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29161880, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29161881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29161882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29161883, 'pht': 3726}}" where mtr_portfolio_id = 29161867 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29161867 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049403, 0.035252776173224434, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29161867_03-12-2025_23_18_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29161872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29161873, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29161874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29161875, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29161876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29161877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29161878, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29161879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29161880, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29161881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29161882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29161883, '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 = 29162414 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': 4182177, 'mtr_portfolio_id': 29162414, 'created_at': datetime.datetime(2025, 12, 3, 23, 34, 2), 'result': '0.03577890377586441', 'result_long': None, 'result_double': None}] Qualite : 0.03577890377586441 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29162414 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29162414_03-12-2025_23_34_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29162414 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_P29162414_03-12-2025_23_34_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29162421, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29162422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29162423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29162424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29162425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29162426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29162427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29162428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29162429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29162430, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29162431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29162432, 'pht': 3726}}" where mtr_portfolio_id = 29162414 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29162414 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049404, 0.03577890377586441, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29162414_03-12-2025_23_34_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29162421, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29162422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29162423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29162424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29162425, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29162426, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29162427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29162428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29162429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29162430, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29162431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29162432, '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 = 29163127 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': 4182249, 'mtr_portfolio_id': 29163127, 'created_at': datetime.datetime(2025, 12, 3, 23, 47, 32), 'result': '0.06276584130577399', 'result_long': None, 'result_double': None}] Qualite : 0.06276584130577399 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29163127 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29163127_03-12-2025_23_47_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29163127 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_P29163127_03-12-2025_23_47_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29163132, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29163133, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29163134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29163135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29163136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29163137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29163138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29163139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29163140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29163141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29163142, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29163143, 'pht': 3726}}" where mtr_portfolio_id = 29163127 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29163127 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049405, 0.06276584130577399, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29163127_03-12-2025_23_47_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29163132, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29163133, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29163134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29163135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29163136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29163137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29163138, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29163139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29163140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29163141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29163142, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29163143, '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 = 29163631 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': 4182308, 'mtr_portfolio_id': 29163631, 'created_at': datetime.datetime(2025, 12, 4, 1, 12, 33), 'result': '0.05729758308059605', 'result_long': None, 'result_double': None}] Qualite : 0.05729758308059605 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29163631 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29163631_04-12-2025_01_12_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29163631 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_P29163631_04-12-2025_01_12_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29163632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29163633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29163634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29163635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29163636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29163637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29163638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29163639, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29163640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29163641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29163642, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29163643, 'pht': 3726}}" where mtr_portfolio_id = 29163631 and dashboard_run_id = 2698866 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 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`=29163631 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049406, 0.05729758308059605, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29163631_04-12-2025_01_12_34.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29163632, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29163633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29163634, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29163635, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29163636, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29163637, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29163638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29163639, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29163640, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29163641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29163642, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29163643, '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 (29118472,29119115,29119691,29120310,29122211,29122760,29123215,29123936,29124511,29125212,29125708,29126179,29126661,29126976,29127436,29129057,29129398,29129845,29130321,29130674,29131471,29131997,29132670,29133186,29133916,29134419,29135015,29135469,29136074,29136449,29136954,29138307,29138941,29139485,29140236,29140878,29141501,29141834,29142582,29143128,29143757,29144152,29145570,29145757,29146199,29146725,29147127,29147688,29148406,29148755,29149334,29150029,29150435,29150856,29151377,29151897,29152268,29152784,29153645,29154118,29154543,29155038,29155506,29156114,29156678,29157379,29157736,29158499,29158804,29159253,29159583,29161607,29161867,29162414,29163127,29163631) result : ((1397526149,), (1397526182,), (1397526188,), (1397526201,), (1397526203,), (1397526336,), (1397526338,), (1397526374,), (1397526412,), (1397526447,), (1397526815,), (1397526849,), (1397526884,), (1397526941,), (1397527079,), (1397527162,), (1397527749,), (1397527807,), (1397527824,), (1397527825,), (1397527827,), (1397528273,), (1397528309,), (1397528341,), (1397528389,), (1397528390,), (1397528394,), (1397528478,), (1397528479,), (1397528480,), (1397528503,), (1397528515,), (1397528700,), (1397528738,), (1397528772,), (1397528807,), (1397528845,), (1397528915,), (1397529116,), (1397529160,), (1397529192,), (1397529228,), (1397529265,), (1397529355,), (1397529357,), (1397529359,), (1397529435,), (1397529474,), (1397529508,), (1397529547,), (1397529701,), (1397529747,), (1397529801,), (1397529806,), (1397529884,), (1397529892,), (1397529898,), (1397529900,), (1397529923,), (1397529924,), (1397529927,), (1397529931,), (1397529932,), (1397529934,), (1397529978,), (1397529983,), (1397529984,), (1397529985,), (1397529987,), (1397530010,), (1397530012,), (1397530016,), (1397530098,), (1397530096,), (1397530097,), (1397530104,), (1397530105,), (1397530106,), (1397530107,), (1397530109,), (1397530156,), (1397530157,), (1397530158,), (1397530160,), (1397530163,), (1397530164,), (1397530191,), (1397530228,), (1397530264,), (1397530306,), (1397530470,), (1397530507,), (1397530546,), (1397530717,), (1397530718,), (1397530719,), (1397530720,), (1397530722,), (1397530896,), (1397530948,), (1397530949,), (1397530951,), (1397530991,), (1397531033,), (1397531144,), (1397531145,), (1397531146,), (1397531147,), (1397531149,), (1397531151,), (1397531155,), (1397531156,), (1397531157,), (1397531247,), (1397531286,), (1397531295,), (1397531303,), (1397531379,), (1397531447,), (1397531477,), (1397531498,), (1397531625,), (1397531626,), (1397531627,), (1397531672,), (1397531716,), (1397531718,), (1397531724,), (1397531725,), (1397531726,), (1397531735,), (1397531736,), (1397531737,), (1397531768,), (1397532189,), (1397532223,), (1397532258,), (1397532294,), (1397532331,), (1397532698,), (1397532700,), (1397532703,), (1397532705,), (1397532790,), (1397532825,), (1397532696,), (1397532697,), (1397532905,), (1397532906,), (1397532918,), (1397533399,), (1397533435,), (1397533472,), (1397533505,), (1397533541,), (1397533920,), (1397533960,), (1397533996,), (1397534050,), (1397534088,), (1397534125,), (1397534338,), (1397534339,), (1397534389,), (1397534424,), (1397534702,), (1397534703,), (1397534704,), (1397534714,), (1397534775,), (1397534776,), (1397534777,), (1397534905,), (1397534911,), (1397534913,), (1397534914,), (1397534918,), (1397534929,), (1397534980,), (1397535132,), (1397535169,), (1397535204,), (1397535240,), (1397535274,), (1397535652,), (1397535688,), (1397535727,), (1397535769,), (1397535806,), (1397535842,), (1397536008,), (1397536010,), (1397536012,), (1397536015,), (1397536047,), (1397536083,), (1397536255,), (1397536322,), (1397536387,), (1397536686,), (1397536723,), (1397536760,), (1397536810,), (1397536887,), (1397537339,), (1397537385,), (1397537416,), (1397537451,), (1397537878,), (1397537923,), (1397537966,), (1397538038,), (1397538109,), (1397538634,), (1397538675,), (1397538714,), (1397538773,), (1397538802,), (1397538829,), (1397539013,), (1397538883,), (1397538928,), (1397538973,), (1397539186,), (1397539187,), (1397539188,), (1397539189,), (1397539440,), (1397539473,), (1397539515,), (1397539548,), (1397539918,), (1397539988,), (1397540055,), (1397540126,), (1397540643,), (1397540686,), (1397540716,), (1397541136,), (1397541180,), (1397541416,), (1397541417,), (1397541418,), (1397541728,), (1397541761,), (1397541793,), (1397541832,), (1397541865,), (1397542168,), (1397542169,), (1397542422,), (1397542423,), (1397542932,), (1397542963,), (1397543265,), (1397543280,), (1397543287,), (1397543295,), (1397543421,), (1397543422,), (1397543423,), (1397543424,), (1397543913,), (1397543962,), (1397543997,), (1397544036,), (1397551260,), (1397551257,), (1397551258,), (1397551259,), (1397551323,), (1397551324,), (1397551325,), (1397551326,), (1397551331,), (1397551332,), (1397551333,), (1397551334,), (1397551357,), (1397551948,), (1397551998,), (1397552081,), (1397552445,), (1397552452,), (1397552492,), (1397552531,), (1397552731,), (1397552764,), (1397553007,), (1397553008,), (1397553023,), (1397553024,), (1397553047,), (1397553140,), (1397553141,), (1397553180,), (1397553181,), (1397553183,), (1397553185,), (1397553196,), (1397553263,), (1397553264,), (1397553265,), (1397553266,), (1397553272,), (1397553273,), (1397553274,), (1397553275,), (1397553282,), (1397553283,), (1397553284,), (1397553316,), (1397553317,), (1397553318,), (1397553490,), (1397553491,), (1397553492,), (1397553647,), (1397553674,), (1397553694,), (1397553697,), (1397553700,), (1397553800,), (1397553789,), (1397553790,), (1397553799,), (1397553882,), (1397553914,), (1397553915,), (1397553939,), (1397553940,), (1397553941,), (1397553948,), (1397553949,), (1397553950,), (1397553952,), (1397553967,), (1397553968,), (1397553969,), (1397553971,), (1397553977,), (1397553978,), (1397553979,), (1397553980,), (1397553982,), (1397554001,), (1397554002,), (1397554003,), (1397554004,), (1397554006,), (1397554008,), (1397554022,), (1397554029,), (1397554036,), (1397554092,), (1397554093,), (1397554094,), (1397554095,), (1397554171,), (1397554173,), (1397554184,), (1397554185,), (1397554186,), (1397554187,), (1397554190,), (1397554191,), (1397554192,), (1397554193,), (1397554195,), (1397554197,), (1397554207,), (1397554208,), (1397554209,), (1397554210,), (1397554212,), (1397554214,), (1397554393,), (1397554401,), (1397554420,), (1397554440,), (1397554475,), (1397554518,), (1397554728,), (1397554772,), (1397554816,), (1397554861,), (1397554894,), (1397554944,), (1397555342,), (1397555146,), (1397555196,), (1397555238,), (1397555275,), (1397555498,), (1397555648,), (1397555713,), (1397555782,), (1397555837,), (1397556225,), (1397556265,), (1397556300,), (1397556338,), (1397556353,), (1397556354,), (1397556507,), (1397556573,), (1397557131,), (1397557175,), (1397557194,), (1397557423,), (1397557427,), (1397557428,), (1397557430,), (1397557432,), (1397557433,), (1397557521,), (1397557558,), (1397557591,), (1397558146,), (1397558150,), (1397558160,), (1397558467,), (1397558468,), (1397558469,), (1397558471,), (1397558473,), (1397558494,), (1397558654,), (1397558655,), (1397558668,), (1397558669,), (1397558761,), (1397558762,), (1397558806,), (1397558809,), (1397558811,), (1397558813,), (1397558855,), (1397558856,), (1397558857,), (1397558858,), (1397558860,), (1397558956,), (1397558968,), (1397558971,), (1397559076,), (1397559083,), (1397559084,), (1397559102,), (1397559198,), (1397559199,), (1397559201,), (1397559202,), (1397559203,), (1397559228,), (1397560843,), (1397559223,), (1397559224,), (1397559225,), (1397559226,), (1397559232,), (1397559233,), (1397559234,), (1397559236,), (1397559238,), (1397559240,), (1397559247,), (1397559256,), (1397559261,), (1397559273,), (1397559275,), (1397559285,), (1397559396,), (1397559398,), (1397559400,), (1397559402,), (1397559412,), (1397559461,), (1397559501,), (1397559558,), (1397559608,), (1397559642,), (1397559674,), (1397559707,), (1397559813,), (1397559845,), (1397559880,), (1397559918,), (1397559953,), (1397560029,), (1397560153,), (1397560208,), (1397560278,), (1397560354,), (1397560428,), (1397560545,), (1397560799,), (1397560975,), (1397560976,), (1397560983,), (1397561362,), (1397561376,), (1397561410,), (1397561430,), (1397561512,), (1397561513,), (1397561514,), (1397561515,), (1397561575,), (1397561576,), (1397561577,), (1397561578,), (1397561580,), (1397561685,), (1397561704,), (1397561750,), (1397561803,), (1397561804,), (1397561825,), (1397561826,), (1397561862,), (1397561863,), (1397561864,), (1397561871,), (1397561873,), (1397561878,), (1397561960,), (1397561962,), (1397561969,), (1397561973,), (1397561976,), (1397561983,), (1397562002,), (1397562003,), (1397562004,), (1397562053,), (1397562054,), (1397562056,), (1397562058,), (1397562061,), (1397562085,), (1397562081,), (1397562083,), (1397562084,), (1397562093,), (1397562094,), (1397562100,), (1397562109,), (1397562110,), (1397562114,), (1397562120,), (1397562132,), (1397562173,), (1397562174,), (1397562175,), (1397562176,), (1397562178,), (1397562219,), (1397562239,), (1397562240,), (1397562247,), (1397562257,), (1397562304,), (1397562305,), (1397562325,), (1397562328,), (1397562337,), (1397562415,), (1397562417,), (1397562427,), (1397562461,), (1397562538,), (1397562539,), (1397562541,), (1397562551,), (1397562656,), (1397562657,), (1397562658,), (1397562684,), (1397562686,), (1397562698,), (1397562717,), (1397562719,), (1397562721,), (1397562722,), (1397562732,), (1397562741,), (1397562748,), (1397562750,), (1397562752,), (1397562754,), (1397562756,), (1397562757,), (1397562758,), (1397562764,), (1397562765,), (1397562769,), (1397562777,), (1397562779,), (1397562781,), (1397562809,), (1397562810,), (1397562811,), (1397562812,), (1397562865,), (1397562866,), (1397562867,), (1397562887,), (1397562894,), (1397562895,), (1397562904,), (1397562908,), (1397563065,), (1397562943,), (1397562952,), (1397563026,), (1397563063,), (1397563150,), (1397563152,), (1397563177,), (1397563187,), (1397563253,), (1397563254,), (1397563255,), (1397563256,), (1397563258,), (1397563263,), (1397563265,), (1397563268,), (1397563271,), (1397563274,), (1397563277,), (1397563288,), (1397563289,), (1397563290,), (1397563300,), (1397563306,), (1397563308,), (1397563309,), (1397563311,), (1397563313,), (1397563366,), (1397563367,), (1397563368,), (1397563369,), (1397563371,), (1397563391,), (1397563392,), (1397563393,), (1397563394,), (1397563396,), (1397563398,), (1397563482,), (1397563506,), (1397563544,), (1397563548,), (1397563549,), (1397563664,), (1397563670,), (1397563714,), (1397563715,), (1397563716,), (1397563717,), (1397563719,), (1397563721,), (1397563789,), (1397563790,), (1397563791,), (1397563808,), (1397563820,), (1397563833,), (1397563867,), (1397563868,), (1397563869,), (1397563870,), (1397563872,), (1397563893,), (1397563896,), (1397563898,), (1397563900,), (1397563946,), (1397563949,), (1397563951,), (1397563953,), (1397563955,), (1397563957,), (1397563994,), (1397563995,), (1397564000,), (1397564021,), (1397564004,), (1397564019,), (1397564078,), (1397564083,), (1397564085,), (1397564095,), (1397564096,), (1397564097,), (1397564098,), (1397564112,), (1397564114,), (1397564116,), (1397564118,), (1397564213,), (1397564215,), (1397564216,), (1397564217,), (1397564219,), (1397564228,), (1397564229,), (1397564277,), (1397564301,), (1397564363,), (1397564365,), (1397564395,), (1397564398,), (1397564401,), (1397564419,), (1397564423,), (1397564424,), (1397564425,), (1397564426,), (1397564427,), (1397564428,), (1397564429,), (1397564430,), (1397564431,), (1397564433,), (1397564457,), (1397564466,), (1397564469,), (1397564471,), (1397564473,), (1397564487,), (1397564506,), (1397564508,), (1397564510,), (1397564512,), (1397564516,), (1397564520,), (1397564550,), (1397564590,), (1397564616,), (1397564620,), (1397564621,), (1397564643,), (1397564695,), (1397564696,), (1397564697,), (1397564698,), (1397564737,), (1397564738,), (1397564739,), (1397564740,), (1397564748,), (1397564750,), (1397564782,), (1397564783,), (1397564784,), (1397564785,), (1397564810,), (1397565005,), (1397564970,), (1397564985,), (1397564988,), (1397564997,), (1397564999,), (1397565018,), (1397565020,), (1397565021,), (1397565079,), (1397565099,), (1397565170,), (1397565171,), (1397565278,), (1397565945,), (1397565944,), (1397566195,), (1397566204,), (1397566226,), (1397566321,), (1397566705,), (1397566731,), (1397566805,), (1397566939,), (1397566940,), (1397566941,), (1397566942,), (1397567007,), (1397567008,), (1397567009,), (1397567011,), (1397567013,), (1397567015,), (1397567041,), (1397567046,), (1397567047,), (1397567048,), (1397567074,), (1397567076,), (1397567078,), (1397567080,), (1397567082,), (1397567084,), (1397567137,), (1397567138,), (1397567144,), (1397567145,), (1397567236,), (1397567237,), (1397567238,), (1397567239,), (1397567382,), (1397567395,), (1397567407,), (1397567415,), (1397567417,), (1397567472,), (1397567473,), (1397567507,), (1397567539,), (1397567586,), (1397567592,), (1397567616,), (1397567622,), (1397567625,), (1397567782,), (1397567746,), (1397567752,), (1397567756,), (1397567770,), (1397567774,), (1397567846,), (1397567849,), (1397567864,), (1397567947,), (1397567948,), (1397567949,), (1397567950,), (1397567952,), (1397567997,), (1397568019,), (1397568025,), (1397568028,), (1397568031,), (1397568036,), (1397568046,), (1397568047,), (1397568048,), (1397568049,), (1397568050,), (1397568053,), (1397568054,), (1397568057,), (1397568058,), (1397568061,), (1397568062,), (1397568065,), (1397568066,), (1397568125,), (1397568126,), (1397568127,), (1397568236,), (1397568237,), (1397568405,), (1397568406,), (1397568488,), (1397568490,), (1397568527,), (1397568528,), (1397568534,), (1397568615,), (1397568616,), (1397568617,), (1397568618,), (1397568620,), (1397569031,), (1397569039,), (1397569126,), (1397569194,), (1397569267,), (1397569337,), (1397569555,), (1397569607,), (1397569673,), (1397569718,), (1397569920,), (1397569843,), (1397569885,), (1397570136,), (1397570175,), (1397570230,), (1397570295,), (1397570363,), (1397570864,), (1397570931,), (1397570998,), (1397571486,), (1397571552,), (1397571626,), (1397572012,), (1397572047,), (1397572081,), (1397572180,), (1397572367,), (1397572385,), (1397572418,), (1397572452,), (1397572565,), (1397572566,), (1397572584,), (1397572587,), (1397572694,), (1397572921,), (1397573405,), (1397573439,), (1397573787,), (1397579372,), (1397579371,), (1397579765,), (1397579775,), (1397579874,), (1397579888,), (1397579892,), (1397579893,), (1397579895,), (1397579961,), (1397579963,), (1397579997,), (1397580023,), (1397580028,), (1397580034,), (1397580071,), (1397580073,), (1397580076,), (1397580081,), (1397580111,), (1397580114,), (1397580115,), (1397580116,), (1397580118,), (1397580158,), (1397580165,), (1397580166,), (1397580167,), (1397580172,), (1397580209,), (1397580216,), (1397580226,), (1397580258,), (1397580292,), (1397580415,), (1397580398,), (1397580405,), (1397580412,), (1397580413,), (1397580488,), (1397580489,), (1397580490,), (1397580491,), (1397580511,), (1397580522,), (1397580528,), (1397580529,), (1397580531,), (1397580573,), (1397580574,), (1397580575,), (1397580578,), (1397580580,), (1397580582,), (1397580605,), (1397580606,), (1397580612,), (1397580619,), (1397580648,), (1397580650,), (1397580652,), (1397580654,), (1397580656,), (1397580658,), (1397580660,), (1397580663,), (1397580665,), (1397580678,), (1397580679,), (1397580680,), (1397580681,), (1397580684,), (1397580692,), (1397580773,), (1397580774,), (1397580775,), (1397580776,), (1397580781,), (1397580821,), (1397580822,), (1397580835,), (1397580836,), (1397580839,), (1397580873,), (1397580877,), (1397580880,), (1397580930,), (1397580933,), (1397580957,), (1397580958,), (1397580959,), (1397580960,), (1397581042,), (1397581044,), (1397581046,), (1397581049,), (1397581118,), (1397581121,), (1397581243,), (1397581263,), (1397581264,), (1397581275,), (1397581428,), (1397581430,), (1397581431,), (1397581439,), (1397581499,), (1397581502,), (1397581543,), (1397581545,), (1397581551,), (1397581582,), (1397581595,), (1397581592,), (1397581593,), (1397581594,), (1397581849,), (1397581850,), (1397581851,), (1397581852,), (1397581854,), (1397581888,), (1397581889,), (1397581890,), (1397581891,), (1397581893,), (1397581899,), (1397581919,), (1397581927,), (1397581928,), (1397581929,), (1397581950,), (1397581951,), (1397581952,), (1397581953,), (1397581964,), (1397581989,), (1397582019,), (1397582036,), (1397582037,), (1397582038,), (1397582071,), (1397582072,), (1397582073,), (1397582074,), (1397582075,), (1397582077,), (1397582114,), (1397582122,), (1397582145,), (1397582149,), (1397582151,), (1397582158,), (1397582159,), (1397582160,), (1397582162,), (1397582164,), (1397582166,), (1397582172,), (1397582173,), (1397582181,), (1397582182,), (1397582183,), (1397582184,), (1397582186,), (1397582192,), (1397582193,), (1397582194,), (1397582236,), (1397582238,), (1397582248,), (1397582249,), (1397582253,), (1397582262,), (1397582336,), (1397582398,), (1397582406,), (1397582408,), (1397582409,), (1397582412,), (1397582498,), (1397582500,), (1397582501,), (1397582502,), (1397582503,), (1397582551,), (1397582553,), (1397582563,), (1397582570,), (1397582572,), (1397582573,), (1397582628,), (1397582606,), (1397582607,), (1397582608,), (1397582611,), (1397582653,), (1397582654,), (1397582655,), (1397582656,), (1397582658,), (1397582660,), (1397582675,), (1397582676,), (1397582677,), (1397582678,), (1397582725,), (1397582726,), (1397582727,), (1397582730,), (1397582749,), (1397582794,), (1397582828,), (1397582838,), (1397582908,), (1397582990,), (1397583095,), (1397583096,), (1397583097,), (1397583098,), (1397583100,), (1397583155,), (1397583159,), (1397583160,), (1397583179,), (1397583182,), (1397583185,), (1397583188,), (1397583190,), (1397583198,), (1397583205,), (1397583219,), (1397583236,), (1397583267,), (1397583268,), (1397583272,), (1397583273,), (1397583275,), (1397583278,), (1397583332,), (1397583333,), (1397583334,), (1397583335,), (1397583336,), (1397583392,), (1397583394,), (1397583396,), (1397583399,), (1397583401,), (1397583403,), (1397583406,), (1397583437,), (1397583438,), (1397583439,), (1397583440,), (1397583512,), (1397584125,), (1397584797,), (1397584865,), (1397585091,), (1397583742,), (1397583816,), (1397583883,), (1397583962,), (1397584032,), (1397584527,), (1397584599,), (1397584666,), (1397584734,), (1397585104,), (1397585109,), (1397585141,), (1397585172,), (1397585204,), (1397585550,), (1397585576,), (1397585578,), (1397585580,), (1397585606,), (1397585790,), (1397585825,), (1397585865,), (1397585970,), (1397586460,), (1397586492,), (1397586523,), (1397586558,), (1397586590,), (1397586681,), (1397586741,), (1397586742,), (1397586743,), (1397586766,), (1397586801,), (1397586987,), (1397587015,), (1397587049,), (1397587085,), (1397587118,), (1397587154,), (1397587554,), (1397587611,), (1397587645,), (1397587686,), (1397587719,), (1397587759,), (1397587912,), (1397587950,), (1397587984,), (1397588019,), (1397588189,), (1397588226,), (1397588271,), (1397588307,), (1397588347,), (1397588393,), (1397588733,), (1397588802,), (1397588853,), (1397589013,), (1397589014,), (1397589015,), (1397589033,), (1397589074,), (1397589117,), (1397589339,), (1397589368,), (1397589385,), (1397589425,), (1397589753,), (1397589799,), (1397589834,), (1397589867,), (1397589905,), (1397590036,), (1397590037,), (1397590039,), (1397590040,), (1397590042,), (1397590581,), (1397590442,), (1397590501,), (1397590538,), (1397590569,), (1397590786,), (1397590790,), (1397590792,), (1397590793,), (1397590795,), (1397590797,), (1397590812,), (1397590813,), (1397590814,), (1397590815,), (1397590849,), (1397590850,), (1397590851,), (1397590853,), (1397590855,), (1397590857,), (1397590907,), (1397590995,), (1397591108,), (1397591143,), (1397591177,), (1397591213,), (1397591258,), (1397591291,), (1397591544,), (1397591577,), (1397591613,), (1397591648,), (1397591654,), (1397591772,), (1397591807,), (1397591841,), (1397591902,), (1397591935,), (1397592162,), (1397592190,), (1397592207,), (1397592214,), (1397592217,), (1397592220,), (1397592244,), (1397592245,), (1397592246,), (1397592247,), (1397592290,), (1397592291,), (1397592320,), (1397592321,), (1397592323,), (1397592325,), (1397592342,), (1397592343,), (1397592344,), (1397592389,), (1397592390,), (1397592403,), (1397592404,), (1397592406,), (1397592408,), (1397592488,), (1397592490,), (1397592491,), (1397592493,), (1397592577,), (1397592578,), (1397592579,), (1397592617,), (1397592620,), (1397592627,), (1397592631,), (1397592632,), (1397592633,), (1397592640,), (1397592688,), (1397592694,), (1397592700,), (1397592708,), (1397592818,), (1397592769,), (1397592770,), (1397592780,), (1397592805,), (1397592812,), (1397592848,), (1397592849,), (1397592850,), (1397592851,), (1397592853,), (1397593038,), (1397593039,), (1397593040,), (1397593041,), (1397593043,), (1397593045,), (1397593059,), (1397593060,), (1397593061,), (1397593062,), (1397593119,), (1397593120,), (1397593121,), (1397593122,), (1397593124,), (1397593151,), (1397593288,), (1397593349,), (1397593364,), (1397593368,), (1397593431,), (1397593443,), (1397593445,), (1397593467,), (1397593482,), (1397593492,), (1397593514,), (1397593515,), (1397593538,), (1397593542,), (1397593546,), (1397593632,), (1397593667,), (1397593671,), (1397593673,), (1397593685,), (1397593691,), (1397593698,), (1397593700,), (1397593701,), (1397593702,), (1397593707,), (1397593708,), (1397593710,), (1397593712,), (1397593714,), (1397593716,), (1397593724,), (1397593726,), (1397593728,), (1397593731,), (1397593750,), (1397593753,), (1397593758,), (1397593760,), (1397593762,), (1397593771,), (1397593793,), (1397593794,), (1397593795,), (1397593796,), (1397593829,), (1397593849,), (1397593850,), (1397593857,), (1397593859,), (1397593861,), (1397593919,), (1397593921,), (1397593924,), (1397594071,), (1397594043,), (1397594047,), (1397594063,), (1397594069,), (1397594093,), (1397594100,), (1397594114,), (1397594126,), (1397594134,), (1397594156,), (1397594173,), (1397594176,), (1397594177,), (1397594179,), (1397594231,), (1397594232,), (1397594233,), (1397594235,), (1397594239,), (1397594243,), (1397594253,), (1397594255,), (1397594261,), (1397594262,), (1397594263,), (1397594265,), (1397594267,), (1397594289,), (1397594291,), (1397594293,), (1397594295,), (1397594296,), (1397594297,), (1397594298,), (1397594352,), (1397594359,), (1397594363,), (1397594364,), (1397594383,), (1397594407,), (1397594463,), (1397594464,), (1397594484,), (1397594515,), (1397594517,), (1397594546,), (1397594550,), (1397594551,), (1397594552,), (1397594553,), (1397594584,), (1397594649,), (1397594651,), (1397594653,), (1397594655,), (1397594672,), (1397594674,), (1397594675,), (1397594676,), (1397594689,), (1397594694,), (1397594703,), (1397594704,), (1397594705,), (1397594754,), (1397594756,), (1397594764,), (1397594765,), (1397594767,), (1397594769,), (1397594812,), (1397594815,), (1397594817,), (1397594819,), (1397594821,), (1397594823,), (1397594847,), (1397594856,), (1397594861,), (1397594865,), (1397594866,), (1397594882,), (1397594955,), (1397594988,), (1397594990,), (1397595025,), (1397594900,), (1397594932,), (1397594936,), (1397594937,), (1397594938,), (1397595042,), (1397595043,), (1397595052,), (1397595054,), (1397595072,), (1397595085,), (1397595086,), (1397595087,), (1397595088,), (1397595089,), (1397595125,), (1397595127,), (1397595132,), (1397595137,), (1397595141,), (1397595148,), (1397595169,), (1397595182,), (1397595194,), (1397595318,), (1397595320,), (1397595321,), (1397595336,), (1397595355,), (1397595382,), (1397595405,), (1397595406,), (1397595407,), (1397595408,), (1397595464,), (1397595477,), (1397595490,), (1397595496,), (1397595498,), (1397595500,), (1397595535,), (1397595567,), (1397595600,), (1397595602,), (1397595604,), (1397595608,), (1397595622,), (1397595623,), (1397595624,), (1397595625,), (1397595626,), (1397595632,), (1397595640,), (1397595643,), (1397595646,), (1397595664,), (1397595666,), (1397595668,), (1397595671,), (1397595674,), (1397595688,), (1397595689,), (1397595690,), (1397595691,), (1397595750,), (1397595751,), (1397595753,), (1397595755,), (1397595757,), (1397595759,), (1397595766,), (1397595768,), (1397595769,), (1397595771,), (1397595801,), (1397595809,), (1397595812,), (1397595814,), (1397595818,), (1397595820,), (1397595850,), (1397595843,), (1397595844,), (1397595846,), (1397595847,), (1397595906,), (1397595907,), (1397595908,), (1397595910,), (1397595913,), (1397595927,), (1397596034,), (1397596035,), (1397596036,), (1397596037,), (1397596039,), (1397596294,), (1397596332,), (1397596398,), (1397596434,), (1397596467,), (1397596502,), (1397596540,), (1397596542,), (1397596562,), (1397596601,), (1397596635,), (1397596677,), (1397596679,), (1397596682,), (1397596795,), (1397596796,), (1397596874,), (1397596891,), (1397596893,), (1397597025,), (1397597085,), (1397597094,), (1397597096,), (1397597145,), (1397597180,), (1397597181,), (1397597182,), (1397597183,), (1397597185,), (1397597211,), (1397597231,), (1397597331,), (1397597764,), (1397597771,), (1397597772,), (1397597774,), (1397597777,), (1397597779,), (1397597790,), (1397597797,), (1397597798,), (1397597800,), (1397597804,), (1397597806,), (1397597815,), (1397597816,), (1397597817,), (1397597818,), (1397597853,), (1397597854,), (1397597855,), (1397597856,), (1397597863,), (1397597878,), (1397597924,), (1397597925,), (1397597941,), (1397597983,), (1397597998,), (1397598011,), (1397598034,), (1397598056,), (1397598063,), (1397598069,), (1397598070,), (1397598073,), (1397598093,), (1397598095,), (1397598097,), (1397598160,), (1397598150,), (1397598152,), (1397598154,), (1397598157,), (1397598188,), (1397598189,), (1397598190,), (1397598191,), (1397598193,), (1397598218,), (1397598231,), (1397598232,), (1397598233,), (1397598267,), (1397598268,), (1397598269,), (1397598270,), (1397598272,), (1397598274,), (1397598315,), (1397598316,), (1397598317,), (1397598318,), (1397598320,), (1397598345,), (1397598346,), (1397598348,), (1397598350,), (1397598370,), (1397598372,), (1397598374,), (1397598375,), (1397598378,), (1397598381,), (1397598440,), (1397598448,), (1397598450,), (1397598483,), (1397598485,), (1397598486,), (1397598489,), (1397598492,), (1397598495,), (1397598517,), (1397598518,), (1397598519,), (1397598572,), (1397598573,), (1397598575,), (1397598578,), (1397598588,), (1397598589,), (1397598590,), (1397598591,), (1397598593,), (1397598619,), (1397598620,), (1397598621,), (1397598622,), (1397598624,), (1397598649,), (1397598650,), (1397598651,), (1397598652,), (1397598654,), (1397598679,), (1397598680,), (1397598681,), (1397598682,), (1397598684,), (1397598703,), (1397598706,), (1397598708,), (1397598711,), (1397598715,), (1397598788,), (1397598781,), (1397598782,), (1397598783,), (1397598784,), (1397598786,), (1397598796,), (1397598797,), (1397598798,), (1397598799,), (1397598816,), (1397598817,), (1397598818,), (1397598819,), (1397598821,), (1397598823,), (1397598836,), (1397598837,), (1397598838,), (1397598840,), (1397598846,), (1397598853,), (1397598874,), (1397598875,), (1397598876,), (1397598877,), (1397598878,), (1397598879,), (1397598881,), (1397598883,), (1397598885,), (1397598887,), (1397598890,), (1397598891,), (1397598892,), (1397598893,), (1397598914,), (1397598921,), (1397598922,), (1397598923,), (1397598925,), (1397598927,), (1397598932,), (1397598935,), (1397598938,), (1397598940,), (1397598943,), (1397598998,), (1397598999,), (1397599000,), (1397599001,), (1397599003,), (1397599004,), (1397599020,), (1397599021,), (1397599031,), (1397599039,), (1397599046,), (1397599071,), (1397599075,), (1397599076,), (1397599077,), (1397599086,), (1397599087,), (1397599088,), (1397599089,), (1397599091,), (1397599156,), (1397599157,), (1397599158,), (1397599159,), (1397599161,), (1397599163,), (1397599177,), (1397599178,), (1397599180,), (1397599181,), (1397599183,), (1397599186,), (1397599196,), (1397599197,), (1397599198,), (1397599199,), (1397599204,), (1397599205,), (1397599303,), (1397599337,), (1397599368,), (1397599402,), (1397599200,), (1397599201,), (1397599202,), (1397599203,), (1397599551,), (1397599583,), (1397599616,), (1397599634,), (1397599635,), (1397599636,), (1397599675,), (1397599709,), (1397599741,), (1397599774,), (1397599869,), (1397599870,), (1397599871,), (1397599872,), (1397599873,), (1397599895,), (1397600394,), (1397600458,), (1397600522,), (1397600587,), (1397601071,), (1397601072,), (1397601073,), (1397601074,), (1397601099,), (1397601133,), (1397601491,), (1397601536,), (1397601561,), (1397601582,), (1397601600,), (1397601633,), (1397601700,), (1397601702,), (1397601703,), (1397601712,), (1397601927,), (1397601958,), (1397601993,), (1397602032,), (1397602071,), (1397602105,), (1397602260,), (1397602301,), (1397602336,), (1397602461,), (1397602499,), (1397602532,), (1397602566,), (1397602811,), (1397602844,), (1397602874,), (1397602906,), (1397602941,), (1397602981,), (1397603495,), (1397603526,), (1397603559,), (1397603613,), (1397603739,), (1397603740,), (1397603750,), (1397603782,), (1397603817,), (1397603854,), (1397604012,), (1397604043,), (1397604077,), (1397604104,), (1397604106,), (1397604171,), (1397604201,), (1397604233,), (1397604269,), (1397604856,), (1397604681,), (1397604716,), (1397604752,), (1397604783,), (1397604818,), (1397605115,), (1397605212,), (1397605213,), (1397605215,), (1397605303,), (1397605339,), (1397605369,), (1397605399,), (1397605418,), (1397605562,), (1397605563,), (1397605564,), (1397605566,), (1397605568,), (1397605570,), (1397605576,), (1397605582,), (1397605586,), (1397605713,), (1397605714,), (1397605715,), (1397605716,), (1397605732,), (1397605736,), (1397605737,), (1397605738,), (1397605740,), (1397605741,), (1397605746,), (1397605747,), (1397605780,), (1397605786,), (1397605792,), (1397605808,), (1397605817,), (1397605818,), (1397605819,), (1397605821,), (1397605887,), (1397605885,), (1397605886,), (1397605893,), (1397605894,), (1397605895,), (1397605896,), (1397605898,), (1397605924,), (1397605925,), (1397605926,), (1397605927,), (1397605929,), (1397605934,), (1397605935,), (1397605936,), (1397605938,), (1397605946,), (1397605947,), (1397605948,), (1397605949,), (1397605951,), (1397605961,), (1397606028,), (1397606033,), (1397606036,), (1397606042,), (1397606105,), (1397606113,), (1397606114,), (1397606115,), (1397606117,), (1397606119,), (1397606261,), (1397606293,), (1397606294,), (1397606296,), (1397606298,), (1397606300,), (1397606308,), (1397606309,), (1397606310,), (1397606311,), (1397606312,), (1397606313,), (1397606315,), (1397606317,), (1397606319,), (1397606360,), (1397606361,), (1397606362,), (1397606363,), (1397606364,), (1397606365,), (1397606395,), (1397606396,), (1397606397,), (1397606405,), (1397606406,), (1397606407,), (1397606408,), (1397606429,), (1397606430,), (1397606446,), (1397606447,), (1397606458,), (1397606472,), (1397606477,), (1397606478,), (1397606480,), (1397606486,), (1397606772,), (1397606738,), (1397606754,), (1397606873,), (1397606910,), (1397606911,), (1397606912,), (1397606939,), (1397606940,), (1397606941,), (1397606942,), (1397606944,), (1397607095,), (1397607133,), (1397607169,), (1397607203,), (1397607239,), (1397607282,), (1397607290,), (1397607293,), (1397607302,), (1397607303,), (1397607304,), (1397607306,), (1397607308,), (1397607318,), (1397607319,), (1397607328,), (1397607330,), (1397607337,), (1397607343,), (1397607378,), (1397607379,), (1397607380,), (1397607381,), (1397607402,), (1397607407,), (1397607408,), (1397607426,), (1397607431,), (1397607517,), (1397607518,), (1397607519,), (1397607547,), (1397607748,), (1397607749,), (1397607750,), (1397607751,), (1397607781,), (1397607796,), (1397607871,), (1397607872,), (1397607873,), (1397607874,), (1397607929,), (1397607930,), (1397607931,), (1397607932,), (1397607940,), (1397607977,), (1397608052,), (1397608053,), (1397608054,), (1397608055,), (1397608060,), (1397608063,), (1397608066,), (1397608067,), (1397608069,), (1397608071,), (1397608074,), (1397608078,), (1397608079,), (1397613465,), (1397613437,), (1397613464,), (1397613565,), (1397613596,), (1397613597,), (1397613619,), (1397613627,), (1397613646,), (1397613671,), (1397613689,), (1397613721,), (1397613736,), (1397613802,), (1397613813,), (1397613845,), (1397613877,), (1397614262,), (1397614296,), (1397614325,), (1397614355,), (1397614388,), (1397614421,), (1397614650,), (1397614651,), (1397614656,), (1397614688,), (1397614720,), (1397614744,), (1397614944,), (1397614982,), (1397615021,), (1397615054,), (1397615092,), (1397615124,), (1397615210,), (1397615211,), (1397615213,), (1397615220,), (1397615257,), (1397615289,), (1397615322,), (1397615356,), (1397615396,), (1397615398,), (1397615493,), (1397615508,), (1397615527,), (1397615550,), (1397616081,), (1397616116,), (1397616133,), (1397616149,), (1397616181,), (1397616258,), (1397616715,), (1397616713,), (1397616714,), (1397616864,), (1397616870,), (1397616871,), (1397616872,), (1397616880,), (1397616991,), (1397616992,), (1397616993,), (1397616995,), (1397617028,), (1397617039,), (1397617073,), (1397617077,), (1397617078,), (1397617178,), (1397617231,), (1397617288,), (1397617352,), (1397617426,), (1397617488,), (1397617843,), (1397617899,), (1397617927,), (1397617940,), (1397617972,), (1397618209,), (1397618244,), (1397618282,), (1397618314,), (1397618316,), (1397618318,), (1397618523,), (1397618554,), (1397618566,), (1397618601,), (1397618635,), (1397618937,), (1397618943,), (1397618944,), (1397618951,), (1397618957,), (1397618959,), (1397618991,), (1397618996,), (1397618997,), (1397618998,), (1397619065,), (1397619066,), (1397619067,), (1397619068,), (1397619070,), (1397619072,), (1397619089,), (1397619090,), (1397619091,), (1397619092,), (1397619256,), (1397619289,), (1397619325,), (1397619359,), (1397619399,), (1397619433,), (1397619710,), (1397619712,), (1397619719,), (1397619749,), (1397619782,), (1397619827,), (1397619925,), (1397619961,), (1397619995,), (1397620029,), (1397620062,), (1397620116,), (1397620316,), (1397620366,), (1397620403,), (1397620244,), (1397620280,), (1397620301,), (1397620303,), (1397620304,), (1397620526,), (1397620530,), (1397620533,), (1397620546,), (1397620591,), (1397620622,), (1397620743,), (1397620781,), (1397620817,), (1397620962,), (1397621022,), (1397621083,), (1397621118,), (1397621178,), (1397621252,), (1397621592,), (1397621623,), (1397621654,), (1397621670,), (1397621850,), (1397621873,), (1397621914,), (1397621954,), (1397621971,), (1397622012,), (1397622058,), (1397622062,), (1397622063,), (1397622066,), (1397622087,), (1397622129,), (1397622163,), (1397622197,), (1397622216,), (1397622233,), (1397622507,), (1397622543,), (1397622576,), (1397622610,), (1397622644,), (1397622678,), (1397622830,), (1397622860,), (1397622889,), (1397622921,), (1397623051,), (1397623089,), (1397623129,), (1397623162,), (1397623194,), (1397623229,), (1397623507,), (1397623570,), (1397623623,), (1397623651,), (1397623887,), (1397623919,), (1397623945,), (1397623948,), (1397624076,), (1397624078,), (1397624081,), (1397624085,), (1397624088,), (1397624091,), (1397624146,), (1397624148,), (1397624149,), (1397624185,), (1397624403,), (1397624417,), (1397624434,), (1397624435,), (1397624437,), (1397624440,), (1397624457,), (1397624450,), (1397624453,), (1397624454,), (1397624455,), (1397624473,), (1397624475,), (1397624476,), (1397624477,), (1397624479,), (1397624633,), (1397624665,), (1397624701,), (1397624749,), (1397624762,), (1397624764,), (1397624940,), (1397624941,), (1397624951,), (1397624981,), (1397624995,), (1397624997,), (1397624999,), (1397625001,), (1397625003,), (1397625007,), (1397625008,), (1397625009,), (1397625011,), (1397625013,), (1397625217,), (1397625219,), (1397625244,), (1397625292,), (1397625300,), (1397625652,), (1397625687,), (1397625718,), (1397625747,), (1397625780,), (1397625813,), (1397625845,), (1397625876,), (1397625904,), (1397625906,), (1397626014,), (1397626016,), (1397626017,), (1397626018,), (1397626020,), (1397626022,), (1397626041,), (1397626051,), (1397626065,), (1397626068,), (1397626094,), (1397626096,), (1397626097,), (1397626098,), (1397626100,), (1397626102,), (1397626309,), (1397626311,), (1397626313,), (1397626340,), (1397626503,), (1397626505,), (1397626506,), (1397626507,), (1397626509,), (1397626511,), (1397626607,), (1397626620,), (1397626650,), (1397626653,), (1397626675,), (1397626691,), (1397626708,), (1397626727,), (1397626728,), (1397626733,), (1397626738,), (1397626739,), (1397626744,), (1397626748,), (1397626750,), (1397626800,), (1397626860,), (1397626857,), (1397626858,), (1397626859,), (1397626875,), (1397626876,), (1397626877,), (1397626878,), (1397626881,), (1397626899,), (1397626900,), (1397626901,), (1397626902,), (1397626905,), (1397626942,), (1397626945,), (1397626946,), (1397626949,), (1397626952,), (1397627022,), (1397627026,), (1397627028,), (1397627032,), (1397627037,), (1397627048,), (1397627099,), (1397627100,), (1397627101,), (1397627102,), (1397627176,), (1397627177,), (1397627189,), (1397627210,), (1397627218,), (1397627230,), (1397627244,), (1397627245,), (1397627246,), (1397627247,), (1397627250,), (1397627286,), (1397627288,), (1397627291,), (1397627295,), (1397627298,), (1397627300,), (1397627313,), (1397627327,), (1397627334,), (1397627348,), (1397627354,), (1397627364,), (1397627376,), (1397627412,), (1397627444,), (1397627635,), (1397627671,), (1397627702,), (1397627703,), (1397627706,), (1397627746,), (1397627747,), (1397627748,), (1397627749,), (1397627752,), (1397627785,), (1397627786,), (1397627787,), (1397627788,), (1397627791,), (1397627811,), (1397627851,), (1397627872,), (1397627874,), (1397627888,), (1397627889,), (1397627890,), (1397627894,), (1397627904,), (1397627970,), (1397627959,), (1397627963,), (1397627964,), (1397627965,), (1397627968,), (1397627980,), (1397627981,), (1397627982,), (1397627983,), (1397627986,), (1397628008,), (1397628015,), (1397628016,), (1397628017,), (1397628020,), (1397628048,), (1397628050,), (1397628054,), (1397628058,), (1397628062,), (1397628069,), (1397628077,), (1397628079,), (1397628080,), (1397628081,), (1397628083,), (1397628084,), (1397628087,), (1397628090,), (1397628093,), (1397628102,), (1397628103,), (1397628104,), (1397628105,), (1397628132,), (1397628133,), (1397628134,), (1397628137,), (1397628140,), (1397628142,), (1397628153,), (1397628166,), (1397628168,), (1397628175,), (1397628177,), (1397628226,), (1397628233,), (1397628239,), (1397628240,), (1397628243,), (1397628264,), (1397628265,), (1397628266,), (1397628267,), (1397628270,), (1397628273,), (1397628286,), (1397628287,), (1397628288,), (1397628289,), (1397628302,), (1397628303,), (1397628304,), (1397628305,), (1397628308,), (1397628311,), (1397628329,), (1397628330,), (1397628331,), (1397628332,), (1397628433,), (1397628488,), (1397628507,), (1397628512,), (1397628514,), (1397628517,), (1397628907,), (1397628981,), (1397629377,), (1397629244,), (1397629311,), (1397629777,), (1397629819,), (1397629857,), (1397629880,), (1397629910,), (1397629948,), (1397630091,), (1397630092,), (1397630093,), (1397630094,), (1397630096,), (1397630098,), (1397630117,), (1397630118,), (1397630125,), (1397630137,), (1397630142,), (1397630143,), (1397630152,), (1397630300,), (1397630333,), (1397630367,), (1397630398,), (1397630431,), (1397630465,), (1397630885,), (1397630928,), (1397630963,), (1397630995,), (1397631417,), (1397631425,), (1397631439,), (1397631458,), (1397631462,), (1397631724,), (1397631726,), (1397631753,), (1397631788,), (1397631799,), (1397631807,), (1397631841,), (1397631842,), (1397631872,), (1397631878,), (1397631894,), (1397631949,), (1397631984,), (1397632021,), (1397632039,), (1397632042,), (1397632043,), (1397632044,), (1397632045,), (1397632046,), (1397632048,), (1397632219,), (1397632220,), (1397632221,), (1397632222,), (1397632224,), (1397632226,), (1397632232,), (1397632233,), (1397632234,), (1397632237,), (1397632317,), (1397632323,), (1397632325,), (1397632331,), (1397632333,), (1397632335,), (1397632385,), (1397632394,), (1397632409,), (1397632417,), (1397632472,), (1397632590,), (1397632467,), (1397632468,), (1397632469,), (1397632470,), (1397632479,), (1397632485,), (1397632486,), (1397632488,), (1397632500,), (1397632507,), (1397632543,), (1397632559,), (1397632562,), (1397632575,), (1397632593,), (1397632595,), (1397632597,), (1397632599,), (1397632725,), (1397632756,), (1397632790,), (1397632824,), (1397632858,), (1397632889,), (1397633009,), (1397633010,), (1397633021,), (1397633049,), (1397633164,), (1397633171,), (1397633174,), (1397633179,), (1397633186,), (1397633204,), (1397633213,), (1397633221,), (1397633222,), (1397633224,), (1397633226,), (1397633231,), (1397633232,), (1397633233,), (1397633234,), (1397633251,), (1397633252,), (1397633253,), (1397633254,), (1397633256,), (1397633257,), (1397633272,), (1397633274,), (1397633278,), (1397633281,), (1397633285,), (1397633332,), (1397633333,), (1397633334,), (1397633337,), (1397633385,), (1397633387,), (1397633389,), (1397633392,), (1397633395,), (1397633405,), (1397633406,), (1397633407,), (1397633408,), (1397633410,), (1397633471,), (1397633479,), (1397633483,), (1397633492,), (1397633539,), (1397633543,), (1397633600,), (1397633617,), (1397633626,), (1397633628,), (1397633629,), (1397633664,), (1397633665,), (1397633667,), (1397633668,), (1397633670,), (1397633671,), (1397633673,), (1397633674,), (1397633700,), (1397633732,), (1397633686,), (1397633688,), (1397633693,), (1397633698,), (1397633711,), (1397633712,), (1397633713,), (1397633716,), (1397633718,), (1397633719,), (1397633723,), (1397633726,), (1397633731,), (1397633733,), (1397633735,), (1397633737,), (1397633739,), (1397633744,), (1397633747,), (1397633767,), (1397633768,), (1397633769,), (1397633770,), (1397633921,), (1397633957,), (1397633960,), (1397633961,), (1397633963,), (1397633965,), (1397634142,), (1397634155,), (1397634163,), (1397634175,), (1397634182,), (1397634264,), (1397634265,), (1397634282,), (1397634288,), (1397634290,), (1397634292,), (1397634331,), (1397634344,), (1397634350,), (1397634435,), (1397634452,), (1397634454,), (1397634456,), (1397634458,), (1397634459,), (1397634464,), (1397634465,), (1397634472,), (1397634598,), (1397634605,), (1397634614,), (1397634621,), (1397634622,), (1397634623,), (1397634624,), (1397634741,), (1397635424,), (1397635417,), (1397635419,), (1397635421,), (1397635642,), (1397635675,), (1397635740,), (1397635775,), (1397635919,), (1397635920,), (1397635921,), (1397635922,), (1397635924,), (1397635926,), (1397635965,), (1397636011,), (1397636046,), (1397636278,), (1397636282,), (1397636289,), (1397636295,), (1397636299,), (1397636301,), (1397636329,), (1397636330,), (1397636331,), (1397636332,), (1397636334,), (1397636336,), (1397636341,), (1397636342,), (1397636367,), (1397636384,), (1397636423,), (1397636424,), (1397636431,), (1397636433,), (1397636523,), (1397636524,), (1397636525,), (1397636526,), (1397636587,), (1397636590,), (1397636591,), (1397636592,), (1397636594,), (1397636640,), (1397636643,), (1397636645,), (1397636647,), (1397636649,), (1397636651,), (1397636665,), (1397636671,), (1397636672,), (1397636686,), (1397636689,), (1397636728,), (1397636722,), (1397636724,), (1397636726,), (1397636921,), (1397636988,), (1397637073,), (1397637149,), (1397637212,), (1397637652,), (1397637686,), (1397637739,), (1397637796,), (1397637866,), (1397637925,), (1397637992,), (1397638051,), (1397638604,), (1397638646,), (1397638685,), (1397638711,), (1397638713,), (1397638715,), (1397638899,), (1397638930,), (1397638933,), (1397638934,), (1397639067,), (1397639096,), (1397639111,), (1397639115,), (1397639119,), (1397639124,), (1397639448,), (1397639514,), (1397639546,), (1397639582,), (1397639619,), (1397639662,), (1397639995,), (1397639996,), (1397639997,), (1397639999,), (1397640001,), (1397640002,), (1397640041,), (1397640066,), (1397640112,), (1397640244,), (1397640277,), (1397640309,), (1397640326,), (1397640338,), (1397640454,), (1397640459,), (1397640460,), (1397640732,), (1397647068,), (1397647069,), (1397647070,), (1397647071,), (1397647276,), (1397647277,), (1397647278,), (1397647279,), (1397647281,), (1397647283,), (1397647288,), (1397647289,), (1397647290,), (1397647291,), (1397647323,), (1397647324,), (1397647363,), (1397647364,), (1397647365,), (1397647366,), (1397647368,), (1397647392,), (1397647440,), (1397647449,), (1397647452,), (1397647455,), (1397647521,), (1397647510,), (1397647511,), (1397647512,), (1397647566,), (1397647568,), (1397647569,), (1397647570,), (1397647587,), (1397647588,), (1397647589,), (1397647598,), (1397647599,), (1397647600,), (1397647602,), (1397647604,), (1397647611,), (1397647615,), (1397647616,), (1397647622,), (1397647623,), (1397647624,), (1397647626,), (1397647627,), (1397647633,), (1397647636,), (1397647639,), (1397647640,), (1397647653,), (1397647654,), (1397647655,), (1397647656,), (1397647663,), (1397647664,), (1397647751,), (1397647752,), (1397647753,), (1397647754,), (1397647756,), (1397647798,), (1397647799,), (1397647800,), (1397647801,), (1397647821,), (1397647822,), (1397647823,), (1397647824,), (1397647826,), (1397647862,), (1397647863,), (1397647864,), (1397647865,), (1397647867,), (1397647885,), (1397647886,), (1397648426,), (1397648428,), (1397648431,), (1397648466,), (1397648482,), (1397648502,), (1397648508,), (1397648526,), (1397648512,), (1397648521,), (1397648523,), (1397648848,), (1397648881,), (1397648914,), (1397648973,), (1397649008,), (1397649046,), (1397649277,), (1397649278,), (1397649279,), (1397649485,), (1397649519,), (1397649535,), (1397649536,), (1397649539,), (1397649609,), (1397649626,), (1397649628,), (1397649632,), (1397649689,), (1397649694,), (1397649697,), (1397649698,), (1397649700,), (1397649711,), (1397649713,), (1397649714,), (1397649715,), (1397649717,), (1397649735,), (1397649748,), (1397649750,), (1397649751,), (1397649758,), (1397649761,), (1397649774,), (1397649775,), (1397649776,), (1397649778,), (1397649780,), (1397649782,), (1397649795,), (1397649797,), (1397649801,), (1397649803,), (1397649804,), (1397649855,), (1397649857,), (1397649858,), (1397649859,), (1397649861,), (1397649863,), (1397649945,), (1397649976,), (1397650007,), (1397650022,), (1397650024,), (1397650026,), (1397650038,), (1397650040,), (1397650042,), (1397650045,), (1397650078,), (1397650080,), (1397650082,), (1397650086,), (1397650101,), (1397650112,), (1397650131,), (1397650132,), (1397650133,), (1397650134,), (1397650239,), (1397650179,), (1397650180,), (1397650181,), (1397650182,), (1397650206,), (1397650363,), (1397650392,), (1397650394,), (1397650396,), (1397650507,), (1397650519,), (1397650520,), (1397650522,), (1397650525,), (1397650527,), (1397650620,), (1397650653,), (1397650685,), (1397650717,), (1397650750,), (1397650783,), (1397650808,), (1397650810,), (1397650811,), (1397650813,), (1397650817,), (1397650819,), (1397650821,), (1397650823,), (1397650839,), (1397650895,), (1397650932,), (1397650986,), (1397651004,), (1397651007,), (1397651009,), (1397651083,), (1397651104,), (1397651130,), (1397651132,), (1397651134,), (1397651135,), (1397651138,), (1397651140,), (1397651149,), (1397651151,), (1397651160,), (1397651173,), (1397651177,), (1397651179,), (1397651187,), (1397651189,), (1397651191,), (1397651192,), (1397651224,), (1397651226,), (1397651227,), (1397651229,), (1397651232,), (1397651262,), (1397651264,), (1397651266,), (1397651267,), (1397651270,), (1397651285,), (1397651287,), (1397651288,), (1397651301,), (1397651302,), (1397651304,), (1397651307,), (1397651309,), (1397651317,), (1397651403,), (1397651405,), (1397651407,), (1397651429,), (1397651424,), (1397651426,), (1397651427,), (1397651454,), (1397651465,), (1397651474,), (1397651477,), (1397651480,), (1397651508,), (1397651510,), (1397651511,), (1397651526,), (1397651528,), (1397651530,), (1397651625,), (1397651626,), (1397651628,), (1397651661,), (1397651663,), (1397651664,), (1397651666,), (1397651669,), (1397651706,), (1397651708,), (1397651709,), (1397651711,), (1397651734,), (1397651736,), (1397651738,), (1397651783,), (1397651788,), (1397651811,), (1397651814,), (1397651816,), (1397651824,), (1397651834,), (1397651837,), (1397651838,), (1397651840,), (1397651842,), (1397651853,), (1397651854,), (1397651856,), (1397651900,), (1397651901,), (1397651903,), (1397651905,), (1397651918,), (1397651920,), (1397651921,), (1397651923,), (1397651926,), (1397651985,), (1397651986,), (1397651988,), (1397652132,), (1397652169,), (1397652172,), (1397652337,), (1397652240,), (1397652262,), (1397652301,), (1397652355,), (1397652396,), (1397652398,), (1397652409,), (1397652438,), (1397652439,), (1397652440,), (1397652443,), (1397652446,), (1397652550,), (1397652935,), (1397652941,), (1397652948,), (1397652949,), (1397652952,), (1397653539,), (1397653541,), (1397654887,), (1397654815,), (1397654851,), (1397655371,), (1397655426,), (1397655460,), (1397655682,), (1397655761,), (1397655807,), (1397655842,), (1397655878,), (1397655916,), (1397656136,), (1397656143,), (1397656175,), (1397656191,), (1397656192,), (1397656193,), (1397656203,), (1397656217,), (1397656224,), (1397656279,), (1397656280,), (1397656281,), (1397656286,), (1397656289,), (1397656292,), (1397656305,), (1397656307,), (1397656327,), (1397656359,), (1397656388,), (1397656421,), (1397656477,), (1397656752,), (1397656790,), (1397656821,), (1397656852,), (1397656892,), (1397656931,), (1397657554,), (1397657616,), (1397657682,), (1397658526,), (1397658593,), (1397658842,), (1397658847,), (1397658902,), (1397658976,), (1397659554,), (1397659585,), (1397659617,), (1397659618,), (1397659621,), (1397659900,), (1397659881,), (1397659892,), (1397659931,), (1397659937,), (1397659955,), (1397660012,), (1397660013,), (1397660014,), (1397660015,), (1397660017,), (1397660019,), (1397660033,), (1397660034,), (1397660035,), (1397660037,), (1397660040,), (1397660045,), (1397660049,), (1397660051,), (1397660054,), (1397660059,), (1397660084,), (1397660086,), (1397660088,), (1397660090,), (1397660091,), (1397660128,), (1397660166,), (1397660174,), (1397660248,), (1397660249,), (1397660250,), (1397660251,), (1397660258,), (1397660259,), (1397660260,), (1397660261,), (1397660263,), (1397660265,), (1397660274,), (1397660275,), (1397660276,), (1397660281,), (1397660316,), (1397660317,), (1397660318,), (1397660333,), (1397660334,), (1397660335,), (1397660336,), (1397660338,), (1397660343,), (1397660376,), (1397660377,), (1397660378,), (1397660379,), (1397660381,), (1397660383,), (1397660402,), (1397660403,), (1397660406,), (1397660414,), (1397660431,), (1397660445,), (1397660450,), (1397660453,), (1397660469,), (1397660477,), (1397660509,), (1397660514,), (1397660515,), (1397660517,), (1397660518,), (1397660520,), (1397660522,), (1397660557,), (1397660544,), (1397660546,), (1397660548,), (1397660551,), (1397660554,), (1397660567,), (1397660568,), (1397660569,), (1397660570,), (1397660618,), (1397660619,), (1397660620,), (1397660621,), (1397660623,), (1397660650,), (1397660651,), (1397660652,), (1397660653,), (1397660655,), (1397660664,), (1397660670,), (1397660674,), (1397660776,), (1397660808,), (1397660843,), (1397660848,), (1397660850,), (1397660852,), (1397660888,), (1397660895,), (1397660896,), (1397660897,), (1397660899,), (1397660941,), (1397660942,), (1397660943,), (1397660944,), (1397660956,), (1397660962,), (1397660963,), (1397660965,), (1397660967,), (1397660987,), (1397661030,), (1397661060,), (1397661064,), (1397661070,), (1397661105,), (1397661106,), (1397661108,), (1397661110,), (1397661127,), (1397661128,), (1397661129,), (1397661130,), (1397661132,), (1397661151,), (1397661180,), (1397661188,), (1397661189,), (1397661190,), (1397661192,), (1397661195,), (1397661279,), (1397661280,), (1397661281,), (1397661287,), (1397661416,), (1397661422,), (1397661429,), (1397661433,), (1397661437,), (1397661445,), (1397661656,), (1397661692,), (1397661711,), (1397661715,), (1397661718,), (1397661786,), (1397661779,), (1397661781,), (1397661783,), (1397661810,), (1397661811,), (1397661812,), (1397661817,), (1397661820,), (1397661858,), (1397661859,), (1397661860,), (1397661861,), (1397661863,), (1397661879,), (1397661880,), (1397661881,), (1397661883,), (1397661885,), (1397661886,), (1397661896,), (1397661898,), (1397661900,), (1397661902,), (1397661904,), (1397661905,), (1397662138,), (1397662139,), (1397662216,), (1397662217,), (1397662218,), (1397662219,), (1397662257,), (1397662258,), (1397662291,), (1397662292,), (1397662301,), (1397662343,), (1397662345,), (1397662348,), (1397662351,), (1397662353,), (1397662370,), (1397662372,), (1397662374,), (1397662377,), (1397662434,), (1397662436,), (1397662439,), (1397662441,), (1397662443,), (1397662445,), (1397662449,), (1397662453,), (1397662454,), (1397662455,), (1397662456,), (1397662468,), (1397662460,), (1397662462,), (1397662464,), (1397662466,), (1397662467,), (1397662530,), (1397662531,), (1397662532,), (1397662533,), (1397662535,), (1397662574,), (1397662575,), (1397662576,), (1397662589,), (1397662590,), (1397662591,), (1397662593,), (1397662595,), (1397662630,), (1397662631,), (1397662632,), (1397662633,), (1397662635,), (1397662637,), (1397662652,), (1397662653,), (1397662654,), (1397662672,), (1397662673,), (1397662674,), (1397662682,), (1397662689,), (1397662696,), (1397662744,), (1397662749,), (1397662750,), (1397662757,), (1397662758,), (1397662759,), (1397662761,), (1397662784,), (1397662785,), (1397662786,), (1397662800,), (1397662807,), (1397662841,), (1397662842,), (1397662843,), (1397662882,), (1397662883,), (1397662884,), (1397662885,), (1397662887,), (1397662906,), (1397662914,), (1397662915,), (1397662916,), (1397662918,), (1397662954,), (1397662955,), (1397662957,), (1397662958,), (1397662978,), (1397662975,), (1397662976,), (1397662977,), (1397662983,), (1397662984,), (1397662985,), (1397662986,), (1397662992,), (1397663002,), (1397663071,), (1397663078,), (1397663079,), (1397663080,), (1397663081,), (1397663092,), (1397663093,), (1397663094,), (1397663104,), (1397663111,), (1397663113,), (1397663117,), (1397663118,), (1397663119,), (1397663140,), (1397663141,), (1397663142,), (1397663144,), (1397663146,), (1397663159,), (1397663160,), (1397663161,), (1397663162,), (1397663164,), (1397663166,), (1397663184,), (1397663185,), (1397663186,), (1397663228,), (1397663229,), (1397663230,), (1397663231,), (1397663233,), (1397663282,), (1397663283,), (1397663305,), (1397663306,), (1397663307,), (1397663326,), (1397663327,), (1397663328,), (1397663367,), (1397663369,), (1397663371,), (1397663374,), (1397663377,), (1397663380,), (1397663438,), (1397663439,), (1397663440,), (1397663441,), (1397663443,), (1397663483,), (1397663484,), (1397663501,), (1397663506,), (1397663508,), (1397663510,), (1397663514,), (1397663515,), (1397663519,), (1397663521,), (1397663522,), (1397663523,), (1397663524,), (1397663555,), (1397663550,), (1397663551,), (1397663552,), (1397663553,), (1397663570,), (1397663577,), (1397663578,), (1397663579,), (1397663581,), (1397663583,), (1397663598,), (1397663599,), (1397663600,), (1397663618,), (1397663619,), (1397663620,), (1397663636,), (1397663651,), (1397663655,), (1397663674,), (1397663675,), (1397663676,), (1397663709,), (1397663710,), (1397663711,), (1397663712,), (1397663755,), (1397663756,), (1397663757,), (1397663758,), (1397663780,), (1397663782,), (1397663785,), (1397663788,), (1397663791,), (1397663794,), (1397663817,), (1397663818,), (1397663819,), (1397663820,), (1397663821,), (1397663822,), (1397663837,), (1397663838,), (1397663839,), (1397663840,), (1397663842,), (1397663844,), (1397663888,), (1397663889,), (1397663890,), (1397663891,), (1397663893,), (1397663901,), (1397663930,), (1397663931,), (1397663932,), (1397663963,), (1397663968,), (1397663969,), (1397663970,), (1397663972,), (1397663978,), (1397663985,), (1397663994,), (1397663995,), (1397664001,), (1397664006,), (1397664054,), (1397664050,), (1397664051,), (1397664052,), (1397664053,), (1397664061,), (1397664063,), (1397664143,), (1397664163,), (1397664164,), (1397664165,), (1397664167,), (1397664168,), (1397664199,), (1397664200,), (1397664201,), (1397664202,), (1397664232,), (1397664233,), (1397664234,), (1397664235,), (1397664237,), (1397664253,), (1397664254,), (1397664255,), (1397664256,), (1397664296,), (1397664298,), (1397664304,), (1397664305,), (1397664321,), (1397664330,), (1397664331,), (1397664332,), (1397664333,), (1397664335,), (1397664344,), (1397664345,), (1397664346,), (1397664347,), (1397664355,), (1397664356,), (1397664357,), (1397664358,), (1397664367,), (1397664375,), (1397664395,), (1397664396,), (1397664397,), (1397664398,), (1397664399,), (1397664401,), (1397664461,), (1397664463,), (1397664465,), (1397664467,), (1397664513,), (1397664515,), (1397664517,), (1397664520,), (1397664522,), (1397664524,), (1397664527,), (1397664529,), (1397664533,), (1397664537,), (1397664543,), (1397664551,), (1397664570,), (1397664574,), (1397664608,), (1397664616,), (1397664622,), (1397664623,), (1397664659,), (1397664671,), (1397664681,), (1397664682,), (1397664683,), (1397664684,), (1397664685,), (1397664713,), (1397664716,), (1397664718,), (1397664720,), (1397664722,), (1397664731,), (1397664732,), (1397664733,), (1397664752,), (1397664753,), (1397664754,), (1397664791,), (1397664810,), (1397664813,), (1397664821,), (1397664827,), (1397664847,), (1397664848,), (1397664849,), (1397664850,), (1397664858,), (1397664983,), (1397664988,), (1397664989,), (1397664990,), (1397665006,), (1397665049,), (1397665050,), (1397665051,), (1397665071,), (1397665072,), (1397665073,), (1397665080,), (1397665096,), (1397665147,), (1397665158,), (1397665163,), (1397665166,), (1397665237,), (1397665238,), (1397665239,), (1397665240,), (1397665404,), (1397665405,), (1397665406,), (1397665407,), (1397665415,), (1397665448,), (1397665571,), (1397665643,), (1397665613,), (1397665641,), (1397665642,), (1397665751,), (1397665752,), (1397665753,), (1397665755,), (1397665757,), (1397665847,), (1397665848,), (1397665849,), (1397665850,), (1397665871,), (1397665872,), (1397665873,), (1397665875,), (1397665877,), (1397665879,), (1397665883,), (1397665894,), (1397665895,), (1397665935,), (1397665964,), (1397665999,), (1397666314,), (1397666317,), (1397666318,), (1397666319,), (1397666376,), (1397666381,), (1397666382,), (1397666385,), (1397666430,), (1397666432,), (1397666462,), (1397666463,), (1397666464,), (1397666465,), (1397666467,), (1397666481,), (1397666482,), (1397666483,), (1397666520,), (1397666531,), (1397666536,), (1397666537,), (1397666562,), (1397666564,), (1397666567,), (1397666573,), (1397666605,), (1397666606,), (1397666607,), (1397666609,), (1397666618,), (1397666625,), (1397666651,), (1397667956,), (1397667955,), (1397667970,), (1397667971,), (1397667972,), (1397667973,), (1397668048,), (1397668054,), (1397668056,), (1397668078,), (1397668080,), (1397668082,), (1397668089,), (1397668096,), (1397668130,), (1397668131,), (1397668148,), (1397668149,), (1397668150,), (1397668165,), (1397668166,), (1397668167,), (1397668168,), (1397668170,), (1397668195,), (1397668196,), (1397668197,), (1397668235,), (1397668236,), (1397668237,), (1397668239,), (1397668241,), (1397668245,), (1397668270,), (1397668272,), (1397668286,), (1397668311,), (1397668315,), (1397668317,), (1397668328,), (1397668330,), (1397668332,), (1397668335,), (1397668338,), (1397668429,), (1397668542,), (1397668543,), (1397668545,), (1397668547,), (1397668585,), (1397668598,), (1397668606,), (1397668607,), (1397668760,), (1397668924,), (1397668960,), (1397668961,), (1397668971,), (1397668974,), (1397669073,), (1397669053,), (1397669054,), (1397669055,), (1397669163,), (1397669165,), (1397669167,), (1397669170,), (1397669243,), (1397669249,), (1397669285,), (1397669286,), (1397669287,), (1397669288,), (1397669290,), (1397669292,), (1397669310,), (1397669311,), (1397669312,), (1397669313,), (1397669315,), (1397669321,), (1397669322,), (1397669323,), (1397669342,), (1397669506,), (1397669507,), (1397669508,), (1397669547,), (1397669548,), (1397669549,), (1397669601,), (1397669602,), (1397669622,), (1397669760,), (1397669794,), (1397669807,), (1397669813,), (1397669815,), (1397669816,), (1397669863,), (1397669864,), (1397669865,), (1397669866,), (1397669871,), (1397669872,), (1397669873,), (1397669874,), (1397669875,), (1397669877,), (1397669929,), (1397669930,), (1397669931,), (1397669932,), (1397669934,), (1397669936,), (1397669959,), (1397669960,), (1397669961,), (1397669963,), (1397669965,), (1397669977,), (1397670007,), (1397670008,), (1397670009,), (1397670010,), (1397670011,), (1397670012,), (1397670014,), (1397670015,), (1397670018,), (1397670039,), (1397670033,), (1397670034,), (1397670035,), (1397670036,), (1397670038,), (1397670057,), (1397670058,), (1397670059,), (1397670060,), (1397670116,), (1397670117,), (1397670118,), (1397670119,), (1397670139,), (1397670140,), (1397670141,), (1397670142,), (1397670144,), (1397670146,), (1397670151,), (1397670152,), (1397670153,), (1397670206,), (1397670207,), (1397670208,), (1397670209,), (1397670211,), (1397670227,), (1397670228,), (1397670229,), (1397670237,), (1397670240,), (1397670246,), (1397670310,), (1397670314,), (1397670315,), (1397670322,), (1397670334,), (1397670336,), (1397670343,), (1397670346,), (1397670348,), (1397670369,), (1397670381,), (1397670385,), (1397670386,), (1397670387,), (1397670389,), (1397670391,), (1397670410,), (1397670411,), (1397670412,), (1397670413,), (1397670428,), (1397670429,), (1397670430,), (1397670431,), (1397670433,), (1397670435,), (1397670487,), (1397670488,), (1397670490,), (1397670501,), (1397670510,), (1397670590,), (1397670597,), (1397670598,), (1397670599,), (1397670604,), (1397670752,), (1397670754,), (1397670755,), (1397670756,), (1397670758,), (1397670760,), (1397670938,), (1397670898,), (1397670930,), (1397670937,), (1397670943,), (1397670944,), (1397670945,), (1397670946,), (1397670948,), (1397670950,), (1397670984,), (1397670998,), (1397670999,), (1397671005,), (1397671016,), (1397671018,), (1397671033,), (1397671035,), (1397671037,), (1397671039,), (1397671041,), (1397671045,), (1397671057,), (1397671058,), (1397671059,), (1397671060,), (1397671062,), (1397671073,), (1397671082,), (1397671107,), (1397671140,), (1397671331,), (1397671356,), (1397671377,), (1397671512,), (1397671518,), (1397671519,), (1397671520,), (1397671522,), (1397671524,), (1397671551,), (1397671552,), (1397671553,), (1397671554,), (1397671556,), (1397671600,), (1397671601,), (1397671670,), (1397671671,), (1397671672,), (1397671673,), (1397671675,), (1397671677,), (1397671687,), (1397671691,), (1397671692,), (1397671693,), (1397671742,), (1397671743,), (1397671744,), (1397671745,), (1397671747,), (1397671792,), (1397671793,), (1397671794,), (1397671795,), (1397671797,), (1397671799,), (1397671844,), (1397671847,), (1397671849,), (1397671851,), (1397671853,), (1397671856,), (1397671863,), (1397671871,), (1397671873,), (1397671875,), (1397671919,), (1397671896,), (1397671898,), (1397671900,), (1397672177,), (1397672223,), (1397672262,), (1397673037,), (1397673103,), (1397673167,), (1397673644,), (1397673674,), (1397673707,), (1397673727,), (1397674038,), (1397674039,), (1397674042,), (1397674878,), (1397674912,), (1397674947,), (1397674978,), (1397675039,), (1397675738,), (1397675802,), (1397675870,), (1397675933,), (1397676052,), (1397676055,), (1397676094,), (1397676134,), (1397676196,), (1397676271,), (1397676644,), (1397676677,), (1397676712,), (1397676731,), (1397676736,), (1397676752,), (1397676806,), (1397676809,), (1397676812,), (1397676814,), (1397676816,), (1397676818,), (1397676819,), (1397676820,), (1397676821,), (1397676822,), (1397676823,), (1397677029,), (1397677078,), (1397677119,), (1397677156,), (1397677193,), (1397677228,), (1397677383,), (1397677428,), (1397677463,), (1397677670,), (1397677707,), (1397677745,), (1397677982,), (1397678013,), (1397678044,), (1397678081,), (1397678649,), (1397678714,), (1397678775,), (1397678840,), (1397678908,), (1397679281,), (1397679174,), (1397679224,), (1397679249,), (1397679805,), (1397679840,), (1397679872,), (1397680208,), (1397680209,), (1397680210,), (1397680211,), (1397680228,), (1397680267,), (1397680509,), (1397680546,), (1397680584,), (1397680619,), (1397680652,), (1397680690,), (1397680803,), (1397680835,), (1397680867,), (1397680899,), (1397680930,), (1397680960,), (1397681069,), (1397681106,), (1397681136,), (1397681150,), (1397681151,), (1397681177,), (1397681218,), (1397681259,), (1397681292,), (1397681465,), (1397681482,), (1397681486,), (1397681487,), (1397681489,), (1397681491,), (1397681495,), (1397681496,), (1397681497,), (1397681499,), (1397681507,), (1397681519,), (1397681535,), (1397681536,), (1397681540,), (1397681543,), (1397681544,), (1397681545,), (1397681547,), (1397681549,), (1397681564,), (1397681847,), (1397681883,), (1397681919,), (1397681951,), (1397682331,), (1397682366,), (1397682400,), (1397682774,), (1397683091,), (1397683164,), (1397683223,), (1397683283,), (1397683319,), (1397683353,), (1397683826,), (1397683859,), (1397683910,), (1397683952,), (1397683990,), (1397684024,), (1397684134,), (1397684169,), (1397684202,), (1397684237,), (1397684277,), (1397684333,), (1397684570,), (1397684608,), (1397684645,), (1397684679,), (1397684715,), (1397685010,), (1397684941,), (1397684973,), (1397685673,), (1397685739,), (1397685813,), (1397685882,), (1397685956,), (1397686431,), (1397686497,), (1397686566,), (1397686628,), (1397686695,), (1397686760,), (1397687056,), (1397687057,), (1397687058,), (1397687078,), (1397687306,), (1397687698,), (1397687729,), (1397687730,), (1397687731,), (1397687733,), (1397687735,), (1397687781,), (1397687784,), (1397687785,), (1397687786,), (1397687788,), (1397687815,), (1397687816,), (1397687817,), (1397687844,), (1397687871,), (1397687879,), (1397687884,), (1397687885,), (1397687887,), (1397687889,), (1397687904,), (1397687905,), (1397687906,), (1397687907,), (1397687909,), (1397688189,), (1397688190,), (1397688191,), (1397688192,), (1397688362,), (1397688368,), (1397688372,), (1397688378,), (1397688429,), (1397688424,), (1397688425,), (1397688426,), (1397688427,), (1397688428,), (1397688444,), (1397688445,), (1397688446,), (1397688447,), (1397688497,), (1397688498,), (1397688499,), (1397688500,), (1397688502,), (1397688504,), (1397688569,), (1397688570,), (1397688571,), (1397688573,), (1397688575,), (1397688580,), (1397688587,), (1397688588,), (1397688589,), (1397688590,), (1397688591,), (1397688592,), (1397688593,), (1397688595,), (1397688597,), (1397688599,), (1397688603,), (1397688604,), (1397688605,), (1397688606,), (1397688608,), (1397688826,), (1397688863,), (1397688898,), (1397688932,), (1397688952,), (1397688961,), (1397688962,), (1397688963,), (1397688973,), (1397689052,), (1397689053,), (1397689054,), (1397689063,), (1397689071,), (1397689087,), (1397689089,), (1397689091,), (1397689095,), (1397689098,), (1397689100,), (1397689117,), (1397689118,), (1397689120,), (1397689122,), (1397689151,), (1397689152,), (1397689153,), (1397689154,), (1397689156,), (1397689183,), (1397689184,), (1397689185,), (1397689186,), (1397689187,), (1397689214,), (1397689216,), (1397689218,), (1397689221,), (1397689223,), (1397689237,), (1397689388,), (1397689418,), (1397689999,), (1397689716,), (1397689783,), (1397689849,), (1397689930,), (1397690616,), (1397690683,), (1397690750,), (1397690819,), (1397690897,), (1397690969,), (1397691686,), (1397691719,), (1397691753,), (1397691807,), (1397691877,), (1397692125,), (1397692184,), (1397692251,), (1397692632,), (1397692639,), (1397692671,), (1397692685,), (1397692708,), (1397692723,), (1397692785,), (1397692786,), (1397692787,), (1397692788,), (1397692790,), (1397692808,), (1397692809,), (1397692810,), (1397692811,), (1397692812,), (1397692826,), (1397692827,), (1397692828,), (1397692829,), (1397692834,), (1397692872,), (1397692879,), (1397692880,), (1397692896,), (1397692900,), (1397692908,), (1397692931,), (1397692941,), (1397692951,), (1397692952,), (1397692953,), (1397692954,), (1397692971,), (1397692972,), (1397692973,), (1397692974,), (1397692976,), (1397692978,), (1397693215,), (1397693249,), (1397693252,), (1397693260,), (1397693263,), (1397693307,), (1397693308,), (1397693309,), (1397693310,), (1397693344,), (1397693345,), (1397693346,), (1397693347,), (1397693496,), (1397693531,), (1397694061,), (1397694460,), (1397694493,), (1397694713,), (1397694715,), (1397694755,), (1397694756,), (1397694757,), (1397694758,), (1397694760,), (1397694761,), (1397694794,), (1397694795,), (1397694796,), (1397694797,), (1397694818,), (1397694854,), (1397694855,), (1397694860,), (1397694861,), (1397694862,), (1397694863,), (1397694865,), (1397694880,), (1397694881,), (1397694882,), (1397694883,), (1397694885,), (1397694888,), (1397694889,), (1397694890,), (1397694892,), (1397694902,), (1397694908,), (1397694938,), (1397694939,), (1397694941,), (1397694944,), (1397694946,), (1397694948,), (1397694972,), (1397694980,), (1397694981,), (1397694982,), (1397694983,), (1397694990,), (1397695000,), (1397695016,), (1397695017,), (1397695018,), (1397695019,), (1397695026,), (1397695027,), (1397695034,), (1397695036,), (1397694962,), (1397694964,), (1397694966,), (1397694968,), (1397694970,), (1397695012,), (1397695014,), (1397695507,), (1397695508,), (1397695546,), (1397695547,), (1397695548,), (1397695550,), (1397695552,), (1397695553,), (1397695557,), (1397695584,), (1397695590,), (1397695599,), (1397695608,), (1397695610,), (1397697459,), (1397698426,), (1397698463,), (1397699429,), (1397699947,), (1397700306,), (1397700307,), (1397700308,), (1397700316,), (1397700317,), (1397700576,), (1397700610,), (1397700619,), (1397700620,), (1397700792,), (1397700793,), (1397700794,), (1397700796,), (1397700798,), (1397700879,), (1397700880,), (1397700904,), (1397700905,), (1397700906,), (1397700907,), (1397700924,), (1397700925,), (1397700926,), (1397700927,), (1397700946,), (1397700947,), (1397700948,), (1397700949,), (1397700983,), (1397700985,), (1397700986,), (1397700987,), (1397700990,), (1397700993,), (1397701020,), (1397701017,), (1397701018,), (1397701019,), (1397701027,), (1397701028,), (1397701029,), (1397701030,), (1397701090,), (1397701091,), (1397701092,), (1397701093,), (1397701095,), (1397701097,), (1397701110,), (1397701111,), (1397701112,), (1397701114,), (1397701116,), (1397701120,), (1397701123,), (1397701128,), (1397701129,), (1397701130,), (1397701131,), (1397701132,), (1397701133,), (1397701135,), (1397701137,), (1397701156,), (1397701157,), (1397701161,), (1397701163,), (1397701165,), (1397701306,), (1397729760,), (1397731113,), (1397731149,), (1397731186,), (1397731540,), (1397731542,), (1397731544,), (1397731733,), (1397731752,), (1397731753,), (1397731896,), (1397731897,), (1397731898,), (1397731901,), (1397731902,), (1397731916,), (1397731918,), (1397731920,), (1397731923,), (1397731925,), (1397731926,), (1397731931,), (1397731952,), (1397731987,), (1397732023,), (1397732430,), (1397732168,), (1397732300,), (1397732366,), (1397732953,), (1397733019,), (1397733097,), (1397733195,), (1397733726,), (1397733727,), (1397733728,), (1397733729,), (1397733731,), (1397733733,), (1397733984,), (1397734045,), (1397734106,), (1397734167,), (1397734240,), (1397734348,), (1397735472,), (1397735568,), (1397735652,), (1397736556,), (1397736617,), (1397736678,), (1397736744,), (1397736808,), (1397736850,), (1397736873,), (1397736904,), (1397736934,), (1397737445,), (1397737459,), (1397737460,), (1397737480,), (1397737504,), (1397737512,), (1397737513,), (1397737546,), (1397737579,), (1397737613,), (1397737650,), (1397737774,), (1397737811,), (1397737845,), (1397737877,), (1397738017,), (1397738051,), (1397738083,), (1397738449,), (1397738484,), (1397738865,), (1397738899,), (1397738932,), (1397738963,), (1397739586,), (1397739617,), (1397739649,), (1397739686,), (1397739752,), (1397739822,), (1397740152,), (1397740153,), (1397740383,), (1397740400,), (1397740402,), (1397740403,), (1397740405,), (1397740426,), (1397740902,), (1397740772,), (1397740808,), (1397740839,), (1397740870,), (1397741242,), (1397741275,), (1397741307,), (1397741722,), (1397741755,), (1397741789,), (1397741821,), (1397742052,), (1397742083,), (1397742115,), (1397742146,), (1397742178,), (1397742682,), (1397742747,), (1397742814,), (1397742878,), (1397743609,), (1397743709,), (1397743790,), (1397744673,), (1397744711,), (1397744767,), (1397744863,), (1397744962,), (1397745554,), (1397745571,), (1397745607,), (1397745733,), (1397745751,), (1397746086,), (1397746087,), (1397746088,), (1397746111,), (1397746146,), (1397746306,), (1397746307,), (1397746308,), (1397746309,), (1397746311,), (1397746312,), (1397746318,), (1397746319,), (1397746320,), (1397746321,), (1397746339,), (1397746354,), (1397746358,), (1397746361,), (1397746362,), (1397746381,), (1397746635,), (1397746671,), (1397746704,), (1397746736,), (1397746771,), (1397747277,), (1397747132,), (1397747170,), (1397747203,), (1397747239,), (1397747474,), (1397747475,), (1397747476,), (1397747872,), (1397747908,), (1397747945,), (1397748013,), (1397748055,), (1397748534,), (1397748601,), (1397748673,), (1397748743,), (1397748807,), (1397748878,), (1397749452,), (1397749487,), (1397749503,), (1397749536,), (1397749572,), (1397749607,), (1397749685,), (1397749686,), (1397749717,), (1397749782,), (1397749839,), (1397749872,), (1397749990,), (1397750008,), (1397750048,), (1397750049,), (1397750050,), (1397750073,), (1397750150,), (1397750151,), (1397750154,), (1397750157,), (1397750158,), (1397750159,), (1397750168,), (1397750169,), (1397750171,), (1397750206,), (1397750208,), (1397750210,), (1397750213,), (1397750215,), (1397750218,), (1397750225,), (1397750227,), (1397750239,), (1397750240,), (1397750244,), (1397750249,), (1397750250,), (1397750251,), (1397750253,), (1397750258,), (1397750259,), (1397750261,), (1397750262,), (1397750263,), (1397750264,), (1397750265,), (1397750274,), (1397750308,), (1397750344,), (1397750384,), (1397750423,), (1397750531,), (1397750563,), (1397750691,), (1397750782,), (1397750862,), (1397750902,), (1397751144,), (1397751181,), (1397751214,), (1397751250,), (1397751279,), (1397751282,), (1397751313,), (1397751345,), (1397751395,), (1397751432,), (1397751639,), (1397751640,), (1397751641,), (1397751643,), (1397751645,), (1397751647,), (1397751685,), (1397751683,), (1397751684,), (1397751715,), (1397751752,), (1397751789,), (1397751825,), (1397751859,), (1397751897,), (1397752222,), (1397752256,), (1397752292,), (1397752327,), (1397752361,), (1397752650,), (1397752668,), (1397752671,), (1397752673,), (1397752676,), (1397752678,), (1397752780,), (1397752814,), (1397752846,), (1397752865,), (1397752869,), (1397752939,), (1397752958,), (1397752972,), (1397752973,), (1397753001,), (1397753008,), (1397753033,), (1397753067,), (1397753521,), (1397753577,), (1397753657,), (1397753702,), (1397753948,), (1397753950,), (1397753951,), (1397753952,), (1397753954,), (1397753955,), (1397753958,), (1397753959,), (1397754368,), (1397754370,), (1397754373,), (1397754375,), (1397754377,), (1397754379,), (1397754487,), (1397754521,), (1397754566,), (1397754948,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03122025': {'nb_upload': 22, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29158804]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1397697459, 1397695610, 1397695608, 1397695599, 1397695590, 1397695584, 1397695557, 1397695553, 1397695552, 1397695550, 1397695548, 1397695547, 1397695546, 1397695508, 1397695507, 1397695014, 1397695012, 1397694970, 1397694968, 1397694966, 1397694964, 1397694962] map_info['map_portfolio_photo'] : {29158804: [1397697459, 1397695610, 1397695608, 1397695599, 1397695590, 1397695584, 1397695557, 1397695553, 1397695552, 1397695550, 1397695548, 1397695547, 1397695546, 1397695508, 1397695507, 1397695014, 1397695012, 1397694970, 1397694968, 1397694966, 1397694964, 1397694962]} final : True mtd_id 4302 list_pids : [1397697459, 1397695610, 1397695608, 1397695599, 1397695590, 1397695584, 1397695557, 1397695553, 1397695552, 1397695550, 1397695548, 1397695547, 1397695546, 1397695508, 1397695507, 1397695014, 1397695012, 1397694970, 1397694968, 1397694966, 1397694964, 1397694962] Looping around the photos to save general results len do output : 1 /29158804Didn'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, '4183576') ('4302', '29158804', '1397697459', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695610', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695608', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695599', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695590', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695584', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695557', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695553', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695552', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695550', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695548', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695547', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695546', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695508', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695507', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695014', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397695012', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397694970', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397694968', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397694966', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397694964', None, None, None, None, None, '4183576') ('4302', None, None, None, None, None, None, None, '4183576') ('4302', '29158804', '1397694962', None, None, None, None, None, '4183576') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 23 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, '29158804', 'None', None, None, None, None, '4183576'), ('4302', '29158804', '1397697459', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695610', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695608', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695599', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695590', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695584', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695557', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695553', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695552', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695550', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695548', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695547', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695546', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695508', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695507', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695014', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397695012', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397694970', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397694968', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397694966', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397694964', None, None, None, None, None, '4183576'), ('4302', '29158804', '1397694962', None, None, None, None, None, '4183576')] time used for this insertion : 0.016616106033325195 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.968916654586792 time spend to save output : 0.016885757446289062 total time spend for step 5 : 5.985802412033081 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 (4183576) 2.92user 2.24system 0:17.81elapsed 29%CPU (0avgtext+0avgdata 167500maxresident)k 256inputs+20744outputs (1major+83624minor)pagefaults 0swaps