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 : 3556588 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 (3652749) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3652749) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445758 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3652749'] with mtr_portfolio_ids : ['26445758'] and first list_photo_ids : [] new path : /proc/3556588/ Name: python3 Umask: 0002 State: R (running) Tgid: 3556588 Ngid: 0 Pid: 3556588 PPid: 3556584 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3556588 NSpid: 3556588 NSpgid: 3554801 NSsid: 3554801 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98628 kB VmRSS: 98628 kB RssAnon: 60152 kB RssFile: 38476 kB RssShmem: 0 kB VmData: 865980 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 548 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 48 nonvoluntary_ctxt_switches: 142 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3556588', 'Ngid': '0', 'Pid': '3556588', 'PPid': '3556584', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3556588', 'NSpid': '3556588', 'NSpgid': '3554801', 'NSsid': '3554801', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98628 kB', 'VmRSS': '98628 kB', 'RssAnon': '60152 kB', 'RssFile': '38476 kB', 'RssShmem': '0 kB', 'VmData': '865980 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '548 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '48', 'nonvoluntary_ctxt_switches': '142'} ('datou_batch_current', '3556588', '1107228', '0', '1107228', '865980', '98628', b'', 'marlene', '3652749') 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 ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (26445758) 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 (3652749 ) ) 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 (26445758) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1380880160, 'portfolio_id': 26445758}, {'photo_id': 1380880159, 'portfolio_id': 26445758}, {'photo_id': 1380880158, 'portfolio_id': 26445758}, {'photo_id': 1380880157, 'portfolio_id': 26445758}, {'photo_id': 1380880097, 'portfolio_id': 26445758}, {'photo_id': 1380880096, 'portfolio_id': 26445758}, {'photo_id': 1380880095, 'portfolio_id': 26445758}, {'photo_id': 1380880094, 'portfolio_id': 26445758}, {'photo_id': 1380880093, 'portfolio_id': 26445758}, {'photo_id': 1380880092, 'portfolio_id': 26445758}, {'photo_id': 1380879851, 'portfolio_id': 26445758}, {'photo_id': 1380879849, 'portfolio_id': 26445758}, {'photo_id': 1380879848, 'portfolio_id': 26445758}, {'photo_id': 1380879847, 'portfolio_id': 26445758}, {'photo_id': 1380879846, 'portfolio_id': 26445758}, {'photo_id': 1380879845, 'portfolio_id': 26445758}, {'photo_id': 1380879774, 'portfolio_id': 26445758}, {'photo_id': 1380879773, 'portfolio_id': 26445758}, {'photo_id': 1380879772, 'portfolio_id': 26445758}, {'photo_id': 1380879639, 'portfolio_id': 26445758}, {'photo_id': 1380879637, 'portfolio_id': 26445758}, {'photo_id': 1380879635, 'portfolio_id': 26445758}, {'photo_id': 1380879633, 'portfolio_id': 26445758}, {'photo_id': 1380879631, 'portfolio_id': 26445758}, {'photo_id': 1380879629, 'portfolio_id': 26445758}, {'photo_id': 1380879308, 'portfolio_id': 26445758}, {'photo_id': 1380879306, 'portfolio_id': 26445758}, {'photo_id': 1380879303, 'portfolio_id': 26445758}, {'photo_id': 1380879300, 'portfolio_id': 26445758}, {'photo_id': 1380878738, 'portfolio_id': 26445758}, {'photo_id': 1380878737, 'portfolio_id': 26445758}, {'photo_id': 1380878736, 'portfolio_id': 26445758}, {'photo_id': 1380878735, 'portfolio_id': 26445758}, {'photo_id': 1380878734, 'portfolio_id': 26445758}, {'photo_id': 1380878733, 'portfolio_id': 26445758}, {'photo_id': 1380878554, 'portfolio_id': 26445758}, {'photo_id': 1380878553, 'portfolio_id': 26445758}, {'photo_id': 1380878552, 'portfolio_id': 26445758}, {'photo_id': 1380878550, 'portfolio_id': 26445758}, {'photo_id': 1380878549, 'portfolio_id': 26445758}, {'photo_id': 1380878548, 'portfolio_id': 26445758}, {'photo_id': 1380878491, 'portfolio_id': 26445758}, {'photo_id': 1380878490, 'portfolio_id': 26445758}, {'photo_id': 1380878489, 'portfolio_id': 26445758}, {'photo_id': 1380878488, 'portfolio_id': 26445758}, {'photo_id': 1380878172, 'portfolio_id': 26445758}, {'photo_id': 1380878170, 'portfolio_id': 26445758}, {'photo_id': 1380878168, 'portfolio_id': 26445758}, {'photo_id': 1380878166, 'portfolio_id': 26445758}, {'photo_id': 1380878164, 'portfolio_id': 26445758}, {'photo_id': 1380878162, 'portfolio_id': 26445758}, {'photo_id': 1380877836, 'portfolio_id': 26445758}, {'photo_id': 1380877833, 'portfolio_id': 26445758}, {'photo_id': 1380877830, 'portfolio_id': 26445758}, {'photo_id': 1380877827, 'portfolio_id': 26445758}, {'photo_id': 1380877393, 'portfolio_id': 26445758}, {'photo_id': 1380877390, 'portfolio_id': 26445758}, {'photo_id': 1380877387, 'portfolio_id': 26445758}, {'photo_id': 1380876747, 'portfolio_id': 26445758}, {'photo_id': 1380876745, 'portfolio_id': 26445758}, {'photo_id': 1380876141, 'portfolio_id': 26445758}, {'photo_id': 1380876138, 'portfolio_id': 26445758}] map_portfolio_id_photo_id: {26445758: [1380880160, 1380880159, 1380880158, 1380880157, 1380880097, 1380880096, 1380880095, 1380880094, 1380880093, 1380880092, 1380879851, 1380879849, 1380879848, 1380879847, 1380879846, 1380879845, 1380879774, 1380879773, 1380879772, 1380879639, 1380879637, 1380879635, 1380879633, 1380879631, 1380879629, 1380879308, 1380879306, 1380879303, 1380879300, 1380878738, 1380878737, 1380878736, 1380878735, 1380878734, 1380878733, 1380878554, 1380878553, 1380878552, 1380878550, 1380878549, 1380878548, 1380878491, 1380878490, 1380878489, 1380878488, 1380878172, 1380878170, 1380878168, 1380878166, 1380878164, 1380878162, 1380877836, 1380877833, 1380877830, 1380877827, 1380877393, 1380877390, 1380877387, 1380876747, 1380876745, 1380876141, 1380876138]} ##### 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.014818668365478516 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Sep 2 17:14:30 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 (26445758) 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 : 26445758 get user id for portfolio 26445758 get sub ptf for main ptf 26445758, type 3726 and hashtags ['papier', 'plastique', 'autre_refus', 'Carton_brun', 'Teint_Dans_La_Masse', 'environnement', 'mal_croppe', 'Carton_gris', 'cartonnette', 'metal', 'flou', 'kraft'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26445758 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','autre_refus','Carton_brun','Teint_Dans_La_Masse','environnement','mal_croppe','Carton_gris','cartonnette','metal','flou','kraft')) 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`=26445758 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','autre_refus','Carton_brun','Teint_Dans_La_Masse','environnement','mal_croppe','Carton_gris','cartonnette','metal','flou','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 26445758, 'sub_port_id': 26445833, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798095, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 28)}, 'papier': {'main_port_id': 26445758, 'sub_port_id': 26445834, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798096, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 28)}, 'metal': {'main_port_id': 26445758, 'sub_port_id': 26445835, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798097, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 26445758, 'sub_port_id': 26445836, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798098, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 28)}, 'kraft': {'main_port_id': 26445758, 'sub_port_id': 26445837, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798099, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 28)}, 'autre_refus': {'main_port_id': 26445758, 'sub_port_id': 26445838, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798100, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 28)}, 'flou': {'main_port_id': 26445758, 'sub_port_id': 26445839, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798101, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 28)}, 'Carton_gris': {'main_port_id': 26445758, 'sub_port_id': 26445840, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798102, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 28)}, 'plastique': {'main_port_id': 26445758, 'sub_port_id': 26445841, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798103, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 28)}, 'environnement': {'main_port_id': 26445758, 'sub_port_id': 26445842, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798104, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 28)}, 'mal_croppe': {'main_port_id': 26445758, 'sub_port_id': 26445843, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798105, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 28)}, 'cartonnette': {'main_port_id': 26445758, 'sub_port_id': 26445844, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798106, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26445833 , 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=26445758 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 (26445833) result : ((1380880148,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445758) result : ((1380876138,), (1380876141,), (1380876745,), (1380876747,), (1380877387,), (1380877390,), (1380877393,), (1380877827,), (1380877830,), (1380877833,), (1380877836,), (1380878162,), (1380878164,), (1380878166,), (1380878168,), (1380878170,), (1380878172,), (1380878488,), (1380878489,), (1380878490,), (1380878491,), (1380878548,), (1380878549,), (1380878550,), (1380878552,), (1380878553,), (1380878554,), (1380878733,), (1380878734,), (1380878735,), (1380878736,), (1380878737,), (1380878738,), (1380879300,), (1380879303,), (1380879306,), (1380879308,), (1380879629,), (1380879631,), (1380879633,), (1380879635,), (1380879637,), (1380879639,), (1380879772,), (1380879773,), (1380879774,), (1380879845,), (1380879846,), (1380879847,), (1380879848,), (1380879849,), (1380879851,), (1380880092,), (1380880093,), (1380880094,), (1380880095,), (1380880096,), (1380880097,), (1380880157,), (1380880158,), (1380880159,), (1380880160,)) 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 (1380879300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26445834 , 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=26445758 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 (26445834) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445758) result : ((1380876138,), (1380876141,), (1380876745,), (1380876747,), (1380877387,), (1380877390,), (1380877393,), (1380877827,), (1380877830,), (1380877833,), (1380877836,), (1380878162,), (1380878164,), (1380878166,), (1380878168,), (1380878170,), (1380878172,), (1380878488,), (1380878489,), (1380878490,), (1380878491,), (1380878548,), (1380878549,), (1380878550,), (1380878552,), (1380878553,), (1380878554,), (1380878733,), (1380878734,), (1380878735,), (1380878736,), (1380878737,), (1380878738,), (1380879300,), (1380879303,), (1380879306,), (1380879308,), (1380879629,), (1380879631,), (1380879633,), (1380879635,), (1380879637,), (1380879639,), (1380879772,), (1380879773,), (1380879774,), (1380879845,), (1380879846,), (1380879847,), (1380879848,), (1380879849,), (1380879851,), (1380880092,), (1380880093,), (1380880094,), (1380880095,), (1380880096,), (1380880097,), (1380880157,), (1380880158,), (1380880159,), (1380880160,)) 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 (1380879300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26445835 , 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=26445758 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 (26445835) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445758) result : ((1380876138,), (1380876141,), (1380876745,), (1380876747,), (1380877387,), (1380877390,), (1380877393,), (1380877827,), (1380877830,), (1380877833,), (1380877836,), (1380878162,), (1380878164,), (1380878166,), (1380878168,), (1380878170,), (1380878172,), (1380878488,), (1380878489,), (1380878490,), (1380878491,), (1380878548,), (1380878549,), (1380878550,), (1380878552,), (1380878553,), (1380878554,), (1380878733,), (1380878734,), (1380878735,), (1380878736,), (1380878737,), (1380878738,), (1380879300,), (1380879303,), (1380879306,), (1380879308,), (1380879629,), (1380879631,), (1380879633,), (1380879635,), (1380879637,), (1380879639,), (1380879772,), (1380879773,), (1380879774,), (1380879845,), (1380879846,), (1380879847,), (1380879848,), (1380879849,), (1380879851,), (1380880092,), (1380880093,), (1380880094,), (1380880095,), (1380880096,), (1380880097,), (1380880157,), (1380880158,), (1380880159,), (1380880160,)) 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 (1380879300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26445836 , 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=26445758 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 (26445836) result : ((1380878741,), (1380878742,), (1380878743,), (1380878744,), (1380878745,), (1380880143,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445758) result : ((1380876138,), (1380876141,), (1380876745,), (1380876747,), (1380877387,), (1380877390,), (1380877393,), (1380877827,), (1380877830,), (1380877833,), (1380877836,), (1380878162,), (1380878164,), (1380878166,), (1380878168,), (1380878170,), (1380878172,), (1380878488,), (1380878489,), (1380878490,), (1380878491,), (1380878548,), (1380878549,), (1380878550,), (1380878552,), (1380878553,), (1380878554,), (1380878733,), (1380878734,), (1380878735,), (1380878736,), (1380878737,), (1380878738,), (1380879300,), (1380879303,), (1380879306,), (1380879308,), (1380879629,), (1380879631,), (1380879633,), (1380879635,), (1380879637,), (1380879639,), (1380879772,), (1380879773,), (1380879774,), (1380879845,), (1380879846,), (1380879847,), (1380879848,), (1380879849,), (1380879851,), (1380880092,), (1380880093,), (1380880094,), (1380880095,), (1380880096,), (1380880097,), (1380880157,), (1380880158,), (1380880159,), (1380880160,)) 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 (1380879300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26445837 , 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=26445758 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 (26445837) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445758) result : ((1380876138,), (1380876141,), (1380876745,), (1380876747,), (1380877387,), (1380877390,), (1380877393,), (1380877827,), (1380877830,), (1380877833,), (1380877836,), (1380878162,), (1380878164,), (1380878166,), (1380878168,), (1380878170,), (1380878172,), (1380878488,), (1380878489,), (1380878490,), (1380878491,), (1380878548,), (1380878549,), (1380878550,), (1380878552,), (1380878553,), (1380878554,), (1380878733,), (1380878734,), (1380878735,), (1380878736,), (1380878737,), (1380878738,), (1380879300,), (1380879303,), (1380879306,), (1380879308,), (1380879629,), (1380879631,), (1380879633,), (1380879635,), (1380879637,), (1380879639,), (1380879772,), (1380879773,), (1380879774,), (1380879845,), (1380879846,), (1380879847,), (1380879848,), (1380879849,), (1380879851,), (1380880092,), (1380880093,), (1380880094,), (1380880095,), (1380880096,), (1380880097,), (1380880157,), (1380880158,), (1380880159,), (1380880160,)) 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 (1380879300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26445838 , 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=26445758 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 (26445838) result : ((1380880144,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445758) result : ((1380876138,), (1380876141,), (1380876745,), (1380876747,), (1380877387,), (1380877390,), (1380877393,), (1380877827,), (1380877830,), (1380877833,), (1380877836,), (1380878162,), (1380878164,), (1380878166,), (1380878168,), (1380878170,), (1380878172,), (1380878488,), (1380878489,), (1380878490,), (1380878491,), (1380878548,), (1380878549,), (1380878550,), (1380878552,), (1380878553,), (1380878554,), (1380878733,), (1380878734,), (1380878735,), (1380878736,), (1380878737,), (1380878738,), (1380879300,), (1380879303,), (1380879306,), (1380879308,), (1380879629,), (1380879631,), (1380879633,), (1380879635,), (1380879637,), (1380879639,), (1380879772,), (1380879773,), (1380879774,), (1380879845,), (1380879846,), (1380879847,), (1380879848,), (1380879849,), (1380879851,), (1380880092,), (1380880093,), (1380880094,), (1380880095,), (1380880096,), (1380880097,), (1380880157,), (1380880158,), (1380880159,), (1380880160,)) 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 (1380879300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26445839 , 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=26445758 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 (26445839) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445758) result : ((1380876138,), (1380876141,), (1380876745,), (1380876747,), (1380877387,), (1380877390,), (1380877393,), (1380877827,), (1380877830,), (1380877833,), (1380877836,), (1380878162,), (1380878164,), (1380878166,), (1380878168,), (1380878170,), (1380878172,), (1380878488,), (1380878489,), (1380878490,), (1380878491,), (1380878548,), (1380878549,), (1380878550,), (1380878552,), (1380878553,), (1380878554,), (1380878733,), (1380878734,), (1380878735,), (1380878736,), (1380878737,), (1380878738,), (1380879300,), (1380879303,), (1380879306,), (1380879308,), (1380879629,), (1380879631,), (1380879633,), (1380879635,), (1380879637,), (1380879639,), (1380879772,), (1380879773,), (1380879774,), (1380879845,), (1380879846,), (1380879847,), (1380879848,), (1380879849,), (1380879851,), (1380880092,), (1380880093,), (1380880094,), (1380880095,), (1380880096,), (1380880097,), (1380880157,), (1380880158,), (1380880159,), (1380880160,)) 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 (1380879300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26445840 , 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=26445758 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 (26445840) result : ((1380880145,), (1380880146,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445758) result : ((1380876138,), (1380876141,), (1380876745,), (1380876747,), (1380877387,), (1380877390,), (1380877393,), (1380877827,), (1380877830,), (1380877833,), (1380877836,), (1380878162,), (1380878164,), (1380878166,), (1380878168,), (1380878170,), (1380878172,), (1380878488,), (1380878489,), (1380878490,), (1380878491,), (1380878548,), (1380878549,), (1380878550,), (1380878552,), (1380878553,), (1380878554,), (1380878733,), (1380878734,), (1380878735,), (1380878736,), (1380878737,), (1380878738,), (1380879300,), (1380879303,), (1380879306,), (1380879308,), (1380879629,), (1380879631,), (1380879633,), (1380879635,), (1380879637,), (1380879639,), (1380879772,), (1380879773,), (1380879774,), (1380879845,), (1380879846,), (1380879847,), (1380879848,), (1380879849,), (1380879851,), (1380880092,), (1380880093,), (1380880094,), (1380880095,), (1380880096,), (1380880097,), (1380880157,), (1380880158,), (1380880159,), (1380880160,)) 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 (1380879300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26445841 , 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=26445758 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 (26445841) result : ((1380878746,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445758) result : ((1380876138,), (1380876141,), (1380876745,), (1380876747,), (1380877387,), (1380877390,), (1380877393,), (1380877827,), (1380877830,), (1380877833,), (1380877836,), (1380878162,), (1380878164,), (1380878166,), (1380878168,), (1380878170,), (1380878172,), (1380878488,), (1380878489,), (1380878490,), (1380878491,), (1380878548,), (1380878549,), (1380878550,), (1380878552,), (1380878553,), (1380878554,), (1380878733,), (1380878734,), (1380878735,), (1380878736,), (1380878737,), (1380878738,), (1380879300,), (1380879303,), (1380879306,), (1380879308,), (1380879629,), (1380879631,), (1380879633,), (1380879635,), (1380879637,), (1380879639,), (1380879772,), (1380879773,), (1380879774,), (1380879845,), (1380879846,), (1380879847,), (1380879848,), (1380879849,), (1380879851,), (1380880092,), (1380880093,), (1380880094,), (1380880095,), (1380880096,), (1380880097,), (1380880157,), (1380880158,), (1380880159,), (1380880160,)) 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 (1380879300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26445842 , 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=26445758 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 (26445842) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445758) result : ((1380876138,), (1380876141,), (1380876745,), (1380876747,), (1380877387,), (1380877390,), (1380877393,), (1380877827,), (1380877830,), (1380877833,), (1380877836,), (1380878162,), (1380878164,), (1380878166,), (1380878168,), (1380878170,), (1380878172,), (1380878488,), (1380878489,), (1380878490,), (1380878491,), (1380878548,), (1380878549,), (1380878550,), (1380878552,), (1380878553,), (1380878554,), (1380878733,), (1380878734,), (1380878735,), (1380878736,), (1380878737,), (1380878738,), (1380879300,), (1380879303,), (1380879306,), (1380879308,), (1380879629,), (1380879631,), (1380879633,), (1380879635,), (1380879637,), (1380879639,), (1380879772,), (1380879773,), (1380879774,), (1380879845,), (1380879846,), (1380879847,), (1380879848,), (1380879849,), (1380879851,), (1380880092,), (1380880093,), (1380880094,), (1380880095,), (1380880096,), (1380880097,), (1380880157,), (1380880158,), (1380880159,), (1380880160,)) 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 (1380879300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26445843 , 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=26445758 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 (26445843) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445758) result : ((1380876138,), (1380876141,), (1380876745,), (1380876747,), (1380877387,), (1380877390,), (1380877393,), (1380877827,), (1380877830,), (1380877833,), (1380877836,), (1380878162,), (1380878164,), (1380878166,), (1380878168,), (1380878170,), (1380878172,), (1380878488,), (1380878489,), (1380878490,), (1380878491,), (1380878548,), (1380878549,), (1380878550,), (1380878552,), (1380878553,), (1380878554,), (1380878733,), (1380878734,), (1380878735,), (1380878736,), (1380878737,), (1380878738,), (1380879300,), (1380879303,), (1380879306,), (1380879308,), (1380879629,), (1380879631,), (1380879633,), (1380879635,), (1380879637,), (1380879639,), (1380879772,), (1380879773,), (1380879774,), (1380879845,), (1380879846,), (1380879847,), (1380879848,), (1380879849,), (1380879851,), (1380880092,), (1380880093,), (1380880094,), (1380880095,), (1380880096,), (1380880097,), (1380880157,), (1380880158,), (1380880159,), (1380880160,)) 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 (1380879300) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26445844 , 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=26445758 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 (26445844) result : ((1380880147,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26445758) result : ((1380876138,), (1380876141,), (1380876745,), (1380876747,), (1380877387,), (1380877390,), (1380877393,), (1380877827,), (1380877830,), (1380877833,), (1380877836,), (1380878162,), (1380878164,), (1380878166,), (1380878168,), (1380878170,), (1380878172,), (1380878488,), (1380878489,), (1380878490,), (1380878491,), (1380878548,), (1380878549,), (1380878550,), (1380878552,), (1380878553,), (1380878554,), (1380878733,), (1380878734,), (1380878735,), (1380878736,), (1380878737,), (1380878738,), (1380879300,), (1380879303,), (1380879306,), (1380879308,), (1380879629,), (1380879631,), (1380879633,), (1380879635,), (1380879637,), (1380879639,), (1380879772,), (1380879773,), (1380879774,), (1380879845,), (1380879846,), (1380879847,), (1380879848,), (1380879849,), (1380879851,), (1380880092,), (1380880093,), (1380880094,), (1380880095,), (1380880096,), (1380880097,), (1380880157,), (1380880158,), (1380880159,), (1380880160,)) 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 (1380879300) and cspi.crop_hashtag_id = chi.id; 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`=26445758 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','autre_refus','Carton_brun','Teint_Dans_La_Masse','environnement','mal_croppe','Carton_gris','cartonnette','metal','flou','kraft')) 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`=26445758 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','autre_refus','Carton_brun','Teint_Dans_La_Masse','environnement','mal_croppe','Carton_gris','cartonnette','metal','flou','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 26445758, 'sub_port_id': 26445865, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798125, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 34)}, 'papier': {'main_port_id': 26445758, 'sub_port_id': 26445866, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798126, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 34)}, 'metal': {'main_port_id': 26445758, 'sub_port_id': 26445867, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798127, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 26445758, 'sub_port_id': 26445868, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798128, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 34)}, 'kraft': {'main_port_id': 26445758, 'sub_port_id': 26445869, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798129, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 34)}, 'autre_refus': {'main_port_id': 26445758, 'sub_port_id': 26445870, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798130, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 34)}, 'flou': {'main_port_id': 26445758, 'sub_port_id': 26445871, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798131, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 34)}, 'Carton_gris': {'main_port_id': 26445758, 'sub_port_id': 26445872, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798132, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 34)}, 'plastique': {'main_port_id': 26445758, 'sub_port_id': 26445873, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798133, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 34)}, 'environnement': {'main_port_id': 26445758, 'sub_port_id': 26445874, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798134, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 34)}, 'mal_croppe': {'main_port_id': 26445758, 'sub_port_id': 26445875, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798135, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 34)}, 'cartonnette': {'main_port_id': 26445758, 'sub_port_id': 26445876, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17798136, 'last_updated_at': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_desc': datetime.datetime(2025, 9, 2, 17, 13), 'last_updated_at_asc': datetime.datetime(2025, 9, 2, 17, 3, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445865,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445833 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445866,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445834 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445867,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445835 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445868,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445836 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445869,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445837 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445870,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445838 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445871,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445839 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445872,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445840 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445873,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445841 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445874,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445842 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445875,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445843 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26445876,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26445844 lien utilise dans velours : https://marlene.fotonower.com/velours/26445865,26445866,26445867,26445868,26445869,26445870,26445871,26445872,26445873,26445874,26445875,26445876?tags=Carton_brun,papier,metal,Teint_Dans_La_Masse,kraft,autre_refus,flou,Carton_gris,plastique,environnement,mal_croppe,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26445758]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1380880160, 1380880159, 1380880158, 1380880157, 1380880097, 1380880096, 1380880095, 1380880094, 1380880093, 1380880092] map_info['map_portfolio_photo'] : {26445758: [1380880160, 1380880159, 1380880158, 1380880157, 1380880097, 1380880096, 1380880095, 1380880094, 1380880093, 1380880092, 1380879851, 1380879849, 1380879848, 1380879847, 1380879846, 1380879845, 1380879774, 1380879773, 1380879772, 1380879639, 1380879637, 1380879635, 1380879633, 1380879631, 1380879629, 1380879308, 1380879306, 1380879303, 1380879300, 1380878738, 1380878737, 1380878736, 1380878735, 1380878734, 1380878733, 1380878554, 1380878553, 1380878552, 1380878550, 1380878549, 1380878548, 1380878491, 1380878490, 1380878489, 1380878488, 1380878172, 1380878170, 1380878168, 1380878166, 1380878164, 1380878162, 1380877836, 1380877833, 1380877830, 1380877827, 1380877393, 1380877390, 1380877387, 1380876747, 1380876745, 1380876141, 1380876138]} final : False mtd_id 4302 list_pids : [1380880160, 1380880159, 1380880158, 1380880157, 1380880097, 1380880096, 1380880095, 1380880094, 1380880093, 1380880092] Looping around the photos to save general results len do output : 1 /26445758. 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, '3652749') ('4302', '26445758', '1380880160', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880159', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880158', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880157', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880097', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880096', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880095', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880094', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880093', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880092', None, None, None, None, None, '3652749') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26445758', "{'Carton_brun': 26445833, 'papier': 26445834, 'metal': 26445835, 'Teint_Dans_La_Masse': 26445836, 'kraft': 26445837, 'autre_refus': 26445838, 'flou': 26445839, 'Carton_gris': 26445840, 'plastique': 26445841, 'environnement': 26445842, 'mal_croppe': 26445843, 'cartonnette': 26445844}", None, None, None, None, '3652749'), ('4302', '26445758', '1380880160', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880159', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880158', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880157', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880097', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880096', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880095', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880094', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880093', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880092', None, None, None, None, None, '3652749')] time used for this insertion : 0.014740228652954102 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.44335317611694336 time spend to save output : 0.015023231506347656 total time spend for step 1 : 0.458376407623291 step2:final Tue Sep 2 17:14:30 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 (26445758) 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 26445758 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1380876141,1380876138,1380876747,1380876745,1380877393,1380877390,1380877387,1380877836,1380877833,1380877830,1380877827,1380878172,1380878170,1380878168,1380878166,1380878164,1380878162,1380878491,1380878554,1380878490,1380878553,1380878489,1380878552,1380878488,1380878550,1380878549,1380878548,1380878738,1380878737,1380878736,1380878735,1380878734,1380878733,1380879308,1380879306,1380879303,1380879300,1380879639,1380879637,1380879635,1380879633,1380879631,1380879629,1380879774,1380879773,1380879772,1380879851,1380879849,1380879848,1380879847,1380879846,1380879845,1380880097,1380880096,1380880095,1380880094,1380880093,1380880092,1380880160,1380880159,1380880158,1380880157); 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([26445758]) Inside saveOutput : final : False verbose : True original output for save of step final : {1380880160: ('0.08466901690891734',), 1380880159: ('0.08466901690891734',), 1380880158: ('0.08466901690891734',), 1380880157: ('0.08466901690891734',), 1380880097: ('0.08466901690891734',), 1380880096: ('0.08466901690891734',), 1380880095: ('0.08466901690891734',), 1380880094: ('0.08466901690891734',), 1380880093: ('0.08466901690891734',), 1380880092: ('0.08466901690891734',)} new output for save of step final : {1380880160: ('0.08466901690891734',), 1380880159: ('0.08466901690891734',), 1380880158: ('0.08466901690891734',), 1380880157: ('0.08466901690891734',), 1380880097: ('0.08466901690891734',), 1380880096: ('0.08466901690891734',), 1380880095: ('0.08466901690891734',), 1380880094: ('0.08466901690891734',), 1380880093: ('0.08466901690891734',), 1380880092: ('0.08466901690891734',)} [1380880160, 1380880159, 1380880158, 1380880157, 1380880097, 1380880096, 1380880095, 1380880094, 1380880093, 1380880092] map_info['map_portfolio_photo'] : {26445758: [1380880160, 1380880159, 1380880158, 1380880157, 1380880097, 1380880096, 1380880095, 1380880094, 1380880093, 1380880092, 1380879851, 1380879849, 1380879848, 1380879847, 1380879846, 1380879845, 1380879774, 1380879773, 1380879772, 1380879639, 1380879637, 1380879635, 1380879633, 1380879631, 1380879629, 1380879308, 1380879306, 1380879303, 1380879300, 1380878738, 1380878737, 1380878736, 1380878735, 1380878734, 1380878733, 1380878554, 1380878553, 1380878552, 1380878550, 1380878549, 1380878548, 1380878491, 1380878490, 1380878489, 1380878488, 1380878172, 1380878170, 1380878168, 1380878166, 1380878164, 1380878162, 1380877836, 1380877833, 1380877830, 1380877827, 1380877393, 1380877390, 1380877387, 1380876747, 1380876745, 1380876141, 1380876138]} final : False mtd_id 4302 list_pids : [1380880160, 1380880159, 1380880158, 1380880157, 1380880097, 1380880096, 1380880095, 1380880094, 1380880093, 1380880092] Looping around the photos to save general results len do output : 10 /1380880160.Didn't retrieve data . /1380880159.Didn't retrieve data . /1380880158.Didn't retrieve data . /1380880157.Didn't retrieve data . /1380880097.Didn't retrieve data . /1380880096.Didn't retrieve data . /1380880095.Didn't retrieve data . /1380880094.Didn't retrieve data . /1380880093.Didn't retrieve data . /1380880092.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, '3652749') ('4302', '26445758', '1380880160', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880159', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880158', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880157', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880097', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880096', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880095', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880094', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880093', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880092', None, None, None, None, None, '3652749') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '26445758', '1380880160', '0.08466901690891734', None, None, None, None, '3652749'), ('4302', '26445758', '1380880159', '0.08466901690891734', None, None, None, None, '3652749'), ('4302', '26445758', '1380880158', '0.08466901690891734', None, None, None, None, '3652749'), ('4302', '26445758', '1380880157', '0.08466901690891734', None, None, None, None, '3652749'), ('4302', '26445758', '1380880097', '0.08466901690891734', None, None, None, None, '3652749'), ('4302', '26445758', '1380880096', '0.08466901690891734', None, None, None, None, '3652749'), ('4302', '26445758', '1380880095', '0.08466901690891734', None, None, None, None, '3652749'), ('4302', '26445758', '1380880094', '0.08466901690891734', None, None, None, None, '3652749'), ('4302', '26445758', '1380880093', '0.08466901690891734', None, None, None, None, '3652749'), ('4302', '26445758', '1380880092', '0.08466901690891734', None, None, None, None, '3652749')] time used for this insertion : 0.01360011100769043 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06490087509155273 time spend to save output : 0.014000177383422852 total time spend for step 2 : 0.07890105247497559 step3:velours_tree Tue Sep 2 17:14:30 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 : {26445758: [{'Carton_brun': 26445833, 'papier': 26445834, 'metal': 26445835, 'Teint_Dans_La_Masse': 26445836, 'kraft': 26445837, 'autre_refus': 26445838, 'flou': 26445839, 'Carton_gris': 26445840, 'plastique': 26445841, 'environnement': 26445842, 'mal_croppe': 26445843, 'cartonnette': 26445844}]} input_args_next_step : {26445758: ()} output_args : {26445758: [{'Carton_brun': 26445833, 'papier': 26445834, 'metal': 26445835, 'Teint_Dans_La_Masse': 26445836, 'kraft': 26445837, 'autre_refus': 26445838, 'flou': 26445839, 'Carton_gris': 26445840, 'plastique': 26445841, 'environnement': 26445842, 'mal_croppe': 26445843, 'cartonnette': 26445844}]} args : 26445758 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_brun': 26445833, 'papier': 26445834, 'metal': 26445835, 'Teint_Dans_La_Masse': 26445836, 'kraft': 26445837, 'autre_refus': 26445838, 'flou': 26445839, 'Carton_gris': 26445840, 'plastique': 26445841, 'environnement': 26445842, 'mal_croppe': 26445843, 'cartonnette': 26445844},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26445758) 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([26445758]) 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.30785202980041504 time spend to save output : 8.0108642578125e-05 total time spend for step 3 : 0.30793213844299316 step4:send_mail_cod Tue Sep 2 17:14:31 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 : {1380880160: ('0.08466901690891734',), 1380880159: ('0.08466901690891734',), 1380880158: ('0.08466901690891734',), 1380880157: ('0.08466901690891734',), 1380880097: ('0.08466901690891734',), 1380880096: ('0.08466901690891734',), 1380880095: ('0.08466901690891734',), 1380880094: ('0.08466901690891734',), 1380880093: ('0.08466901690891734',), 1380880092: ('0.08466901690891734',)} input_args_next_step : {1380880160: ()} output_args : {1380880160: ('0.08466901690891734',), 1380880159: ('0.08466901690891734',), 1380880158: ('0.08466901690891734',), 1380880157: ('0.08466901690891734',), 1380880097: ('0.08466901690891734',), 1380880096: ('0.08466901690891734',), 1380880095: ('0.08466901690891734',), 1380880094: ('0.08466901690891734',), 1380880093: ('0.08466901690891734',), 1380880092: ('0.08466901690891734',)} args : 1380880160 depend.output_id : 0 input_args_next_step : {1380880160: ('0.08466901690891734',), 1380880159: ()} output_args : {1380880160: ('0.08466901690891734',), 1380880159: ('0.08466901690891734',), 1380880158: ('0.08466901690891734',), 1380880157: ('0.08466901690891734',), 1380880097: ('0.08466901690891734',), 1380880096: ('0.08466901690891734',), 1380880095: ('0.08466901690891734',), 1380880094: ('0.08466901690891734',), 1380880093: ('0.08466901690891734',), 1380880092: ('0.08466901690891734',)} args : 1380880159 depend.output_id : 0 input_args_next_step : {1380880160: ('0.08466901690891734',), 1380880159: ('0.08466901690891734',), 1380880158: ()} output_args : {1380880160: ('0.08466901690891734',), 1380880159: ('0.08466901690891734',), 1380880158: ('0.08466901690891734',), 1380880157: ('0.08466901690891734',), 1380880097: ('0.08466901690891734',), 1380880096: ('0.08466901690891734',), 1380880095: ('0.08466901690891734',), 1380880094: ('0.08466901690891734',), 1380880093: ('0.08466901690891734',), 1380880092: ('0.08466901690891734',)} args : 1380880158 depend.output_id : 0 input_args_next_step : {1380880160: ('0.08466901690891734',), 1380880159: ('0.08466901690891734',), 1380880158: ('0.08466901690891734',), 1380880157: ()} output_args : {1380880160: ('0.08466901690891734',), 1380880159: ('0.08466901690891734',), 1380880158: ('0.08466901690891734',), 1380880157: ('0.08466901690891734',), 1380880097: ('0.08466901690891734',), 1380880096: ('0.08466901690891734',), 1380880095: ('0.08466901690891734',), 1380880094: ('0.08466901690891734',), 1380880093: ('0.08466901690891734',), 1380880092: ('0.08466901690891734',)} args : 1380880157 depend.output_id : 0 input_args_next_step : {1380880160: ('0.08466901690891734',), 1380880159: ('0.08466901690891734',), 1380880158: ('0.08466901690891734',), 1380880157: ('0.08466901690891734',), 1380880097: ()} output_args : {1380880160: ('0.08466901690891734',), 1380880159: ('0.08466901690891734',), 1380880158: ('0.08466901690891734',), 1380880157: ('0.08466901690891734',), 1380880097: ('0.08466901690891734',), 1380880096: ('0.08466901690891734',), 1380880095: ('0.08466901690891734',), 1380880094: ('0.08466901690891734',), 1380880093: ('0.08466901690891734',), 1380880092: ('0.08466901690891734',)} args : 1380880097 depend.output_id : 0 input_args_next_step : {1380880160: ('0.08466901690891734',), 1380880159: ('0.08466901690891734',), 1380880158: ('0.08466901690891734',), 1380880157: ('0.08466901690891734',), 1380880097: ('0.08466901690891734',), 1380880096: ()} output_args : {1380880160: ('0.08466901690891734',), 1380880159: ('0.08466901690891734',), 1380880158: ('0.08466901690891734',), 1380880157: ('0.08466901690891734',), 1380880097: ('0.08466901690891734',), 1380880096: ('0.08466901690891734',), 1380880095: ('0.08466901690891734',), 1380880094: ('0.08466901690891734',), 1380880093: ('0.08466901690891734',), 1380880092: ('0.08466901690891734',)} args : 1380880096 depend.output_id : 0 input_args_next_step : {1380880160: ('0.08466901690891734',), 1380880159: ('0.08466901690891734',), 1380880158: ('0.08466901690891734',), 1380880157: ('0.08466901690891734',), 1380880097: ('0.08466901690891734',), 1380880096: ('0.08466901690891734',), 1380880095: ()} output_args : {1380880160: ('0.08466901690891734',), 1380880159: ('0.08466901690891734',), 1380880158: ('0.08466901690891734',), 1380880157: ('0.08466901690891734',), 1380880097: ('0.08466901690891734',), 1380880096: ('0.08466901690891734',), 1380880095: ('0.08466901690891734',), 1380880094: ('0.08466901690891734',), 1380880093: ('0.08466901690891734',), 1380880092: ('0.08466901690891734',)} args : 1380880095 depend.output_id : 0 input_args_next_step : {1380880160: ('0.08466901690891734',), 1380880159: ('0.08466901690891734',), 1380880158: ('0.08466901690891734',), 1380880157: ('0.08466901690891734',), 1380880097: ('0.08466901690891734',), 1380880096: ('0.08466901690891734',), 1380880095: ('0.08466901690891734',), 1380880094: ()} output_args : {1380880160: ('0.08466901690891734',), 1380880159: ('0.08466901690891734',), 1380880158: ('0.08466901690891734',), 1380880157: ('0.08466901690891734',), 1380880097: ('0.08466901690891734',), 1380880096: ('0.08466901690891734',), 1380880095: ('0.08466901690891734',), 1380880094: ('0.08466901690891734',), 1380880093: ('0.08466901690891734',), 1380880092: ('0.08466901690891734',)} args : 1380880094 depend.output_id : 0 input_args_next_step : {1380880160: ('0.08466901690891734',), 1380880159: ('0.08466901690891734',), 1380880158: ('0.08466901690891734',), 1380880157: ('0.08466901690891734',), 1380880097: ('0.08466901690891734',), 1380880096: ('0.08466901690891734',), 1380880095: ('0.08466901690891734',), 1380880094: ('0.08466901690891734',), 1380880093: ()} output_args : {1380880160: ('0.08466901690891734',), 1380880159: ('0.08466901690891734',), 1380880158: ('0.08466901690891734',), 1380880157: ('0.08466901690891734',), 1380880097: ('0.08466901690891734',), 1380880096: ('0.08466901690891734',), 1380880095: ('0.08466901690891734',), 1380880094: ('0.08466901690891734',), 1380880093: ('0.08466901690891734',), 1380880092: ('0.08466901690891734',)} args : 1380880093 depend.output_id : 0 input_args_next_step : {1380880160: ('0.08466901690891734',), 1380880159: ('0.08466901690891734',), 1380880158: ('0.08466901690891734',), 1380880157: ('0.08466901690891734',), 1380880097: ('0.08466901690891734',), 1380880096: ('0.08466901690891734',), 1380880095: ('0.08466901690891734',), 1380880094: ('0.08466901690891734',), 1380880093: ('0.08466901690891734',), 1380880092: ()} output_args : {1380880160: ('0.08466901690891734',), 1380880159: ('0.08466901690891734',), 1380880158: ('0.08466901690891734',), 1380880157: ('0.08466901690891734',), 1380880097: ('0.08466901690891734',), 1380880096: ('0.08466901690891734',), 1380880095: ('0.08466901690891734',), 1380880094: ('0.08466901690891734',), 1380880093: ('0.08466901690891734',), 1380880092: ('0.08466901690891734',)} args : 1380880092 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 : {26445758: [{'Carton_brun': 26445833, 'papier': 26445834, 'metal': 26445835, 'Teint_Dans_La_Masse': 26445836, 'kraft': 26445837, 'autre_refus': 26445838, 'flou': 26445839, 'Carton_gris': 26445840, 'plastique': 26445841, 'environnement': 26445842, 'mal_croppe': 26445843, 'cartonnette': 26445844}]} input_args_next_step : {1380880160: ('0.08466901690891734',), 1380880159: ('0.08466901690891734',), 1380880158: ('0.08466901690891734',), 1380880157: ('0.08466901690891734',), 1380880097: ('0.08466901690891734',), 1380880096: ('0.08466901690891734',), 1380880095: ('0.08466901690891734',), 1380880094: ('0.08466901690891734',), 1380880093: ('0.08466901690891734',), 1380880092: ('0.08466901690891734',), 26445758: ()} output_args : {26445758: [{'Carton_brun': 26445833, 'papier': 26445834, 'metal': 26445835, 'Teint_Dans_La_Masse': 26445836, 'kraft': 26445837, 'autre_refus': 26445838, 'flou': 26445839, 'Carton_gris': 26445840, 'plastique': 26445841, 'environnement': 26445842, 'mal_croppe': 26445843, 'cartonnette': 26445844}]} args : 26445758 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 :11, first value : ('0.08466901690891734',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26445758) 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 ph WHERE photo_id IN (1380880160,1380880159,1380880158,1380880157,1380880097,1380880096,1380880095,1380880094,1380880093,1380880092) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1380880092 begin to download photo : 1380880095 begin to download photo : 1380880157 begin to download photo : 1380880160 download finish for photo 1380880160 download finish for photo 1380880095 begin to download photo : 1380880096 download finish for photo 1380880092 begin to download photo : 1380880093 download finish for photo 1380880157 begin to download photo : 1380880158 download finish for photo 1380880096 begin to download photo : 1380880097 download finish for photo 1380880158 begin to download photo : 1380880159 download finish for photo 1380880093 begin to download photo : 1380880094 download finish for photo 1380880159 download finish for photo 1380880097 download finish for photo 1380880094 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette264458351756826071/ imagette264458371756826071/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P26445758_02-09-2025_17_14_31.pdf 26445835 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26445835 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264458351756826071 26445837 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26445837 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264458371756826071 26445838 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26445838 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380880144: '1756826007_4089175_1380878735_5ac438a91f64329a4532854d0db302ba_89081223_rle_crop_3940708037_0.png'} change filename to text .imagette264458381756826071/ imagette264458381756826071/1756826007_4089175_1380878735_5ac438a91f64329a4532854d0db302ba_89081223_rle_crop_3940708037_0.png.png imagette264458391756826071/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/7ee189dcc3e8ab862ee0e59167912c51_20057019.png imagette264458381756826071 26445839 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26445839 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264458391756826071 26445841 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26445841 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380878746: '1756825647_4070155_1380876141_2126fef7c1a2bd2cf9710dc2423da436_39605484_rle_crop_3940702387_0.png'} change filename to text .imagette264458411756826071/ imagette264458411756826071/1756825647_4070155_1380876141_2126fef7c1a2bd2cf9710dc2423da436_39605484_rle_crop_3940702387_0.png.png imagette264458431756826071/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/0e9a7f9406b7d8cc7c9c71c9e72309c6_63104958.png imagette264458411756826071 26445843 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26445843 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette264458431756826071 26445844 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26445844 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380880147: '1756826007_4089175_1380878733_2237a3f562587400642ec8642f7af0a9_47705049_rle_crop_3940708056_0.png'} change filename to text .imagette264458441756826071/ imagette264458441756826071/1756826007_4089175_1380878733_2237a3f562587400642ec8642f7af0a9_47705049_rle_crop_3940708056_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/7251badad1548cd86e8521c0f8289e87_85165111.png imagette264458441756826071 26445833 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26445833 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380880148: '1756826007_4089175_1380878733_2237a3f562587400642ec8642f7af0a9_47705049_rle_crop_3940708060_0.png'} change filename to text .imagette264458331756826071/ imagette264458331756826071/1756826007_4089175_1380878733_2237a3f562587400642ec8642f7af0a9_47705049_rle_crop_3940708060_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/df5cdbf20596a47c3d125e5a032eecae_43776205.png imagette264458331756826071 26445836 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26445836 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380878741: '1756825647_4070155_1380876141_2126fef7c1a2bd2cf9710dc2423da436_39605484_rle_crop_3940702392_0.png', 1380878742: '1756825647_4070155_1380876141_2126fef7c1a2bd2cf9710dc2423da436_39605484_rle_crop_3940702388_0.png', 1380878743: '1756825647_4070155_1380876138_af8080ae4360d9d03dfb58b362139ad1_52655501_rle_crop_3940702403_0.png', 1380878744: '1756825647_4070155_1380876138_af8080ae4360d9d03dfb58b362139ad1_52655501_rle_crop_3940702402_0.png', 1380878745: '1756825647_4070155_1380876138_af8080ae4360d9d03dfb58b362139ad1_52655501_rle_crop_3940702405_0.png', 1380880143: '1756826007_4089175_1380878734_5e7756d639192a148450faca71a7f674_87511026_rle_crop_3940708048_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/c31a5ed41e51b16916cf7ef6bde126bc_31236247.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/04bbf3a4e34285e59ea6ff558091b30c_11888181.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/c312dc2af31d1e21346bb81ffde34ab2_85024213.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/07bfaff9cad17d9fc141ff4df86c87d6_88451773.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/5ff76c3f567d34857188073515003c3f_37820330.png change filename to text .imagette264458361756826071/ imagette264458361756826071/1756825647_4070155_1380876141_2126fef7c1a2bd2cf9710dc2423da436_39605484_rle_crop_3940702392_0.png.png imagette264458361756826071/1756825647_4070155_1380876138_af8080ae4360d9d03dfb58b362139ad1_52655501_rle_crop_3940702405_0.png.png imagette264458361756826071/1756825647_4070155_1380876138_af8080ae4360d9d03dfb58b362139ad1_52655501_rle_crop_3940702403_0.png.png imagette264458361756826071/1756825647_4070155_1380876138_af8080ae4360d9d03dfb58b362139ad1_52655501_rle_crop_3940702402_0.png.png imagette264458361756826071/1756826007_4089175_1380878734_5e7756d639192a148450faca71a7f674_87511026_rle_crop_3940708048_0.png.png imagette264458361756826071/1756825647_4070155_1380876141_2126fef7c1a2bd2cf9710dc2423da436_39605484_rle_crop_3940702388_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/0709057bc91ec0564e887b5dcb154d18_74550482.png imagette264458361756826071 26445840 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26445840 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380880145: '1756826007_4089175_1380878737_53d8e1cf683a07308449a7862b8db5a1_25923667_rle_crop_3940708023_0.png', 1380880146: '1756826007_4089175_1380878734_5e7756d639192a148450faca71a7f674_87511026_rle_crop_3940708045_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/3c325626321f2382a24c5605653a54f5_66062721.png change filename to text .imagette264458401756826072/ imagette264458401756826072/1756826007_4089175_1380878737_53d8e1cf683a07308449a7862b8db5a1_25923667_rle_crop_3940708023_0.png.png imagette264458401756826072/1756826007_4089175_1380878734_5e7756d639192a148450faca71a7f674_87511026_rle_crop_3940708045_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/7915e66225ba279e84c6150820bf1c88_53398555.png imagette264458401756826072 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26445758 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26445865,26445866,26445867,26445868,26445869,26445870,26445871,26445872,26445873,26445874,26445875,26445876?tags=Carton_brun,papier,metal,Teint_Dans_La_Masse,kraft,autre_refus,flou,Carton_gris,plastique,environnement,mal_croppe,cartonnette your option no_mail is active, we will not send the real mail to your client args[1380880160] : ('0.08466901690891734',) no score found for photo 1380880160 We are sending mail with results at report@fotonower.com args[1380880159] : ('0.08466901690891734',) no score found for photo 1380880159 We are sending mail with results at report@fotonower.com args[1380880158] : ('0.08466901690891734',) no score found for photo 1380880158 We are sending mail with results at report@fotonower.com args[1380880157] : ('0.08466901690891734',) no score found for photo 1380880157 We are sending mail with results at report@fotonower.com args[1380880097] : ('0.08466901690891734',) no score found for photo 1380880097 We are sending mail with results at report@fotonower.com args[1380880096] : ('0.08466901690891734',) no score found for photo 1380880096 We are sending mail with results at report@fotonower.com args[1380880095] : ('0.08466901690891734',) no score found for photo 1380880095 We are sending mail with results at report@fotonower.com args[1380880094] : ('0.08466901690891734',) no score found for photo 1380880094 We are sending mail with results at report@fotonower.com args[1380880093] : ('0.08466901690891734',) no score found for photo 1380880093 We are sending mail with results at report@fotonower.com args[1380880092] : ('0.08466901690891734',) no score found for photo 1380880092 We are sending mail with results at report@fotonower.com refus_total : 0.08466901690891734 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26445758 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_P26445758_02-09-2025_17_14_31.pdf results_Auto_P26445758_02-09-2025_17_14_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26445758_02-09-2025_17_14_31.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','26445758','results_Auto_P26445758_02-09-2025_17_14_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26445758_02-09-2025_17_14_31.pdf','pdf','','0.14','0.08466901690891734') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26445758]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1380880160, 1380880159, 1380880158, 1380880157, 1380880097, 1380880096, 1380880095, 1380880094, 1380880093, 1380880092] map_info['map_portfolio_photo'] : {26445758: [1380880160, 1380880159, 1380880158, 1380880157, 1380880097, 1380880096, 1380880095, 1380880094, 1380880093, 1380880092, 1380879851, 1380879849, 1380879848, 1380879847, 1380879846, 1380879845, 1380879774, 1380879773, 1380879772, 1380879639, 1380879637, 1380879635, 1380879633, 1380879631, 1380879629, 1380879308, 1380879306, 1380879303, 1380879300, 1380878738, 1380878737, 1380878736, 1380878735, 1380878734, 1380878733, 1380878554, 1380878553, 1380878552, 1380878550, 1380878549, 1380878548, 1380878491, 1380878490, 1380878489, 1380878488, 1380878172, 1380878170, 1380878168, 1380878166, 1380878164, 1380878162, 1380877836, 1380877833, 1380877830, 1380877827, 1380877393, 1380877390, 1380877387, 1380876747, 1380876745, 1380876141, 1380876138]} final : False mtd_id 4302 list_pids : [1380880160, 1380880159, 1380880158, 1380880157, 1380880097, 1380880096, 1380880095, 1380880094, 1380880093, 1380880092] 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, '3652749') ('4302', '26445758', '1380880160', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880159', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880158', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880157', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880097', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880096', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880095', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880094', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880093', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880092', None, None, None, None, None, '3652749') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '26445758', '1380880160', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880159', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880158', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880157', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880097', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880096', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880095', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880094', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880093', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880092', None, None, None, None, None, '3652749')] time used for this insertion : 0.01769733428955078 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.182960033416748 time spend to save output : 0.017937898635864258 total time spend for step 4 : 2.2008979320526123 step5:split_time_score Tue Sep 2 17:14:33 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 : ['26445758'] 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 : [('26445758',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26445758) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1380880160: {'path': 'temp/1756826071_3556588_1380880160_9d633846599a7ecec071fe061d1eeeee_30448256.jpg', 'extension': 'jpg'}, 1380880157: {'path': 'temp/1756826071_3556588_1380880157_5f6ac3dd8c37cfba6b2c76e5b3fe128e_31876100.jpg', 'extension': 'jpg'}, 1380880158: {'path': 'temp/1756826071_3556588_1380880158_e67eec304d5eb10d06c8a926fa5fe872_27632808.jpg', 'extension': 'jpg'}, 1380880159: {'path': 'temp/1756826071_3556588_1380880159_9592391cd62003e2fece573f7b34d425_54543059.jpg', 'extension': 'jpg'}, 1380880095: {'path': 'temp/1756826071_3556588_1380880095_b301fbed9a64e817f22a1d72bbfc972c_84631188.jpg', 'extension': 'jpg'}, 1380880096: {'path': 'temp/1756826071_3556588_1380880096_e04c264ac1cb4e7d1192c9f55621e862_91410052.jpg', 'extension': 'jpg'}, 1380880097: {'path': 'temp/1756826071_3556588_1380880097_069e66bd0f773746e5909eb014900b1f_95740398.jpg', 'extension': 'jpg'}, 1380880092: {'path': 'temp/1756826071_3556588_1380880092_f50098cec0e3f142722cb55523279fbe_369274.jpg', 'extension': 'jpg'}, 1380880093: {'path': 'temp/1756826071_3556588_1380880093_2d0fb8eae399de4a8c18b85ff95d6ed8_84025794.jpg', 'extension': 'jpg'}, 1380880094: {'path': 'temp/1756826071_3556588_1380880094_11e1af99731292fd202f8a9cb097981d_66846256.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 = 26445758; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26445758 group by h (('17', 62),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26445758 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 (26445758) 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 (26445758) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02092025 26445758 Nombre de photos uploadées : 62 / 23040 (0%) 02092025 26445758 Nombre de photos taguées (types de déchets): 0 / 62 (0%) 02092025 26445758 Nombre de photos taguées (volume) : 0 / 62 (0%) [{'photo_id': 1380876141, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/2126fef7c1a2bd2cf9710dc2423da436_39605484.jpg', 'username': None, 'uploaded_at': 1756825272, 'text': 'image_02092025_17_00_14_010213m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1380876138, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/af8080ae4360d9d03dfb58b362139ad1_52655501.jpg', 'username': None, 'uploaded_at': 1756825272, 'text': 'image_02092025_17_00_35_010144m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1380876747, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/a400759b42ab5b6c034add0135a69a44_86757036.jpg', 'username': None, 'uploaded_at': 1756825332, 'text': 'image_02092025_17_00_55_10136.jpg'}, {'photo_id': 1380876745, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/2/8cc17c3a1b4d9f9a144dae9c1cfcc7fa_87166103.jpg', 'username': None, 'uploaded_at': 1756825332, 'text': 'image_02092025_17_01_24_10138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ?????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0050182342529296875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26445758, '2025-09-02' ) 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-09-02' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2213047,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.29789304733276367 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= 2213047 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26419800, 'dashboard_result_id': 14602280, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26419800_02-09-2025_06_10_41.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26419801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26419802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26419803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26419804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26419805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26419806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26419807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26419808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26419809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26419810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26419811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26419812, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26420091, 'dashboard_result_id': 14602281, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420091_02-09-2025_06_11_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420092, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420100, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420103, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26420215, 'dashboard_result_id': 14602282, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420215_02-09-2025_06_11_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420220, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420224, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420227, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26420269, 'dashboard_result_id': 14602283, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420269_02-09-2025_06_12_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420281, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26420665, 'dashboard_result_id': 14602284, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420665_02-09-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420669, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420677, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26420821, 'dashboard_result_id': 14602285, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420821_02-09-2025_06_12_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420833, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26421082, 'dashboard_result_id': 14602286, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421082_02-09-2025_06_13_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421094, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26421275, 'dashboard_result_id': 14602287, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421275_02-09-2025_06_14_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421288, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26421697, 'dashboard_result_id': 14602288, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421697_02-09-2025_06_14_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421698, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421699, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421709, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26421773, 'dashboard_result_id': 14602289, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421773_02-09-2025_06_15_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421775, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421786, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26421852, 'dashboard_result_id': 14602290, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421852_02-09-2025_06_15_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421861, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421864, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26422348, 'dashboard_result_id': 14602291, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422348_02-09-2025_06_15_41.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422357, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422361, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26422569, 'dashboard_result_id': 14602292, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422569_02-09-2025_05_40_41.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26422571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422582, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26422847, 'dashboard_result_id': 14602293, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422847_02-09-2025_05_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26422888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422899, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26423247, 'dashboard_result_id': 14602294, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423247_02-09-2025_06_03_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423262, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26423697, 'dashboard_result_id': 14602295, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423697_02-09-2025_07_00_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423722, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26425366, 'dashboard_result_id': 14602296, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425366_02-09-2025_07_01_07.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425458, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26425367, 'dashboard_result_id': 14602297, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425367_02-09-2025_07_00_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425428, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26425368, 'dashboard_result_id': 14602298, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425368_02-09-2025_07_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425372, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425380, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26426242, 'dashboard_result_id': 14602299, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426242_02-09-2025_07_24_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426276, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426283, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26426742, 'dashboard_result_id': 14602300, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426742_02-09-2025_07_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426756, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26426922, 'dashboard_result_id': 14602301, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426922_02-09-2025_07_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26426928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426930, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426932, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426939, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26427649, 'dashboard_result_id': 14602302, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26427649_02-09-2025_08_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26427691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26427692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26427693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26427694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26427695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26427696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26427697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26427698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26427699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26427700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26427701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26427702, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26427997, 'dashboard_result_id': 14602303, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26427997_02-09-2025_10_58_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26428044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26428045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26428046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26428047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26428048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26428049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26428050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26428051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26428052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26428053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26428054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26428055, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26429064, 'dashboard_result_id': 14602304, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429064_02-09-2025_10_57_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429188, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429189, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26429066, 'dashboard_result_id': 14602305, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429066_02-09-2025_10_57_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429105, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429112, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26429069, 'dashboard_result_id': 14602306, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429069_02-09-2025_09_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429082, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26430560, 'dashboard_result_id': 14602307, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26430560_02-09-2025_09_49_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26430574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26430575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26430576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26430577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26430578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26430579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26430580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26430581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26430582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26430583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26430584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26430585, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26431021, 'dashboard_result_id': 14602308, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26431021_02-09-2025_10_03_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26431050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26431051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26431052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26431053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26431054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26431055, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26431056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26431057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26431058, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26431059, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26431060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26431061, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26431877, 'dashboard_result_id': 14602309, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26431877_02-09-2025_10_18_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26431882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26431883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26431884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26431885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26431886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26431887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26431889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26431890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26431891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26431892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26431893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26431894, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26432175, 'dashboard_result_id': 14602310, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26432175_02-09-2025_10_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26432194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26432195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26432196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26432197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26432198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26432199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26432200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26432201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26432202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26432203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26432204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26432205, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26432932, 'dashboard_result_id': 14602311, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26432932_02-09-2025_10_48_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26432958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26432959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26432960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26432961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26432962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26432963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26432964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26432965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26432966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26432967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26432968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26432969, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26433636, 'dashboard_result_id': 14602312, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26433636_02-09-2025_11_56_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26433703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26433704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26433705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26433706, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26433707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26433708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26433709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26433710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26433711, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26433712, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26433713, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26433714, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26434418, 'dashboard_result_id': 14602313, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26434418_02-09-2025_11_18_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26434426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26434427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26434428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26434429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26434430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26434431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26434432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26434433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26434434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26434435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26434436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26434437, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26435176, 'dashboard_result_id': 14602314, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26435176_02-09-2025_11_33_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26435185, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26435186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26435187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26435188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26435189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26435190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26435191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26435192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26435193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26435194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26435195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26435196, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26435639, 'dashboard_result_id': 14602315, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26435639_02-09-2025_11_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26435656, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26435657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26435658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26435659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26435660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26435661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26435662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26435663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26435664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26435665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26435666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26435667, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26435936, 'dashboard_result_id': 14602316, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26435936_02-09-2025_13_00_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26435962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26435963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26435964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26435965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26435966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26435967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26435968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26435969, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26435970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26435971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26435972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26435973, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26437996, 'dashboard_result_id': 14602317, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26437996_02-09-2025_13_59_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26438000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26438001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26438002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26438003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26438004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26438005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26438006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26438007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26438008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26438009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26438010, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26438011, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26438994, 'dashboard_result_id': 14602318, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26438994_02-09-2025_14_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26438997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26438998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26438999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26439000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26439001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26439002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26439003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26439004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26439005, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26439006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26439007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26439008, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26439239, 'dashboard_result_id': 14602319, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26439239_02-09-2025_14_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26439257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26439258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26439259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26439260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26439261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26439262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26439263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26439264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26439266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26439267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26439268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26439269, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26439847, 'dashboard_result_id': 14602320, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26439847_02-09-2025_14_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26439863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26439864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26439865, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26439866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26439867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26439868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26439869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26439870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26439871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26439872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26439873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26439874, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26440428, 'dashboard_result_id': 14602321, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26440428_02-09-2025_14_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26440474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26440475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26440476, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26440477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26440478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26440479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26440480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26440481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26440482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26440483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26440484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26440485, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26440892, 'dashboard_result_id': 14602322, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26440892_02-09-2025_15_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26440908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26440909, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26440910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26440911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26440912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26440913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26440914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26440915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26440916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26440917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26440918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26440919, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26441460, 'dashboard_result_id': 14602323, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26441460_02-09-2025_15_18_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26441492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26441493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26441494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26441495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26441496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26441497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26441498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26441499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26441500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26441501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26441502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26441503, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26442297, 'dashboard_result_id': 14602324, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26442297_02-09-2025_15_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26442302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26442303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26442304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26442305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26442306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26442307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26442308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26442309, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26442310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26442311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26442312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26442313, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26442757, 'dashboard_result_id': 14602325, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26442757_02-09-2025_15_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26442779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26442780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26442781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26442782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26442783, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26442784, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26442785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26442786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26442787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26442789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26442790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26442791, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26443340, 'dashboard_result_id': 14602326, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26443340_02-09-2025_16_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26443359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26443360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26443362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26443363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26443364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26443365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26443366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26443367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26443368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26443369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26443370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26443371, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26443863, 'dashboard_result_id': 14602327, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26443863_02-09-2025_16_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26443876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26443877, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26443878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26443879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26443880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26443881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26443882, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26443883, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26443884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26443885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26443886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26443887, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26444379, 'dashboard_result_id': 14602328, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26444379_02-09-2025_16_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26444384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26444385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26444386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26444387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26444388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26444389, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26444390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26444391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26444392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26444393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26444394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26444395, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26444704, 'dashboard_result_id': 14602329, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26444704_02-09-2025_16_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26444733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26444734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26444735, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26444736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26444737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26444738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26444739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26444740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26444741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26444742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26444743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26444744, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26445193, 'dashboard_result_id': 14602330, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26445193_02-09-2025_17_02_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26445219, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26445220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26445221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26445222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26445223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26445224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26445225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26445226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26445227, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26445228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26445229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26445230, 'pht': 3726}}"}, {'dashboat_entry_day': 2213047, 'dashboard_run_id': 2225673, 'mtr_portfolio_id': 26445758, 'dashboard_result_id': 14602331, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26445758_02-09-2025_17_10_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26445833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26445834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26445835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26445836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26445837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26445838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26445839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26445840, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26445841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26445842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26445843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26445844, '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 = 26419800 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649621, 'mtr_portfolio_id': 26419800, 'created_at': datetime.datetime(2025, 9, 2, 6, 10, 40), 'result': '0.03686026602506332', 'result_long': None, 'result_double': None}] Qualite : 0.03686026602506332 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26419800 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26419800_02-09-2025_06_10_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26419800 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26419800_02-09-2025_06_10_41.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26419801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26419802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26419803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26419804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26419805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26419806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26419807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26419808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26419809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26419810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26419811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26419812, 'pht': 3726}}" where mtr_portfolio_id = 26419800 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26419800 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602280, 0.03686026602506332, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26419800_02-09-2025_06_10_41.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26419801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26419802, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26419803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26419804, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26419805, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26419806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26419807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26419808, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26419809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26419810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26419811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26419812, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26420091 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649622, 'mtr_portfolio_id': 26420091, 'created_at': datetime.datetime(2025, 9, 2, 6, 11), 'result': '0.0030135671054280005', 'result_long': None, 'result_double': None}] Qualite : 0.0030135671054280005 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26420091 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420091_02-09-2025_06_11_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26420091 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420091_02-09-2025_06_11_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420092, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420100, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420103, 'pht': 3726}}" where mtr_portfolio_id = 26420091 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26420091 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602281, 0.0030135671054280005, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420091_02-09-2025_06_11_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420092, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420094, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420095, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420097, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420098, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420099, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420100, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420101, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420103, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26420215 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649623, 'mtr_portfolio_id': 26420215, 'created_at': datetime.datetime(2025, 9, 2, 6, 11, 30), 'result': '0.021580946659637567', 'result_long': None, 'result_double': None}] Qualite : 0.021580946659637567 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26420215 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420215_02-09-2025_06_11_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26420215 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420215_02-09-2025_06_11_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420220, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420224, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420227, 'pht': 3726}}" where mtr_portfolio_id = 26420215 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26420215 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602282, 0.021580946659637567, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420215_02-09-2025_06_11_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420218, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420219, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420220, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420221, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420222, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420224, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420227, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26420269 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649624, 'mtr_portfolio_id': 26420269, 'created_at': datetime.datetime(2025, 9, 2, 6, 12, 1), 'result': '0.024971925645642143', 'result_long': None, 'result_double': None}] Qualite : 0.024971925645642143 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26420269 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420269_02-09-2025_06_12_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26420269 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420269_02-09-2025_06_12_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420281, 'pht': 3726}}" where mtr_portfolio_id = 26420269 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26420269 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602283, 0.024971925645642143, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420269_02-09-2025_06_12_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420271, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420272, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420274, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420275, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420277, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420280, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420281, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26420665 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649625, 'mtr_portfolio_id': 26420665, 'created_at': datetime.datetime(2025, 9, 2, 6, 12, 29), 'result': '0.11729822377686816', 'result_long': None, 'result_double': None}] Qualite : 0.11729822377686816 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26420665 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420665_02-09-2025_06_12_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26420665 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420665_02-09-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420669, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420677, 'pht': 3726}}" where mtr_portfolio_id = 26420665 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26420665 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602284, 0.11729822377686816, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420665_02-09-2025_06_12_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420668, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420669, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420672, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420676, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420677, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26420821 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649626, 'mtr_portfolio_id': 26420821, 'created_at': datetime.datetime(2025, 9, 2, 6, 12, 58), 'result': '0.017734543541633403', 'result_long': None, 'result_double': None}] Qualite : 0.017734543541633403 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26420821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420821_02-09-2025_06_12_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26420821 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420821_02-09-2025_06_12_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420833, 'pht': 3726}}" where mtr_portfolio_id = 26420821 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26420821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602285, 0.017734543541633403, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26420821_02-09-2025_06_12_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26420822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26420823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26420824, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26420825, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26420826, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26420827, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26420828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26420829, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26420830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26420831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26420832, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26420833, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26421082 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649627, 'mtr_portfolio_id': 26421082, 'created_at': datetime.datetime(2025, 9, 2, 6, 13, 30), 'result': '0.047804041156876025', 'result_long': None, 'result_double': None}] Qualite : 0.047804041156876025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26421082 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421082_02-09-2025_06_13_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26421082 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421082_02-09-2025_06_13_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421094, 'pht': 3726}}" where mtr_portfolio_id = 26421082 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26421082 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602286, 0.047804041156876025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421082_02-09-2025_06_13_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421085, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421087, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421090, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421093, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421094, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26421275 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649628, 'mtr_portfolio_id': 26421275, 'created_at': datetime.datetime(2025, 9, 2, 6, 13, 59), 'result': '0.02803459362490644', 'result_long': None, 'result_double': None}] Qualite : 0.02803459362490644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26421275 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421275_02-09-2025_06_14_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26421275 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421275_02-09-2025_06_14_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421288, 'pht': 3726}}" where mtr_portfolio_id = 26421275 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26421275 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602287, 0.02803459362490644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421275_02-09-2025_06_14_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421279, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421280, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421285, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421286, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421288, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26421697 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649629, 'mtr_portfolio_id': 26421697, 'created_at': datetime.datetime(2025, 9, 2, 6, 14, 28), 'result': '0.032193565636688314', 'result_long': None, 'result_double': None}] Qualite : 0.032193565636688314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26421697 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421697_02-09-2025_06_14_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26421697 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421697_02-09-2025_06_14_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421698, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421699, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421709, 'pht': 3726}}" where mtr_portfolio_id = 26421697 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26421697 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602288, 0.032193565636688314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421697_02-09-2025_06_14_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421698, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421699, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421702, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421704, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421707, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421709, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26421773 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649630, 'mtr_portfolio_id': 26421773, 'created_at': datetime.datetime(2025, 9, 2, 6, 15), 'result': '0.041312166364478355', 'result_long': None, 'result_double': None}] Qualite : 0.041312166364478355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26421773 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421773_02-09-2025_06_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26421773 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421773_02-09-2025_06_15_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421775, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421786, 'pht': 3726}}" where mtr_portfolio_id = 26421773 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26421773 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602289, 0.041312166364478355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421773_02-09-2025_06_15_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421775, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421777, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421778, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421780, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421781, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421782, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421783, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421785, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421786, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26421852 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649631, 'mtr_portfolio_id': 26421852, 'created_at': datetime.datetime(2025, 9, 2, 6, 15, 28), 'result': '0.011354407159164243', 'result_long': None, 'result_double': None}] Qualite : 0.011354407159164243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26421852 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421852_02-09-2025_06_15_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26421852 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421852_02-09-2025_06_15_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421861, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421864, 'pht': 3726}}" where mtr_portfolio_id = 26421852 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26421852 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602290, 0.011354407159164243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26421852_02-09-2025_06_15_28.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26421853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26421854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26421855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26421856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26421857, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26421858, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26421859, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26421860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26421861, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26421862, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26421863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26421864, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26422348 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649634, 'mtr_portfolio_id': 26422348, 'created_at': datetime.datetime(2025, 9, 2, 6, 15, 40), 'result': '0.06504504754248332', 'result_long': None, 'result_double': None}] Qualite : 0.06504504754248332 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26422348 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422348_02-09-2025_06_15_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26422348 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422348_02-09-2025_06_15_41.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422357, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422361, 'pht': 3726}}" where mtr_portfolio_id = 26422348 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26422348 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602291, 0.06504504754248332, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422348_02-09-2025_06_15_41.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422353, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422355, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422357, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422359, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422361, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26422569 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649635, 'mtr_portfolio_id': 26422569, 'created_at': datetime.datetime(2025, 9, 2, 5, 40, 39), 'result': '0.05665505530903546', 'result_long': None, 'result_double': None}] Qualite : 0.05665505530903546 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26422569 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422569_02-09-2025_05_40_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26422569 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422569_02-09-2025_05_40_41.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26422571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422582, 'pht': 3726}}" where mtr_portfolio_id = 26422569 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26422569 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602292, 0.05665505530903546, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422569_02-09-2025_05_40_41.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26422571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26422572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422574, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422580, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422582, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26422847 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649554, 'mtr_portfolio_id': 26422847, 'created_at': datetime.datetime(2025, 9, 2, 5, 49), 'result': '0.050945077666736796', 'result_long': None, 'result_double': None}] Qualite : 0.050945077666736796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26422847 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422847_02-09-2025_05_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26422847 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422847_02-09-2025_05_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26422888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422899, 'pht': 3726}}" where mtr_portfolio_id = 26422847 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26422847 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602293, 0.050945077666736796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26422847_02-09-2025_05_49_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26422888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26422889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26422890, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26422891, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26422892, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26422893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26422894, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26422895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26422896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26422897, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26422898, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26422899, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26423247 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649728, 'mtr_portfolio_id': 26423247, 'created_at': datetime.datetime(2025, 9, 2, 6, 3, 28), 'result': '0.04732348082075002', 'result_long': None, 'result_double': None}] Qualite : 0.04732348082075002 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26423247 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423247_02-09-2025_06_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26423247 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423247_02-09-2025_06_03_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423262, 'pht': 3726}}" where mtr_portfolio_id = 26423247 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26423247 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602294, 0.04732348082075002, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423247_02-09-2025_06_03_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423252, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423254, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423255, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423258, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423259, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423262, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26423697 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3649799, 'mtr_portfolio_id': 26423697, 'created_at': datetime.datetime(2025, 9, 2, 7, 0, 41), 'result': '0.09345634243956515', 'result_long': None, 'result_double': None}] Qualite : 0.09345634243956515 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26423697 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423697_02-09-2025_07_00_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26423697 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423697_02-09-2025_07_00_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423722, 'pht': 3726}}" where mtr_portfolio_id = 26423697 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26423697 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602295, 0.09345634243956515, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26423697_02-09-2025_07_00_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26423711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26423712, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26423713, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26423714, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26423715, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26423716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26423717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26423718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26423719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26423720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26423721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26423722, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26425366 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650072, 'mtr_portfolio_id': 26425366, 'created_at': datetime.datetime(2025, 9, 2, 7, 1, 3), 'result': '0.051827515755475985', 'result_long': None, 'result_double': None}] Qualite : 0.051827515755475985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26425366 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425366_02-09-2025_07_01_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26425366 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425366_02-09-2025_07_01_07.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425458, 'pht': 3726}}" where mtr_portfolio_id = 26425366 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26425366 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602296, 0.051827515755475985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425366_02-09-2025_07_01_07.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425448, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425451, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425454, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425456, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425457, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425458, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26425367 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650073, 'mtr_portfolio_id': 26425367, 'created_at': datetime.datetime(2025, 9, 2, 7, 0, 33), 'result': '0.04827498812658768', 'result_long': None, 'result_double': None}] Qualite : 0.04827498812658768 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26425367 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425367_02-09-2025_07_00_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26425367 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425367_02-09-2025_07_00_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425428, 'pht': 3726}}" where mtr_portfolio_id = 26425367 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26425367 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602297, 0.04827498812658768, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425367_02-09-2025_07_00_37.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425419, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425420, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425421, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425422, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425426, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425427, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425428, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26425368 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650074, 'mtr_portfolio_id': 26425368, 'created_at': datetime.datetime(2025, 9, 2, 7, 16, 58), 'result': '0.0630449193859071', 'result_long': None, 'result_double': None}] Qualite : 0.0630449193859071 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26425368 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425368_02-09-2025_07_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26425368 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425368_02-09-2025_07_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425372, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425380, 'pht': 3726}}" where mtr_portfolio_id = 26425368 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26425368 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602298, 0.0630449193859071, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26425368_02-09-2025_07_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26425369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26425370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26425371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26425372, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26425373, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26425374, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26425375, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26425376, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26425377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26425378, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26425379, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26425380, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26426242 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650197, 'mtr_portfolio_id': 26426242, 'created_at': datetime.datetime(2025, 9, 2, 7, 24, 57), 'result': '0.04403825290894583', 'result_long': None, 'result_double': None}] Qualite : 0.04403825290894583 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26426242 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426242_02-09-2025_07_24_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26426242 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426242_02-09-2025_07_24_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426276, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426283, 'pht': 3726}}" where mtr_portfolio_id = 26426242 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26426242 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602299, 0.04403825290894583, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426242_02-09-2025_07_24_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426272, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426273, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426276, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426278, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426282, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426283, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26426742 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650241, 'mtr_portfolio_id': 26426742, 'created_at': datetime.datetime(2025, 9, 2, 7, 33), 'result': '0.06966086867563821', 'result_long': None, 'result_double': None}] Qualite : 0.06966086867563821 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26426742 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426742_02-09-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26426742 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426742_02-09-2025_07_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426756, 'pht': 3726}}" where mtr_portfolio_id = 26426742 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26426742 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602300, 0.06966086867563821, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426742_02-09-2025_07_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26426750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426751, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426752, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426753, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426754, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426756, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26426922 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650264, 'mtr_portfolio_id': 26426922, 'created_at': datetime.datetime(2025, 9, 2, 7, 48, 58), 'result': '0.07815691925885802', 'result_long': None, 'result_double': None}] Qualite : 0.07815691925885802 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26426922 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426922_02-09-2025_07_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26426922 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426922_02-09-2025_07_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26426928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426930, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426932, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426939, 'pht': 3726}}" where mtr_portfolio_id = 26426922 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26426922 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602301, 0.07815691925885802, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26426922_02-09-2025_07_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26426928, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26426929, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26426930, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26426931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26426932, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26426933, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26426934, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26426935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26426936, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26426937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26426938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26426939, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26427649 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650333, 'mtr_portfolio_id': 26427649, 'created_at': datetime.datetime(2025, 9, 2, 8, 3, 1), 'result': '0.0064983107930800255', 'result_long': None, 'result_double': None}] Qualite : 0.0064983107930800255 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26427649 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26427649_02-09-2025_08_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26427649 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26427649_02-09-2025_08_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26427691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26427692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26427693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26427694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26427695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26427696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26427697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26427698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26427699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26427700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26427701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26427702, 'pht': 3726}}" where mtr_portfolio_id = 26427649 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26427649 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602302, 0.0064983107930800255, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26427649_02-09-2025_08_03_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26427691, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26427692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26427693, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26427694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26427695, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26427696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26427697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26427698, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26427699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26427700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26427701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26427702, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26427997 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26427997 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26427997 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26427997 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26427997 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26427997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26427997_02-09-2025_10_58_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26427997 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26427997_02-09-2025_10_58_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26428044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26428045, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26428046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26428047, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26428048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26428049, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26428050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26428051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26428052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26428053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26428054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26428055, 'pht': 3726}}" where mtr_portfolio_id = 26427997 and dashboard_run_id = 2225673 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26429064 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3651285, 'mtr_portfolio_id': 26429064, 'created_at': datetime.datetime(2025, 9, 2, 10, 57, 29), 'result': '0.04928245450208556', 'result_long': None, 'result_double': None}] Qualite : 0.04928245450208556 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26429064 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429064_02-09-2025_10_57_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26429064 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429064_02-09-2025_10_57_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429188, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429189, 'pht': 3726}}" where mtr_portfolio_id = 26429064 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26429064 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602304, 0.04928245450208556, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429064_02-09-2025_10_57_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429180, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429182, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429183, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429184, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429188, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429189, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26429066 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3651286, 'mtr_portfolio_id': 26429066, 'created_at': datetime.datetime(2025, 9, 2, 10, 56, 59), 'result': '0.06253374620855036', 'result_long': None, 'result_double': None}] Qualite : 0.06253374620855036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26429066 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429066_02-09-2025_10_57_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26429066 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429066_02-09-2025_10_57_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429105, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429112, 'pht': 3726}}" where mtr_portfolio_id = 26429066 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26429066 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602305, 0.06253374620855036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429066_02-09-2025_10_57_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429101, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429102, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429103, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429105, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429106, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429107, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429108, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429110, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429111, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429112, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26429069 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650450, 'mtr_portfolio_id': 26429069, 'created_at': datetime.datetime(2025, 9, 2, 9, 32, 57), 'result': '0.08166377855555111', 'result_long': None, 'result_double': None}] Qualite : 0.08166377855555111 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26429069 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429069_02-09-2025_09_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26429069 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429069_02-09-2025_09_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429082, 'pht': 3726}}" where mtr_portfolio_id = 26429069 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26429069 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602306, 0.08166377855555111, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26429069_02-09-2025_09_32_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26429071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26429072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26429073, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26429074, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26429075, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26429076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26429077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26429078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26429079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26429080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26429081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26429082, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26430560 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650688, 'mtr_portfolio_id': 26430560, 'created_at': datetime.datetime(2025, 9, 2, 9, 49), 'result': '0.06947375716795579', 'result_long': None, 'result_double': None}] Qualite : 0.06947375716795579 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26430560 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26430560_02-09-2025_09_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26430560 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26430560_02-09-2025_09_49_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26430574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26430575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26430576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26430577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26430578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26430579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26430580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26430581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26430582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26430583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26430584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26430585, 'pht': 3726}}" where mtr_portfolio_id = 26430560 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26430560 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602307, 0.06947375716795579, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26430560_02-09-2025_09_49_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26430574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26430575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26430576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26430577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26430578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26430579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26430580, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26430581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26430582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26430583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26430584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26430585, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26431021 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650737, 'mtr_portfolio_id': 26431021, 'created_at': datetime.datetime(2025, 9, 2, 10, 3, 28), 'result': '0.04648616721703691', 'result_long': None, 'result_double': None}] Qualite : 0.04648616721703691 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26431021 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26431021_02-09-2025_10_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26431021 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26431021_02-09-2025_10_03_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26431050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26431051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26431052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26431053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26431054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26431055, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26431056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26431057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26431058, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26431059, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26431060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26431061, 'pht': 3726}}" where mtr_portfolio_id = 26431021 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26431021 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602308, 0.04648616721703691, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26431021_02-09-2025_10_03_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26431050, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26431051, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26431052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26431053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26431054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26431055, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26431056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26431057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26431058, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26431059, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26431060, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26431061, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26431877 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650867, 'mtr_portfolio_id': 26431877, 'created_at': datetime.datetime(2025, 9, 2, 10, 18, 29), 'result': '0.029112940950147572', 'result_long': None, 'result_double': None}] Qualite : 0.029112940950147572 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26431877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26431877_02-09-2025_10_18_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26431877 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26431877_02-09-2025_10_18_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26431882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26431883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26431884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26431885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26431886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26431887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26431889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26431890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26431891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26431892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26431893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26431894, 'pht': 3726}}" where mtr_portfolio_id = 26431877 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26431877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602309, 0.029112940950147572, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26431877_02-09-2025_10_18_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26431882, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26431883, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26431884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26431885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26431886, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26431887, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26431889, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26431890, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26431891, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26431892, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26431893, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26431894, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26432175 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3650915, 'mtr_portfolio_id': 26432175, 'created_at': datetime.datetime(2025, 9, 2, 10, 33), 'result': '0.025717990244983273', 'result_long': None, 'result_double': None}] Qualite : 0.025717990244983273 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26432175 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26432175_02-09-2025_10_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26432175 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26432175_02-09-2025_10_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26432194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26432195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26432196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26432197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26432198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26432199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26432200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26432201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26432202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26432203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26432204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26432205, 'pht': 3726}}" where mtr_portfolio_id = 26432175 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26432175 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602310, 0.025717990244983273, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26432175_02-09-2025_10_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26432194, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26432195, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26432196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26432197, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26432198, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26432199, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26432200, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26432201, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26432202, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26432203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26432204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26432205, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26432932 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3651045, 'mtr_portfolio_id': 26432932, 'created_at': datetime.datetime(2025, 9, 2, 10, 48, 57), 'result': '0.0545022621205445', 'result_long': None, 'result_double': None}] Qualite : 0.0545022621205445 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26432932 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26432932_02-09-2025_10_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26432932 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26432932_02-09-2025_10_48_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26432958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26432959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26432960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26432961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26432962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26432963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26432964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26432965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26432966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26432967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26432968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26432969, 'pht': 3726}}" where mtr_portfolio_id = 26432932 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26432932 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602311, 0.0545022621205445, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26432932_02-09-2025_10_48_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26432958, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26432959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26432960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26432961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26432962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26432963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26432964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26432965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26432966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26432967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26432968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26432969, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26433636 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3651130, 'mtr_portfolio_id': 26433636, 'created_at': datetime.datetime(2025, 9, 2, 11, 56, 30), 'result': '0.0837256333957793', 'result_long': None, 'result_double': None}] Qualite : 0.0837256333957793 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26433636 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26433636_02-09-2025_11_56_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26433636 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26433636_02-09-2025_11_56_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26433703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26433704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26433705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26433706, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26433707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26433708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26433709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26433710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26433711, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26433712, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26433713, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26433714, 'pht': 3726}}" where mtr_portfolio_id = 26433636 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26433636 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602312, 0.0837256333957793, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26433636_02-09-2025_11_56_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26433703, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26433704, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26433705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26433706, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26433707, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26433708, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26433709, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26433710, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26433711, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26433712, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26433713, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26433714, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26434418 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3651380, 'mtr_portfolio_id': 26434418, 'created_at': datetime.datetime(2025, 9, 2, 11, 18, 29), 'result': '0.04458375694838719', 'result_long': None, 'result_double': None}] Qualite : 0.04458375694838719 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26434418 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26434418_02-09-2025_11_18_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26434418 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26434418_02-09-2025_11_18_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26434426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26434427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26434428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26434429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26434430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26434431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26434432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26434433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26434434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26434435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26434436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26434437, 'pht': 3726}}" where mtr_portfolio_id = 26434418 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26434418 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602313, 0.04458375694838719, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26434418_02-09-2025_11_18_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26434426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26434427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26434428, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26434429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26434430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26434431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26434432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26434433, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26434434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26434435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26434436, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26434437, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26435176 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26435176 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26435176 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26435176 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26435176 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26435176 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26435176_02-09-2025_11_33_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26435176 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26435176_02-09-2025_11_33_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26435185, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26435186, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26435187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26435188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26435189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26435190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26435191, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26435192, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26435193, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26435194, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26435195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26435196, 'pht': 3726}}" where mtr_portfolio_id = 26435176 and dashboard_run_id = 2225673 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26435639 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26435639 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26435639 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26435639 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26435639 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26435639 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26435639_02-09-2025_11_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26435639 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26435639_02-09-2025_11_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26435656, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26435657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26435658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26435659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26435660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26435661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26435662, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26435663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26435664, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26435665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26435666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26435667, 'pht': 3726}}" where mtr_portfolio_id = 26435639 and dashboard_run_id = 2225673 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26435936 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3651514, 'mtr_portfolio_id': 26435936, 'created_at': datetime.datetime(2025, 9, 2, 13, 0, 29), 'result': '0.06918039650787307', 'result_long': None, 'result_double': None}] Qualite : 0.06918039650787307 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26435936 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26435936_02-09-2025_13_00_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26435936 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26435936_02-09-2025_13_00_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26435962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26435963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26435964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26435965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26435966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26435967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26435968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26435969, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26435970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26435971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26435972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26435973, 'pht': 3726}}" where mtr_portfolio_id = 26435936 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26435936 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602316, 0.06918039650787307, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26435936_02-09-2025_13_00_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26435962, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26435963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26435964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26435965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26435966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26435967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26435968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26435969, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26435970, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26435971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26435972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26435973, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26437996 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3651781, 'mtr_portfolio_id': 26437996, 'created_at': datetime.datetime(2025, 9, 2, 13, 59, 58), 'result': '0.06487771982379276', 'result_long': None, 'result_double': None}] Qualite : 0.06487771982379276 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26437996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26437996_02-09-2025_13_59_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26437996 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26437996_02-09-2025_13_59_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26438000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26438001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26438002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26438003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26438004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26438005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26438006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26438007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26438008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26438009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26438010, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26438011, 'pht': 3726}}" where mtr_portfolio_id = 26437996 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26437996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602317, 0.06487771982379276, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26437996_02-09-2025_13_59_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26438000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26438001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26438002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26438003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26438004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26438005, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26438006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26438007, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26438008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26438009, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26438010, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26438011, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26438994 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3651902, 'mtr_portfolio_id': 26438994, 'created_at': datetime.datetime(2025, 9, 2, 14, 2, 59), 'result': '0.0514167746937567', 'result_long': None, 'result_double': None}] Qualite : 0.0514167746937567 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26438994 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26438994_02-09-2025_14_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26438994 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26438994_02-09-2025_14_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26438997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26438998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26438999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26439000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26439001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26439002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26439003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26439004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26439005, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26439006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26439007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26439008, 'pht': 3726}}" where mtr_portfolio_id = 26438994 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26438994 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602318, 0.0514167746937567, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26438994_02-09-2025_14_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26438997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26438998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26438999, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26439000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26439001, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26439002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26439003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26439004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26439005, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26439006, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26439007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26439008, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26439239 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3651947, 'mtr_portfolio_id': 26439239, 'created_at': datetime.datetime(2025, 9, 2, 14, 18, 58), 'result': '0.040271574377869566', 'result_long': None, 'result_double': None}] Qualite : 0.040271574377869566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26439239 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26439239_02-09-2025_14_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26439239 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26439239_02-09-2025_14_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26439257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26439258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26439259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26439260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26439261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26439262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26439263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26439264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26439266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26439267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26439268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26439269, 'pht': 3726}}" where mtr_portfolio_id = 26439239 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26439239 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602319, 0.040271574377869566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26439239_02-09-2025_14_18_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26439257, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26439258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26439259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26439260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26439261, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26439262, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26439263, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26439264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26439266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26439267, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26439268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26439269, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26439847 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3652019, 'mtr_portfolio_id': 26439847, 'created_at': datetime.datetime(2025, 9, 2, 14, 32, 57), 'result': '0.07007570620751657', 'result_long': None, 'result_double': None}] Qualite : 0.07007570620751657 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26439847 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26439847_02-09-2025_14_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26439847 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26439847_02-09-2025_14_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26439863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26439864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26439865, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26439866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26439867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26439868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26439869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26439870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26439871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26439872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26439873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26439874, 'pht': 3726}}" where mtr_portfolio_id = 26439847 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26439847 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602320, 0.07007570620751657, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26439847_02-09-2025_14_32_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26439863, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26439864, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26439865, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26439866, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26439867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26439868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26439869, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26439870, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26439871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26439872, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26439873, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26439874, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26440428 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3652091, 'mtr_portfolio_id': 26440428, 'created_at': datetime.datetime(2025, 9, 2, 14, 49), 'result': '0.09138343852938557', 'result_long': None, 'result_double': None}] Qualite : 0.09138343852938557 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26440428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26440428_02-09-2025_14_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26440428 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26440428_02-09-2025_14_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26440474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26440475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26440476, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26440477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26440478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26440479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26440480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26440481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26440482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26440483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26440484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26440485, 'pht': 3726}}" where mtr_portfolio_id = 26440428 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26440428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602321, 0.09138343852938557, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26440428_02-09-2025_14_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26440474, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26440475, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26440476, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26440477, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26440478, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26440479, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26440480, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26440481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26440482, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26440483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26440484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26440485, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26440892 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3652143, 'mtr_portfolio_id': 26440892, 'created_at': datetime.datetime(2025, 9, 2, 15, 2, 59), 'result': '0.061975130028068745', 'result_long': None, 'result_double': None}] Qualite : 0.061975130028068745 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26440892 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26440892_02-09-2025_15_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26440892 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26440892_02-09-2025_15_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26440908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26440909, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26440910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26440911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26440912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26440913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26440914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26440915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26440916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26440917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26440918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26440919, 'pht': 3726}}" where mtr_portfolio_id = 26440892 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26440892 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602322, 0.061975130028068745, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26440892_02-09-2025_15_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26440908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26440909, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26440910, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26440911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26440912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26440913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26440914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26440915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26440916, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26440917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26440918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26440919, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26441460 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3652243, 'mtr_portfolio_id': 26441460, 'created_at': datetime.datetime(2025, 9, 2, 15, 18, 56), 'result': '0.037136621543279576', 'result_long': None, 'result_double': None}] Qualite : 0.037136621543279576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26441460 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26441460_02-09-2025_15_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26441460 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26441460_02-09-2025_15_18_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26441492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26441493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26441494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26441495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26441496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26441497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26441498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26441499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26441500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26441501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26441502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26441503, 'pht': 3726}}" where mtr_portfolio_id = 26441460 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26441460 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602323, 0.037136621543279576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26441460_02-09-2025_15_18_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26441492, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26441493, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26441494, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26441495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26441496, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26441497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26441498, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26441499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26441500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26441501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26441502, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26441503, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26442297 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3652341, 'mtr_portfolio_id': 26442297, 'created_at': datetime.datetime(2025, 9, 2, 15, 33), 'result': '0.044398406937729694', 'result_long': None, 'result_double': None}] Qualite : 0.044398406937729694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26442297 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26442297_02-09-2025_15_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26442297 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26442297_02-09-2025_15_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26442302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26442303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26442304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26442305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26442306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26442307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26442308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26442309, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26442310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26442311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26442312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26442313, 'pht': 3726}}" where mtr_portfolio_id = 26442297 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26442297 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602324, 0.044398406937729694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26442297_02-09-2025_15_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26442302, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26442303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26442304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26442305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26442306, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26442307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26442308, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26442309, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26442310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26442311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26442312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26442313, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26442757 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3652410, 'mtr_portfolio_id': 26442757, 'created_at': datetime.datetime(2025, 9, 2, 15, 49, 1), 'result': '0.06241485380856781', 'result_long': None, 'result_double': None}] Qualite : 0.06241485380856781 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26442757 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26442757_02-09-2025_15_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26442757 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26442757_02-09-2025_15_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26442779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26442780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26442781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26442782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26442783, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26442784, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26442785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26442786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26442787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26442789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26442790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26442791, 'pht': 3726}}" where mtr_portfolio_id = 26442757 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26442757 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602325, 0.06241485380856781, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26442757_02-09-2025_15_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26442779, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26442780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26442781, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26442782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26442783, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26442784, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26442785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26442786, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26442787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26442789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26442790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26442791, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26443340 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3652506, 'mtr_portfolio_id': 26443340, 'created_at': datetime.datetime(2025, 9, 2, 16, 2, 58), 'result': '0.0781427020288136', 'result_long': None, 'result_double': None}] Qualite : 0.0781427020288136 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26443340 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26443340_02-09-2025_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26443340 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26443340_02-09-2025_16_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26443359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26443360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26443362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26443363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26443364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26443365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26443366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26443367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26443368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26443369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26443370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26443371, 'pht': 3726}}" where mtr_portfolio_id = 26443340 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26443340 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602326, 0.0781427020288136, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26443340_02-09-2025_16_02_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26443359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26443360, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26443362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26443363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26443364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26443365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26443366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26443367, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26443368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26443369, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26443370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26443371, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26443863 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26443863 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26443863 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26443863 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26443863 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26443863 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26443863_02-09-2025_16_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26443863 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26443863_02-09-2025_16_18_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26443876, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26443877, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26443878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26443879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26443880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26443881, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26443882, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26443883, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26443884, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26443885, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26443886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26443887, 'pht': 3726}}" where mtr_portfolio_id = 26443863 and dashboard_run_id = 2225673 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26444379 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26444379 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26444379 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26444379 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26444379 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26444379 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26444379_02-09-2025_16_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26444379 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26444379_02-09-2025_16_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26444384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26444385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26444386, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26444387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26444388, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26444389, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26444390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26444391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26444392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26444393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26444394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26444395, 'pht': 3726}}" where mtr_portfolio_id = 26444379 and dashboard_run_id = 2225673 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26444704 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26444704 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26444704 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26444704 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26444704 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26444704 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26444704_02-09-2025_16_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26444704 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26444704_02-09-2025_16_48_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26444733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26444734, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26444735, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26444736, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26444737, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26444738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26444739, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26444740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26444741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26444742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26444743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26444744, 'pht': 3726}}" where mtr_portfolio_id = 26444704 and dashboard_run_id = 2225673 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26445193 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26445193 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26445193 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26445193 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26445193 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26445193 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26445193_02-09-2025_17_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26445193 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26445193_02-09-2025_17_02_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26445219, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26445220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26445221, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26445222, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26445223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26445224, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26445225, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26445226, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26445227, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26445228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26445229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26445230, 'pht': 3726}}" where mtr_portfolio_id = 26445193 and dashboard_run_id = 2225673 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26445758 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3652749, 'mtr_portfolio_id': 26445758, 'created_at': datetime.datetime(2025, 9, 2, 17, 14, 30), 'result': '0.08466901690891734', 'result_long': None, 'result_double': None}] Qualite : 0.08466901690891734 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26445758 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26445758_02-09-2025_17_14_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26445758 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26445758_02-09-2025_17_14_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26445833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26445834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26445835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26445836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26445837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26445838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26445839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26445840, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26445841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26445842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26445843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26445844, 'pht': 3726}}" where mtr_portfolio_id = 26445758 and dashboard_run_id = 2225673 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26445758 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14602331, 0.08466901690891734, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26445758_02-09-2025_17_14_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26445833, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26445834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26445835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26445836, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26445837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26445838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26445839, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26445840, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26445841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26445842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26445843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26445844, '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 (26419800,26420091,26420215,26420269,26420665,26420821,26421082,26421275,26421697,26421773,26421852,26422348,26422569,26422847,26423247,26423697,26425366,26425367,26425368,26426242,26426742,26426922,26427649,26427997,26429064,26429066,26429069,26430560,26431021,26431877,26432175,26432932,26433636,26434418,26435176,26435639,26435936,26437996,26438994,26439239,26439847,26440428,26440892,26441460,26442297,26442757,26443340,26443863,26444379,26444704,26445193,26445758) result : ((1380746927,), (1380746929,), (1380747076,), (1380747077,), (1380747078,), (1380747090,), (1380747136,), (1380747157,), (1380747158,), (1380747673,), (1380747675,), (1380747677,), (1380747745,), (1380747808,), (1380748022,), (1380747872,), (1380748234,), (1380748235,), (1380748316,), (1380748660,), (1380748661,), (1380748801,), (1380748822,), (1380748859,), (1380748919,), (1380748922,), (1380748976,), (1380749079,), (1380749223,), (1380749240,), (1380749270,), (1380749336,), (1380749439,), (1380749491,), (1380749492,), (1380750502,), (1380750974,), (1380750975,), (1380751018,), (1380751029,), (1380754439,), (1380754438,), (1380754608,), (1380754609,), (1380754648,), (1380754649,), (1380754650,), (1380754672,), (1380754674,), (1380754675,), (1380754676,), (1380754744,), (1380754745,), (1380754788,), (1380754789,), (1380754811,), (1380754832,), (1380754849,), (1380754871,), (1380754892,), (1380754909,), (1380754959,), (1380754956,), (1380755028,), (1380755060,), (1380755121,), (1380755186,), (1380755282,), (1380755347,), (1380755348,), (1380755349,), (1380755585,), (1380755586,), (1380755587,), (1380756011,), (1380756763,), (1380756970,), (1380756971,), (1380757095,), (1380757478,), (1380757480,), (1380757482,), (1380757690,), (1380757702,), (1380757716,), (1380757728,), (1380757770,), (1380757771,), (1380757772,), (1380757830,), (1380757855,), (1380757876,), (1380757877,), (1380757906,), (1380757957,), (1380757979,), (1380757992,), (1380758050,), (1380758101,), (1380758102,), (1380758103,), (1380758233,), (1380761735,), (1380761817,), (1380761818,), (1380761819,), (1380761902,), (1380761964,), (1380761985,), (1380762007,), (1380762099,), (1380762149,), (1380762258,), (1380762259,), (1380762275,), (1380762316,), (1380762355,), (1380762416,), (1380762417,), (1380762472,), (1380762590,), (1380762650,), (1380762651,), (1380762792,), (1380762847,), (1380762848,), (1380762849,), (1380763516,), (1380763636,), (1380763697,), (1380769131,), (1380769132,), (1380769133,), (1380769203,), (1380769204,), (1380769205,), (1380769244,), (1380769245,), (1380769313,), (1380769314,), (1380769343,), (1380769344,), (1380769345,), (1380769372,), (1380769373,), (1380769405,), (1380769406,), (1380769407,), (1380769408,), (1380769409,), (1380769436,), (1380769471,), (1380769486,), (1380769502,), (1380769522,), (1380769523,), (1380769524,), (1380769525,), (1380769550,), (1380769552,), (1380769553,), (1380769554,), (1380769614,), (1380769615,), (1380769616,), (1380769617,), (1380769618,), (1380769644,), (1380769645,), (1380769646,), (1380769647,), (1380769648,), (1380769649,), (1380769700,), (1380769701,), (1380769702,), (1380769703,), (1380769730,), (1380769731,), (1380769732,), (1380769758,), (1380769759,), (1380769760,), (1380769761,), (1380769784,), (1380769785,), (1380769786,), (1380769787,), (1380769807,), (1380769808,), (1380769809,), (1380769810,), (1380769811,), (1380769812,), (1380769816,), (1380769828,), (1380769829,), (1380769830,), (1380769831,), (1380769855,), (1380769856,), (1380769857,), (1380769858,), (1380769859,), (1380769860,), (1380769883,), (1380769884,), (1380769885,), (1380769886,), (1380769887,), (1380769888,), (1380769916,), (1380769912,), (1380769913,), (1380769914,), (1380769915,), (1380769934,), (1380769935,), (1380769936,), (1380769937,), (1380769938,), (1380769939,), (1380769979,), (1380769980,), (1380769981,), (1380769982,), (1380770014,), (1380770015,), (1380770016,), (1380770017,), (1380770018,), (1380770019,), (1380770052,), (1380770053,), (1380770054,), (1380770055,), (1380770056,), (1380770057,), (1380770083,), (1380770085,), (1380770086,), (1380770087,), (1380770088,), (1380770089,), (1380770113,), (1380770114,), (1380770115,), (1380770116,), (1380770117,), (1380770149,), (1380770151,), (1380770152,), (1380770153,), (1380770154,), (1380770155,), (1380770182,), (1380770183,), (1380770184,), (1380770185,), (1380770218,), (1380770219,), (1380770220,), (1380770221,), (1380770223,), (1380770225,), (1380770246,), (1380770247,), (1380770248,), (1380770249,), (1380770320,), (1380770321,), (1380770322,), (1380770323,), (1380770324,), (1380770325,), (1380770351,), (1380770352,), (1380770353,), (1380770354,), (1380770386,), (1380770424,), (1380770382,), (1380770383,), (1380770384,), (1380770385,), (1380770407,), (1380770408,), (1380770409,), (1380770410,), (1380770412,), (1380770413,), (1380770420,), (1380770421,), (1380770422,), (1380770423,), (1380770444,), (1380770445,), (1380770446,), (1380770447,), (1380770476,), (1380770477,), (1380770478,), (1380770479,), (1380770480,), (1380770481,), (1380770506,), (1380770507,), (1380770508,), (1380770509,), (1380770510,), (1380770511,), (1380770555,), (1380770556,), (1380770557,), (1380770558,), (1380770587,), (1380770588,), (1380770589,), (1380770590,), (1380770592,), (1380770629,), (1380770630,), (1380770631,), (1380770653,), (1380770661,), (1380770662,), (1380770664,), (1380770665,), (1380770666,), (1380770688,), (1380770689,), (1380770690,), (1380770691,), (1380770692,), (1380770693,), (1380770712,), (1380770713,), (1380770714,), (1380770744,), (1380770746,), (1380770748,), (1380770749,), (1380770750,), (1380770751,), (1380770755,), (1380770756,), (1380770757,), (1380771045,), (1380771047,), (1380771049,), (1380771051,), (1380771053,), (1380771569,), (1380771571,), (1380771575,), (1380771578,), (1380771581,), (1380771641,), (1380771643,), (1380771646,), (1380771648,), (1380771650,), (1380772008,), (1380772002,), (1380772004,), (1380772006,), (1380772369,), (1380772371,), (1380772373,), (1380772375,), (1380772377,), (1380772755,), (1380772757,), (1380772759,), (1380772761,), (1380772938,), (1380772940,), (1380772942,), (1380772944,), (1380773103,), (1380773104,), (1380773105,), (1380773106,), (1380773107,), (1380773138,), (1380773139,), (1380773140,), (1380773141,), (1380773142,), (1380773143,), (1380773176,), (1380773177,), (1380773178,), (1380773179,), (1380773180,), (1380773181,), (1380773186,), (1380773187,), (1380773215,), (1380773249,), (1380773291,), (1380773392,), (1380773414,), (1380773415,), (1380773416,), (1380773417,), (1380773418,), (1380773454,), (1380773479,), (1380773450,), (1380773451,), (1380773452,), (1380773453,), (1380773468,), (1380773469,), (1380773470,), (1380773471,), (1380773472,), (1380773473,), (1380773477,), (1380773513,), (1380773514,), (1380773515,), (1380773517,), (1380773519,), (1380773547,), (1380773548,), (1380773549,), (1380773550,), (1380773551,), (1380773588,), (1380773589,), (1380773590,), (1380773591,), (1380773592,), (1380773618,), (1380773619,), (1380773656,), (1380773657,), (1380773658,), (1380773659,), (1380773660,), (1380773682,), (1380773683,), (1380773684,), (1380773685,), (1380773686,), (1380773687,), (1380773785,), (1380773786,), (1380773787,), (1380773788,), (1380773818,), (1380773819,), (1380773820,), (1380773821,), (1380773846,), (1380773847,), (1380773894,), (1380773895,), (1380773896,), (1380773897,), (1380773898,), (1380773935,), (1380773936,), (1380773937,), (1380773938,), (1380773939,), (1380773955,), (1380773956,), (1380773957,), (1380773958,), (1380773959,), (1380773995,), (1380773996,), (1380773997,), (1380773998,), (1380774020,), (1380774014,), (1380774018,), (1380774019,), (1380774056,), (1380774057,), (1380774058,), (1380774059,), (1380774060,), (1380774079,), (1380774080,), (1380774119,), (1380774121,), (1380774123,), (1380774124,), (1380774160,), (1380774161,), (1380774162,), (1380774163,), (1380774200,), (1380774201,), (1380774202,), (1380774203,), (1380774217,), (1380774219,), (1380774220,), (1380774221,), (1380774222,), (1380774223,), (1380774226,), (1380774227,), (1380774253,), (1380774254,), (1380774255,), (1380774256,), (1380774283,), (1380774284,), (1380774311,), (1380774312,), (1380774313,), (1380774314,), (1380774315,), (1380774336,), (1380774337,), (1380774338,), (1380774339,), (1380774340,), (1380774341,), (1380774383,), (1380774384,), (1380774385,), (1380774386,), (1380774387,), (1380774405,), (1380774406,), (1380774407,), (1380774408,), (1380774447,), (1380774448,), (1380774449,), (1380774450,), (1380774451,), (1380774475,), (1380774476,), (1380774478,), (1380774480,), (1380774541,), (1380774567,), (1380774537,), (1380774538,), (1380774539,), (1380774540,), (1380774556,), (1380774557,), (1380774558,), (1380774559,), (1380774560,), (1380774561,), (1380774565,), (1380774585,), (1380774586,), (1380774587,), (1380774588,), (1380774589,), (1380774609,), (1380774612,), (1380774613,), (1380774614,), (1380774615,), (1380774616,), (1380774648,), (1380774649,), (1380774650,), (1380774669,), (1380774670,), (1380774671,), (1380774672,), (1380774700,), (1380774701,), (1380774702,), (1380774703,), (1380774704,), (1380774719,), (1380774720,), (1380774721,), (1380774722,), (1380774749,), (1380774750,), (1380774751,), (1380774752,), (1380774753,), (1380774781,), (1380774782,), (1380774783,), (1380774784,), (1380774785,), (1380774786,), (1380774823,), (1380774824,), (1380774825,), (1380774847,), (1380774848,), (1380774849,), (1380774850,), (1380774851,), (1380774852,), (1380774875,), (1380774879,), (1380774880,), (1380774881,), (1380774882,), (1380775553,), (1380775557,), (1380775561,), (1380775565,), (1380775569,), (1380775712,), (1380775716,), (1380776439,), (1380776431,), (1380776433,), (1380776435,), (1380776437,), (1380776936,), (1380776938,), (1380776940,), (1380776942,), (1380776944,), (1380777177,), (1380777178,), (1380777179,), (1380777180,), (1380777181,), (1380777212,), (1380777213,), (1380777214,), (1380777215,), (1380777238,), (1380777239,), (1380777241,), (1380777242,), (1380777281,), (1380777282,), (1380777283,), (1380777297,), (1380777298,), (1380777299,), (1380777300,), (1380777301,), (1380777303,), (1380777312,), (1380777343,), (1380777344,), (1380777345,), (1380777346,), (1380777347,), (1380777374,), (1380777375,), (1380777376,), (1380777377,), (1380777430,), (1380777431,), (1380778686,), (1380778732,), (1380778733,), (1380778734,), (1380778735,), (1380778838,), (1380778839,), (1380778840,), (1380778841,), (1380779077,), (1380779080,), (1380779083,), (1380779086,), (1380779090,), (1380779093,), (1380779160,), (1380779162,), (1380779261,), (1380779262,), (1380779263,), (1380779264,), (1380779301,), (1380779302,), (1380779303,), (1380779304,), (1380779305,), (1380779306,), (1380779338,), (1380779339,), (1380779340,), (1380779342,), (1380779343,), (1380779372,), (1380779370,), (1380779371,), (1380779466,), (1380779467,), (1380779468,), (1380779469,), (1380779470,), (1380779471,), (1380779491,), (1380779492,), (1380779493,), (1380779494,), (1380779540,), (1380779541,), (1380779542,), (1380779619,), (1380779620,), (1380779622,), (1380779723,), (1380779725,), (1380779726,), (1380779727,), (1380779899,), (1380779900,), (1380779901,), (1380779902,), (1380779903,), (1380779904,), (1380779908,), (1380779910,), (1380779930,), (1380779931,), (1380779932,), (1380779933,), (1380779934,), (1380779935,), (1380780002,), (1380780003,), (1380780004,), (1380780005,), (1380780006,), (1380780007,), (1380780030,), (1380780031,), (1380780032,), (1380780086,), (1380780089,), (1380780091,), (1380780092,), (1380780254,), (1380780256,), (1380780258,), (1380780260,), (1380780394,), (1380780395,), (1380780396,), (1380780397,), (1380780398,), (1380780425,), (1380780426,), (1380780484,), (1380780486,), (1380780549,), (1380780712,), (1380780708,), (1380780709,), (1380780711,), (1380781186,), (1380781235,), (1380781330,), (1380781359,), (1380781360,), (1380781361,), (1380781387,), (1380781389,), (1380781390,), (1380781391,), (1380781422,), (1380781423,), (1380781424,), (1380781938,), (1380781940,), (1380782059,), (1380782060,), (1380782061,), (1380782057,), (1380782058,), (1380782093,), (1380782095,), (1380782096,), (1380782115,), (1380782116,), (1380782149,), (1380782151,), (1380782152,), (1380782176,), (1380782214,), (1380782215,), (1380782216,), (1380782217,), (1380782218,), (1380782234,), (1380782235,), (1380782236,), (1380782237,), (1380782238,), (1380782239,), (1380782243,), (1380782275,), (1380782276,), (1380782277,), (1380782278,), (1380782298,), (1380782299,), (1380782300,), (1380782327,), (1380782328,), (1380782344,), (1380782346,), (1380782347,), (1380782563,), (1380782565,), (1380782567,), (1380782569,), (1380782916,), (1380782918,), (1380783225,), (1380783226,), (1380783228,), (1380783230,), (1380783232,), (1380783234,), (1380783523,), (1380783527,), (1380783530,), (1380783533,), (1380783536,), (1380783539,), (1380783963,), (1380784309,), (1380783962,), (1380784126,), (1380784130,), (1380784134,), (1380784138,), (1380784144,), (1380784148,), (1380784305,), (1380784456,), (1380784457,), (1380784458,), (1380784459,), (1380784461,), (1380784887,), (1380784889,), (1380784891,), (1380784893,), (1380785264,), (1380785383,), (1380785386,), (1380785874,), (1380785877,), (1380785880,), (1380785883,), (1380785886,), (1380785889,), (1380786078,), (1380786079,), (1380786080,), (1380786081,), (1380786082,), (1380786519,), (1380786521,), (1380786523,), (1380786680,), (1380786681,), (1380786682,), (1380786735,), (1380786736,), (1380786737,), (1380786785,), (1380786786,), (1380786787,), (1380786788,), (1380786878,), (1380786879,), (1380786881,), (1380786882,), (1380786883,), (1380786884,), (1380786889,), (1380786890,), (1380786911,), (1380786913,), (1380786915,), (1380786917,), (1380787050,), (1380787051,), (1380787052,), (1380787207,), (1380787208,), (1380787209,), (1380787210,), (1380787211,), (1380787353,), (1380787351,), (1380787352,), (1380787432,), (1380787433,), (1380787434,), (1380787557,), (1380787559,), (1380787561,), (1380787563,), (1380787565,), (1380787567,), (1380787990,), (1380787992,), (1380787994,), (1380787996,), (1380788336,), (1380788337,), (1380788338,), (1380788339,), (1380788409,), (1380788410,), (1380788460,), (1380788461,), (1380788462,), (1380788463,), (1380788464,), (1380788532,), (1380788533,), (1380788534,), (1380788589,), (1380788590,), (1380788591,), (1380788804,), (1380788840,), (1380788841,), (1380788959,), (1380789017,), (1380789018,), (1380789117,), (1380789119,), (1380789120,), (1380789121,), (1380789122,), (1380789223,), (1380789344,), (1380789221,), (1380789222,), (1380789338,), (1380789339,), (1380789340,), (1380789341,), (1380789342,), (1380789414,), (1380789416,), (1380789417,), (1380789418,), (1380789538,), (1380789599,), (1380789600,), (1380789601,), (1380789675,), (1380789679,), (1380789717,), (1380789718,), (1380789817,), (1380789818,), (1380789854,), (1380789855,), (1380789945,), (1380789946,), (1380789980,), (1380789981,), (1380790038,), (1380790039,), (1380790040,), (1380790041,), (1380790042,), (1380790140,), (1380790142,), (1380790144,), (1380795572,), (1380795638,), (1380795639,), (1380795640,), (1380795658,), (1380796056,), (1380796233,), (1380796411,), (1380796412,), (1380796413,), (1380796550,), (1380796552,), (1380796554,), (1380796556,), (1380796559,), (1380796561,), (1380796619,), (1380796751,), (1380796753,), (1380796755,), (1380796757,), (1380796759,), (1380796761,), (1380796814,), (1380796815,), (1380796816,), (1380796848,), (1380796849,), (1380796850,), (1380796851,), (1380796852,), (1380796919,), (1380796920,), (1380796921,), (1380796922,), (1380796923,), (1380796924,), (1380797101,), (1380797105,), (1380797106,), (1380797107,), (1380797132,), (1380797134,), (1380797135,), (1380797136,), (1380797137,), (1380797211,), (1380797213,), (1380797215,), (1380797267,), (1380797269,), (1380797271,), (1380797273,), (1380797275,), (1380797512,), (1380797714,), (1380797508,), (1380797509,), (1380797510,), (1380797511,), (1380797699,), (1380797700,), (1380797702,), (1380797703,), (1380797704,), (1380797705,), (1380797712,), (1380797713,), (1380797835,), (1380797861,), (1380797862,), (1380797863,), (1380797908,), (1380797909,), (1380797910,), (1380797911,), (1380797912,), (1380797936,), (1380797937,), (1380797938,), (1380797939,), (1380797940,), (1380797976,), (1380797977,), (1380797978,), (1380798000,), (1380798001,), (1380798002,), (1380798095,), (1380798329,), (1380798330,), (1380798331,), (1380798332,), (1380798453,), (1380798454,), (1380798455,), (1380798456,), (1380798457,), (1380798458,), (1380799176,), (1380799178,), (1380799181,), (1380799441,), (1380799437,), (1380799438,), (1380799439,), (1380799440,), (1380799543,), (1380799545,), (1380799548,), (1380799550,), (1380799552,), (1380799875,), (1380799877,), (1380799879,), (1380799881,), (1380799883,), (1380799885,), (1380799996,), (1380799998,), (1380800000,), (1380800001,), (1380800002,), (1380800049,), (1380800050,), (1380800051,), (1380800052,), (1380800053,), (1380800101,), (1380800102,), (1380800103,), (1380800104,), (1380800105,), (1380800153,), (1380800154,), (1380800155,), (1380800157,), (1380800158,), (1380800159,), (1380800168,), (1380800169,), (1380800171,), (1380800173,), (1380800197,), (1380800198,), (1380800199,), (1380800200,), (1380800201,), (1380800202,), (1380800248,), (1380800249,), (1380800250,), (1380800251,), (1380800252,), (1380800253,), (1380800295,), (1380800307,), (1380800308,), (1380800309,), (1380800459,), (1380800461,), (1380800463,), (1380800465,), (1380801646,), (1380801647,), (1380801648,), (1380801649,), (1380801995,), (1380801996,), (1380801997,), (1380801998,), (1380801999,), (1380802000,), (1380802142,), (1380802145,), (1380802147,), (1380802149,), (1380802314,), (1380802316,), (1380802317,), (1380802318,), (1380802319,), (1380802320,), (1380802524,), (1380802727,), (1380802514,), (1380802516,), (1380802518,), (1380802520,), (1380802522,), (1380802683,), (1380802684,), (1380802686,), (1380802687,), (1380802688,), (1380802689,), (1380802723,), (1380802724,), (1380802725,), (1380802726,), (1380802848,), (1380802849,), (1380802850,), (1380802851,), (1380802853,), (1380802936,), (1380803015,), (1380803018,), (1380803023,), (1380803026,), (1380803029,), (1380803287,), (1380803288,), (1380803289,), (1380803290,), (1380803292,), (1380803386,), (1380803387,), (1380803388,), (1380803389,), (1380803390,), (1380803391,), (1380803439,), (1380803440,), (1380803441,), (1380803442,), (1380803443,), (1380803501,), (1380803502,), (1380803503,), (1380803551,), (1380803552,), (1380803553,), (1380803554,), (1380803555,), (1380803556,), (1380803602,), (1380803603,), (1380803604,), (1380803724,), (1380803726,), (1380803728,), (1380803730,), (1380803732,), (1380803734,), (1380803896,), (1380803897,), (1380803898,), (1380803900,), (1380803901,), (1380803902,), (1380803959,), (1380803963,), (1380803967,), (1380803972,), (1380803975,), (1380804340,), (1380804342,), (1380804344,), (1380804346,), (1380804348,), (1380804504,), (1380804505,), (1380804506,), (1380804507,), (1380804508,), (1380804510,), (1380805003,), (1380805013,), (1380805014,), (1380805015,), (1380805016,), (1380805017,), (1380804998,), (1380804999,), (1380805000,), (1380805001,), (1380805002,), (1380805142,), (1380805143,), (1380805144,), (1380805145,), (1380805146,), (1380805206,), (1380805207,), (1380805208,), (1380805209,), (1380805210,), (1380805211,), (1380805345,), (1380805347,), (1380805349,), (1380805352,), (1380805354,), (1380805540,), (1380805541,), (1380805542,), (1380805544,), (1380805545,), (1380805679,), (1380805680,), (1380805681,), (1380805682,), (1380805683,), (1380805684,), (1380805733,), (1380805734,), (1380805735,), (1380805736,), (1380805737,), (1380805739,), (1380805745,), (1380805747,), (1380805750,), (1380805751,), (1380805974,), (1380805976,), (1380805978,), (1380805980,), (1380805982,), (1380805984,), (1380806270,), (1380806272,), (1380806274,), (1380806276,), (1380806278,), (1380806455,), (1380806457,), (1380806459,), (1380806461,), (1380806463,), (1380806465,), (1380806623,), (1380806624,), (1380806625,), (1380806626,), (1380806627,), (1380806628,), (1380806904,), (1380806906,), (1380806908,), (1380806910,), (1380806912,), (1380807478,), (1380807482,), (1380807484,), (1380807486,), (1380807982,), (1380807983,), (1380807984,), (1380807985,), (1380808173,), (1380808174,), (1380808346,), (1380808512,), (1380808340,), (1380808341,), (1380808343,), (1380808344,), (1380808345,), (1380808483,), (1380808485,), (1380808486,), (1380808488,), (1380808489,), (1380808490,), (1380808501,), (1380808503,), (1380808506,), (1380808508,), (1380808510,), (1380808683,), (1380808685,), (1380808687,), (1380809040,), (1380809041,), (1380809197,), (1380809198,), (1380809199,), (1380809200,), (1380809201,), (1380809590,), (1380809591,), (1380809592,), (1380809593,), (1380809595,), (1380809905,), (1380809907,), (1380809909,), (1380809911,), (1380809913,), (1380810040,), (1380810041,), (1380810044,), (1380810045,), (1380810046,), (1380810119,), (1380810120,), (1380810121,), (1380810122,), (1380810123,), (1380810124,), (1380810188,), (1380810189,), (1380810190,), (1380810191,), (1380810251,), (1380810252,), (1380810253,), (1380810522,), (1380810523,), (1380810524,), (1380810527,), (1380810528,), (1380810529,), (1380810685,), (1380810888,), (1380810890,), (1380810894,), (1380811464,), (1380811458,), (1380811460,), (1380811462,), (1380812028,), (1380812031,), (1380812034,), (1380812037,), (1380812040,), (1380812043,), (1380812774,), (1380812777,), (1380812780,), (1380813472,), (1380813474,), (1380813477,), (1380813480,), (1380813483,), (1380813486,), (1380813755,), (1380813757,), (1380813759,), (1380813761,), (1380813763,), (1380814237,), (1380814240,), (1380814243,), (1380814246,), (1380814249,), (1380814252,), (1380814743,), (1380814745,), (1380814748,), (1380814750,), (1380814752,), (1380814754,), (1380814766,), (1380814767,), (1380814768,), (1380814769,), (1380815018,), (1380815019,), (1380815020,), (1380815021,), (1380815022,), (1380815023,), (1380815348,), (1380815350,), (1380815352,), (1380815354,), (1380815534,), (1380815536,), (1380815538,), (1380815540,), (1380815618,), (1380815619,), (1380815620,), (1380815621,), (1380815622,), (1380815623,), (1380815761,), (1380815762,), (1380815925,), (1380815926,), (1380815927,), (1380815928,), (1380815929,), (1380815930,), (1380816040,), (1380816041,), (1380816042,), (1380816043,), (1380816160,), (1380816161,), (1380816162,), (1380816163,), (1380816281,), (1380816411,), (1380816276,), (1380816277,), (1380816278,), (1380816279,), (1380816280,), (1380816371,), (1380816372,), (1380816373,), (1380816374,), (1380816375,), (1380816376,), (1380816405,), (1380816408,), (1380816410,), (1380816568,), (1380816574,), (1380816579,), (1380816584,), (1380817435,), (1380817438,), (1380817810,), (1380817812,), (1380817814,), (1380817816,), (1380817818,), (1380817919,), (1380817920,), (1380817921,), (1380817922,), (1380817991,), (1380817992,), (1380817993,), (1380817995,), (1380818130,), (1380818131,), (1380818132,), (1380818133,), (1380818134,), (1380818135,), (1380818270,), (1380818271,), (1380818272,), (1380818273,), (1380818354,), (1380818355,), (1380818356,), (1380818357,), (1380818358,), (1380818359,), (1380818435,), (1380818436,), (1380818437,), (1380818438,), (1380818439,), (1380818645,), (1380818646,), (1380818647,), (1380818648,), (1380818649,), (1380818650,), (1380818656,), (1380818657,), (1380818658,), (1380818659,), (1380818757,), (1380818761,), (1380818766,), (1380818770,), (1380818810,), (1380818811,), (1380818812,), (1380818813,), (1380818814,), (1380818815,), (1380819229,), (1380819232,), (1380819235,), (1380819238,), (1380819524,), (1380819522,), (1380819523,), (1380819672,), (1380819673,), (1380819674,), (1380819675,), (1380819676,), (1380819780,), (1380819781,), (1380819782,), (1380819783,), (1380819784,), (1380819847,), (1380819848,), (1380819849,), (1380819850,), (1380819913,), (1380819914,), (1380819915,), (1380819973,), (1380819974,), (1380820030,), (1380820032,), (1380820033,), (1380820034,), (1380820035,), (1380820036,), (1380820096,), (1380820097,), (1380820098,), (1380820099,), (1380820100,), (1380820275,), (1380820276,), (1380820277,), (1380820278,), (1380820279,), (1380820344,), (1380820345,), (1380820409,), (1380820410,), (1380820411,), (1380820412,), (1380820500,), (1380820501,), (1380820502,), (1380820503,), (1380820767,), (1380820769,), (1380820770,), (1380820893,), (1380820895,), (1380821036,), (1380821087,), (1380821158,), (1380821084,), (1380821085,), (1380821086,), (1380821154,), (1380821155,), (1380821156,), (1380821416,), (1380821417,), (1380821418,), (1380821419,), (1380821468,), (1380821479,), (1380821480,), (1380821481,), (1380821482,), (1380821683,), (1380821849,), (1380821850,), (1380821851,), (1380821852,), (1380821853,), (1380821906,), (1380821907,), (1380821908,), (1380822011,), (1380822012,), (1380822013,), (1380822014,), (1380822015,), (1380822016,), (1380822114,), (1380822115,), (1380822116,), (1380822117,), (1380822149,), (1380822150,), (1380822151,), (1380822153,), (1380822154,), (1380822155,), (1380822161,), (1380822163,), (1380822343,), (1380822345,), (1380822347,), (1380822349,), (1380822878,), (1380822881,), (1380822885,), (1380822888,), (1380823300,), (1380823296,), (1380823298,), (1380823772,), (1380823775,), (1380823778,), (1380823781,), (1380824597,), (1380824600,), (1380824603,), (1380824606,), (1380824610,), (1380825004,), (1380825007,), (1380825009,), (1380825479,), (1380825481,), (1380825483,), (1380826304,), (1380826305,), (1380826306,), (1380826351,), (1380826352,), (1380826445,), (1380841858,), (1380841856,), (1380842525,), (1380842687,), (1380842723,), (1380842724,), (1380842761,), (1380842762,), (1380842763,), (1380842807,), (1380842808,), (1380842809,), (1380842810,), (1380843034,), (1380843035,), (1380843036,), (1380843037,), (1380843038,), (1380843040,), (1380843064,), (1380843067,), (1380843132,), (1380843133,), (1380843134,), (1380843552,), (1380843554,), (1380843556,), (1380843558,), (1380844465,), (1380844458,), (1380844462,), (1380845248,), (1380845250,), (1380845252,), (1380845254,), (1380845256,), (1380846156,), (1380846158,), (1380846160,), (1380846163,), (1380846166,), (1380846431,), (1380846433,), (1380846435,), (1380846437,), (1380846439,), (1380846441,), (1380846705,), (1380846706,), (1380846707,), (1380846708,), (1380846832,), (1380846834,), (1380846836,), (1380846838,), (1380846840,), (1380846842,), (1380847290,), (1380847292,), (1380847295,), (1380847297,), (1380847299,), (1380847301,), (1380847380,), (1380847384,), (1380847388,), (1380847392,), (1380847394,), (1380847709,), (1380847711,), (1380847713,), (1380847715,), (1380847717,), (1380847719,), (1380847992,), (1380847993,), (1380847994,), (1380847995,), (1380847996,), (1380847997,), (1380848069,), (1380848071,), (1380848073,), (1380848527,), (1380848530,), (1380848532,), (1380848534,), (1380848763,), (1380848764,), (1380848765,), (1380848766,), (1380848767,), (1380848972,), (1380848973,), (1380848974,), (1380848975,), (1380849044,), (1380849045,), (1380849046,), (1380849094,), (1380849096,), (1380849098,), (1380849100,), (1380849101,), (1380849143,), (1380849238,), (1380849141,), (1380849142,), (1380849225,), (1380849226,), (1380849227,), (1380849228,), (1380849230,), (1380849231,), (1380849236,), (1380849237,), (1380849418,), (1380849419,), (1380849420,), (1380849421,), (1380849422,), (1380849423,), (1380849517,), (1380849518,), (1380849519,), (1380849520,), (1380849720,), (1380849721,), (1380849722,), (1380849723,), (1380849724,), (1380849725,), (1380850040,), (1380850042,), (1380850043,), (1380850100,), (1380850101,), (1380850102,), (1380850103,), (1380850104,), (1380850267,), (1380850441,), (1380850601,), (1380850602,), (1380850603,), (1380850604,), (1380850673,), (1380850674,), (1380850675,), (1380850676,), (1380850731,), (1380850726,), (1380850727,), (1380850728,), (1380850729,), (1380850730,), (1380850886,), (1380850888,), (1380850890,), (1380850892,), (1380850992,), (1380850993,), (1380850994,), (1380850995,), (1380851051,), (1380851052,), (1380851053,), (1380851054,), (1380851055,), (1380851104,), (1380851105,), (1380851106,), (1380851107,), (1380851108,), (1380851158,), (1380851168,), (1380851169,), (1380851171,), (1380851172,), (1380851235,), (1380851236,), (1380851237,), (1380851303,), (1380851304,), (1380851347,), (1380851401,), (1380851402,), (1380851403,), (1380851475,), (1380851476,), (1380851477,), (1380851478,), (1380851479,), (1380851480,), (1380851527,), (1380851528,), (1380851529,), (1380851594,), (1380851595,), (1380851596,), (1380851597,), (1380851598,), (1380851599,), (1380851655,), (1380851656,), (1380851657,), (1380851658,), (1380851695,), (1380851707,), (1380851708,), (1380851709,), (1380851710,), (1380851712,), (1380851777,), (1380851843,), (1380851774,), (1380851775,), (1380851776,), (1380851823,), (1380851824,), (1380851825,), (1380851826,), (1380851828,), (1380851829,), (1380851838,), (1380851839,), (1380851841,), (1380851899,), (1380851900,), (1380851901,), (1380851902,), (1380851947,), (1380851948,), (1380851949,), (1380852075,), (1380852076,), (1380852135,), (1380852136,), (1380852137,), (1380852138,), (1380852178,), (1380852179,), (1380852180,), (1380852181,), (1380852182,), (1380852183,), (1380852232,), (1380852242,), (1380852243,), (1380852244,), (1380852292,), (1380852293,), (1380852294,), (1380852296,), (1380852342,), (1380852343,), (1380852344,), (1380852388,), (1380852389,), (1380852390,), (1380852391,), (1380852392,), (1380852393,), (1380852398,), (1380852399,), (1380852455,), (1380852456,), (1380852457,), (1380852458,), (1380852459,), (1380852675,), (1380852677,), (1380852679,), (1380853291,), (1380853285,), (1380853288,), (1380854114,), (1380854117,), (1380854120,), (1380854123,), (1380854126,), (1380854426,), (1380854429,), (1380854433,), (1380854436,), (1380854439,), (1380854442,), (1380855178,), (1380855180,), (1380855182,), (1380855184,), (1380855186,), (1380855440,), (1380855444,), (1380855447,), (1380855450,), (1380855453,), (1380855456,), (1380855754,), (1380855755,), (1380855756,), (1380855757,), (1380855794,), (1380855797,), (1380855798,), (1380855799,), (1380855800,), (1380855801,), (1380855828,), (1380855829,), (1380855831,), (1380855834,), (1380856006,), (1380856007,), (1380856008,), (1380856009,), (1380856109,), (1380856221,), (1380856222,), (1380856223,), (1380856224,), (1380856268,), (1380856269,), (1380856270,), (1380856271,), (1380856272,), (1380856349,), (1380856359,), (1380857383,), (1380857380,), (1380857483,), (1380857484,), (1380857537,), (1380857538,), (1380857539,), (1380857540,), (1380857589,), (1380857590,), (1380857591,), (1380857592,), (1380857593,), (1380857594,), (1380857635,), (1380857645,), (1380857647,), (1380857648,), (1380857688,), (1380857689,), (1380857690,), (1380857691,), (1380857771,), (1380857772,), (1380857773,), (1380857774,), (1380857775,), (1380857875,), (1380857876,), (1380857877,), (1380857878,), (1380857879,), (1380857924,), (1380857925,), (1380857926,), (1380857927,), (1380857928,), (1380857929,), (1380857968,), (1380857969,), (1380857970,), (1380857972,), (1380857973,), (1380857974,), (1380857983,), (1380857985,), (1380857987,), (1380857989,), (1380857991,), (1380858024,), (1380858025,), (1380858026,), (1380858027,), (1380858028,), (1380858029,), (1380858068,), (1380858069,), (1380858070,), (1380858071,), (1380858072,), (1380858176,), (1380858177,), (1380858178,), (1380858179,), (1380858334,), (1380858331,), (1380858332,), (1380858333,), (1380858442,), (1380858444,), (1380858446,), (1380858448,), (1380858450,), (1380858684,), (1380858686,), (1380858688,), (1380858690,), (1380858692,), (1380858694,), (1380859005,), (1380859255,), (1380859257,), (1380859259,), (1380859261,), (1380859415,), (1380859417,), (1380859419,), (1380859421,), (1380859423,), (1380859554,), (1380859555,), (1380859556,), (1380859557,), (1380859559,), (1380859560,), (1380859568,), (1380859569,), (1380859570,), (1380859571,), (1380859573,), (1380859611,), (1380859612,), (1380859614,), (1380859615,), (1380859668,), (1380859669,), (1380859670,), (1380859671,), (1380859737,), (1380859738,), (1380859739,), (1380859740,), (1380859741,), (1380859742,), (1380859873,), (1380859875,), (1380859877,), (1380859879,), (1380859943,), (1380859944,), (1380859945,), (1380859946,), (1380859947,), (1380859948,), (1380860029,), (1380860031,), (1380860033,), (1380860035,), (1380860090,), (1380860091,), (1380860092,), (1380860188,), (1380860189,), (1380860190,), (1380860191,), (1380860192,), (1380860384,), (1380860567,), (1380860376,), (1380860378,), (1380860380,), (1380860382,), (1380860528,), (1380860529,), (1380860530,), (1380860531,), (1380860532,), (1380860533,), (1380860560,), (1380860562,), (1380860565,), (1380860699,), (1380860700,), (1380860701,), (1380860702,), (1380860881,), (1380860883,), (1380861121,), (1380861123,), (1380861124,), (1380861125,), (1380861126,), (1380861201,), (1380861202,), (1380861203,), (1380861204,), (1380861205,), (1380861206,), (1380861270,), (1380861272,), (1380861274,), (1380861275,), (1380861323,), (1380861324,), (1380861325,), (1380861326,), (1380861327,), (1380861380,), (1380861381,), (1380861382,), (1380861383,), (1380861430,), (1380861431,), (1380861498,), (1380861499,), (1380861500,), (1380861501,), (1380861541,), (1380861542,), (1380861543,), (1380861544,), (1380861545,), (1380861546,), (1380861551,), (1380861552,), (1380861553,), (1380861594,), (1380861595,), (1380861596,), (1380862294,), (1380862296,), (1380862297,), (1380862316,), (1380862318,), (1380862319,), (1380862873,), (1380862865,), (1380862869,), (1380862871,), (1380863403,), (1380863406,), (1380863409,), (1380863412,), (1380864195,), (1380864198,), (1380864201,), (1380864204,), (1380864208,), (1380864631,), (1380864633,), (1380864635,), (1380864637,), (1380865032,), (1380865034,), (1380865036,), (1380865038,), (1380865040,), (1380865042,), (1380865574,), (1380865578,), (1380865582,), (1380865585,), (1380865966,), (1380865967,), (1380865969,), (1380865970,), (1380865971,), (1380865972,), (1380865979,), (1380865981,), (1380865982,), (1380866019,), (1380866020,), (1380866021,), (1380866022,), (1380866070,), (1380866071,), (1380866072,), (1380866073,), (1380866139,), (1380866140,), (1380866313,), (1380866314,), (1380866315,), (1380866316,), (1380866317,), (1380866406,), (1380866408,), (1380866409,), (1380866410,), (1380866411,), (1380866412,), (1380866501,), (1380866502,), (1380866503,), (1380866562,), (1380866563,), (1380866564,), (1380866565,), (1380866566,), (1380866643,), (1380866644,), (1380866645,), (1380866646,), (1380866647,), (1380866704,), (1380866780,), (1380866702,), (1380866703,), (1380866769,), (1380866770,), (1380866771,), (1380866772,), (1380866773,), (1380866774,), (1380866825,), (1380866826,), (1380866827,), (1380866828,), (1380866829,), (1380866872,), (1380866873,), (1380866874,), (1380866876,), (1380866877,), (1380866878,), (1380866933,), (1380866934,), (1380866935,), (1380867006,), (1380867007,), (1380867008,), (1380867009,), (1380867010,), (1380867073,), (1380867074,), (1380867075,), (1380867076,), (1380867077,), (1380867078,), (1380867118,), (1380867119,), (1380867120,), (1380867121,), (1380867122,), (1380867123,), (1380867161,), (1380867162,), (1380867163,), (1380867164,), (1380867211,), (1380867212,), (1380867213,), (1380867214,), (1380867335,), (1380867336,), (1380867337,), (1380867338,), (1380867339,), (1380867543,), (1380867544,), (1380867545,), (1380867546,), (1380867547,), (1380867548,), (1380867552,), (1380867553,), (1380867607,), (1380867608,), (1380867609,), (1380867610,), (1380867661,), (1380867662,), (1380867663,), (1380867716,), (1380867717,), (1380867796,), (1380867873,), (1380867874,), (1380867875,), (1380867876,), (1380867928,), (1380867929,), (1380867930,), (1380867983,), (1380867985,), (1380867987,), (1380868268,), (1380868270,), (1380868272,), (1380868274,), (1380868276,), (1380868278,), (1380868449,), (1380868450,), (1380868451,), (1380868452,), (1380868453,), (1380868454,), (1380868547,), (1380868548,), (1380868549,), (1380868550,), (1380868552,), (1380868553,), (1380868560,), (1380868561,), (1380868563,), (1380868682,), (1380868684,), (1380868686,), (1380868688,), (1380868690,), (1380868692,), (1380868820,), (1380868822,), (1380868986,), (1380868987,), (1380868988,), (1380868989,), (1380868990,), (1380869407,), (1380869409,), (1380869411,), (1380869713,), (1380869715,), (1380869717,), (1380869719,), (1380869721,), (1380870143,), (1380870147,), (1380870151,), (1380870155,), (1380870159,), (1380870163,), (1380871057,), (1380871059,), (1380871061,), (1380871064,), (1380871065,), (1380871068,), (1380871348,), (1380871888,), (1380871343,), (1380871345,), (1380871347,), (1380871780,), (1380871782,), (1380871784,), (1380871786,), (1380871790,), (1380871792,), (1380871881,), (1380871884,), (1380871886,), (1380872149,), (1380872150,), (1380872151,), (1380872202,), (1380872204,), (1380872205,), (1380872206,), (1380872292,), (1380872294,), (1380872682,), (1380872685,), (1380872690,), (1380872923,), (1380872925,), (1380872927,), (1380872929,), (1380872931,), (1380873556,), (1380873558,), (1380873560,), (1380873562,), (1380873564,), (1380873722,), (1380873962,), (1380873963,), (1380874099,), (1380874100,), (1380874101,), (1380874102,), (1380874167,), (1380874168,), (1380874169,), (1380874170,), (1380874171,), (1380874172,), (1380874184,), (1380874185,), (1380874355,), (1380874357,), (1380875384,), (1380875387,), (1380875390,), (1380876144,), (1380876138,), (1380876141,), (1380876745,), (1380876747,), (1380877387,), (1380877390,), (1380877393,), (1380877827,), (1380877830,), (1380877833,), (1380877836,), (1380878162,), (1380878164,), (1380878166,), (1380878168,), (1380878170,), (1380878172,), (1380878488,), (1380878489,), (1380878490,), (1380878491,), (1380878548,), (1380878549,), (1380878550,), (1380878552,), (1380878553,), (1380878554,), (1380878733,), (1380878734,), (1380878735,), (1380878736,), (1380878737,), (1380878738,), (1380879300,), (1380879303,), (1380879306,), (1380879308,), (1380879629,), (1380879631,), (1380879633,), (1380879635,), (1380879637,), (1380879639,), (1380879772,), (1380879773,), (1380879774,), (1380879845,), (1380879846,), (1380879847,), (1380879848,), (1380879849,), (1380879851,), (1380880092,), (1380880093,), (1380880094,), (1380880095,), (1380880096,), (1380880097,), (1380880157,), (1380880158,), (1380880159,), (1380880160,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02092025': {'nb_upload': 62, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26445758]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1380880160, 1380880159, 1380880158, 1380880157, 1380880097, 1380880096, 1380880095, 1380880094, 1380880093, 1380880092] map_info['map_portfolio_photo'] : {26445758: [1380880160, 1380880159, 1380880158, 1380880157, 1380880097, 1380880096, 1380880095, 1380880094, 1380880093, 1380880092, 1380879851, 1380879849, 1380879848, 1380879847, 1380879846, 1380879845, 1380879774, 1380879773, 1380879772, 1380879639, 1380879637, 1380879635, 1380879633, 1380879631, 1380879629, 1380879308, 1380879306, 1380879303, 1380879300, 1380878738, 1380878737, 1380878736, 1380878735, 1380878734, 1380878733, 1380878554, 1380878553, 1380878552, 1380878550, 1380878549, 1380878548, 1380878491, 1380878490, 1380878489, 1380878488, 1380878172, 1380878170, 1380878168, 1380878166, 1380878164, 1380878162, 1380877836, 1380877833, 1380877830, 1380877827, 1380877393, 1380877390, 1380877387, 1380876747, 1380876745, 1380876141, 1380876138]} final : True mtd_id 4302 list_pids : [1380880160, 1380880159, 1380880158, 1380880157, 1380880097, 1380880096, 1380880095, 1380880094, 1380880093, 1380880092] Looping around the photos to save general results len do output : 1 /26445758Didn'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, '3652749') ('4302', '26445758', '1380880160', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880159', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880158', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880157', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880097', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880096', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880095', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880094', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880093', None, None, None, None, None, '3652749') ('4302', None, None, None, None, None, None, None, '3652749') ('4302', '26445758', '1380880092', None, None, None, None, None, '3652749') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26445758', 'None', None, None, None, None, '3652749'), ('4302', '26445758', '1380880160', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880159', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880158', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880157', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880097', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880096', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880095', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880094', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880093', None, None, None, None, None, '3652749'), ('4302', '26445758', '1380880092', None, None, None, None, None, '3652749')] time used for this insertion : 0.013094425201416016 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.227778911590576 time spend to save output : 0.013374567031860352 total time spend for step 5 : 3.2411534786224365 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 (3652749) 2.27user 2.24system 0:10.54elapsed 42%CPU (0avgtext+0avgdata 159864maxresident)k 544inputs+7568outputs (2major+76768minor)pagefaults 0swaps