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 : 4074204 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 (4084795) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4084795) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28746095 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4084795'] with mtr_portfolio_ids : ['28746095'] and first list_photo_ids : [] new path : /proc/4074204/ Name: python3 Umask: 0002 State: R (running) Tgid: 4074204 Ngid: 0 Pid: 4074204 PPid: 4074203 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4074204 NSpid: 4074204 NSpgid: 4073375 NSsid: 4073375 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98728 kB VmRSS: 98728 kB RssAnon: 59904 kB RssFile: 38824 kB RssShmem: 0 kB VmData: 865636 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: 38 nonvoluntary_ctxt_switches: 145 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4074204', 'Ngid': '0', 'Pid': '4074204', 'PPid': '4074203', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4074204', 'NSpid': '4074204', 'NSpgid': '4073375', 'NSsid': '4073375', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98728 kB', 'VmRSS': '98728 kB', 'RssAnon': '59904 kB', 'RssFile': '38824 kB', 'RssShmem': '0 kB', 'VmData': '865636 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': '38', 'nonvoluntary_ctxt_switches': '145'} ('datou_batch_current', '4074204', '1106908', '0', '1106884', '865636', '98728', b'', 'marlene', '4084795') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28746095) 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 (4084795 ) ) 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 (28746095) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1395381805, 'portfolio_id': 28746095}, {'photo_id': 1395381800, 'portfolio_id': 28746095}, {'photo_id': 1395381794, 'portfolio_id': 28746095}, {'photo_id': 1395381791, 'portfolio_id': 28746095}, {'photo_id': 1395381788, 'portfolio_id': 28746095}, {'photo_id': 1395381757, 'portfolio_id': 28746095}, {'photo_id': 1395381755, 'portfolio_id': 28746095}, {'photo_id': 1395381751, 'portfolio_id': 28746095}, {'photo_id': 1395381746, 'portfolio_id': 28746095}, {'photo_id': 1395381743, 'portfolio_id': 28746095}, {'photo_id': 1395381733, 'portfolio_id': 28746095}, {'photo_id': 1395381659, 'portfolio_id': 28746095}, {'photo_id': 1395381656, 'portfolio_id': 28746095}, {'photo_id': 1395381653, 'portfolio_id': 28746095}, {'photo_id': 1395381642, 'portfolio_id': 28746095}, {'photo_id': 1395381602, 'portfolio_id': 28746095}, {'photo_id': 1395381599, 'portfolio_id': 28746095}, {'photo_id': 1395381596, 'portfolio_id': 28746095}, {'photo_id': 1395381592, 'portfolio_id': 28746095}, {'photo_id': 1395381587, 'portfolio_id': 28746095}, {'photo_id': 1395381545, 'portfolio_id': 28746095}, {'photo_id': 1395381541, 'portfolio_id': 28746095}, {'photo_id': 1395381536, 'portfolio_id': 28746095}, {'photo_id': 1395381534, 'portfolio_id': 28746095}, {'photo_id': 1395381532, 'portfolio_id': 28746095}, {'photo_id': 1395381530, 'portfolio_id': 28746095}, {'photo_id': 1395381507, 'portfolio_id': 28746095}, {'photo_id': 1395381503, 'portfolio_id': 28746095}, {'photo_id': 1395381500, 'portfolio_id': 28746095}, {'photo_id': 1395381498, 'portfolio_id': 28746095}, {'photo_id': 1395381491, 'portfolio_id': 28746095}, {'photo_id': 1395381490, 'portfolio_id': 28746095}, {'photo_id': 1395381488, 'portfolio_id': 28746095}, {'photo_id': 1395381486, 'portfolio_id': 28746095}, {'photo_id': 1395381474, 'portfolio_id': 28746095}, {'photo_id': 1395381472, 'portfolio_id': 28746095}, {'photo_id': 1395381469, 'portfolio_id': 28746095}, {'photo_id': 1395381466, 'portfolio_id': 28746095}, {'photo_id': 1395381465, 'portfolio_id': 28746095}, {'photo_id': 1395381464, 'portfolio_id': 28746095}, {'photo_id': 1395381293, 'portfolio_id': 28746095}, {'photo_id': 1395381257, 'portfolio_id': 28746095}, {'photo_id': 1395381222, 'portfolio_id': 28746095}, {'photo_id': 1395381188, 'portfolio_id': 28746095}, {'photo_id': 1395381176, 'portfolio_id': 28746095}, {'photo_id': 1395381126, 'portfolio_id': 28746095}, {'photo_id': 1395381122, 'portfolio_id': 28746095}, {'photo_id': 1395381120, 'portfolio_id': 28746095}, {'photo_id': 1395381118, 'portfolio_id': 28746095}, {'photo_id': 1395381091, 'portfolio_id': 28746095}, {'photo_id': 1395381087, 'portfolio_id': 28746095}, {'photo_id': 1395381084, 'portfolio_id': 28746095}, {'photo_id': 1395381080, 'portfolio_id': 28746095}, {'photo_id': 1395381067, 'portfolio_id': 28746095}, {'photo_id': 1395381056, 'portfolio_id': 28746095}, {'photo_id': 1395380861, 'portfolio_id': 28746095}, {'photo_id': 1395380821, 'portfolio_id': 28746095}, {'photo_id': 1395380788, 'portfolio_id': 28746095}, {'photo_id': 1395380753, 'portfolio_id': 28746095}, {'photo_id': 1395380747, 'portfolio_id': 28746095}, {'photo_id': 1395380660, 'portfolio_id': 28746095}, {'photo_id': 1395380655, 'portfolio_id': 28746095}, {'photo_id': 1395380651, 'portfolio_id': 28746095}, {'photo_id': 1395380648, 'portfolio_id': 28746095}, {'photo_id': 1395380627, 'portfolio_id': 28746095}, {'photo_id': 1395380612, 'portfolio_id': 28746095}, {'photo_id': 1395380436, 'portfolio_id': 28746095}, {'photo_id': 1395380407, 'portfolio_id': 28746095}, {'photo_id': 1395380390, 'portfolio_id': 28746095}, {'photo_id': 1395380384, 'portfolio_id': 28746095}, {'photo_id': 1395380353, 'portfolio_id': 28746095}, {'photo_id': 1395380292, 'portfolio_id': 28746095}, {'photo_id': 1395380259, 'portfolio_id': 28746095}, {'photo_id': 1395380226, 'portfolio_id': 28746095}, {'photo_id': 1395380091, 'portfolio_id': 28746095}, {'photo_id': 1395380084, 'portfolio_id': 28746095}, {'photo_id': 1395380081, 'portfolio_id': 28746095}, {'photo_id': 1395380076, 'portfolio_id': 28746095}, {'photo_id': 1395380072, 'portfolio_id': 28746095}, {'photo_id': 1395380068, 'portfolio_id': 28746095}, {'photo_id': 1395380041, 'portfolio_id': 28746095}, {'photo_id': 1395380038, 'portfolio_id': 28746095}, {'photo_id': 1395380036, 'portfolio_id': 28746095}, {'photo_id': 1395380034, 'portfolio_id': 28746095}] map_portfolio_id_photo_id: {28746095: [1395381805, 1395381800, 1395381794, 1395381791, 1395381788, 1395381757, 1395381755, 1395381751, 1395381746, 1395381743, 1395381733, 1395381659, 1395381656, 1395381653, 1395381642, 1395381602, 1395381599, 1395381596, 1395381592, 1395381587, 1395381545, 1395381541, 1395381536, 1395381534, 1395381532, 1395381530, 1395381507, 1395381503, 1395381500, 1395381498, 1395381491, 1395381490, 1395381488, 1395381486, 1395381474, 1395381472, 1395381469, 1395381466, 1395381465, 1395381464, 1395381293, 1395381257, 1395381222, 1395381188, 1395381176, 1395381126, 1395381122, 1395381120, 1395381118, 1395381091, 1395381087, 1395381084, 1395381080, 1395381067, 1395381056, 1395380861, 1395380821, 1395380788, 1395380753, 1395380747, 1395380660, 1395380655, 1395380651, 1395380648, 1395380627, 1395380612, 1395380436, 1395380407, 1395380390, 1395380384, 1395380353, 1395380292, 1395380259, 1395380226, 1395380091, 1395380084, 1395380081, 1395380076, 1395380072, 1395380068, 1395380041, 1395380038, 1395380036, 1395380034]} ##### 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.018325328826904297 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Nov 20 15:16:28 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 (28746095) 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 : 28746095 get user id for portfolio 28746095 get sub ptf for main ptf 28746095, type 3726 and hashtags ['autre_refus', 'papier', 'environnement', 'kraft', 'cartonnette', 'plastique', 'Teint_Dans_La_Masse', 'flou', 'mal_croppe', 'metal', 'Carton_gris', 'Carton_brun'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28746095 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','environnement','kraft','cartonnette','plastique','Teint_Dans_La_Masse','flou','mal_croppe','metal','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28746095 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','environnement','kraft','cartonnette','plastique','Teint_Dans_La_Masse','flou','mal_croppe','metal','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 28746095, 'sub_port_id': 28746169, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501416, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 28746095, 'sub_port_id': 28746170, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501417, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 28)}, 'metal': {'main_port_id': 28746095, 'sub_port_id': 28746171, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501418, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 28)}, 'mal_croppe': {'main_port_id': 28746095, 'sub_port_id': 28746172, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501419, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 28)}, 'Carton_gris': {'main_port_id': 28746095, 'sub_port_id': 28746173, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501420, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 28)}, 'cartonnette': {'main_port_id': 28746095, 'sub_port_id': 28746174, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501421, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 28)}, 'kraft': {'main_port_id': 28746095, 'sub_port_id': 28746175, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501422, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 28)}, 'autre_refus': {'main_port_id': 28746095, 'sub_port_id': 28746176, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501423, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 28)}, 'Carton_brun': {'main_port_id': 28746095, 'sub_port_id': 28746177, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501424, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 28)}, 'environnement': {'main_port_id': 28746095, 'sub_port_id': 28746178, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501425, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 28)}, 'papier': {'main_port_id': 28746095, 'sub_port_id': 28746179, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501426, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 28)}, 'flou': {'main_port_id': 28746095, 'sub_port_id': 28746180, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501427, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28746169 , 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=28746095 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 (28746169) result : ((1395380929,), (1395381571,), (1395381782,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28746095) result : ((1395380034,), (1395380036,), (1395380038,), (1395380041,), (1395380068,), (1395380072,), (1395380076,), (1395380081,), (1395380084,), (1395380091,), (1395380226,), (1395380259,), (1395380292,), (1395380353,), (1395380384,), (1395380390,), (1395380407,), (1395380436,), (1395380612,), (1395380627,), (1395380648,), (1395380651,), (1395380655,), (1395380660,), (1395380747,), (1395380753,), (1395380788,), (1395380821,), (1395380861,), (1395381056,), (1395381067,), (1395381080,), (1395381084,), (1395381087,), (1395381091,), (1395381118,), (1395381120,), (1395381122,), (1395381126,), (1395381176,), (1395381188,), (1395381222,), (1395381257,), (1395381293,), (1395381464,), (1395381465,), (1395381466,), (1395381469,), (1395381472,), (1395381474,), (1395381486,), (1395381488,), (1395381490,), (1395381491,), (1395381498,), (1395381500,), (1395381503,), (1395381507,), (1395381530,), (1395381532,), (1395381534,), (1395381536,), (1395381541,), (1395381545,), (1395381587,), (1395381592,), (1395381596,), (1395381599,), (1395381602,), (1395381642,), (1395381653,), (1395381656,), (1395381659,), (1395381733,), (1395381743,), (1395381746,), (1395381751,), (1395381755,), (1395381757,), (1395381788,), (1395381791,), (1395381794,), (1395381800,), (1395381805,)) 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 (1395381800,1395381500) 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 28746170 , 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=28746095 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 (28746170) result : ((1395380915,), (1395380917,), (1395381558,), (1395381559,), (1395381560,), (1395381561,), (1395381773,), (1395381774,), (1395381817,), (1395381818,), (1395381987,), (1395381989,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28746095) result : ((1395380034,), (1395380036,), (1395380038,), (1395380041,), (1395380068,), (1395380072,), (1395380076,), (1395380081,), (1395380084,), (1395380091,), (1395380226,), (1395380259,), (1395380292,), (1395380353,), (1395380384,), (1395380390,), (1395380407,), (1395380436,), (1395380612,), (1395380627,), (1395380648,), (1395380651,), (1395380655,), (1395380660,), (1395380747,), (1395380753,), (1395380788,), (1395380821,), (1395380861,), (1395381056,), (1395381067,), (1395381080,), (1395381084,), (1395381087,), (1395381091,), (1395381118,), (1395381120,), (1395381122,), (1395381126,), (1395381176,), (1395381188,), (1395381222,), (1395381257,), (1395381293,), (1395381464,), (1395381465,), (1395381466,), (1395381469,), (1395381472,), (1395381474,), (1395381486,), (1395381488,), (1395381490,), (1395381491,), (1395381498,), (1395381500,), (1395381503,), (1395381507,), (1395381530,), (1395381532,), (1395381534,), (1395381536,), (1395381541,), (1395381545,), (1395381587,), (1395381592,), (1395381596,), (1395381599,), (1395381602,), (1395381642,), (1395381653,), (1395381656,), (1395381659,), (1395381733,), (1395381743,), (1395381746,), (1395381751,), (1395381755,), (1395381757,), (1395381788,), (1395381791,), (1395381794,), (1395381800,), (1395381805,)) 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 (1395381800,1395381500) 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 28746171 , 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=28746095 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 (28746171) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28746095) result : ((1395380034,), (1395380036,), (1395380038,), (1395380041,), (1395380068,), (1395380072,), (1395380076,), (1395380081,), (1395380084,), (1395380091,), (1395380226,), (1395380259,), (1395380292,), (1395380353,), (1395380384,), (1395380390,), (1395380407,), (1395380436,), (1395380612,), (1395380627,), (1395380648,), (1395380651,), (1395380655,), (1395380660,), (1395380747,), (1395380753,), (1395380788,), (1395380821,), (1395380861,), (1395381056,), (1395381067,), (1395381080,), (1395381084,), (1395381087,), (1395381091,), (1395381118,), (1395381120,), (1395381122,), (1395381126,), (1395381176,), (1395381188,), (1395381222,), (1395381257,), (1395381293,), (1395381464,), (1395381465,), (1395381466,), (1395381469,), (1395381472,), (1395381474,), (1395381486,), (1395381488,), (1395381490,), (1395381491,), (1395381498,), (1395381500,), (1395381503,), (1395381507,), (1395381530,), (1395381532,), (1395381534,), (1395381536,), (1395381541,), (1395381545,), (1395381587,), (1395381592,), (1395381596,), (1395381599,), (1395381602,), (1395381642,), (1395381653,), (1395381656,), (1395381659,), (1395381733,), (1395381743,), (1395381746,), (1395381751,), (1395381755,), (1395381757,), (1395381788,), (1395381791,), (1395381794,), (1395381800,), (1395381805,)) 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 (1395381800,1395381500) 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 28746172 , 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=28746095 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 (28746172) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28746095) result : ((1395380034,), (1395380036,), (1395380038,), (1395380041,), (1395380068,), (1395380072,), (1395380076,), (1395380081,), (1395380084,), (1395380091,), (1395380226,), (1395380259,), (1395380292,), (1395380353,), (1395380384,), (1395380390,), (1395380407,), (1395380436,), (1395380612,), (1395380627,), (1395380648,), (1395380651,), (1395380655,), (1395380660,), (1395380747,), (1395380753,), (1395380788,), (1395380821,), (1395380861,), (1395381056,), (1395381067,), (1395381080,), (1395381084,), (1395381087,), (1395381091,), (1395381118,), (1395381120,), (1395381122,), (1395381126,), (1395381176,), (1395381188,), (1395381222,), (1395381257,), (1395381293,), (1395381464,), (1395381465,), (1395381466,), (1395381469,), (1395381472,), (1395381474,), (1395381486,), (1395381488,), (1395381490,), (1395381491,), (1395381498,), (1395381500,), (1395381503,), (1395381507,), (1395381530,), (1395381532,), (1395381534,), (1395381536,), (1395381541,), (1395381545,), (1395381587,), (1395381592,), (1395381596,), (1395381599,), (1395381602,), (1395381642,), (1395381653,), (1395381656,), (1395381659,), (1395381733,), (1395381743,), (1395381746,), (1395381751,), (1395381755,), (1395381757,), (1395381788,), (1395381791,), (1395381794,), (1395381800,), (1395381805,)) 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 (1395381800,1395381500) 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 28746173 , 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=28746095 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 (28746173) result : ((1395381565,), (1395381566,), (1395381821,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28746095) result : ((1395380034,), (1395380036,), (1395380038,), (1395380041,), (1395380068,), (1395380072,), (1395380076,), (1395380081,), (1395380084,), (1395380091,), (1395380226,), (1395380259,), (1395380292,), (1395380353,), (1395380384,), (1395380390,), (1395380407,), (1395380436,), (1395380612,), (1395380627,), (1395380648,), (1395380651,), (1395380655,), (1395380660,), (1395380747,), (1395380753,), (1395380788,), (1395380821,), (1395380861,), (1395381056,), (1395381067,), (1395381080,), (1395381084,), (1395381087,), (1395381091,), (1395381118,), (1395381120,), (1395381122,), (1395381126,), (1395381176,), (1395381188,), (1395381222,), (1395381257,), (1395381293,), (1395381464,), (1395381465,), (1395381466,), (1395381469,), (1395381472,), (1395381474,), (1395381486,), (1395381488,), (1395381490,), (1395381491,), (1395381498,), (1395381500,), (1395381503,), (1395381507,), (1395381530,), (1395381532,), (1395381534,), (1395381536,), (1395381541,), (1395381545,), (1395381587,), (1395381592,), (1395381596,), (1395381599,), (1395381602,), (1395381642,), (1395381653,), (1395381656,), (1395381659,), (1395381733,), (1395381743,), (1395381746,), (1395381751,), (1395381755,), (1395381757,), (1395381788,), (1395381791,), (1395381794,), (1395381800,), (1395381805,)) 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 (1395381800,1395381500) 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 28746174 , 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=28746095 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 (28746174) result : ((1395381776,), (1395381777,), (1395381823,), (1395381824,), (1395382013,), (1395382015,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28746095) result : ((1395380034,), (1395380036,), (1395380038,), (1395380041,), (1395380068,), (1395380072,), (1395380076,), (1395380081,), (1395380084,), (1395380091,), (1395380226,), (1395380259,), (1395380292,), (1395380353,), (1395380384,), (1395380390,), (1395380407,), (1395380436,), (1395380612,), (1395380627,), (1395380648,), (1395380651,), (1395380655,), (1395380660,), (1395380747,), (1395380753,), (1395380788,), (1395380821,), (1395380861,), (1395381056,), (1395381067,), (1395381080,), (1395381084,), (1395381087,), (1395381091,), (1395381118,), (1395381120,), (1395381122,), (1395381126,), (1395381176,), (1395381188,), (1395381222,), (1395381257,), (1395381293,), (1395381464,), (1395381465,), (1395381466,), (1395381469,), (1395381472,), (1395381474,), (1395381486,), (1395381488,), (1395381490,), (1395381491,), (1395381498,), (1395381500,), (1395381503,), (1395381507,), (1395381530,), (1395381532,), (1395381534,), (1395381536,), (1395381541,), (1395381545,), (1395381587,), (1395381592,), (1395381596,), (1395381599,), (1395381602,), (1395381642,), (1395381653,), (1395381656,), (1395381659,), (1395381733,), (1395381743,), (1395381746,), (1395381751,), (1395381755,), (1395381757,), (1395381788,), (1395381791,), (1395381794,), (1395381800,), (1395381805,)) 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 (1395381800,1395381500) 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 28746175 , 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=28746095 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 (28746175) result : ((1395381573,), (1395382048,), (1395382050,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28746095) result : ((1395380034,), (1395380036,), (1395380038,), (1395380041,), (1395380068,), (1395380072,), (1395380076,), (1395380081,), (1395380084,), (1395380091,), (1395380226,), (1395380259,), (1395380292,), (1395380353,), (1395380384,), (1395380390,), (1395380407,), (1395380436,), (1395380612,), (1395380627,), (1395380648,), (1395380651,), (1395380655,), (1395380660,), (1395380747,), (1395380753,), (1395380788,), (1395380821,), (1395380861,), (1395381056,), (1395381067,), (1395381080,), (1395381084,), (1395381087,), (1395381091,), (1395381118,), (1395381120,), (1395381122,), (1395381126,), (1395381176,), (1395381188,), (1395381222,), (1395381257,), (1395381293,), (1395381464,), (1395381465,), (1395381466,), (1395381469,), (1395381472,), (1395381474,), (1395381486,), (1395381488,), (1395381490,), (1395381491,), (1395381498,), (1395381500,), (1395381503,), (1395381507,), (1395381530,), (1395381532,), (1395381534,), (1395381536,), (1395381541,), (1395381545,), (1395381587,), (1395381592,), (1395381596,), (1395381599,), (1395381602,), (1395381642,), (1395381653,), (1395381656,), (1395381659,), (1395381733,), (1395381743,), (1395381746,), (1395381751,), (1395381755,), (1395381757,), (1395381788,), (1395381791,), (1395381794,), (1395381800,), (1395381805,)) 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 (1395381800,1395381500) 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 28746176 , 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=28746095 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 (28746176) result : ((1395381562,), (1395381563,), (1395381775,), (1395381820,), (1395382001,), (1395382003,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28746095) result : ((1395380034,), (1395380036,), (1395380038,), (1395380041,), (1395380068,), (1395380072,), (1395380076,), (1395380081,), (1395380084,), (1395380091,), (1395380226,), (1395380259,), (1395380292,), (1395380353,), (1395380384,), (1395380390,), (1395380407,), (1395380436,), (1395380612,), (1395380627,), (1395380648,), (1395380651,), (1395380655,), (1395380660,), (1395380747,), (1395380753,), (1395380788,), (1395380821,), (1395380861,), (1395381056,), (1395381067,), (1395381080,), (1395381084,), (1395381087,), (1395381091,), (1395381118,), (1395381120,), (1395381122,), (1395381126,), (1395381176,), (1395381188,), (1395381222,), (1395381257,), (1395381293,), (1395381464,), (1395381465,), (1395381466,), (1395381469,), (1395381472,), (1395381474,), (1395381486,), (1395381488,), (1395381490,), (1395381491,), (1395381498,), (1395381500,), (1395381503,), (1395381507,), (1395381530,), (1395381532,), (1395381534,), (1395381536,), (1395381541,), (1395381545,), (1395381587,), (1395381592,), (1395381596,), (1395381599,), (1395381602,), (1395381642,), (1395381653,), (1395381656,), (1395381659,), (1395381733,), (1395381743,), (1395381746,), (1395381751,), (1395381755,), (1395381757,), (1395381788,), (1395381791,), (1395381794,), (1395381800,), (1395381805,)) 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 (1395381800,1395381500) 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 28746177 , 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=28746095 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 (28746177) result : ((1395380919,), (1395381567,), (1395381568,), (1395381779,), (1395381832,), (1395382029,), (1395382031,), (1395382033,), (1395382035,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28746095) result : ((1395380034,), (1395380036,), (1395380038,), (1395380041,), (1395380068,), (1395380072,), (1395380076,), (1395380081,), (1395380084,), (1395380091,), (1395380226,), (1395380259,), (1395380292,), (1395380353,), (1395380384,), (1395380390,), (1395380407,), (1395380436,), (1395380612,), (1395380627,), (1395380648,), (1395380651,), (1395380655,), (1395380660,), (1395380747,), (1395380753,), (1395380788,), (1395380821,), (1395380861,), (1395381056,), (1395381067,), (1395381080,), (1395381084,), (1395381087,), (1395381091,), (1395381118,), (1395381120,), (1395381122,), (1395381126,), (1395381176,), (1395381188,), (1395381222,), (1395381257,), (1395381293,), (1395381464,), (1395381465,), (1395381466,), (1395381469,), (1395381472,), (1395381474,), (1395381486,), (1395381488,), (1395381490,), (1395381491,), (1395381498,), (1395381500,), (1395381503,), (1395381507,), (1395381530,), (1395381532,), (1395381534,), (1395381536,), (1395381541,), (1395381545,), (1395381587,), (1395381592,), (1395381596,), (1395381599,), (1395381602,), (1395381642,), (1395381653,), (1395381656,), (1395381659,), (1395381733,), (1395381743,), (1395381746,), (1395381751,), (1395381755,), (1395381757,), (1395381788,), (1395381791,), (1395381794,), (1395381800,), (1395381805,)) 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 (1395381800,1395381500) 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 28746178 , 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=28746095 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 (28746178) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28746095) result : ((1395380034,), (1395380036,), (1395380038,), (1395380041,), (1395380068,), (1395380072,), (1395380076,), (1395380081,), (1395380084,), (1395380091,), (1395380226,), (1395380259,), (1395380292,), (1395380353,), (1395380384,), (1395380390,), (1395380407,), (1395380436,), (1395380612,), (1395380627,), (1395380648,), (1395380651,), (1395380655,), (1395380660,), (1395380747,), (1395380753,), (1395380788,), (1395380821,), (1395380861,), (1395381056,), (1395381067,), (1395381080,), (1395381084,), (1395381087,), (1395381091,), (1395381118,), (1395381120,), (1395381122,), (1395381126,), (1395381176,), (1395381188,), (1395381222,), (1395381257,), (1395381293,), (1395381464,), (1395381465,), (1395381466,), (1395381469,), (1395381472,), (1395381474,), (1395381486,), (1395381488,), (1395381490,), (1395381491,), (1395381498,), (1395381500,), (1395381503,), (1395381507,), (1395381530,), (1395381532,), (1395381534,), (1395381536,), (1395381541,), (1395381545,), (1395381587,), (1395381592,), (1395381596,), (1395381599,), (1395381602,), (1395381642,), (1395381653,), (1395381656,), (1395381659,), (1395381733,), (1395381743,), (1395381746,), (1395381751,), (1395381755,), (1395381757,), (1395381788,), (1395381791,), (1395381794,), (1395381800,), (1395381805,)) 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 (1395381800,1395381500) 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 28746179 , 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=28746095 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 (28746179) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28746095) result : ((1395380034,), (1395380036,), (1395380038,), (1395380041,), (1395380068,), (1395380072,), (1395380076,), (1395380081,), (1395380084,), (1395380091,), (1395380226,), (1395380259,), (1395380292,), (1395380353,), (1395380384,), (1395380390,), (1395380407,), (1395380436,), (1395380612,), (1395380627,), (1395380648,), (1395380651,), (1395380655,), (1395380660,), (1395380747,), (1395380753,), (1395380788,), (1395380821,), (1395380861,), (1395381056,), (1395381067,), (1395381080,), (1395381084,), (1395381087,), (1395381091,), (1395381118,), (1395381120,), (1395381122,), (1395381126,), (1395381176,), (1395381188,), (1395381222,), (1395381257,), (1395381293,), (1395381464,), (1395381465,), (1395381466,), (1395381469,), (1395381472,), (1395381474,), (1395381486,), (1395381488,), (1395381490,), (1395381491,), (1395381498,), (1395381500,), (1395381503,), (1395381507,), (1395381530,), (1395381532,), (1395381534,), (1395381536,), (1395381541,), (1395381545,), (1395381587,), (1395381592,), (1395381596,), (1395381599,), (1395381602,), (1395381642,), (1395381653,), (1395381656,), (1395381659,), (1395381733,), (1395381743,), (1395381746,), (1395381751,), (1395381755,), (1395381757,), (1395381788,), (1395381791,), (1395381794,), (1395381800,), (1395381805,)) 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 (1395381800,1395381500) 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 28746180 , 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=28746095 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 (28746180) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28746095) result : ((1395380034,), (1395380036,), (1395380038,), (1395380041,), (1395380068,), (1395380072,), (1395380076,), (1395380081,), (1395380084,), (1395380091,), (1395380226,), (1395380259,), (1395380292,), (1395380353,), (1395380384,), (1395380390,), (1395380407,), (1395380436,), (1395380612,), (1395380627,), (1395380648,), (1395380651,), (1395380655,), (1395380660,), (1395380747,), (1395380753,), (1395380788,), (1395380821,), (1395380861,), (1395381056,), (1395381067,), (1395381080,), (1395381084,), (1395381087,), (1395381091,), (1395381118,), (1395381120,), (1395381122,), (1395381126,), (1395381176,), (1395381188,), (1395381222,), (1395381257,), (1395381293,), (1395381464,), (1395381465,), (1395381466,), (1395381469,), (1395381472,), (1395381474,), (1395381486,), (1395381488,), (1395381490,), (1395381491,), (1395381498,), (1395381500,), (1395381503,), (1395381507,), (1395381530,), (1395381532,), (1395381534,), (1395381536,), (1395381541,), (1395381545,), (1395381587,), (1395381592,), (1395381596,), (1395381599,), (1395381602,), (1395381642,), (1395381653,), (1395381656,), (1395381659,), (1395381733,), (1395381743,), (1395381746,), (1395381751,), (1395381755,), (1395381757,), (1395381788,), (1395381791,), (1395381794,), (1395381800,), (1395381805,)) 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 (1395381800,1395381500) 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`=28746095 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','environnement','kraft','cartonnette','plastique','Teint_Dans_La_Masse','flou','mal_croppe','metal','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28746095 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','environnement','kraft','cartonnette','plastique','Teint_Dans_La_Masse','flou','mal_croppe','metal','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 28746095, 'sub_port_id': 28746181, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501428, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 28746095, 'sub_port_id': 28746182, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501429, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 29)}, 'metal': {'main_port_id': 28746095, 'sub_port_id': 28746183, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501430, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 29)}, 'mal_croppe': {'main_port_id': 28746095, 'sub_port_id': 28746184, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501431, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 29)}, 'Carton_gris': {'main_port_id': 28746095, 'sub_port_id': 28746185, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501432, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 29)}, 'cartonnette': {'main_port_id': 28746095, 'sub_port_id': 28746186, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501433, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 29)}, 'kraft': {'main_port_id': 28746095, 'sub_port_id': 28746187, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501434, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 29)}, 'autre_refus': {'main_port_id': 28746095, 'sub_port_id': 28746188, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501435, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 29)}, 'Carton_brun': {'main_port_id': 28746095, 'sub_port_id': 28746189, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501436, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 29)}, 'environnement': {'main_port_id': 28746095, 'sub_port_id': 28746190, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501437, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 29)}, 'papier': {'main_port_id': 28746095, 'sub_port_id': 28746191, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501438, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 29)}, 'flou': {'main_port_id': 28746095, 'sub_port_id': 28746192, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19501439, 'last_updated_at': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 20, 15, 14, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 20, 15, 3, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28746181,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28746169 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28746182,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28746170 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28746183,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28746171 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28746184,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28746172 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28746185,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28746173 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28746186,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28746174 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28746187,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28746175 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28746188,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28746176 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28746189,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28746177 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28746190,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28746178 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28746191,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28746179 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28746192,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28746180 lien utilise dans velours : https://marlene.fotonower.com/velours/28746181,28746182,28746183,28746184,28746185,28746186,28746187,28746188,28746189,28746190,28746191,28746192?tags=plastique,Teint_Dans_La_Masse,metal,mal_croppe,Carton_gris,cartonnette,kraft,autre_refus,Carton_brun,environnement,papier,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28746095]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1395381805, 1395381800, 1395381794, 1395381791, 1395381788, 1395381757, 1395381755, 1395381751, 1395381746, 1395381743] map_info['map_portfolio_photo'] : {28746095: [1395381805, 1395381800, 1395381794, 1395381791, 1395381788, 1395381757, 1395381755, 1395381751, 1395381746, 1395381743, 1395381733, 1395381659, 1395381656, 1395381653, 1395381642, 1395381602, 1395381599, 1395381596, 1395381592, 1395381587, 1395381545, 1395381541, 1395381536, 1395381534, 1395381532, 1395381530, 1395381507, 1395381503, 1395381500, 1395381498, 1395381491, 1395381490, 1395381488, 1395381486, 1395381474, 1395381472, 1395381469, 1395381466, 1395381465, 1395381464, 1395381293, 1395381257, 1395381222, 1395381188, 1395381176, 1395381126, 1395381122, 1395381120, 1395381118, 1395381091, 1395381087, 1395381084, 1395381080, 1395381067, 1395381056, 1395380861, 1395380821, 1395380788, 1395380753, 1395380747, 1395380660, 1395380655, 1395380651, 1395380648, 1395380627, 1395380612, 1395380436, 1395380407, 1395380390, 1395380384, 1395380353, 1395380292, 1395380259, 1395380226, 1395380091, 1395380084, 1395380081, 1395380076, 1395380072, 1395380068, 1395380041, 1395380038, 1395380036, 1395380034]} final : False mtd_id 4302 list_pids : [1395381805, 1395381800, 1395381794, 1395381791, 1395381788, 1395381757, 1395381755, 1395381751, 1395381746, 1395381743] Looping around the photos to save general results len do output : 1 /28746095. 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, '4084795') ('4302', '28746095', '1395381805', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381800', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381794', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381791', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381788', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381757', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381755', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381751', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381746', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381743', None, None, None, None, None, '4084795') 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, '28746095', "{'plastique': 28746169, 'Teint_Dans_La_Masse': 28746170, 'metal': 28746171, 'mal_croppe': 28746172, 'Carton_gris': 28746173, 'cartonnette': 28746174, 'kraft': 28746175, 'autre_refus': 28746176, 'Carton_brun': 28746177, 'environnement': 28746178, 'papier': 28746179, 'flou': 28746180}", None, None, None, None, '4084795'), ('4302', '28746095', '1395381805', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381800', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381794', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381791', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381788', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381757', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381755', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381751', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381746', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381743', None, None, None, None, None, '4084795')] time used for this insertion : 0.015595674514770508 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.48659801483154297 time spend to save output : 0.01601552963256836 total time spend for step 1 : 0.5026135444641113 step2:final Thu Nov 20 15:16:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28746095) 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 28746095 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1395380041,1395380292,1395380038,1395380259,1395380036,1395380226,1395380034,1395380091,1395380084,1395380081,1395380076,1395380072,1395380068,1395380436,1395380407,1395380390,1395380384,1395380353,1395380660,1395380655,1395380651,1395380648,1395380627,1395380612,1395380861,1395380821,1395380788,1395380753,1395380747,1395381091,1395381087,1395381084,1395381080,1395381067,1395381056,1395381126,1395381122,1395381120,1395381118,1395381491,1395381293,1395381490,1395381257,1395381488,1395381222,1395381486,1395381188,1395381474,1395381176,1395381472,1395381469,1395381466,1395381465,1395381464,1395381507,1395381503,1395381500,1395381498,1395381545,1395381541,1395381536,1395381534,1395381532,1395381530,1395381602,1395381599,1395381596,1395381592,1395381587,1395381659,1395381656,1395381653,1395381642,1395381757,1395381755,1395381733,1395381751,1395381746,1395381743,1395381805,1395381800,1395381794,1395381791,1395381788); 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([28746095]) Inside saveOutput : final : False verbose : True original output for save of step final : {1395381805: ('0.03714125369854887',), 1395381800: ('0.03714125369854887',), 1395381794: ('0.03714125369854887',), 1395381791: ('0.03714125369854887',), 1395381788: ('0.03714125369854887',), 1395381757: ('0.03714125369854887',), 1395381755: ('0.03714125369854887',), 1395381751: ('0.03714125369854887',), 1395381746: ('0.03714125369854887',), 1395381743: ('0.03714125369854887',)} new output for save of step final : {1395381805: ('0.03714125369854887',), 1395381800: ('0.03714125369854887',), 1395381794: ('0.03714125369854887',), 1395381791: ('0.03714125369854887',), 1395381788: ('0.03714125369854887',), 1395381757: ('0.03714125369854887',), 1395381755: ('0.03714125369854887',), 1395381751: ('0.03714125369854887',), 1395381746: ('0.03714125369854887',), 1395381743: ('0.03714125369854887',)} [1395381805, 1395381800, 1395381794, 1395381791, 1395381788, 1395381757, 1395381755, 1395381751, 1395381746, 1395381743] map_info['map_portfolio_photo'] : {28746095: [1395381805, 1395381800, 1395381794, 1395381791, 1395381788, 1395381757, 1395381755, 1395381751, 1395381746, 1395381743, 1395381733, 1395381659, 1395381656, 1395381653, 1395381642, 1395381602, 1395381599, 1395381596, 1395381592, 1395381587, 1395381545, 1395381541, 1395381536, 1395381534, 1395381532, 1395381530, 1395381507, 1395381503, 1395381500, 1395381498, 1395381491, 1395381490, 1395381488, 1395381486, 1395381474, 1395381472, 1395381469, 1395381466, 1395381465, 1395381464, 1395381293, 1395381257, 1395381222, 1395381188, 1395381176, 1395381126, 1395381122, 1395381120, 1395381118, 1395381091, 1395381087, 1395381084, 1395381080, 1395381067, 1395381056, 1395380861, 1395380821, 1395380788, 1395380753, 1395380747, 1395380660, 1395380655, 1395380651, 1395380648, 1395380627, 1395380612, 1395380436, 1395380407, 1395380390, 1395380384, 1395380353, 1395380292, 1395380259, 1395380226, 1395380091, 1395380084, 1395380081, 1395380076, 1395380072, 1395380068, 1395380041, 1395380038, 1395380036, 1395380034]} final : False mtd_id 4302 list_pids : [1395381805, 1395381800, 1395381794, 1395381791, 1395381788, 1395381757, 1395381755, 1395381751, 1395381746, 1395381743] Looping around the photos to save general results len do output : 10 /1395381805.Didn't retrieve data . /1395381800.Didn't retrieve data . /1395381794.Didn't retrieve data . /1395381791.Didn't retrieve data . /1395381788.Didn't retrieve data . /1395381757.Didn't retrieve data . /1395381755.Didn't retrieve data . /1395381751.Didn't retrieve data . /1395381746.Didn't retrieve data . /1395381743.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, '4084795') ('4302', '28746095', '1395381805', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381800', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381794', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381791', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381788', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381757', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381755', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381751', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381746', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381743', None, None, None, None, None, '4084795') 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', '28746095', '1395381805', '0.03714125369854887', None, None, None, None, '4084795'), ('4302', '28746095', '1395381800', '0.03714125369854887', None, None, None, None, '4084795'), ('4302', '28746095', '1395381794', '0.03714125369854887', None, None, None, None, '4084795'), ('4302', '28746095', '1395381791', '0.03714125369854887', None, None, None, None, '4084795'), ('4302', '28746095', '1395381788', '0.03714125369854887', None, None, None, None, '4084795'), ('4302', '28746095', '1395381757', '0.03714125369854887', None, None, None, None, '4084795'), ('4302', '28746095', '1395381755', '0.03714125369854887', None, None, None, None, '4084795'), ('4302', '28746095', '1395381751', '0.03714125369854887', None, None, None, None, '4084795'), ('4302', '28746095', '1395381746', '0.03714125369854887', None, None, None, None, '4084795'), ('4302', '28746095', '1395381743', '0.03714125369854887', None, None, None, None, '4084795')] time used for this insertion : 0.013543367385864258 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07180953025817871 time spend to save output : 0.014096260070800781 total time spend for step 2 : 0.08590579032897949 step3:velours_tree Thu Nov 20 15:16:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28746095: [{'plastique': 28746169, 'Teint_Dans_La_Masse': 28746170, 'metal': 28746171, 'mal_croppe': 28746172, 'Carton_gris': 28746173, 'cartonnette': 28746174, 'kraft': 28746175, 'autre_refus': 28746176, 'Carton_brun': 28746177, 'environnement': 28746178, 'papier': 28746179, 'flou': 28746180}]} input_args_next_step : {28746095: ()} output_args : {28746095: [{'plastique': 28746169, 'Teint_Dans_La_Masse': 28746170, 'metal': 28746171, 'mal_croppe': 28746172, 'Carton_gris': 28746173, 'cartonnette': 28746174, 'kraft': 28746175, 'autre_refus': 28746176, 'Carton_brun': 28746177, 'environnement': 28746178, 'papier': 28746179, 'flou': 28746180}]} args : 28746095 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 : ({'plastique': 28746169, 'Teint_Dans_La_Masse': 28746170, 'metal': 28746171, 'mal_croppe': 28746172, 'Carton_gris': 28746173, 'cartonnette': 28746174, 'kraft': 28746175, 'autre_refus': 28746176, 'Carton_brun': 28746177, 'environnement': 28746178, 'papier': 28746179, 'flou': 28746180},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28746095) 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([28746095]) 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.3496997356414795 time spend to save output : 6.747245788574219e-05 total time spend for step 3 : 0.34976720809936523 step4:send_mail_cod Thu Nov 20 15:16:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1395381805: ('0.03714125369854887',), 1395381800: ('0.03714125369854887',), 1395381794: ('0.03714125369854887',), 1395381791: ('0.03714125369854887',), 1395381788: ('0.03714125369854887',), 1395381757: ('0.03714125369854887',), 1395381755: ('0.03714125369854887',), 1395381751: ('0.03714125369854887',), 1395381746: ('0.03714125369854887',), 1395381743: ('0.03714125369854887',)} input_args_next_step : {1395381805: ()} output_args : {1395381805: ('0.03714125369854887',), 1395381800: ('0.03714125369854887',), 1395381794: ('0.03714125369854887',), 1395381791: ('0.03714125369854887',), 1395381788: ('0.03714125369854887',), 1395381757: ('0.03714125369854887',), 1395381755: ('0.03714125369854887',), 1395381751: ('0.03714125369854887',), 1395381746: ('0.03714125369854887',), 1395381743: ('0.03714125369854887',)} args : 1395381805 depend.output_id : 0 input_args_next_step : {1395381805: ('0.03714125369854887',), 1395381800: ()} output_args : {1395381805: ('0.03714125369854887',), 1395381800: ('0.03714125369854887',), 1395381794: ('0.03714125369854887',), 1395381791: ('0.03714125369854887',), 1395381788: ('0.03714125369854887',), 1395381757: ('0.03714125369854887',), 1395381755: ('0.03714125369854887',), 1395381751: ('0.03714125369854887',), 1395381746: ('0.03714125369854887',), 1395381743: ('0.03714125369854887',)} args : 1395381800 depend.output_id : 0 input_args_next_step : {1395381805: ('0.03714125369854887',), 1395381800: ('0.03714125369854887',), 1395381794: ()} output_args : {1395381805: ('0.03714125369854887',), 1395381800: ('0.03714125369854887',), 1395381794: ('0.03714125369854887',), 1395381791: ('0.03714125369854887',), 1395381788: ('0.03714125369854887',), 1395381757: ('0.03714125369854887',), 1395381755: ('0.03714125369854887',), 1395381751: ('0.03714125369854887',), 1395381746: ('0.03714125369854887',), 1395381743: ('0.03714125369854887',)} args : 1395381794 depend.output_id : 0 input_args_next_step : {1395381805: ('0.03714125369854887',), 1395381800: ('0.03714125369854887',), 1395381794: ('0.03714125369854887',), 1395381791: ()} output_args : {1395381805: ('0.03714125369854887',), 1395381800: ('0.03714125369854887',), 1395381794: ('0.03714125369854887',), 1395381791: ('0.03714125369854887',), 1395381788: ('0.03714125369854887',), 1395381757: ('0.03714125369854887',), 1395381755: ('0.03714125369854887',), 1395381751: ('0.03714125369854887',), 1395381746: ('0.03714125369854887',), 1395381743: ('0.03714125369854887',)} args : 1395381791 depend.output_id : 0 input_args_next_step : {1395381805: ('0.03714125369854887',), 1395381800: ('0.03714125369854887',), 1395381794: ('0.03714125369854887',), 1395381791: ('0.03714125369854887',), 1395381788: ()} output_args : {1395381805: ('0.03714125369854887',), 1395381800: ('0.03714125369854887',), 1395381794: ('0.03714125369854887',), 1395381791: ('0.03714125369854887',), 1395381788: ('0.03714125369854887',), 1395381757: ('0.03714125369854887',), 1395381755: ('0.03714125369854887',), 1395381751: ('0.03714125369854887',), 1395381746: ('0.03714125369854887',), 1395381743: ('0.03714125369854887',)} args : 1395381788 depend.output_id : 0 input_args_next_step : {1395381805: ('0.03714125369854887',), 1395381800: ('0.03714125369854887',), 1395381794: ('0.03714125369854887',), 1395381791: ('0.03714125369854887',), 1395381788: ('0.03714125369854887',), 1395381757: ()} output_args : {1395381805: ('0.03714125369854887',), 1395381800: ('0.03714125369854887',), 1395381794: ('0.03714125369854887',), 1395381791: ('0.03714125369854887',), 1395381788: ('0.03714125369854887',), 1395381757: ('0.03714125369854887',), 1395381755: ('0.03714125369854887',), 1395381751: ('0.03714125369854887',), 1395381746: ('0.03714125369854887',), 1395381743: ('0.03714125369854887',)} args : 1395381757 depend.output_id : 0 input_args_next_step : {1395381805: ('0.03714125369854887',), 1395381800: ('0.03714125369854887',), 1395381794: ('0.03714125369854887',), 1395381791: ('0.03714125369854887',), 1395381788: ('0.03714125369854887',), 1395381757: ('0.03714125369854887',), 1395381755: ()} output_args : {1395381805: ('0.03714125369854887',), 1395381800: ('0.03714125369854887',), 1395381794: ('0.03714125369854887',), 1395381791: ('0.03714125369854887',), 1395381788: ('0.03714125369854887',), 1395381757: ('0.03714125369854887',), 1395381755: ('0.03714125369854887',), 1395381751: ('0.03714125369854887',), 1395381746: ('0.03714125369854887',), 1395381743: ('0.03714125369854887',)} args : 1395381755 depend.output_id : 0 input_args_next_step : {1395381805: ('0.03714125369854887',), 1395381800: ('0.03714125369854887',), 1395381794: ('0.03714125369854887',), 1395381791: ('0.03714125369854887',), 1395381788: ('0.03714125369854887',), 1395381757: ('0.03714125369854887',), 1395381755: ('0.03714125369854887',), 1395381751: ()} output_args : {1395381805: ('0.03714125369854887',), 1395381800: ('0.03714125369854887',), 1395381794: ('0.03714125369854887',), 1395381791: ('0.03714125369854887',), 1395381788: ('0.03714125369854887',), 1395381757: ('0.03714125369854887',), 1395381755: ('0.03714125369854887',), 1395381751: ('0.03714125369854887',), 1395381746: ('0.03714125369854887',), 1395381743: ('0.03714125369854887',)} args : 1395381751 depend.output_id : 0 input_args_next_step : {1395381805: ('0.03714125369854887',), 1395381800: ('0.03714125369854887',), 1395381794: ('0.03714125369854887',), 1395381791: ('0.03714125369854887',), 1395381788: ('0.03714125369854887',), 1395381757: ('0.03714125369854887',), 1395381755: ('0.03714125369854887',), 1395381751: ('0.03714125369854887',), 1395381746: ()} output_args : {1395381805: ('0.03714125369854887',), 1395381800: ('0.03714125369854887',), 1395381794: ('0.03714125369854887',), 1395381791: ('0.03714125369854887',), 1395381788: ('0.03714125369854887',), 1395381757: ('0.03714125369854887',), 1395381755: ('0.03714125369854887',), 1395381751: ('0.03714125369854887',), 1395381746: ('0.03714125369854887',), 1395381743: ('0.03714125369854887',)} args : 1395381746 depend.output_id : 0 input_args_next_step : {1395381805: ('0.03714125369854887',), 1395381800: ('0.03714125369854887',), 1395381794: ('0.03714125369854887',), 1395381791: ('0.03714125369854887',), 1395381788: ('0.03714125369854887',), 1395381757: ('0.03714125369854887',), 1395381755: ('0.03714125369854887',), 1395381751: ('0.03714125369854887',), 1395381746: ('0.03714125369854887',), 1395381743: ()} output_args : {1395381805: ('0.03714125369854887',), 1395381800: ('0.03714125369854887',), 1395381794: ('0.03714125369854887',), 1395381791: ('0.03714125369854887',), 1395381788: ('0.03714125369854887',), 1395381757: ('0.03714125369854887',), 1395381755: ('0.03714125369854887',), 1395381751: ('0.03714125369854887',), 1395381746: ('0.03714125369854887',), 1395381743: ('0.03714125369854887',)} args : 1395381743 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 : {28746095: [{'plastique': 28746169, 'Teint_Dans_La_Masse': 28746170, 'metal': 28746171, 'mal_croppe': 28746172, 'Carton_gris': 28746173, 'cartonnette': 28746174, 'kraft': 28746175, 'autre_refus': 28746176, 'Carton_brun': 28746177, 'environnement': 28746178, 'papier': 28746179, 'flou': 28746180}]} input_args_next_step : {1395381805: ('0.03714125369854887',), 1395381800: ('0.03714125369854887',), 1395381794: ('0.03714125369854887',), 1395381791: ('0.03714125369854887',), 1395381788: ('0.03714125369854887',), 1395381757: ('0.03714125369854887',), 1395381755: ('0.03714125369854887',), 1395381751: ('0.03714125369854887',), 1395381746: ('0.03714125369854887',), 1395381743: ('0.03714125369854887',), 28746095: ()} output_args : {28746095: [{'plastique': 28746169, 'Teint_Dans_La_Masse': 28746170, 'metal': 28746171, 'mal_croppe': 28746172, 'Carton_gris': 28746173, 'cartonnette': 28746174, 'kraft': 28746175, 'autre_refus': 28746176, 'Carton_brun': 28746177, 'environnement': 28746178, 'papier': 28746179, 'flou': 28746180}]} args : 28746095 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.03714125369854887',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28746095) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1395381805,1395381800,1395381794,1395381791,1395381788,1395381757,1395381755,1395381751,1395381746,1395381743) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1395381743 begin to download photo : 1395381755 begin to download photo : 1395381791 begin to download photo : 1395381805 download finish for photo 1395381791 begin to download photo : 1395381794 download finish for photo 1395381805 download finish for photo 1395381755 begin to download photo : 1395381757 download finish for photo 1395381743 begin to download photo : 1395381746 download finish for photo 1395381794 begin to download photo : 1395381800 download finish for photo 1395381757 begin to download photo : 1395381788 download finish for photo 1395381746 begin to download photo : 1395381751 download finish for photo 1395381800 download finish for photo 1395381788 download finish for photo 1395381751 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P28746095_20-11-2025_15_16_30.pdf 28746169 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28746169 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395380929: '1763647505_2824065_1395380034_bab903d0e4985affce030847c4dc5b83_rle_crop_4040039228_0.png', 1395381571: '1763647866_2834021_1395380861_9eb38cef1c7abe8645dfad53c9a4dbee_rle_crop_4040041507_0.png', 1395381782: '1763648066_2841612_1395381530_d44731ddd6c88828ab2f2326ae0390a2_rle_crop_4040047385_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/05acbe8196473bbeb754415d0d3542dd_61028967.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/b9b6d60bfcfc1841b5fde3641b4bc4f7_95789769.png change filename to text .imagette287461691763648190/ imagette287461691763648190/1763647505_2824065_1395380034_bab903d0e4985affce030847c4dc5b83_rle_crop_4040039228_0.png.png imagette287461691763648190/1763648066_2841612_1395381530_d44731ddd6c88828ab2f2326ae0390a2_rle_crop_4040047385_0.png.png imagette287461691763648190/1763647866_2834021_1395380861_9eb38cef1c7abe8645dfad53c9a4dbee_rle_crop_4040041507_0.png.png imagette287461711763648190/ imagette287461721763648190/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/040d53037a332c58ba0370bbd0bd6af5_63560674.png imagette287461691763648190 28746171 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28746171 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287461711763648190 28746172 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28746172 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287461721763648190 28746174 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28746174 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395381776: '1763648066_2841612_1395381536_5f2529e81a7f10045f7cf81dd5a9e03e_rle_crop_4040047349_0.png', 1395381777: '1763648066_2841612_1395381532_28c1cc80288324b80f3dc86c58de7ce2_rle_crop_4040047374_0.png', 1395381823: '1763648107_2842204_1395381465_3f72b0001528e8d238ad26cf91cad2f5_rle_crop_4040047592_0.png', 1395381824: '1763648107_2842204_1395381464_7a105cdc4032cd8c68e91ba8a799af63_rle_crop_4040047611_0.png', 1395382013: '1763648126_2842655_1395381490_d98663749dd531d6c188067a014131d4_rle_crop_4040047816_0.png', 1395382015: '1763648126_2842655_1395381257_b7b933a527c73413a1e475ea8d9e2015_rle_crop_4040047865_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/7272780dcd15984f292c6cf0794a3d50_16689013.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/f7ba3c199d3b8c3c08d88cfdba547044_42398790.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/88a86f508e113ddddae21a25a41de19b_22565549.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/9cc439076f74c725e9c9afbf7a990aa0_37202213.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/2c1538c3d30291208d58917d1f24d721_58059449.png change filename to text .imagette287461741763648190/ imagette287461741763648190/1763648126_2842655_1395381257_b7b933a527c73413a1e475ea8d9e2015_rle_crop_4040047865_0.png.png imagette287461741763648190/1763648107_2842204_1395381465_3f72b0001528e8d238ad26cf91cad2f5_rle_crop_4040047592_0.png.png imagette287461741763648190/1763648066_2841612_1395381532_28c1cc80288324b80f3dc86c58de7ce2_rle_crop_4040047374_0.png.png imagette287461741763648190/1763648126_2842655_1395381490_d98663749dd531d6c188067a014131d4_rle_crop_4040047816_0.png.png imagette287461741763648190/1763648107_2842204_1395381464_7a105cdc4032cd8c68e91ba8a799af63_rle_crop_4040047611_0.png.png imagette287461741763648190/1763648066_2841612_1395381536_5f2529e81a7f10045f7cf81dd5a9e03e_rle_crop_4040047349_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/2c1538c3d30291208d58917d1f24d721_42911839.png imagette287461741763648190 28746175 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28746175 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395381573: '1763647866_2834021_1395380861_9eb38cef1c7abe8645dfad53c9a4dbee_rle_crop_4040041498_0.png', 1395382048: '1763648126_2842655_1395381488_16f2afdc969443ebeed2bf3f5a4b7866_rle_crop_4040047830_0.png', 1395382050: '1763648126_2842655_1395381222_f0a2b3f8eab5d5c73ed9d34ab530ac77_rle_crop_4040047879_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/9d24cc1d5af8c6f031b039a448a6c581_59398989.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/faa0516ed517b8ed9f5d3f5c073968af_28671976.png change filename to text .imagette287461751763648191/ imagette287461751763648191/1763647866_2834021_1395380861_9eb38cef1c7abe8645dfad53c9a4dbee_rle_crop_4040041498_0.png.png imagette287461751763648191/1763648126_2842655_1395381222_f0a2b3f8eab5d5c73ed9d34ab530ac77_rle_crop_4040047879_0.png.png imagette287461751763648191/1763648126_2842655_1395381488_16f2afdc969443ebeed2bf3f5a4b7866_rle_crop_4040047830_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/faa0516ed517b8ed9f5d3f5c073968af_97517128.png imagette287461751763648191 28746176 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28746176 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395381562: '1763647866_2834021_1395380655_b9e6bbea484d3f717e81c37283f566ca_rle_crop_4040041519_0.png', 1395381563: '1763647866_2834021_1395380648_539602232c6c10b2f28ac4da2433a21a_rle_crop_4040041552_0.png', 1395381775: '1763648066_2841612_1395381530_d44731ddd6c88828ab2f2326ae0390a2_rle_crop_4040047381_0.png', 1395381820: '1763648107_2842204_1395381464_7a105cdc4032cd8c68e91ba8a799af63_rle_crop_4040047608_0.png', 1395382001: '1763648126_2842655_1395381488_16f2afdc969443ebeed2bf3f5a4b7866_rle_crop_4040047825_0.png', 1395382003: '1763648126_2842655_1395381222_f0a2b3f8eab5d5c73ed9d34ab530ac77_rle_crop_4040047874_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/43962c7aa4cbd018e6e177d73968cef7_49503028.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/f1174a4dfa5e34cb49c576b81a1afaa2_52754620.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/114e764cf48840ca0d23c1e19ccd93d4_63199339.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/b0169d73cc165c92d3e87a9df2e3c28b_44528585.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/9c4bd8019f92be822da7b4abce06e19a_29544581.png change filename to text .imagette287461761763648191/ imagette287461761763648191/1763648126_2842655_1395381488_16f2afdc969443ebeed2bf3f5a4b7866_rle_crop_4040047825_0.png.png imagette287461761763648191/1763647866_2834021_1395380655_b9e6bbea484d3f717e81c37283f566ca_rle_crop_4040041519_0.png.png imagette287461761763648191/1763648107_2842204_1395381464_7a105cdc4032cd8c68e91ba8a799af63_rle_crop_4040047608_0.png.png imagette287461761763648191/1763648066_2841612_1395381530_d44731ddd6c88828ab2f2326ae0390a2_rle_crop_4040047381_0.png.png imagette287461761763648191/1763647866_2834021_1395380648_539602232c6c10b2f28ac4da2433a21a_rle_crop_4040041552_0.png.png imagette287461761763648191/1763648126_2842655_1395381222_f0a2b3f8eab5d5c73ed9d34ab530ac77_rle_crop_4040047874_0.png.png imagette287461801763648191/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/9c4bd8019f92be822da7b4abce06e19a_546285.png imagette287461761763648191 28746180 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28746180 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette287461801763648191 28746170 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28746170 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395380915: '1763647505_2824065_1395380038_26ce30c00848c073f81340cacf23e423_rle_crop_4040039202_0.png', 1395380917: '1763647505_2824065_1395380038_26ce30c00848c073f81340cacf23e423_rle_crop_4040039203_0.png', 1395381558: '1763647866_2834021_1395380861_9eb38cef1c7abe8645dfad53c9a4dbee_rle_crop_4040041511_0.png', 1395381559: '1763647866_2834021_1395380655_b9e6bbea484d3f717e81c37283f566ca_rle_crop_4040041523_0.png', 1395381560: '1763647866_2834021_1395380651_11879a1a55ec10c042ebcc846e720c8e_rle_crop_4040041535_0.png', 1395381561: '1763647866_2834021_1395380648_539602232c6c10b2f28ac4da2433a21a_rle_crop_4040041551_0.png', 1395381773: '1763648066_2841612_1395381541_d0f964ab5abe41f1ea394287963bbabe_rle_crop_4040047332_0.png', 1395381774: '1763648066_2841612_1395381536_5f2529e81a7f10045f7cf81dd5a9e03e_rle_crop_4040047348_0.png', 1395381817: '1763648107_2842204_1395381469_c952b20952072f35b4281d5c236e5398_rle_crop_4040047572_0.png', 1395381818: '1763648107_2842204_1395381466_e72c75d26fdf333f4926db98d1a9a140_rle_crop_4040047583_0.png', 1395381987: '1763648126_2842655_1395381474_aa811a30e8052cacbc202205cc7dcf8d_rle_crop_4040047851_0.png', 1395381989: '1763648126_2842655_1395381176_32a82f8288cc3b81b20c974e3c62deda_rle_crop_4040047900_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/732a7ad31019829d037687df0eea779b_78671416.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/6b323469d057c1f0388c7290eb4af61a_7471990.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/0e08e4245f0e976e898a7e13c3201d47_99785278.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/9fd6be64223601e4da10791673e0c3a4_10704772.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/89ae28fe3cae4ca999d21baac36a5988_73397847.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/41001b1612514f8e121aff27b5ac664d_5431715.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/bd090da76972077cf6f9ab46f3f07864_58056754.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/a146f59249664ad97d018ef298cdd801_57336786.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/93777aed91b3d712fdee8cfd89e28b5b_26154850.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/f69376b439109e5fe8643596d737d71b_14065375.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/cad1e92ac7ed971cc6b02200f410c7c6_60556828.png change filename to text .imagette287461701763648191/ imagette287461701763648191/1763647505_2824065_1395380038_26ce30c00848c073f81340cacf23e423_rle_crop_4040039202_0.png.png imagette287461701763648191/1763647866_2834021_1395380861_9eb38cef1c7abe8645dfad53c9a4dbee_rle_crop_4040041511_0.png.png imagette287461701763648191/1763647866_2834021_1395380648_539602232c6c10b2f28ac4da2433a21a_rle_crop_4040041551_0.png.png imagette287461701763648191/1763647505_2824065_1395380038_26ce30c00848c073f81340cacf23e423_rle_crop_4040039203_0.png.png imagette287461701763648191/1763648066_2841612_1395381541_d0f964ab5abe41f1ea394287963bbabe_rle_crop_4040047332_0.png.png imagette287461701763648191/1763648126_2842655_1395381474_aa811a30e8052cacbc202205cc7dcf8d_rle_crop_4040047851_0.png.png imagette287461701763648191/1763648066_2841612_1395381536_5f2529e81a7f10045f7cf81dd5a9e03e_rle_crop_4040047348_0.png.png imagette287461701763648191/1763647866_2834021_1395380651_11879a1a55ec10c042ebcc846e720c8e_rle_crop_4040041535_0.png.png imagette287461701763648191/1763648107_2842204_1395381469_c952b20952072f35b4281d5c236e5398_rle_crop_4040047572_0.png.png imagette287461701763648191/1763648126_2842655_1395381176_32a82f8288cc3b81b20c974e3c62deda_rle_crop_4040047900_0.png.png imagette287461701763648191/1763648107_2842204_1395381466_e72c75d26fdf333f4926db98d1a9a140_rle_crop_4040047583_0.png.png imagette287461701763648191/1763647866_2834021_1395380655_b9e6bbea484d3f717e81c37283f566ca_rle_crop_4040041523_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/cad1e92ac7ed971cc6b02200f410c7c6_45696994.png imagette287461701763648191 28746173 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28746173 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395381565: '1763647866_2834021_1395380655_b9e6bbea484d3f717e81c37283f566ca_rle_crop_4040041520_0.png', 1395381566: '1763647866_2834021_1395380655_b9e6bbea484d3f717e81c37283f566ca_rle_crop_4040041516_0.png', 1395381821: '1763648107_2842204_1395381464_7a105cdc4032cd8c68e91ba8a799af63_rle_crop_4040047615_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/673c45e1c3e1194619b32049f7a3455c_55358002.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/821dc5b770e4287b03760a542de89990_79402769.png change filename to text .imagette287461731763648192/ imagette287461731763648192/1763648107_2842204_1395381464_7a105cdc4032cd8c68e91ba8a799af63_rle_crop_4040047615_0.png.png imagette287461731763648192/1763647866_2834021_1395380655_b9e6bbea484d3f717e81c37283f566ca_rle_crop_4040041520_0.png.png imagette287461731763648192/1763647866_2834021_1395380655_b9e6bbea484d3f717e81c37283f566ca_rle_crop_4040041516_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/23074f0f43132d3a1b433d44f924ca10_48122986.png imagette287461731763648192 28746177 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28746177 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395380919: '1763647505_2824065_1395380038_26ce30c00848c073f81340cacf23e423_rle_crop_4040039197_0.png', 1395381567: '1763647866_2834021_1395380861_9eb38cef1c7abe8645dfad53c9a4dbee_rle_crop_4040041501_0.png', 1395381568: '1763647866_2834021_1395380627_2e889fc6b55735d8447d5ecfba698b12_rle_crop_4040041571_0.png', 1395381779: '1763648066_2841612_1395381534_6bdf7b0c4c8cfeb973703dbec027c5f1_rle_crop_4040047359_0.png', 1395381832: '1763648107_2842204_1395381466_e72c75d26fdf333f4926db98d1a9a140_rle_crop_4040047584_0.png', 1395382029: '1763648126_2842655_1395381490_d98663749dd531d6c188067a014131d4_rle_crop_4040047823_0.png', 1395382031: '1763648126_2842655_1395381474_aa811a30e8052cacbc202205cc7dcf8d_rle_crop_4040047850_0.png', 1395382033: '1763648126_2842655_1395381257_b7b933a527c73413a1e475ea8d9e2015_rle_crop_4040047872_0.png', 1395382035: '1763648126_2842655_1395381176_32a82f8288cc3b81b20c974e3c62deda_rle_crop_4040047899_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/2f239bbab8878e85945059efbe3338a8_24415750.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/020ce9d645f50aea34821a093fd4a496_27334121.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/992e40e6ad1f329d6d9f6c6cb4505a0e_44331345.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/fdfb529917768d4b42b3a04aa8bb4ffc_84414355.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/5bb74ecadadc497e9ab40952a4f44470_86216650.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/65317b775cded449fb83816da8fcddd5_76125858.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/d8ac0e3c7d800550ea82e22a96683631_38854116.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/65317b775cded449fb83816da8fcddd5_96506842.png change filename to text .imagette287461771763648192/ imagette287461771763648192/1763648126_2842655_1395381474_aa811a30e8052cacbc202205cc7dcf8d_rle_crop_4040047850_0.png.png imagette287461771763648192/1763647866_2834021_1395380627_2e889fc6b55735d8447d5ecfba698b12_rle_crop_4040041571_0.png.png imagette287461771763648192/1763648126_2842655_1395381490_d98663749dd531d6c188067a014131d4_rle_crop_4040047823_0.png.png imagette287461771763648192/1763647866_2834021_1395380861_9eb38cef1c7abe8645dfad53c9a4dbee_rle_crop_4040041501_0.png.png imagette287461771763648192/1763648126_2842655_1395381257_b7b933a527c73413a1e475ea8d9e2015_rle_crop_4040047872_0.png.png imagette287461771763648192/1763648107_2842204_1395381466_e72c75d26fdf333f4926db98d1a9a140_rle_crop_4040047584_0.png.png imagette287461771763648192/1763647505_2824065_1395380038_26ce30c00848c073f81340cacf23e423_rle_crop_4040039197_0.png.png imagette287461771763648192/1763648066_2841612_1395381534_6bdf7b0c4c8cfeb973703dbec027c5f1_rle_crop_4040047359_0.png.png imagette287461771763648192/1763648126_2842655_1395381176_32a82f8288cc3b81b20c974e3c62deda_rle_crop_4040047899_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/d8ac0e3c7d800550ea82e22a96683631_13509475.png imagette287461771763648192 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28746095 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28746181,28746182,28746183,28746184,28746185,28746186,28746187,28746188,28746189,28746190,28746191,28746192?tags=plastique,Teint_Dans_La_Masse,metal,mal_croppe,Carton_gris,cartonnette,kraft,autre_refus,Carton_brun,environnement,papier,flou your option no_mail is active, we will not send the real mail to your client args[1395381805] : ('0.03714125369854887',) no score found for photo 1395381805 We are sending mail with results at report@fotonower.com args[1395381800] : ('0.03714125369854887',) no score found for photo 1395381800 We are sending mail with results at report@fotonower.com args[1395381794] : ('0.03714125369854887',) no score found for photo 1395381794 We are sending mail with results at report@fotonower.com args[1395381791] : ('0.03714125369854887',) no score found for photo 1395381791 We are sending mail with results at report@fotonower.com args[1395381788] : ('0.03714125369854887',) no score found for photo 1395381788 We are sending mail with results at report@fotonower.com args[1395381757] : ('0.03714125369854887',) no score found for photo 1395381757 We are sending mail with results at report@fotonower.com args[1395381755] : ('0.03714125369854887',) no score found for photo 1395381755 We are sending mail with results at report@fotonower.com args[1395381751] : ('0.03714125369854887',) no score found for photo 1395381751 We are sending mail with results at report@fotonower.com args[1395381746] : ('0.03714125369854887',) no score found for photo 1395381746 We are sending mail with results at report@fotonower.com args[1395381743] : ('0.03714125369854887',) no score found for photo 1395381743 We are sending mail with results at report@fotonower.com refus_total : 0.03714125369854887 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28746095 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_P28746095_20-11-2025_15_16_30.pdf results_Auto_P28746095_20-11-2025_15_16_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28746095_20-11-2025_15_16_30.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','28746095','results_Auto_P28746095_20-11-2025_15_16_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28746095_20-11-2025_15_16_30.pdf','pdf','','0.19','0.03714125369854887') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28746095]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1395381805, 1395381800, 1395381794, 1395381791, 1395381788, 1395381757, 1395381755, 1395381751, 1395381746, 1395381743] map_info['map_portfolio_photo'] : {28746095: [1395381805, 1395381800, 1395381794, 1395381791, 1395381788, 1395381757, 1395381755, 1395381751, 1395381746, 1395381743, 1395381733, 1395381659, 1395381656, 1395381653, 1395381642, 1395381602, 1395381599, 1395381596, 1395381592, 1395381587, 1395381545, 1395381541, 1395381536, 1395381534, 1395381532, 1395381530, 1395381507, 1395381503, 1395381500, 1395381498, 1395381491, 1395381490, 1395381488, 1395381486, 1395381474, 1395381472, 1395381469, 1395381466, 1395381465, 1395381464, 1395381293, 1395381257, 1395381222, 1395381188, 1395381176, 1395381126, 1395381122, 1395381120, 1395381118, 1395381091, 1395381087, 1395381084, 1395381080, 1395381067, 1395381056, 1395380861, 1395380821, 1395380788, 1395380753, 1395380747, 1395380660, 1395380655, 1395380651, 1395380648, 1395380627, 1395380612, 1395380436, 1395380407, 1395380390, 1395380384, 1395380353, 1395380292, 1395380259, 1395380226, 1395380091, 1395380084, 1395380081, 1395380076, 1395380072, 1395380068, 1395380041, 1395380038, 1395380036, 1395380034]} final : False mtd_id 4302 list_pids : [1395381805, 1395381800, 1395381794, 1395381791, 1395381788, 1395381757, 1395381755, 1395381751, 1395381746, 1395381743] 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, '4084795') ('4302', '28746095', '1395381805', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381800', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381794', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381791', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381788', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381757', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381755', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381751', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381746', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381743', None, None, None, None, None, '4084795') 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', '28746095', '1395381805', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381800', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381794', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381791', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381788', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381757', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381755', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381751', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381746', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381743', None, None, None, None, None, '4084795')] time used for this insertion : 0.013566970825195312 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.627117156982422 time spend to save output : 0.013862848281860352 total time spend for step 4 : 4.640980005264282 step5:split_time_score Thu Nov 20 15:16:34 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 : ['28746095'] 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 : [('28746095',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28746095) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1395381805: {'path': 'temp/1763648189_4074204_1395381805_0f2d2c3fd74b6f435ca3a91d7103af58.jpg', 'extension': 'jpg'}, 1395381791: {'path': 'temp/1763648189_4074204_1395381791_a3a81d02bca5876553132f4a7c3db13e.jpg', 'extension': 'jpg'}, 1395381794: {'path': 'temp/1763648189_4074204_1395381794_c9e4f2dccbb3fc5106f13b6c1ed77362.jpg', 'extension': 'jpg'}, 1395381800: {'path': 'temp/1763648189_4074204_1395381800_4627998e6a04a757966df5e8e93dd3d7.jpg', 'extension': 'jpg'}, 1395381755: {'path': 'temp/1763648189_4074204_1395381755_eeb8b43fff8982af03445bc86f837524.jpg', 'extension': 'jpg'}, 1395381757: {'path': 'temp/1763648189_4074204_1395381757_234660615e1b08942f56a504a3c8d073.jpg', 'extension': 'jpg'}, 1395381788: {'path': 'temp/1763648189_4074204_1395381788_eccde3df138f9562717554fcc6623cbc.jpg', 'extension': 'jpg'}, 1395381743: {'path': 'temp/1763648189_4074204_1395381743_333d0449409bdcc61235b474c94205cc.jpg', 'extension': 'jpg'}, 1395381746: {'path': 'temp/1763648189_4074204_1395381746_1728fa2ba2296d76d79c626675cf3fd3.jpg', 'extension': 'jpg'}, 1395381751: {'path': 'temp/1763648189_4074204_1395381751_4da7202cb035ff16d6d76b3d69f7c9f1.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 = 28746095; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28746095 group by h (('15', 84),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28746095 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 (28746095) 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 (28746095) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 20112025 28746095 Nombre de photos uploadées : 84 / 23040 (0%) 20112025 28746095 Nombre de photos taguées (types de déchets): 0 / 84 (0%) 20112025 28746095 Nombre de photos taguées (volume) : 0 / 84 (0%) [{'photo_id': 1395380041, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/75dbbbec7870fbe0d4f88dfc82f537e6.jpg', 'username': None, 'uploaded_at': 1763647268, 'text': 'image_20112025_15_00_14_10136.jpg'}, {'photo_id': 1395380292, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/a5429bb319728541f4fce6db7f8b7fc8.jpg', 'username': None, 'uploaded_at': 1763647367, 'text': 'image_20112025_15_00_14_10136.jpg'}, {'photo_id': 1395380038, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/26ce30c00848c073f81340cacf23e423.jpg', 'username': None, 'uploaded_at': 1763647268, 'text': 'image_20112025_15_00_24_10133.jpg'}, {'photo_id': 1395380259, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/20/5ae2aa0d62b3526169de27aa4e4a8b5c.jpg', 'username': None, 'uploaded_at': 1763647367, 'text': 'image_20112025_15_00_24_10133.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 6.67572021484375e-06 ???????????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003650188446044922 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28746095, '2025-11-20' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-20' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2614335,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2051851749420166 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= 2614335 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28729285, 'dashboard_result_id': 17546516, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28729285_20-11-2025_06_09_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28729289, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729299, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28729878, 'dashboard_result_id': 17546517, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28729878_20-11-2025_06_09_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28729884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729890, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729895, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28730454, 'dashboard_result_id': 17546518, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28730454_20-11-2025_06_09_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28730537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28730544, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28730956, 'dashboard_result_id': 17546519, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28730956_20-11-2025_06_10_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28730988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730994, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28731000, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28732283, 'dashboard_result_id': 17546520, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732283_20-11-2025_06_10_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732326, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28732606, 'dashboard_result_id': 17546521, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732606_20-11-2025_06_11_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732674, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28732937, 'dashboard_result_id': 17546522, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732937_20-11-2025_06_11_11.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732969, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28733416, 'dashboard_result_id': 17546523, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28733416_20-11-2025_06_11_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28733425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733436, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28733691, 'dashboard_result_id': 17546524, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28733691_20-11-2025_06_11_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28733753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733759, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28734257, 'dashboard_result_id': 17546525, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28734257_20-11-2025_06_12_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734269, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734277, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28734699, 'dashboard_result_id': 17546526, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28734699_20-11-2025_06_12_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734752, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28735407, 'dashboard_result_id': 17546527, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28735407_20-11-2025_06_13_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28735441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735451, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28735955, 'dashboard_result_id': 17546528, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28735955_20-11-2025_06_13_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28735965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735976, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28736530, 'dashboard_result_id': 17546529, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28736530_20-11-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28736562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736573, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28736964, 'dashboard_result_id': 17546530, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28736964_20-11-2025_06_14_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736982, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28736987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736993, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28740327, 'dashboard_result_id': 17546531, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740327_20-11-2025_11_06_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740598, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740601, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740603, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740606, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740607, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28740329, 'dashboard_result_id': 17546532, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740580, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28740332, 'dashboard_result_id': 17546533, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740548, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740556, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28740348, 'dashboard_result_id': 17546534, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740348_20-11-2025_11_04_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740508, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740517, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28740352, 'dashboard_result_id': 17546535, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740352_20-11-2025_11_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740456, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740459, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28740373, 'dashboard_result_id': 17546536, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740373_20-11-2025_11_02_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28740424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740427, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740429, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740435, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28740377, 'dashboard_result_id': 17546537, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740377_20-11-2025_11_02_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740401, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740408, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740411, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28743048, 'dashboard_result_id': 17546538, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743048_20-11-2025_13_50_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743061, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28743363, 'dashboard_result_id': 17546539, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743363_20-11-2025_14_06_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743378, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28743751, 'dashboard_result_id': 17546540, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743751_20-11-2025_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743792, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28744153, 'dashboard_result_id': 17546541, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28744153_20-11-2025_14_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28744229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28744230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28744231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28744232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28744233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28744234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28744235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28744236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28744237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28744238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28744239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28744240, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28744884, 'dashboard_result_id': 17546543, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28744884_20-11-2025_14_48_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28744889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28744890, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28744891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28744892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28744893, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28744894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28744895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28744896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28744897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28744898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28744899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28744900, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28745500, 'dashboard_result_id': 17546544, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28745500_20-11-2025_15_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28745556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28745557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28745558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28745559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28745560, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28745561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28745562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28745563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28745564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28745565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28745566, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28745567, 'pht': 3726}}"}, {'dashboat_entry_day': 2614335, 'dashboard_run_id': 2624720, 'mtr_portfolio_id': 28746095, 'dashboard_result_id': 17546545, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28746095_20-11-2025_15_12_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28746169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28746170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28746171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28746172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28746173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28746174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28746175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28746176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28746177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28746178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28746179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28746180, '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 = 28729285 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4083488, 'mtr_portfolio_id': 28729285, 'created_at': datetime.datetime(2025, 11, 20, 6, 8, 58), 'result': '0.06316202260982903', 'result_long': None, 'result_double': None}] Qualite : 0.06316202260982903 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28729285 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28729285_20-11-2025_06_09_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28729285 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28729285_20-11-2025_06_09_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28729289, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729299, 'pht': 3726}}" where mtr_portfolio_id = 28729285 and dashboard_run_id = 2624720 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28729285 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17546516, 0.06316202260982903, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28729285_20-11-2025_06_09_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28729289, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729290, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729291, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729292, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729293, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729294, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729297, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729299, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28729878 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4083489, 'mtr_portfolio_id': 28729878, 'created_at': datetime.datetime(2025, 11, 20, 6, 9, 33), 'result': '0.046446620973363016', 'result_long': None, 'result_double': None}] Qualite : 0.046446620973363016 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28729878 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28729878_20-11-2025_06_09_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28729878 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28729878_20-11-2025_06_09_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28729884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729890, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729895, 'pht': 3726}}" where mtr_portfolio_id = 28729878 and dashboard_run_id = 2624720 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28729878 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17546517, 0.046446620973363016, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28729878_20-11-2025_06_09_36.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28729884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28729885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28729886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28729887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28729888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28729889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28729890, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28729891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28729892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28729893, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28729894, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28729895, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28730454 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4083490, 'mtr_portfolio_id': 28730454, 'created_at': datetime.datetime(2025, 11, 20, 6, 9, 29), 'result': '0.06219491235228678', 'result_long': None, 'result_double': None}] Qualite : 0.06219491235228678 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28730454 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28730454_20-11-2025_06_09_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28730454 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28730454_20-11-2025_06_09_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28730537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28730544, 'pht': 3726}}" where mtr_portfolio_id = 28730454 and dashboard_run_id = 2624720 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28730454 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17546518, 0.06219491235228678, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28730454_20-11-2025_06_09_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730533, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730534, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730536, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28730537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730539, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730543, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28730544, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28730956 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4083491, 'mtr_portfolio_id': 28730956, 'created_at': datetime.datetime(2025, 11, 20, 6, 9, 59), 'result': '0.028716250443948738', 'result_long': None, 'result_double': None}] Qualite : 0.028716250443948738 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28730956 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28730956_20-11-2025_06_10_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28730956 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28730956_20-11-2025_06_10_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28730988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730994, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28731000, 'pht': 3726}}" where mtr_portfolio_id = 28730956 and dashboard_run_id = 2624720 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28730956 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17546519, 0.028716250443948738, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28730956_20-11-2025_06_10_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28730988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28730989, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28730990, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28730991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28730993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28730994, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28730995, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28730996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28730997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28730998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28730999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28731000, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28732283 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4083492, 'mtr_portfolio_id': 28732283, 'created_at': datetime.datetime(2025, 11, 20, 6, 10, 29), 'result': '0.0637085330401548', 'result_long': None, 'result_double': None}] Qualite : 0.0637085330401548 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28732283 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732283_20-11-2025_06_10_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28732283 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732283_20-11-2025_06_10_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732326, 'pht': 3726}}" where mtr_portfolio_id = 28732283 and dashboard_run_id = 2624720 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28732283 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17546520, 0.0637085330401548, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732283_20-11-2025_06_10_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732315, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732316, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732317, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732319, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732321, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732325, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732326, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28732606 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4083493, 'mtr_portfolio_id': 28732606, 'created_at': datetime.datetime(2025, 11, 20, 6, 10, 58), 'result': '0.0530839223813962', 'result_long': None, 'result_double': None}] Qualite : 0.0530839223813962 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28732606 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732606_20-11-2025_06_11_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28732606 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732606_20-11-2025_06_11_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732674, 'pht': 3726}}" where mtr_portfolio_id = 28732606 and dashboard_run_id = 2624720 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28732606 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17546521, 0.0530839223813962, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732606_20-11-2025_06_11_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732672, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732673, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732674, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28732937 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4083494, 'mtr_portfolio_id': 28732937, 'created_at': datetime.datetime(2025, 11, 20, 6, 11, 7), 'result': '0.04830138493187099', 'result_long': None, 'result_double': None}] Qualite : 0.04830138493187099 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28732937 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732937_20-11-2025_06_11_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28732937 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732937_20-11-2025_06_11_11.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732969, 'pht': 3726}}" where mtr_portfolio_id = 28732937 and dashboard_run_id = 2624720 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28732937 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17546522, 0.04830138493187099, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28732937_20-11-2025_06_11_11.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28732958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28732959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28732960, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28732961, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28732962, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28732963, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28732964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28732965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28732966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28732967, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28732968, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28732969, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28733416 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4083495, 'mtr_portfolio_id': 28733416, 'created_at': datetime.datetime(2025, 11, 20, 6, 11, 28), 'result': '0.044310430713162936', 'result_long': None, 'result_double': None}] Qualite : 0.044310430713162936 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28733416 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28733416_20-11-2025_06_11_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28733416 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28733416_20-11-2025_06_11_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28733425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733436, 'pht': 3726}}" where mtr_portfolio_id = 28733416 and dashboard_run_id = 2624720 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28733416 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17546523, 0.044310430713162936, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28733416_20-11-2025_06_11_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28733425, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733426, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733427, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733429, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733431, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733436, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28733691 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4083496, 'mtr_portfolio_id': 28733691, 'created_at': datetime.datetime(2025, 11, 20, 6, 11, 28), 'result': '0.06394866085328949', 'result_long': None, 'result_double': None}] Qualite : 0.06394866085328949 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28733691 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28733691_20-11-2025_06_11_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28733691 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28733691_20-11-2025_06_11_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28733753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733759, 'pht': 3726}}" where mtr_portfolio_id = 28733691 and dashboard_run_id = 2624720 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28733691 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17546524, 0.06394866085328949, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28733691_20-11-2025_06_11_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28733748, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28733749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28733750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28733751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28733752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28733753, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28733754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28733755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28733756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28733757, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28733758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28733759, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28734257 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4083497, 'mtr_portfolio_id': 28734257, 'created_at': datetime.datetime(2025, 11, 20, 6, 12), 'result': '0.06501693880847081', 'result_long': None, 'result_double': None}] Qualite : 0.06501693880847081 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28734257 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28734257_20-11-2025_06_12_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28734257 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28734257_20-11-2025_06_12_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734269, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734277, 'pht': 3726}}" where mtr_portfolio_id = 28734257 and dashboard_run_id = 2624720 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28734257 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17546525, 0.06501693880847081, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28734257_20-11-2025_06_12_03.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734266, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734268, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734269, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734270, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734271, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734272, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734273, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734274, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734276, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734277, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28734699 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4083498, 'mtr_portfolio_id': 28734699, 'created_at': datetime.datetime(2025, 11, 20, 6, 12, 30), 'result': '0.034492618132727776', 'result_long': None, 'result_double': None}] Qualite : 0.034492618132727776 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28734699 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28734699_20-11-2025_06_12_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28734699 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28734699_20-11-2025_06_12_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734752, 'pht': 3726}}" where mtr_portfolio_id = 28734699 and dashboard_run_id = 2624720 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28734699 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17546526, 0.034492618132727776, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28734699_20-11-2025_06_12_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28734741, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28734742, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28734743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28734744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28734745, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28734746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28734747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28734748, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28734749, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28734750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28734751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28734752, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28735407 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4083499, 'mtr_portfolio_id': 28735407, 'created_at': datetime.datetime(2025, 11, 20, 6, 12, 59), 'result': '0.051680025933597946', 'result_long': None, 'result_double': None}] Qualite : 0.051680025933597946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28735407 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28735407_20-11-2025_06_13_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28735407 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28735407_20-11-2025_06_13_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28735441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735451, 'pht': 3726}}" where mtr_portfolio_id = 28735407 and dashboard_run_id = 2624720 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28735407 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17546527, 0.051680025933597946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28735407_20-11-2025_06_13_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28735441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735442, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735448, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735451, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28735955 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4083500, 'mtr_portfolio_id': 28735955, 'created_at': datetime.datetime(2025, 11, 20, 6, 13, 31), 'result': '0.0421090861949604', 'result_long': None, 'result_double': None}] Qualite : 0.0421090861949604 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28735955 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28735955_20-11-2025_06_13_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28735955 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28735955_20-11-2025_06_13_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28735965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735976, 'pht': 3726}}" where mtr_portfolio_id = 28735955 and dashboard_run_id = 2624720 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28735955 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17546528, 0.0421090861949604, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28735955_20-11-2025_06_13_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28735965, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28735966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28735967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28735968, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28735969, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28735970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28735971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28735972, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28735973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28735974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28735975, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28735976, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28736530 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4083501, 'mtr_portfolio_id': 28736530, 'created_at': datetime.datetime(2025, 11, 20, 6, 13, 30), 'result': '0.021800452178801957', 'result_long': None, 'result_double': None}] Qualite : 0.021800452178801957 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28736530 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28736530_20-11-2025_06_13_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28736530 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28736530_20-11-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28736562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736573, 'pht': 3726}}" where mtr_portfolio_id = 28736530 and dashboard_run_id = 2624720 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28736530 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17546529, 0.021800452178801957, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28736530_20-11-2025_06_13_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28736562, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736563, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736568, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736569, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736572, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736573, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28736964 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4083502, 'mtr_portfolio_id': 28736964, 'created_at': datetime.datetime(2025, 11, 20, 6, 14), 'result': '0.033335769011512154', 'result_long': None, 'result_double': None}] Qualite : 0.033335769011512154 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28736964 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28736964_20-11-2025_06_14_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28736964 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28736964_20-11-2025_06_14_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736982, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28736987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736993, 'pht': 3726}}" where mtr_portfolio_id = 28736964 and dashboard_run_id = 2624720 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28736964 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17546530, 0.033335769011512154, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28736964_20-11-2025_06_14_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28736982, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28736983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28736984, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28736985, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28736986, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28736987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28736988, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28736989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28736990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28736991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28736992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28736993, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740327 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 = 28740327 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 = 28740327 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740327 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 = 28740327 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 = 28740327 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740327_20-11-2025_11_06_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740327 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740327_20-11-2025_11_06_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740597, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740598, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740601, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740602, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740603, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740605, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740606, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740607, 'pht': 3726}}" where mtr_portfolio_id = 28740327 and dashboard_run_id = 2624720 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740329 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 = 28740329 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28740329 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%28740329%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740329 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740570, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740574, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740577, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740580, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 28740329 and dashboard_run_id = 2624720 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740332 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 = 28740332 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28740332 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%28740332%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740332 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740548, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740549, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740553, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740554, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740555, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740556, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 28740332 and dashboard_run_id = 2624720 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740348 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 = 28740348 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 = 28740348 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740348 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 = 28740348 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 = 28740348 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740348_20-11-2025_11_04_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740348 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740348_20-11-2025_11_04_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740508, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740510, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740511, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740514, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740515, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740517, 'pht': 3726}}" where mtr_portfolio_id = 28740348 and dashboard_run_id = 2624720 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740352 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 = 28740352 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 = 28740352 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740352 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 = 28740352 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 = 28740352 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740352_20-11-2025_11_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740352 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740352_20-11-2025_11_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740448, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740449, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740454, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740456, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740457, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740458, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740459, 'pht': 3726}}" where mtr_portfolio_id = 28740352 and dashboard_run_id = 2624720 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740373 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 = 28740373 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 = 28740373 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740373 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 = 28740373 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 = 28740373 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740373_20-11-2025_11_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740373 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740373_20-11-2025_11_02_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28740424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740425, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740427, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740428, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740429, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740430, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740431, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740435, 'pht': 3726}}" where mtr_portfolio_id = 28740373 and dashboard_run_id = 2624720 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740377 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 = 28740377 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 = 28740377 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28740377 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 = 28740377 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 = 28740377 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740377_20-11-2025_11_02_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28740377 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28740377_20-11-2025_11_02_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28740400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28740401, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28740402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28740403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28740404, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28740405, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28740406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28740407, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28740408, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28740409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28740410, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28740411, 'pht': 3726}}" where mtr_portfolio_id = 28740377 and dashboard_run_id = 2624720 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28743048 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4084305, 'mtr_portfolio_id': 28743048, 'created_at': datetime.datetime(2025, 11, 20, 13, 50, 30), 'result': '0.1643000290292006', 'result_long': None, 'result_double': None}] Qualite : 0.1643000290292006 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28743048 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743048_20-11-2025_13_50_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28743048 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743048_20-11-2025_13_50_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743061, 'pht': 3726}}" where mtr_portfolio_id = 28743048 and dashboard_run_id = 2624720 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28743048 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17546538, 0.1643000290292006, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743048_20-11-2025_13_50_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743051, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743052, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743053, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743054, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743059, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743061, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28743363 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4084330, 'mtr_portfolio_id': 28743363, 'created_at': datetime.datetime(2025, 11, 20, 14, 6, 31), 'result': '0.04399569440713958', 'result_long': None, 'result_double': None}] Qualite : 0.04399569440713958 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28743363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743363_20-11-2025_14_06_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28743363 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743363_20-11-2025_14_06_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743378, 'pht': 3726}}" where mtr_portfolio_id = 28743363 and dashboard_run_id = 2624720 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28743363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17546539, 0.04399569440713958, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743363_20-11-2025_14_06_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743373, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743374, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743375, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743376, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743377, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743378, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28743751 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4084358, 'mtr_portfolio_id': 28743751, 'created_at': datetime.datetime(2025, 11, 20, 14, 16, 58), 'result': '0.037633621081997505', 'result_long': None, 'result_double': None}] Qualite : 0.037633621081997505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28743751 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743751_20-11-2025_14_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28743751 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743751_20-11-2025_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743792, 'pht': 3726}}" where mtr_portfolio_id = 28743751 and dashboard_run_id = 2624720 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28743751 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17546540, 0.037633621081997505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28743751_20-11-2025_14_16_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28743780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28743781, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28743782, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28743783, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28743785, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28743786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28743787, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28743788, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28743789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28743790, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28743791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28743792, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28744153 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4084429, 'mtr_portfolio_id': 28744153, 'created_at': datetime.datetime(2025, 11, 20, 14, 32, 58), 'result': '0.025496383854784737', 'result_long': None, 'result_double': None}] Qualite : 0.025496383854784737 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28744153 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28744153_20-11-2025_14_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28744153 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28744153_20-11-2025_14_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28744229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28744230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28744231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28744232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28744233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28744234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28744235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28744236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28744237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28744238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28744239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28744240, 'pht': 3726}}" where mtr_portfolio_id = 28744153 and dashboard_run_id = 2624720 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28744153 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17546541, 0.025496383854784737, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28744153_20-11-2025_14_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28744229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28744230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28744231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28744232, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28744233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28744234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28744235, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28744236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28744237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28744238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28744239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28744240, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28744884 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4084528, 'mtr_portfolio_id': 28744884, 'created_at': datetime.datetime(2025, 11, 20, 14, 48, 57), 'result': '0.04578872373974785', 'result_long': None, 'result_double': None}] Qualite : 0.04578872373974785 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28744884 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28744884_20-11-2025_14_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28744884 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28744884_20-11-2025_14_48_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28744889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28744890, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28744891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28744892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28744893, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28744894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28744895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28744896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28744897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28744898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28744899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28744900, 'pht': 3726}}" where mtr_portfolio_id = 28744884 and dashboard_run_id = 2624720 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28744884 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17546543, 0.04578872373974785, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28744884_20-11-2025_14_48_57.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28744889, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28744890, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28744891, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28744892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28744893, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28744894, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28744895, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28744896, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28744897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28744898, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28744899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28744900, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28745500 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4084658, 'mtr_portfolio_id': 28745500, 'created_at': datetime.datetime(2025, 11, 20, 15, 4, 58), 'result': '0.04081979646550034', 'result_long': None, 'result_double': None}] Qualite : 0.04081979646550034 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28745500 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28745500_20-11-2025_15_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28745500 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28745500_20-11-2025_15_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28745556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28745557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28745558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28745559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28745560, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28745561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28745562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28745563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28745564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28745565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28745566, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28745567, 'pht': 3726}}" where mtr_portfolio_id = 28745500 and dashboard_run_id = 2624718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28745500 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17546544, 0.04081979646550034, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28745500_20-11-2025_15_04_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28745556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28745557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28745558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28745559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28745560, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28745561, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28745562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28745563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28745564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28745565, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28745566, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28745567, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28746095 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4084795, 'mtr_portfolio_id': 28746095, 'created_at': datetime.datetime(2025, 11, 20, 15, 16, 29), 'result': '0.03714125369854887', 'result_long': None, 'result_double': None}] Qualite : 0.03714125369854887 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28746095 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28746095_20-11-2025_15_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28746095 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28746095_20-11-2025_15_16_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28746169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28746170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28746171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28746172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28746173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28746174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28746175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28746176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28746177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28746178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28746179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28746180, 'pht': 3726}}" where mtr_portfolio_id = 28746095 and dashboard_run_id = 2624718 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28746095 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17546545, 0.03714125369854887, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28746095_20-11-2025_15_16_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28746169, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28746170, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28746171, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28746172, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28746173, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28746174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28746175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28746176, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28746177, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28746178, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28746179, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28746180, '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 (28729285,28729878,28730454,28730956,28732283,28732606,28732937,28733416,28733691,28734257,28734699,28735407,28735955,28736530,28736964,28740327,28740329,28740332,28740348,28740352,28740373,28740377,28743048,28743363,28743751,28744153,28744884,28745500,28746095) result : ((1395288892,), (1395288983,), (1395289751,), (1395289782,), (1395290131,), (1395290203,), (1395290270,), (1395290334,), (1395290691,), (1395290703,), (1395290705,), (1395290709,), (1395290712,), (1395290716,), (1395290731,), (1395290732,), (1395290760,), (1395290762,), (1395290765,), (1395290769,), (1395290772,), (1395290774,), (1395290819,), (1395290854,), (1395290898,), (1395291313,), (1395291346,), (1395291664,), (1395291671,), (1395291777,), (1395291779,), (1395291781,), (1395291784,), (1395292498,), (1395292500,), (1395292501,), (1395292777,), (1395292780,), (1395292782,), (1395292797,), (1395292799,), (1395292800,), (1395292803,), (1395292806,), (1395292825,), (1395292826,), (1395292827,), (1395292830,), (1395292851,), (1395292853,), (1395292856,), (1395292860,), (1395293706,), (1395293718,), (1395293722,), (1395293857,), (1395293891,), (1395293645,), (1395293696,), (1395293699,), (1395294062,), (1395294092,), (1395294124,), (1395294155,), (1395294572,), (1395294705,), (1395294861,), (1395295001,), (1395295144,), (1395295572,), (1395295574,), (1395295575,), (1395295601,), (1395295636,), (1395296088,), (1395296144,), (1395296177,), (1395296210,), (1395296252,), (1395296660,), (1395296674,), (1395296855,), (1395296889,), (1395296901,), (1395296904,), (1395296937,), (1395296952,), (1395296970,), (1395297005,), (1395297042,), (1395297080,), (1395297120,), (1395297485,), (1395297520,), (1395297560,), (1395297595,), (1395297961,), (1395297996,), (1395298047,), (1395298081,), (1395298622,), (1395298685,), (1395298748,), (1395298814,), (1395298881,), (1395298946,), (1395299017,), (1395299127,), (1395299135,), (1395299153,), (1395299186,), (1395300313,), (1395300346,), (1395300358,), (1395300366,), (1395300674,), (1395300709,), (1395300790,), (1395300875,), (1395300967,), (1395301065,), (1395301540,), (1395301574,), (1395301767,), (1395301798,), (1395301931,), (1395301632,), (1395301665,), (1395301699,), (1395301733,), (1395302054,), (1395302086,), (1395302117,), (1395302149,), (1395302184,), (1395302356,), (1395302359,), (1395302363,), (1395302377,), (1395302642,), (1395302701,), (1395303197,), (1395303228,), (1395303262,), (1395303296,), (1395303328,), (1395303535,), (1395303566,), (1395303599,), (1395303615,), (1395303624,), (1395303639,), (1395303683,), (1395303685,), (1395303690,), (1395303691,), (1395303692,), (1395304106,), (1395304141,), (1395304175,), (1395304216,), (1395304251,), (1395304286,), (1395304326,), (1395304358,), (1395304388,), (1395304428,), (1395304467,), (1395304601,), (1395304603,), (1395304622,), (1395304638,), (1395304659,), (1395304881,), (1395304909,), (1395304939,), (1395304970,), (1395304999,), (1395305150,), (1395305181,), (1395305213,), (1395305244,), (1395305278,), (1395305522,), (1395305523,), (1395305524,), (1395305976,), (1395306070,), (1395306183,), (1395306309,), (1395306876,), (1395306877,), (1395306879,), (1395306883,), (1395306886,), (1395306941,), (1395307170,), (1395307364,), (1395307277,), (1395307342,), (1395307356,), (1395307360,), (1395307374,), (1395307375,), (1395307376,), (1395307395,), (1395307396,), (1395307397,), (1395307725,), (1395307815,), (1395307922,), (1395308259,), (1395308286,), (1395308287,), (1395308288,), (1395308378,), (1395308412,), (1395308446,), (1395308770,), (1395308782,), (1395308811,), (1395308842,), (1395308943,), (1395308944,), (1395308945,), (1395308947,), (1395308966,), (1395308967,), (1395308983,), (1395308985,), (1395308987,), (1395308999,), (1395309002,), (1395309004,), (1395309008,), (1395309011,), (1395309014,), (1395309021,), (1395309023,), (1395309025,), (1395309026,), (1395309027,), (1395309028,), (1395309031,), (1395309045,), (1395309046,), (1395309047,), (1395309074,), (1395309078,), (1395309371,), (1395313362,), (1395313364,), (1395313365,), (1395313384,), (1395313386,), (1395313388,), (1395313391,), (1395313443,), (1395313446,), (1395313448,), (1395313450,), (1395313452,), (1395313475,), (1395313476,), (1395313478,), (1395313482,), (1395313486,), (1395313490,), (1395313497,), (1395313500,), (1395313503,), (1395313505,), (1395313607,), (1395313610,), (1395313611,), (1395313612,), (1395313631,), (1395313633,), (1395313635,), (1395313638,), (1395313642,), (1395313669,), (1395313671,), (1395313673,), (1395313675,), (1395313697,), (1395313699,), (1395313734,), (1395313739,), (1395313742,), (1395313756,), (1395313777,), (1395313779,), (1395313781,), (1395313783,), (1395313804,), (1395313805,), (1395313806,), (1395313809,), (1395313811,), (1395313828,), (1395313830,), (1395313832,), (1395313871,), (1395313901,), (1395313932,), (1395313961,), (1395313856,), (1395313857,), (1395313860,), (1395313865,), (1395313869,), (1395314100,), (1395314130,), (1395314162,), (1395314196,), (1395314230,), (1395314550,), (1395314582,), (1395314611,), (1395314641,), (1395314774,), (1395314806,), (1395314837,), (1395314865,), (1395314873,), (1395314998,), (1395314999,), (1395315000,), (1395315003,), (1395315008,), (1395315010,), (1395315020,), (1395315023,), (1395315043,), (1395315045,), (1395315047,), (1395315051,), (1395315076,), (1395315077,), (1395315078,), (1395315080,), (1395315084,), (1395315103,), (1395315104,), (1395315106,), (1395315108,), (1395315112,), (1395315132,), (1395315133,), (1395315135,), (1395315139,), (1395315142,), (1395315170,), (1395315172,), (1395315176,), (1395315180,), (1395315183,), (1395315185,), (1395315191,), (1395315195,), (1395315196,), (1395315199,), (1395315203,), (1395315218,), (1395315219,), (1395315220,), (1395315222,), (1395315224,), (1395315228,), (1395315239,), (1395315243,), (1395315248,), (1395315251,), (1395315258,), (1395315269,), (1395315271,), (1395315274,), (1395315278,), (1395315309,), (1395315310,), (1395315311,), (1395315340,), (1395315342,), (1395315300,), (1395315304,), (1395315307,), (1395315312,), (1395315314,), (1395315319,), (1395315323,), (1395315327,), (1395315330,), (1395315351,), (1395315353,), (1395315356,), (1395315377,), (1395315380,), (1395315383,), (1395315386,), (1395315389,), (1395315403,), (1395315404,), (1395315405,), (1395315407,), (1395315408,), (1395315412,), (1395315435,), (1395315436,), (1395315439,), (1395315443,), (1395315447,), (1395315450,), (1395315474,), (1395315476,), (1395315478,), (1395315479,), (1395315480,), (1395315481,), (1395315483,), (1395315487,), (1395315508,), (1395315510,), (1395315512,), (1395315533,), (1395315534,), (1395315535,), (1395315538,), (1395315567,), (1395315569,), (1395315572,), (1395315576,), (1395315587,), (1395315612,), (1395315614,), (1395315615,), (1395315618,), (1395315620,), (1395315641,), (1395315644,), (1395315646,), (1395315649,), (1395315654,), (1395315659,), (1395315669,), (1395315670,), (1395315671,), (1395315695,), (1395315697,), (1395315699,), (1395315702,), (1395315706,), (1395315710,), (1395315740,), (1395315742,), (1395315746,), (1395315752,), (1395315757,), (1395315789,), (1395315792,), (1395315859,), (1395315899,), (1395315935,), (1395315965,), (1395315993,), (1395316192,), (1395316197,), (1395315775,), (1395315777,), (1395315781,), (1395315785,), (1395315802,), (1395315806,), (1395315809,), (1395315811,), (1395315813,), (1395315815,), (1395315829,), (1395316121,), (1395316123,), (1395316155,), (1395316158,), (1395316180,), (1395316181,), (1395316184,), (1395316185,), (1395316188,), (1395316189,), (1395316269,), (1395316298,), (1395316300,), (1395316323,), (1395316326,), (1395316331,), (1395316355,), (1395316356,), (1395316357,), (1395316360,), (1395316365,), (1395316368,), (1395316388,), (1395316396,), (1395316399,), (1395316402,), (1395316422,), (1395316423,), (1395316424,), (1395316450,), (1395316457,), (1395316459,), (1395316463,), (1395316467,), (1395316482,), (1395316483,), (1395316484,), (1395316487,), (1395316516,), (1395316518,), (1395316520,), (1395316524,), (1395316528,), (1395316548,), (1395316550,), (1395316553,), (1395316557,), (1395316561,), (1395316563,), (1395316569,), (1395316571,), (1395316573,), (1395316575,), (1395316576,), (1395316579,), (1395316582,), (1395316587,), (1395316597,), (1395316644,), (1395316646,), (1395316702,), (1395316703,), (1395316704,), (1395316705,), (1395316707,), (1395316735,), (1395316738,), (1395316741,), (1395316744,), (1395316746,), (1395316749,), (1395316775,), (1395316780,), (1395316786,), (1395316796,), (1395316811,), (1395316814,), (1395316815,), (1395316772,), (1395316773,), (1395316817,), (1395316819,), (1395316854,), (1395316859,), (1395316861,), (1395316863,), (1395316880,), (1395316882,), (1395316884,), (1395316904,), (1395316905,), (1395316906,), (1395316911,), (1395316933,), (1395316934,), (1395316936,), (1395316940,), (1395316944,), (1395316952,), (1395316971,), (1395316972,), (1395316973,), (1395316976,), (1395316978,), (1395317001,), (1395317003,), (1395317005,), (1395317008,), (1395317027,), (1395317029,), (1395317033,), (1395317051,), (1395317052,), (1395317053,), (1395317079,), (1395317080,), (1395317081,), (1395317084,), (1395317100,), (1395317102,), (1395317104,), (1395317136,), (1395317137,), (1395317138,), (1395317140,), (1395317174,), (1395317175,), (1395317177,), (1395317198,), (1395317199,), (1395317201,), (1395317237,), (1395317241,), (1395317242,), (1395317252,), (1395317229,), (1395317230,), (1395317233,), (1395317258,), (1395317260,), (1395317262,), (1395317265,), (1395317286,), (1395317288,), (1395317291,), (1395317310,), (1395317311,), (1395317312,), (1395317314,), (1395317318,), (1395317320,), (1395317462,), (1395317492,), (1395317523,), (1395317554,), (1395317587,), (1395317872,), (1395317874,), (1395317891,), (1395317892,), (1395317893,), (1395317895,), (1395317908,), (1395317910,), (1395317912,), (1395317915,), (1395317919,), (1395317934,), (1395317935,), (1395317936,), (1395317939,), (1395317943,), (1395317945,), (1395318376,), (1395318442,), (1395318503,), (1395318552,), (1395318746,), (1395318750,), (1395318754,), (1395318781,), (1395318812,), (1395318820,), (1395318869,), (1395318883,), (1395318884,), (1395318887,), (1395318889,), (1395318892,), (1395318911,), (1395318950,), (1395319131,), (1395319162,), (1395319168,), (1395319185,), (1395319253,), (1395319255,), (1395319258,), (1395319271,), (1395319275,), (1395319277,), (1395319279,), (1395319307,), (1395319296,), (1395319298,), (1395319299,), (1395319303,), (1395319325,), (1395319327,), (1395319329,), (1395319535,), (1395319566,), (1395319597,), (1395319628,), (1395319659,), (1395319694,), (1395320287,), (1395320345,), (1395320998,), (1395321030,), (1395321431,), (1395321487,), (1395321522,), (1395321555,), (1395321589,), (1395321632,), (1395321883,), (1395321884,), (1395321886,), (1395321889,), (1395322163,), (1395322164,), (1395322165,), (1395322172,), (1395322185,), (1395322205,), (1395322207,), (1395322209,), (1395322245,), (1395322250,), (1395322253,), (1395322256,), (1395322259,), (1395322283,), (1395322286,), (1395322291,), (1395322296,), (1395322301,), (1395322304,), (1395322316,), (1395322318,), (1395322320,), (1395322324,), (1395322329,), (1395322363,), (1395322364,), (1395322365,), (1395322368,), (1395322373,), (1395322391,), (1395322393,), (1395322395,), (1395322399,), (1395322425,), (1395322427,), (1395322430,), (1395322433,), (1395322436,), (1395322440,), (1395322476,), (1395322559,), (1395322592,), (1395322622,), (1395322653,), (1395322684,), (1395322715,), (1395322462,), (1395322463,), (1395322465,), (1395322468,), (1395322472,), (1395322840,), (1395322876,), (1395322910,), (1395322948,), (1395322979,), (1395323213,), (1395323241,), (1395323439,), (1395323470,), (1395323500,), (1395323533,), (1395323655,), (1395323656,), (1395323657,), (1395323660,), (1395323705,), (1395324071,), (1395324101,), (1395324131,), (1395324163,), (1395324610,), (1395324640,), (1395324673,), (1395324705,), (1395324714,), (1395324716,), (1395324735,), (1395324736,), (1395324737,), (1395324749,), (1395324782,), (1395324817,), (1395324850,), (1395325079,), (1395325087,), (1395325089,), (1395325096,), (1395325101,), (1395325104,), (1395325128,), (1395325130,), (1395325132,), (1395325135,), (1395325138,), (1395325165,), (1395325166,), (1395325168,), (1395325172,), (1395325176,), (1395325179,), (1395325185,), (1395325186,), (1395325192,), (1395325195,), (1395325200,), (1395325205,), (1395325210,), (1395325235,), (1395325238,), (1395325240,), (1395325244,), (1395325247,), (1395325276,), (1395325278,), (1395325280,), (1395325284,), (1395325310,), (1395325314,), (1395325318,), (1395325321,), (1395325323,), (1395325326,), (1395325367,), (1395325372,), (1395325375,), (1395325383,), (1395325384,), (1395325385,), (1395325389,), (1395325357,), (1395325359,), (1395325363,), (1395325405,), (1395325410,), (1395325413,), (1395325507,), (1395325537,), (1395325570,), (1395325602,), (1395325839,), (1395325847,), (1395325877,), (1395325911,), (1395325947,), (1395326065,), (1395326067,), (1395326070,), (1395326073,), (1395326077,), (1395326090,), (1395326091,), (1395326093,), (1395326101,), (1395326105,), (1395326109,), (1395326117,), (1395326118,), (1395326119,), (1395326126,), (1395326130,), (1395326140,), (1395326143,), (1395326146,), (1395326185,), (1395326208,), (1395326217,), (1395326222,), (1395326227,), (1395326244,), (1395326245,), (1395326246,), (1395326263,), (1395326265,), (1395326267,), (1395326271,), (1395326282,), (1395326306,), (1395326307,), (1395326308,), (1395326314,), (1395326317,), (1395326340,), (1395326417,), (1395326418,), (1395326462,), (1395326470,), (1395326471,), (1395326450,), (1395326451,), (1395326453,), (1395326457,), (1395326460,), (1395326473,), (1395326474,), (1395326475,), (1395326547,), (1395326548,), (1395326549,), (1395326551,), (1395326555,), (1395326586,), (1395326587,), (1395326588,), (1395326590,), (1395326594,), (1395326596,), (1395326611,), (1395326613,), (1395326615,), (1395326619,), (1395326624,), (1395326628,), (1395326635,), (1395326637,), (1395326639,), (1395326642,), (1395326675,), (1395326677,), (1395326679,), (1395326682,), (1395326686,), (1395326690,), (1395326709,), (1395326711,), (1395326715,), (1395326720,), (1395326726,), (1395326745,), (1395326747,), (1395326749,), (1395326753,), (1395326756,), (1395326760,), (1395326779,), (1395326784,), (1395326785,), (1395326787,), (1395326791,), (1395326816,), (1395326818,), (1395326821,), (1395326831,), (1395326837,), (1395326841,), (1395326847,), (1395326848,), (1395326849,), (1395326855,), (1395326861,), (1395326865,), (1395326878,), (1395326879,), (1395326880,), (1395326882,), (1395326887,), (1395326926,), (1395326930,), (1395326935,), (1395326973,), (1395326978,), (1395326982,), (1395326987,), (1395326967,), (1395326970,), (1395327010,), (1395327013,), (1395327016,), (1395327020,), (1395327047,), (1395327048,), (1395327049,), (1395327052,), (1395327055,), (1395327089,), (1395327091,), (1395327093,), (1395327096,), (1395327101,), (1395327105,), (1395327123,), (1395327124,), (1395327125,), (1395327128,), (1395327154,), (1395327156,), (1395327159,), (1395327163,), (1395327167,), (1395327170,), (1395327178,), (1395327181,), (1395327191,), (1395327192,), (1395327193,), (1395327195,), (1395327199,), (1395327230,), (1395327232,), (1395327235,), (1395327282,), (1395327283,), (1395327284,), (1395327285,), (1395327310,), (1395327312,), (1395327314,), (1395327317,), (1395327320,), (1395327322,), (1395327348,), (1395327349,), (1395327350,), (1395327353,), (1395327355,), (1395327359,), (1395327378,), (1395336768,), (1395346827,), (1395346917,), (1395346940,), (1395346941,), (1395346944,), (1395346945,), (1395346969,), (1395346976,), (1395346991,), (1395346994,), (1395346996,), (1395346998,), (1395347000,), (1395347002,), (1395347025,), (1395347028,), (1395347030,), (1395347032,), (1395347035,), (1395347037,), (1395347232,), (1395347266,), (1395347321,), (1395347382,), (1395347455,), (1395347467,), (1395347492,), (1395347498,), (1395347504,), (1395347508,), (1395347512,), (1395347517,), (1395347524,), (1395347529,), (1395347533,), (1395347536,), (1395347540,), (1395347543,), (1395347555,), (1395347556,), (1395347558,), (1395347559,), (1395347561,), (1395347562,), (1395347569,), (1395347572,), (1395347583,), (1395347585,), (1395347588,), (1395347591,), (1395346189,), (1395346190,), (1395346191,), (1395346192,), (1395346193,), (1395346194,), (1395346211,), (1395346215,), (1395346219,), (1395346221,), (1395346223,), (1395346226,), (1395346238,), (1395346242,), (1395346246,), (1395346251,), (1395346256,), (1395346260,), (1395346265,), (1395346268,), (1395346270,), (1395346273,), (1395346276,), (1395346281,), (1395346297,), (1395346305,), (1395346309,), (1395346312,), (1395346314,), (1395346316,), (1395346335,), (1395346336,), (1395346340,), (1395346341,), (1395346346,), (1395346347,), (1395346351,), (1395346352,), (1395346355,), (1395346356,), (1395346359,), (1395346360,), (1395346369,), (1395346372,), (1395346375,), (1395346378,), (1395346381,), (1395346385,), (1395346391,), (1395346396,), (1395346401,), (1395346405,), (1395346410,), (1395346416,), (1395346442,), (1395346445,), (1395346449,), (1395346474,), (1395346484,), (1395346496,), (1395346548,), (1395346552,), (1395346558,), (1395346562,), (1395346568,), (1395346573,), (1395346581,), (1395346585,), (1395346588,), (1395346591,), (1395346594,), (1395346602,), (1395346631,), (1395346633,), (1395346637,), (1395346643,), (1395346648,), (1395346654,), (1395346712,), (1395346743,), (1395346761,), (1395346778,), (1395346786,), (1395346796,), (1395346812,), (1395346815,), (1395346818,), (1395346820,), (1395346823,), (1395346876,), (1395346890,), (1395346892,), (1395346905,), (1395346912,), (1395345472,), (1395345473,), (1395345474,), (1395345475,), (1395345476,), (1395345478,), (1395345507,), (1395345508,), (1395345509,), (1395345510,), (1395345513,), (1395345516,), (1395345536,), (1395345542,), (1395345545,), (1395345548,), (1395345550,), (1395345552,), (1395345566,), (1395345571,), (1395345575,), (1395345578,), (1395345582,), (1395345587,), (1395345605,), (1395345609,), (1395345613,), (1395345618,), (1395345621,), (1395345623,), (1395345631,), (1395345634,), (1395345637,), (1395345641,), (1395345645,), (1395345681,), (1395345713,), (1395345724,), (1395345733,), (1395345739,), (1395345743,), (1395345747,), (1395345758,), (1395345760,), (1395345762,), (1395345765,), (1395345776,), (1395345790,), (1395345945,), (1395345959,), (1395345969,), (1395345980,), (1395345991,), (1395346004,), (1395346043,), (1395346044,), (1395346045,), (1395346046,), (1395346047,), (1395346049,), (1395346064,), (1395346069,), (1395346072,), (1395346077,), (1395346079,), (1395346080,), (1395346125,), (1395346129,), (1395346135,), (1395346142,), (1395346149,), (1395346152,), (1395346153,), (1395346154,), (1395346156,), (1395346157,), (1395346159,), (1395346160,), (1395346162,), (1395346163,), (1395346165,), (1395346166,), (1395346168,), (1395346169,), (1395342157,), (1395342161,), (1395342165,), (1395342311,), (1395342313,), (1395342356,), (1395342364,), (1395342392,), (1395342399,), (1395342433,), (1395342439,), (1395342484,), (1395342485,), (1395342525,), (1395342527,), (1395342713,), (1395342746,), (1395342782,), (1395342823,), (1395342858,), (1395342893,), (1395343025,), (1395343060,), (1395343093,), (1395343126,), (1395343163,), (1395343200,), (1395343329,), (1395343365,), (1395343387,), (1395343390,), (1395343393,), (1395343396,), (1395343409,), (1395343416,), (1395343453,), (1395343490,), (1395343522,), (1395343557,), (1395343812,), (1395343813,), (1395343875,), (1395343878,), (1395343943,), (1395343947,), (1395344010,), (1395344019,), (1395344071,), (1395344077,), (1395344108,), (1395344115,), (1395344312,), (1395344376,), (1395344443,), (1395344488,), (1395344527,), (1395344857,), (1395344872,), (1395344877,), (1395345103,), (1395345111,), (1395345176,), (1395345182,), (1395345186,), (1395345192,), (1395345196,), (1395345200,), (1395345201,), (1395345205,), (1395345210,), (1395345214,), (1395345218,), (1395345228,), (1395345230,), (1395345234,), (1395345241,), (1395345247,), (1395345252,), (1395345262,), (1395345263,), (1395345264,), (1395345267,), (1395345268,), (1395345271,), (1395345287,), (1395345290,), (1395345293,), (1395345296,), (1395345299,), (1395345311,), (1395345421,), (1395345430,), (1395345438,), (1395345452,), (1395345455,), (1395345458,), (1395341259,), (1395341265,), (1395341270,), (1395341274,), (1395341279,), (1395341316,), (1395341319,), (1395341322,), (1395341325,), (1395341328,), (1395341329,), (1395341362,), (1395341363,), (1395341367,), (1395341369,), (1395341372,), (1395341373,), (1395341378,), (1395341380,), (1395341383,), (1395341385,), (1395341387,), (1395341389,), (1395341401,), (1395341404,), (1395341408,), (1395341412,), (1395341417,), (1395341422,), (1395341429,), (1395341431,), (1395341435,), (1395341439,), (1395341443,), (1395341462,), (1395341475,), (1395341500,), (1395341541,), (1395341579,), (1395341591,), (1395341641,), (1395341644,), (1395341647,), (1395341675,), (1395341690,), (1395341692,), (1395341705,), (1395341725,), (1395341734,), (1395341742,), (1395341745,), (1395341749,), (1395341758,), (1395341763,), (1395341766,), (1395341769,), (1395341772,), (1395341774,), (1395341821,), (1395341854,), (1395341885,), (1395341903,), (1395341911,), (1395341921,), (1395341991,), (1395342023,), (1395342038,), (1395342050,), (1395342055,), (1395342065,), (1395342078,), (1395342083,), (1395342088,), (1395342090,), (1395342094,), (1395342098,), (1395342121,), (1395342124,), (1395342128,), (1395342132,), (1395342136,), (1395342139,), (1395342146,), (1395342148,), (1395342153,), (1395340736,), (1395340742,), (1395340744,), (1395340749,), (1395340790,), (1395340793,), (1395340797,), (1395340800,), (1395340803,), (1395340818,), (1395340822,), (1395340825,), (1395340838,), (1395340839,), (1395340844,), (1395340852,), (1395340855,), (1395340859,), (1395340864,), (1395340868,), (1395340873,), (1395340896,), (1395340898,), (1395340900,), (1395340903,), (1395340910,), (1395340944,), (1395340975,), (1395340979,), (1395340983,), (1395340985,), (1395340989,), (1395341002,), (1395341013,), (1395341017,), (1395341021,), (1395341025,), (1395341028,), (1395341038,), (1395341052,), (1395341055,), (1395341059,), (1395341063,), (1395341069,), (1395341072,), (1395341092,), (1395341093,), (1395341094,), (1395341096,), (1395341097,), (1395341098,), (1395341102,), (1395341103,), (1395341107,), (1395341108,), (1395341112,), (1395341114,), (1395341126,), (1395341128,), (1395341130,), (1395341133,), (1395341150,), (1395341153,), (1395341162,), (1395341192,), (1395341229,), (1395341244,), (1395341247,), (1395341250,), (1395341257,), (1395340322,), (1395340323,), (1395340327,), (1395340329,), (1395340334,), (1395340335,), (1395340340,), (1395340341,), (1395340358,), (1395340365,), (1395340372,), (1395340379,), (1395340386,), (1395340387,), (1395340388,), (1395340389,), (1395340392,), (1395340399,), (1395340428,), (1395340432,), (1395340436,), (1395340438,), (1395340440,), (1395340443,), (1395340457,), (1395340460,), (1395340464,), (1395340466,), (1395340468,), (1395340470,), (1395340481,), (1395340485,), (1395340488,), (1395340492,), (1395340495,), (1395340496,), (1395340506,), (1395340511,), (1395340514,), (1395340519,), (1395340524,), (1395340528,), (1395340533,), (1395340537,), (1395340540,), (1395340543,), (1395340547,), (1395340551,), (1395340563,), (1395340566,), (1395340571,), (1395340574,), (1395340578,), (1395340580,), (1395340589,), (1395340590,), (1395340592,), (1395340593,), (1395340595,), (1395340597,), (1395340601,), (1395340602,), (1395340608,), (1395340611,), (1395340620,), (1395340626,), (1395340637,), (1395340639,), (1395340641,), (1395340643,), (1395340645,), (1395340649,), (1395340659,), (1395340664,), (1395340666,), (1395340669,), (1395340671,), (1395340674,), (1395340687,), (1395340689,), (1395340692,), (1395340696,), (1395340698,), (1395340701,), (1395340716,), (1395340719,), (1395361438,), (1395361512,), (1395361515,), (1395361519,), (1395361524,), (1395361561,), (1395361565,), (1395361569,), (1395361573,), (1395361578,), (1395361608,), (1395363125,), (1395364916,), (1395364842,), (1395365106,), (1395365188,), (1395365223,), (1395365259,), (1395365271,), (1395365293,), (1395365642,), (1395365698,), (1395365733,), (1395366002,), (1395366006,), (1395366202,), (1395366205,), (1395366207,), (1395366209,), (1395366595,), (1395366676,), (1395367253,), (1395366663,), (1395366667,), (1395366670,), (1395366673,), (1395366843,), (1395366890,), (1395366922,), (1395366961,), (1395366991,), (1395366997,), (1395367143,), (1395367149,), (1395367154,), (1395367159,), (1395367171,), (1395367217,), (1395367226,), (1395367230,), (1395367233,), (1395367238,), (1395367243,), (1395367246,), (1395367250,), (1395367251,), (1395367252,), (1395367273,), (1395367275,), (1395367276,), (1395367277,), (1395367279,), (1395367503,), (1395367506,), (1395367510,), (1395367514,), (1395367549,), (1395367587,), (1395367632,), (1395367634,), (1395367821,), (1395367826,), (1395367839,), (1395367856,), (1395367868,), (1395367881,), (1395367924,), (1395367928,), (1395367932,), (1395367934,), (1395367937,), (1395367941,), (1395368116,), (1395368133,), (1395368134,), (1395368135,), (1395368295,), (1395368300,), (1395368304,), (1395368309,), (1395368313,), (1395368335,), (1395368435,), (1395368455,), (1395368459,), (1395368462,), (1395368478,), (1395369132,), (1395369173,), (1395369213,), (1395369256,), (1395369294,), (1395369327,), (1395369592,), (1395369664,), (1395369738,), (1395369804,), (1395369864,), (1395369994,), (1395370027,), (1395370062,), (1395370103,), (1395370156,), (1395370161,), (1395370164,), (1395370194,), (1395370229,), (1395370640,), (1395370679,), (1395370712,), (1395370745,), (1395370807,), (1395371061,), (1395371046,), (1395371050,), (1395371053,), (1395371438,), (1395371465,), (1395371492,), (1395371502,), (1395371525,), (1395371528,), (1395371796,), (1395371800,), (1395371804,), (1395371821,), (1395371954,), (1395371981,), (1395371984,), (1395371996,), (1395371999,), (1395372002,), (1395372090,), (1395372125,), (1395372149,), (1395372160,), (1395372222,), (1395372224,), (1395372226,), (1395372228,), (1395372232,), (1395372252,), (1395372467,), (1395372470,), (1395372485,), (1395372511,), (1395372515,), (1395372516,), (1395372579,), (1395372583,), (1395372617,), (1395372664,), (1395372782,), (1395372792,), (1395372809,), (1395372820,), (1395372823,), (1395372854,), (1395372857,), (1395372863,), (1395372867,), (1395373017,), (1395373050,), (1395373086,), (1395373122,), (1395373158,), (1395373195,), (1395373227,), (1395373229,), (1395373230,), (1395373231,), (1395373491,), (1395373493,), (1395373495,), (1395373498,), (1395373504,), (1395373527,), (1395373732,), (1395373735,), (1395373739,), (1395373744,), (1395373908,), (1395373938,), (1395373954,), (1395373965,), (1395373968,), (1395373989,), (1395374017,), (1395374019,), (1395374022,), (1395374025,), (1395374029,), (1395374090,), (1395374070,), (1395374075,), (1395374079,), (1395374085,), (1395374113,), (1395374116,), (1395374130,), (1395374134,), (1395374138,), (1395374141,), (1395374332,), (1395374376,), (1395374396,), (1395374403,), (1395374410,), (1395374595,), (1395374598,), (1395374600,), (1395374602,), (1395374604,), (1395374662,), (1395374668,), (1395374670,), (1395374673,), (1395374677,), (1395374681,), (1395374776,), (1395374810,), (1395374826,), (1395374852,), (1395374856,), (1395374881,), (1395374887,), (1395374892,), (1395374910,), (1395374917,), (1395375092,), (1395375103,), (1395375132,), (1395375167,), (1395375306,), (1395375309,), (1395375312,), (1395375316,), (1395375322,), (1395375327,), (1395375361,), (1395375366,), (1395375368,), (1395375370,), (1395375418,), (1395375440,), (1395375476,), (1395375483,), (1395375689,), (1395375697,), (1395375711,), (1395375723,), (1395375729,), (1395375732,), (1395375756,), (1395375761,), (1395375766,), (1395375785,), (1395375821,), (1395375831,), (1395375833,), (1395375842,), (1395375850,), (1395375852,), (1395375855,), (1395375870,), (1395375872,), (1395375874,), (1395375876,), (1395376080,), (1395375919,), (1395375934,), (1395375972,), (1395376004,), (1395376040,), (1395376427,), (1395376462,), (1395376499,), (1395376532,), (1395376837,), (1395376870,), (1395376904,), (1395376936,), (1395376956,), (1395377119,), (1395377120,), (1395377121,), (1395377123,), (1395377185,), (1395377364,), (1395377370,), (1395377384,), (1395377388,), (1395377397,), (1395377682,), (1395377686,), (1395377687,), (1395377715,), (1395377743,), (1395377745,), (1395377847,), (1395377848,), (1395377849,), (1395377854,), (1395377996,), (1395378002,), (1395378007,), (1395378016,), (1395378468,), (1395378501,), (1395378518,), (1395378519,), (1395378546,), (1395378585,), (1395378771,), (1395378776,), (1395378780,), (1395378784,), (1395378788,), (1395378831,), (1395378833,), (1395378836,), (1395378840,), (1395378845,), (1395378850,), (1395379052,), (1395379104,), (1395379147,), (1395379191,), (1395379422,), (1395379427,), (1395379432,), (1395379456,), (1395379524,), (1395379800,), (1395379806,), (1395379810,), (1395379840,), (1395379931,), (1395379932,), (1395379935,), (1395379936,), (1395379938,), (1395379939,), (1395379949,), (1395379953,), (1395379988,), (1395379990,), (1395380046,), (1395380303,), (1395380034,), (1395380036,), (1395380038,), (1395380041,), (1395380068,), (1395380072,), (1395380076,), (1395380081,), (1395380084,), (1395380091,), (1395380226,), (1395380259,), (1395380292,), (1395380353,), (1395380384,), (1395380390,), (1395380407,), (1395380436,), (1395380612,), (1395380627,), (1395380648,), (1395380651,), (1395380655,), (1395380660,), (1395380747,), (1395380753,), (1395380788,), (1395380821,), (1395380861,), (1395381056,), (1395381067,), (1395381080,), (1395381084,), (1395381087,), (1395381091,), (1395381118,), (1395381120,), (1395381122,), (1395381126,), (1395381176,), (1395381188,), (1395381222,), (1395381257,), (1395381293,), (1395381464,), (1395381465,), (1395381466,), (1395381469,), (1395381472,), (1395381474,), (1395381486,), (1395381488,), (1395381490,), (1395381491,), (1395381498,), (1395381500,), (1395381503,), (1395381507,), (1395381530,), (1395381532,), (1395381534,), (1395381536,), (1395381541,), (1395381545,), (1395381587,), (1395381592,), (1395381596,), (1395381599,), (1395381602,), (1395381642,), (1395381653,), (1395381656,), (1395381659,), (1395381733,), (1395381743,), (1395381746,), (1395381751,), (1395381755,), (1395381757,), (1395381788,), (1395381791,), (1395381794,), (1395381800,), (1395381805,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'20112025': {'nb_upload': 84, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28746095]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1395381805, 1395381800, 1395381794, 1395381791, 1395381788, 1395381757, 1395381755, 1395381751, 1395381746, 1395381743] map_info['map_portfolio_photo'] : {28746095: [1395381805, 1395381800, 1395381794, 1395381791, 1395381788, 1395381757, 1395381755, 1395381751, 1395381746, 1395381743, 1395381733, 1395381659, 1395381656, 1395381653, 1395381642, 1395381602, 1395381599, 1395381596, 1395381592, 1395381587, 1395381545, 1395381541, 1395381536, 1395381534, 1395381532, 1395381530, 1395381507, 1395381503, 1395381500, 1395381498, 1395381491, 1395381490, 1395381488, 1395381486, 1395381474, 1395381472, 1395381469, 1395381466, 1395381465, 1395381464, 1395381293, 1395381257, 1395381222, 1395381188, 1395381176, 1395381126, 1395381122, 1395381120, 1395381118, 1395381091, 1395381087, 1395381084, 1395381080, 1395381067, 1395381056, 1395380861, 1395380821, 1395380788, 1395380753, 1395380747, 1395380660, 1395380655, 1395380651, 1395380648, 1395380627, 1395380612, 1395380436, 1395380407, 1395380390, 1395380384, 1395380353, 1395380292, 1395380259, 1395380226, 1395380091, 1395380084, 1395380081, 1395380076, 1395380072, 1395380068, 1395380041, 1395380038, 1395380036, 1395380034]} final : True mtd_id 4302 list_pids : [1395381805, 1395381800, 1395381794, 1395381791, 1395381788, 1395381757, 1395381755, 1395381751, 1395381746, 1395381743] Looping around the photos to save general results len do output : 1 /28746095Didn'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, '4084795') ('4302', '28746095', '1395381805', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381800', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381794', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381791', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381788', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381757', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381755', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381751', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381746', None, None, None, None, None, '4084795') ('4302', None, None, None, None, None, None, None, '4084795') ('4302', '28746095', '1395381743', None, None, None, None, None, '4084795') 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, '28746095', 'None', None, None, None, None, '4084795'), ('4302', '28746095', '1395381805', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381800', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381794', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381791', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381788', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381757', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381755', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381751', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381746', None, None, None, None, None, '4084795'), ('4302', '28746095', '1395381743', None, None, None, None, None, '4084795')] time used for this insertion : 0.014798164367675781 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.156149387359619 time spend to save output : 0.015003204345703125 total time spend for step 5 : 4.171152591705322 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 (4084795) 2.37user 1.97system 0:13.53elapsed 32%CPU (0avgtext+0avgdata 159552maxresident)k 4104inputs+11216outputs (72major+74098minor)pagefaults 0swaps