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 : 561437 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 (4040396) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4040396) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28479655 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4040396'] with mtr_portfolio_ids : ['28479655'] and first list_photo_ids : [] new path : /proc/561437/ Name: python3 Umask: 0002 State: R (running) Tgid: 561437 Ngid: 0 Pid: 561437 PPid: 561436 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 561437 NSpid: 561437 NSpgid: 560021 NSsid: 560021 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100276 kB VmRSS: 100276 kB RssAnon: 59904 kB RssFile: 40372 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 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: 56 nonvoluntary_ctxt_switches: 117 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '561437', 'Ngid': '0', 'Pid': '561437', 'PPid': '561436', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '561437', 'NSpid': '561437', 'NSpgid': '560021', 'NSsid': '560021', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100276 kB', 'VmRSS': '100276 kB', 'RssAnon': '59904 kB', 'RssFile': '40372 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 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': '56', 'nonvoluntary_ctxt_switches': '117'} ('datou_batch_current', '561437', '1106908', '0', '1106884', '865636', '100276', b'', 'marlene', '4040396') 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 (28479655) 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 (4040396 ) ) 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 (28479655) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1394167528, 'portfolio_id': 28479655}, {'photo_id': 1394167525, 'portfolio_id': 28479655}, {'photo_id': 1394167523, 'portfolio_id': 28479655}, {'photo_id': 1394167521, 'portfolio_id': 28479655}, {'photo_id': 1394167472, 'portfolio_id': 28479655}, {'photo_id': 1394167465, 'portfolio_id': 28479655}, {'photo_id': 1394167459, 'portfolio_id': 28479655}, {'photo_id': 1394167455, 'portfolio_id': 28479655}, {'photo_id': 1394167452, 'portfolio_id': 28479655}, {'photo_id': 1394167397, 'portfolio_id': 28479655}, {'photo_id': 1394167395, 'portfolio_id': 28479655}, {'photo_id': 1394167393, 'portfolio_id': 28479655}, {'photo_id': 1394167391, 'portfolio_id': 28479655}, {'photo_id': 1394167352, 'portfolio_id': 28479655}, {'photo_id': 1394167349, 'portfolio_id': 28479655}, {'photo_id': 1394167340, 'portfolio_id': 28479655}, {'photo_id': 1394167337, 'portfolio_id': 28479655}, {'photo_id': 1394167335, 'portfolio_id': 28479655}, {'photo_id': 1394167315, 'portfolio_id': 28479655}, {'photo_id': 1394167312, 'portfolio_id': 28479655}, {'photo_id': 1394167310, 'portfolio_id': 28479655}, {'photo_id': 1394167309, 'portfolio_id': 28479655}, {'photo_id': 1394167307, 'portfolio_id': 28479655}, {'photo_id': 1394167199, 'portfolio_id': 28479655}, {'photo_id': 1394167196, 'portfolio_id': 28479655}, {'photo_id': 1394167193, 'portfolio_id': 28479655}, {'photo_id': 1394167190, 'portfolio_id': 28479655}, {'photo_id': 1394167124, 'portfolio_id': 28479655}, {'photo_id': 1394167088, 'portfolio_id': 28479655}, {'photo_id': 1394167052, 'portfolio_id': 28479655}, {'photo_id': 1394167019, 'portfolio_id': 28479655}, {'photo_id': 1394166989, 'portfolio_id': 28479655}, {'photo_id': 1394166957, 'portfolio_id': 28479655}, {'photo_id': 1394166884, 'portfolio_id': 28479655}, {'photo_id': 1394166838, 'portfolio_id': 28479655}, {'photo_id': 1394166797, 'portfolio_id': 28479655}, {'photo_id': 1394166765, 'portfolio_id': 28479655}, {'photo_id': 1394166761, 'portfolio_id': 28479655}, {'photo_id': 1394166652, 'portfolio_id': 28479655}, {'photo_id': 1394166618, 'portfolio_id': 28479655}, {'photo_id': 1394166606, 'portfolio_id': 28479655}, {'photo_id': 1394166405, 'portfolio_id': 28479655}, {'photo_id': 1394166403, 'portfolio_id': 28479655}, {'photo_id': 1394166399, 'portfolio_id': 28479655}, {'photo_id': 1394166397, 'portfolio_id': 28479655}, {'photo_id': 1394166396, 'portfolio_id': 28479655}, {'photo_id': 1394166395, 'portfolio_id': 28479655}, {'photo_id': 1394166027, 'portfolio_id': 28479655}, {'photo_id': 1394165993, 'portfolio_id': 28479655}, {'photo_id': 1394165960, 'portfolio_id': 28479655}, {'photo_id': 1394165929, 'portfolio_id': 28479655}, {'photo_id': 1394165896, 'portfolio_id': 28479655}, {'photo_id': 1394165777, 'portfolio_id': 28479655}, {'photo_id': 1394165755, 'portfolio_id': 28479655}, {'photo_id': 1394165744, 'portfolio_id': 28479655}, {'photo_id': 1394165739, 'portfolio_id': 28479655}, {'photo_id': 1394165728, 'portfolio_id': 28479655}, {'photo_id': 1394165713, 'portfolio_id': 28479655}, {'photo_id': 1394165631, 'portfolio_id': 28479655}, {'photo_id': 1394165628, 'portfolio_id': 28479655}, {'photo_id': 1394165625, 'portfolio_id': 28479655}, {'photo_id': 1394165622, 'portfolio_id': 28479655}, {'photo_id': 1394165619, 'portfolio_id': 28479655}, {'photo_id': 1394165607, 'portfolio_id': 28479655}, {'photo_id': 1394165384, 'portfolio_id': 28479655}, {'photo_id': 1394165372, 'portfolio_id': 28479655}] map_portfolio_id_photo_id: {28479655: [1394167528, 1394167525, 1394167523, 1394167521, 1394167472, 1394167465, 1394167459, 1394167455, 1394167452, 1394167397, 1394167395, 1394167393, 1394167391, 1394167352, 1394167349, 1394167340, 1394167337, 1394167335, 1394167315, 1394167312, 1394167310, 1394167309, 1394167307, 1394167199, 1394167196, 1394167193, 1394167190, 1394167124, 1394167088, 1394167052, 1394167019, 1394166989, 1394166957, 1394166884, 1394166838, 1394166797, 1394166765, 1394166761, 1394166652, 1394166618, 1394166606, 1394166405, 1394166403, 1394166399, 1394166397, 1394166396, 1394166395, 1394166027, 1394165993, 1394165960, 1394165929, 1394165896, 1394165777, 1394165755, 1394165744, 1394165739, 1394165728, 1394165713, 1394165631, 1394165628, 1394165625, 1394165622, 1394165619, 1394165607, 1394165384, 1394165372]} ##### 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.01738142967224121 #### 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 13 08:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28479655) 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 : 28479655 get user id for portfolio 28479655 get sub ptf for main ptf 28479655, type 3726 and hashtags ['Carton_brun', 'kraft', 'environnement', 'papier', 'mal_croppe', 'flou', 'cartonnette', 'Teint_Dans_La_Masse', 'plastique', 'Carton_gris', 'metal', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28479655 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','kraft','environnement','papier','mal_croppe','flou','cartonnette','Teint_Dans_La_Masse','plastique','Carton_gris','metal','autre_refus')) 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`=28479655 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','kraft','environnement','papier','mal_croppe','flou','cartonnette','Teint_Dans_La_Masse','plastique','Carton_gris','metal','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 28479655, 'sub_port_id': 28479690, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295053, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 29)}, 'papier': {'main_port_id': 28479655, 'sub_port_id': 28479691, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295054, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 29)}, 'Carton_brun': {'main_port_id': 28479655, 'sub_port_id': 28479693, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295055, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 28479655, 'sub_port_id': 28479694, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295056, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 29)}, 'mal_croppe': {'main_port_id': 28479655, 'sub_port_id': 28479695, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295057, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 29)}, 'kraft': {'main_port_id': 28479655, 'sub_port_id': 28479697, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295058, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 29)}, 'Carton_gris': {'main_port_id': 28479655, 'sub_port_id': 28479698, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295059, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 29)}, 'cartonnette': {'main_port_id': 28479655, 'sub_port_id': 28479699, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295060, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 29)}, 'autre_refus': {'main_port_id': 28479655, 'sub_port_id': 28479701, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295061, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 29)}, 'environnement': {'main_port_id': 28479655, 'sub_port_id': 28479702, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295062, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 29)}, 'metal': {'main_port_id': 28479655, 'sub_port_id': 28479703, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295063, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 29)}, 'flou': {'main_port_id': 28479655, 'sub_port_id': 28479705, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295064, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28479690 , 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=28479655 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 (28479690) result : ((1394167390,), (1394167448,), (1394167449,), (1394167518,), (1394167519,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28479655) result : ((1394165372,), (1394165384,), (1394165607,), (1394165619,), (1394165622,), (1394165625,), (1394165628,), (1394165631,), (1394165713,), (1394165728,), (1394165739,), (1394165744,), (1394165755,), (1394165777,), (1394165896,), (1394165929,), (1394165960,), (1394165993,), (1394166027,), (1394166395,), (1394166396,), (1394166397,), (1394166399,), (1394166403,), (1394166405,), (1394166606,), (1394166618,), (1394166652,), (1394166761,), (1394166765,), (1394166797,), (1394166838,), (1394166884,), (1394166957,), (1394166989,), (1394167019,), (1394167052,), (1394167088,), (1394167124,), (1394167190,), (1394167193,), (1394167196,), (1394167199,), (1394167307,), (1394167309,), (1394167310,), (1394167312,), (1394167315,), (1394167335,), (1394167337,), (1394167340,), (1394167349,), (1394167352,), (1394167391,), (1394167393,), (1394167395,), (1394167397,), (1394167452,), (1394167455,), (1394167459,), (1394167465,), (1394167472,), (1394167521,), (1394167523,), (1394167525,), (1394167528,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28479691 , 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=28479655 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 (28479691) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28479655) result : ((1394165372,), (1394165384,), (1394165607,), (1394165619,), (1394165622,), (1394165625,), (1394165628,), (1394165631,), (1394165713,), (1394165728,), (1394165739,), (1394165744,), (1394165755,), (1394165777,), (1394165896,), (1394165929,), (1394165960,), (1394165993,), (1394166027,), (1394166395,), (1394166396,), (1394166397,), (1394166399,), (1394166403,), (1394166405,), (1394166606,), (1394166618,), (1394166652,), (1394166761,), (1394166765,), (1394166797,), (1394166838,), (1394166884,), (1394166957,), (1394166989,), (1394167019,), (1394167052,), (1394167088,), (1394167124,), (1394167190,), (1394167193,), (1394167196,), (1394167199,), (1394167307,), (1394167309,), (1394167310,), (1394167312,), (1394167315,), (1394167335,), (1394167337,), (1394167340,), (1394167349,), (1394167352,), (1394167391,), (1394167393,), (1394167395,), (1394167397,), (1394167452,), (1394167455,), (1394167459,), (1394167465,), (1394167472,), (1394167521,), (1394167523,), (1394167525,), (1394167528,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28479693 , 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=28479655 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 (28479693) result : ((1394167306,), (1394167372,), (1394167387,), (1394167388,), (1394167504,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28479655) result : ((1394165372,), (1394165384,), (1394165607,), (1394165619,), (1394165622,), (1394165625,), (1394165628,), (1394165631,), (1394165713,), (1394165728,), (1394165739,), (1394165744,), (1394165755,), (1394165777,), (1394165896,), (1394165929,), (1394165960,), (1394165993,), (1394166027,), (1394166395,), (1394166396,), (1394166397,), (1394166399,), (1394166403,), (1394166405,), (1394166606,), (1394166618,), (1394166652,), (1394166761,), (1394166765,), (1394166797,), (1394166838,), (1394166884,), (1394166957,), (1394166989,), (1394167019,), (1394167052,), (1394167088,), (1394167124,), (1394167190,), (1394167193,), (1394167196,), (1394167199,), (1394167307,), (1394167309,), (1394167310,), (1394167312,), (1394167315,), (1394167335,), (1394167337,), (1394167340,), (1394167349,), (1394167352,), (1394167391,), (1394167393,), (1394167395,), (1394167397,), (1394167452,), (1394167455,), (1394167459,), (1394167465,), (1394167472,), (1394167521,), (1394167523,), (1394167525,), (1394167528,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28479694 , 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=28479655 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 (28479694) result : ((1394167207,), (1394167208,), (1394167297,), (1394167298,), (1394167339,), (1394167361,), (1394167362,), (1394167379,), (1394167443,), (1394167484,), (1394167515,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28479655) result : ((1394165372,), (1394165384,), (1394165607,), (1394165619,), (1394165622,), (1394165625,), (1394165628,), (1394165631,), (1394165713,), (1394165728,), (1394165739,), (1394165744,), (1394165755,), (1394165777,), (1394165896,), (1394165929,), (1394165960,), (1394165993,), (1394166027,), (1394166395,), (1394166396,), (1394166397,), (1394166399,), (1394166403,), (1394166405,), (1394166606,), (1394166618,), (1394166652,), (1394166761,), (1394166765,), (1394166797,), (1394166838,), (1394166884,), (1394166957,), (1394166989,), (1394167019,), (1394167052,), (1394167088,), (1394167124,), (1394167190,), (1394167193,), (1394167196,), (1394167199,), (1394167307,), (1394167309,), (1394167310,), (1394167312,), (1394167315,), (1394167335,), (1394167337,), (1394167340,), (1394167349,), (1394167352,), (1394167391,), (1394167393,), (1394167395,), (1394167397,), (1394167452,), (1394167455,), (1394167459,), (1394167465,), (1394167472,), (1394167521,), (1394167523,), (1394167525,), (1394167528,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28479695 , 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=28479655 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 (28479695) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28479655) result : ((1394165372,), (1394165384,), (1394165607,), (1394165619,), (1394165622,), (1394165625,), (1394165628,), (1394165631,), (1394165713,), (1394165728,), (1394165739,), (1394165744,), (1394165755,), (1394165777,), (1394165896,), (1394165929,), (1394165960,), (1394165993,), (1394166027,), (1394166395,), (1394166396,), (1394166397,), (1394166399,), (1394166403,), (1394166405,), (1394166606,), (1394166618,), (1394166652,), (1394166761,), (1394166765,), (1394166797,), (1394166838,), (1394166884,), (1394166957,), (1394166989,), (1394167019,), (1394167052,), (1394167088,), (1394167124,), (1394167190,), (1394167193,), (1394167196,), (1394167199,), (1394167307,), (1394167309,), (1394167310,), (1394167312,), (1394167315,), (1394167335,), (1394167337,), (1394167340,), (1394167349,), (1394167352,), (1394167391,), (1394167393,), (1394167395,), (1394167397,), (1394167452,), (1394167455,), (1394167459,), (1394167465,), (1394167472,), (1394167521,), (1394167523,), (1394167525,), (1394167528,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28479697 , 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=28479655 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 (28479697) result : ((1394166273,), (1394167451,), (1394167453,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28479655) result : ((1394165372,), (1394165384,), (1394165607,), (1394165619,), (1394165622,), (1394165625,), (1394165628,), (1394165631,), (1394165713,), (1394165728,), (1394165739,), (1394165744,), (1394165755,), (1394165777,), (1394165896,), (1394165929,), (1394165960,), (1394165993,), (1394166027,), (1394166395,), (1394166396,), (1394166397,), (1394166399,), (1394166403,), (1394166405,), (1394166606,), (1394166618,), (1394166652,), (1394166761,), (1394166765,), (1394166797,), (1394166838,), (1394166884,), (1394166957,), (1394166989,), (1394167019,), (1394167052,), (1394167088,), (1394167124,), (1394167190,), (1394167193,), (1394167196,), (1394167199,), (1394167307,), (1394167309,), (1394167310,), (1394167312,), (1394167315,), (1394167335,), (1394167337,), (1394167340,), (1394167349,), (1394167352,), (1394167391,), (1394167393,), (1394167395,), (1394167397,), (1394167452,), (1394167455,), (1394167459,), (1394167465,), (1394167472,), (1394167521,), (1394167523,), (1394167525,), (1394167528,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28479698 , 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=28479655 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 (28479698) result : ((1394167302,), (1394167342,), (1394167344,), (1394167369,), (1394167384,), (1394167516,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28479655) result : ((1394165372,), (1394165384,), (1394165607,), (1394165619,), (1394165622,), (1394165625,), (1394165628,), (1394165631,), (1394165713,), (1394165728,), (1394165739,), (1394165744,), (1394165755,), (1394165777,), (1394165896,), (1394165929,), (1394165960,), (1394165993,), (1394166027,), (1394166395,), (1394166396,), (1394166397,), (1394166399,), (1394166403,), (1394166405,), (1394166606,), (1394166618,), (1394166652,), (1394166761,), (1394166765,), (1394166797,), (1394166838,), (1394166884,), (1394166957,), (1394166989,), (1394167019,), (1394167052,), (1394167088,), (1394167124,), (1394167190,), (1394167193,), (1394167196,), (1394167199,), (1394167307,), (1394167309,), (1394167310,), (1394167312,), (1394167315,), (1394167335,), (1394167337,), (1394167340,), (1394167349,), (1394167352,), (1394167391,), (1394167393,), (1394167395,), (1394167397,), (1394167452,), (1394167455,), (1394167459,), (1394167465,), (1394167472,), (1394167521,), (1394167523,), (1394167525,), (1394167528,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28479699 , 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=28479655 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 (28479699) result : ((1394167304,), (1394167305,), (1394167346,), (1394167347,), (1394167370,), (1394167371,), (1394167385,), (1394167446,), (1394167447,), (1394167503,), (1394167517,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28479655) result : ((1394165372,), (1394165384,), (1394165607,), (1394165619,), (1394165622,), (1394165625,), (1394165628,), (1394165631,), (1394165713,), (1394165728,), (1394165739,), (1394165744,), (1394165755,), (1394165777,), (1394165896,), (1394165929,), (1394165960,), (1394165993,), (1394166027,), (1394166395,), (1394166396,), (1394166397,), (1394166399,), (1394166403,), (1394166405,), (1394166606,), (1394166618,), (1394166652,), (1394166761,), (1394166765,), (1394166797,), (1394166838,), (1394166884,), (1394166957,), (1394166989,), (1394167019,), (1394167052,), (1394167088,), (1394167124,), (1394167190,), (1394167193,), (1394167196,), (1394167199,), (1394167307,), (1394167309,), (1394167310,), (1394167312,), (1394167315,), (1394167335,), (1394167337,), (1394167340,), (1394167349,), (1394167352,), (1394167391,), (1394167393,), (1394167395,), (1394167397,), (1394167452,), (1394167455,), (1394167459,), (1394167465,), (1394167472,), (1394167521,), (1394167523,), (1394167525,), (1394167528,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28479701 , 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=28479655 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 (28479701) result : ((1394166263,), (1394167210,), (1394167211,), (1394167299,), (1394167300,), (1394167341,), (1394167363,), (1394167365,), (1394167381,), (1394167382,), (1394167444,), (1394167501,), (1394167502,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28479655) result : ((1394165372,), (1394165384,), (1394165607,), (1394165619,), (1394165622,), (1394165625,), (1394165628,), (1394165631,), (1394165713,), (1394165728,), (1394165739,), (1394165744,), (1394165755,), (1394165777,), (1394165896,), (1394165929,), (1394165960,), (1394165993,), (1394166027,), (1394166395,), (1394166396,), (1394166397,), (1394166399,), (1394166403,), (1394166405,), (1394166606,), (1394166618,), (1394166652,), (1394166761,), (1394166765,), (1394166797,), (1394166838,), (1394166884,), (1394166957,), (1394166989,), (1394167019,), (1394167052,), (1394167088,), (1394167124,), (1394167190,), (1394167193,), (1394167196,), (1394167199,), (1394167307,), (1394167309,), (1394167310,), (1394167312,), (1394167315,), (1394167335,), (1394167337,), (1394167340,), (1394167349,), (1394167352,), (1394167391,), (1394167393,), (1394167395,), (1394167397,), (1394167452,), (1394167455,), (1394167459,), (1394167465,), (1394167472,), (1394167521,), (1394167523,), (1394167525,), (1394167528,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28479702 , 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=28479655 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 (28479702) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28479655) result : ((1394165372,), (1394165384,), (1394165607,), (1394165619,), (1394165622,), (1394165625,), (1394165628,), (1394165631,), (1394165713,), (1394165728,), (1394165739,), (1394165744,), (1394165755,), (1394165777,), (1394165896,), (1394165929,), (1394165960,), (1394165993,), (1394166027,), (1394166395,), (1394166396,), (1394166397,), (1394166399,), (1394166403,), (1394166405,), (1394166606,), (1394166618,), (1394166652,), (1394166761,), (1394166765,), (1394166797,), (1394166838,), (1394166884,), (1394166957,), (1394166989,), (1394167019,), (1394167052,), (1394167088,), (1394167124,), (1394167190,), (1394167193,), (1394167196,), (1394167199,), (1394167307,), (1394167309,), (1394167310,), (1394167312,), (1394167315,), (1394167335,), (1394167337,), (1394167340,), (1394167349,), (1394167352,), (1394167391,), (1394167393,), (1394167395,), (1394167397,), (1394167452,), (1394167455,), (1394167459,), (1394167465,), (1394167472,), (1394167521,), (1394167523,), (1394167525,), (1394167528,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28479703 , 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=28479655 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 (28479703) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28479655) result : ((1394165372,), (1394165384,), (1394165607,), (1394165619,), (1394165622,), (1394165625,), (1394165628,), (1394165631,), (1394165713,), (1394165728,), (1394165739,), (1394165744,), (1394165755,), (1394165777,), (1394165896,), (1394165929,), (1394165960,), (1394165993,), (1394166027,), (1394166395,), (1394166396,), (1394166397,), (1394166399,), (1394166403,), (1394166405,), (1394166606,), (1394166618,), (1394166652,), (1394166761,), (1394166765,), (1394166797,), (1394166838,), (1394166884,), (1394166957,), (1394166989,), (1394167019,), (1394167052,), (1394167088,), (1394167124,), (1394167190,), (1394167193,), (1394167196,), (1394167199,), (1394167307,), (1394167309,), (1394167310,), (1394167312,), (1394167315,), (1394167335,), (1394167337,), (1394167340,), (1394167349,), (1394167352,), (1394167391,), (1394167393,), (1394167395,), (1394167397,), (1394167452,), (1394167455,), (1394167459,), (1394167465,), (1394167472,), (1394167521,), (1394167523,), (1394167525,), (1394167528,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28479705 , 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=28479655 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 (28479705) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28479655) result : ((1394165372,), (1394165384,), (1394165607,), (1394165619,), (1394165622,), (1394165625,), (1394165628,), (1394165631,), (1394165713,), (1394165728,), (1394165739,), (1394165744,), (1394165755,), (1394165777,), (1394165896,), (1394165929,), (1394165960,), (1394165993,), (1394166027,), (1394166395,), (1394166396,), (1394166397,), (1394166399,), (1394166403,), (1394166405,), (1394166606,), (1394166618,), (1394166652,), (1394166761,), (1394166765,), (1394166797,), (1394166838,), (1394166884,), (1394166957,), (1394166989,), (1394167019,), (1394167052,), (1394167088,), (1394167124,), (1394167190,), (1394167193,), (1394167196,), (1394167199,), (1394167307,), (1394167309,), (1394167310,), (1394167312,), (1394167315,), (1394167335,), (1394167337,), (1394167340,), (1394167349,), (1394167352,), (1394167391,), (1394167393,), (1394167395,), (1394167397,), (1394167452,), (1394167455,), (1394167459,), (1394167465,), (1394167472,), (1394167521,), (1394167523,), (1394167525,), (1394167528,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=28479655 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','kraft','environnement','papier','mal_croppe','flou','cartonnette','Teint_Dans_La_Masse','plastique','Carton_gris','metal','autre_refus')) 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`=28479655 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','kraft','environnement','papier','mal_croppe','flou','cartonnette','Teint_Dans_La_Masse','plastique','Carton_gris','metal','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 28479655, 'sub_port_id': 28479715, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295083, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 30)}, 'papier': {'main_port_id': 28479655, 'sub_port_id': 28479716, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295084, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 30)}, 'Carton_brun': {'main_port_id': 28479655, 'sub_port_id': 28479717, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295085, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 28479655, 'sub_port_id': 28479718, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295086, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 30)}, 'mal_croppe': {'main_port_id': 28479655, 'sub_port_id': 28479719, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295087, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 30)}, 'kraft': {'main_port_id': 28479655, 'sub_port_id': 28479720, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295088, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 30)}, 'Carton_gris': {'main_port_id': 28479655, 'sub_port_id': 28479721, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295089, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 30)}, 'cartonnette': {'main_port_id': 28479655, 'sub_port_id': 28479722, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295090, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 30)}, 'autre_refus': {'main_port_id': 28479655, 'sub_port_id': 28479723, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295091, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 30)}, 'environnement': {'main_port_id': 28479655, 'sub_port_id': 28479724, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295092, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 30)}, 'metal': {'main_port_id': 28479655, 'sub_port_id': 28479726, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295093, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 30)}, 'flou': {'main_port_id': 28479655, 'sub_port_id': 28479727, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19295094, 'last_updated_at': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 11, 13, 8, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 11, 13, 8, 3, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28479715,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28479690 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28479716,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28479691 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28479717,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28479693 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28479718,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28479694 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28479719,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28479695 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28479720,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28479697 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28479721,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28479698 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28479722,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28479699 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28479723,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28479701 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28479724,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28479702 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28479726,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28479703 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28479727,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28479705 lien utilise dans velours : https://marlene.fotonower.com/velours/28479715,28479716,28479717,28479718,28479719,28479720,28479721,28479722,28479723,28479724,28479726,28479727?tags=plastique,papier,Carton_brun,Teint_Dans_La_Masse,mal_croppe,kraft,Carton_gris,cartonnette,autre_refus,environnement,metal,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28479655]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1394167528, 1394167525, 1394167523, 1394167521, 1394167472, 1394167465, 1394167459, 1394167455, 1394167452] map_info['map_portfolio_photo'] : {28479655: [1394167528, 1394167525, 1394167523, 1394167521, 1394167472, 1394167465, 1394167459, 1394167455, 1394167452, 1394167397, 1394167395, 1394167393, 1394167391, 1394167352, 1394167349, 1394167340, 1394167337, 1394167335, 1394167315, 1394167312, 1394167310, 1394167309, 1394167307, 1394167199, 1394167196, 1394167193, 1394167190, 1394167124, 1394167088, 1394167052, 1394167019, 1394166989, 1394166957, 1394166884, 1394166838, 1394166797, 1394166765, 1394166761, 1394166652, 1394166618, 1394166606, 1394166405, 1394166403, 1394166399, 1394166397, 1394166396, 1394166395, 1394166027, 1394165993, 1394165960, 1394165929, 1394165896, 1394165777, 1394165755, 1394165744, 1394165739, 1394165728, 1394165713, 1394165631, 1394165628, 1394165625, 1394165622, 1394165619, 1394165607, 1394165384, 1394165372]} final : False mtd_id 4302 list_pids : [1394167528, 1394167525, 1394167523, 1394167521, 1394167472, 1394167465, 1394167459, 1394167455, 1394167452] Looping around the photos to save general results len do output : 1 /28479655. 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, '4040396') ('4302', '28479655', '1394167528', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167525', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167523', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167521', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167472', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167465', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167459', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167455', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167452', None, None, None, None, None, '4040396') 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', None, '28479655', "{'plastique': 28479690, 'papier': 28479691, 'Carton_brun': 28479693, 'Teint_Dans_La_Masse': 28479694, 'mal_croppe': 28479695, 'kraft': 28479697, 'Carton_gris': 28479698, 'cartonnette': 28479699, 'autre_refus': 28479701, 'environnement': 28479702, 'metal': 28479703, 'flou': 28479705}", None, None, None, None, '4040396'), ('4302', '28479655', '1394167528', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167525', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167523', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167521', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167472', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167465', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167459', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167455', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167452', None, None, None, None, None, '4040396')] time used for this insertion : 0.01347804069519043 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6248209476470947 time spend to save output : 0.013853788375854492 total time spend for step 1 : 1.6386747360229492 step2:final Thu Nov 13 08:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (28479655) 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 28479655 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1394165384,1394165372,1394165631,1394165628,1394165625,1394165622,1394165619,1394165607,1394165777,1394165755,1394165744,1394165739,1394165728,1394165713,1394166027,1394165993,1394165960,1394165929,1394165896,1394166405,1394166403,1394166399,1394166397,1394166396,1394166395,1394166652,1394166618,1394166606,1394166884,1394166838,1394166797,1394166765,1394166761,1394167124,1394167088,1394167052,1394167019,1394166989,1394166957,1394167199,1394167196,1394167193,1394167190,1394167315,1394167312,1394167310,1394167309,1394167307,1394167352,1394167349,1394167340,1394167337,1394167335,1394167397,1394167395,1394167393,1394167391,1394167472,1394167465,1394167459,1394167455,1394167452,1394167528,1394167525,1394167523,1394167521); 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([28479655]) Inside saveOutput : final : False verbose : True original output for save of step final : {1394167528: ('0.04790533307209821',), 1394167525: ('0.04790533307209821',), 1394167523: ('0.04790533307209821',), 1394167521: ('0.04790533307209821',), 1394167472: ('0.04790533307209821',), 1394167465: ('0.04790533307209821',), 1394167459: ('0.04790533307209821',), 1394167455: ('0.04790533307209821',), 1394167452: ('0.04790533307209821',)} new output for save of step final : {1394167528: ('0.04790533307209821',), 1394167525: ('0.04790533307209821',), 1394167523: ('0.04790533307209821',), 1394167521: ('0.04790533307209821',), 1394167472: ('0.04790533307209821',), 1394167465: ('0.04790533307209821',), 1394167459: ('0.04790533307209821',), 1394167455: ('0.04790533307209821',), 1394167452: ('0.04790533307209821',)} [1394167528, 1394167525, 1394167523, 1394167521, 1394167472, 1394167465, 1394167459, 1394167455, 1394167452] map_info['map_portfolio_photo'] : {28479655: [1394167528, 1394167525, 1394167523, 1394167521, 1394167472, 1394167465, 1394167459, 1394167455, 1394167452, 1394167397, 1394167395, 1394167393, 1394167391, 1394167352, 1394167349, 1394167340, 1394167337, 1394167335, 1394167315, 1394167312, 1394167310, 1394167309, 1394167307, 1394167199, 1394167196, 1394167193, 1394167190, 1394167124, 1394167088, 1394167052, 1394167019, 1394166989, 1394166957, 1394166884, 1394166838, 1394166797, 1394166765, 1394166761, 1394166652, 1394166618, 1394166606, 1394166405, 1394166403, 1394166399, 1394166397, 1394166396, 1394166395, 1394166027, 1394165993, 1394165960, 1394165929, 1394165896, 1394165777, 1394165755, 1394165744, 1394165739, 1394165728, 1394165713, 1394165631, 1394165628, 1394165625, 1394165622, 1394165619, 1394165607, 1394165384, 1394165372]} final : False mtd_id 4302 list_pids : [1394167528, 1394167525, 1394167523, 1394167521, 1394167472, 1394167465, 1394167459, 1394167455, 1394167452] Looping around the photos to save general results len do output : 9 /1394167528.Didn't retrieve data . /1394167525.Didn't retrieve data . /1394167523.Didn't retrieve data . /1394167521.Didn't retrieve data . /1394167472.Didn't retrieve data . /1394167465.Didn't retrieve data . /1394167459.Didn't retrieve data . /1394167455.Didn't retrieve data . /1394167452.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, '4040396') ('4302', '28479655', '1394167528', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167525', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167523', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167521', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167472', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167465', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167459', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167455', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167452', None, None, None, None, None, '4040396') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '28479655', '1394167528', '0.04790533307209821', None, None, None, None, '4040396'), ('4302', '28479655', '1394167525', '0.04790533307209821', None, None, None, None, '4040396'), ('4302', '28479655', '1394167523', '0.04790533307209821', None, None, None, None, '4040396'), ('4302', '28479655', '1394167521', '0.04790533307209821', None, None, None, None, '4040396'), ('4302', '28479655', '1394167472', '0.04790533307209821', None, None, None, None, '4040396'), ('4302', '28479655', '1394167465', '0.04790533307209821', None, None, None, None, '4040396'), ('4302', '28479655', '1394167459', '0.04790533307209821', None, None, None, None, '4040396'), ('4302', '28479655', '1394167455', '0.04790533307209821', None, None, None, None, '4040396'), ('4302', '28479655', '1394167452', '0.04790533307209821', None, None, None, None, '4040396')] time used for this insertion : 0.01618361473083496 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07374811172485352 time spend to save output : 0.01685166358947754 total time spend for step 2 : 0.09059977531433105 step3:velours_tree Thu Nov 13 08:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28479655: [{'plastique': 28479690, 'papier': 28479691, 'Carton_brun': 28479693, 'Teint_Dans_La_Masse': 28479694, 'mal_croppe': 28479695, 'kraft': 28479697, 'Carton_gris': 28479698, 'cartonnette': 28479699, 'autre_refus': 28479701, 'environnement': 28479702, 'metal': 28479703, 'flou': 28479705}]} input_args_next_step : {28479655: ()} output_args : {28479655: [{'plastique': 28479690, 'papier': 28479691, 'Carton_brun': 28479693, 'Teint_Dans_La_Masse': 28479694, 'mal_croppe': 28479695, 'kraft': 28479697, 'Carton_gris': 28479698, 'cartonnette': 28479699, 'autre_refus': 28479701, 'environnement': 28479702, 'metal': 28479703, 'flou': 28479705}]} args : 28479655 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': 28479690, 'papier': 28479691, 'Carton_brun': 28479693, 'Teint_Dans_La_Masse': 28479694, 'mal_croppe': 28479695, 'kraft': 28479697, 'Carton_gris': 28479698, 'cartonnette': 28479699, 'autre_refus': 28479701, 'environnement': 28479702, 'metal': 28479703, 'flou': 28479705},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28479655) 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([28479655]) 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.3166797161102295 time spend to save output : 7.510185241699219e-05 total time spend for step 3 : 0.3167548179626465 step4:send_mail_cod Thu Nov 13 08:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1394167528: ('0.04790533307209821',), 1394167525: ('0.04790533307209821',), 1394167523: ('0.04790533307209821',), 1394167521: ('0.04790533307209821',), 1394167472: ('0.04790533307209821',), 1394167465: ('0.04790533307209821',), 1394167459: ('0.04790533307209821',), 1394167455: ('0.04790533307209821',), 1394167452: ('0.04790533307209821',)} input_args_next_step : {1394167528: ()} output_args : {1394167528: ('0.04790533307209821',), 1394167525: ('0.04790533307209821',), 1394167523: ('0.04790533307209821',), 1394167521: ('0.04790533307209821',), 1394167472: ('0.04790533307209821',), 1394167465: ('0.04790533307209821',), 1394167459: ('0.04790533307209821',), 1394167455: ('0.04790533307209821',), 1394167452: ('0.04790533307209821',)} args : 1394167528 depend.output_id : 0 input_args_next_step : {1394167528: ('0.04790533307209821',), 1394167525: ()} output_args : {1394167528: ('0.04790533307209821',), 1394167525: ('0.04790533307209821',), 1394167523: ('0.04790533307209821',), 1394167521: ('0.04790533307209821',), 1394167472: ('0.04790533307209821',), 1394167465: ('0.04790533307209821',), 1394167459: ('0.04790533307209821',), 1394167455: ('0.04790533307209821',), 1394167452: ('0.04790533307209821',)} args : 1394167525 depend.output_id : 0 input_args_next_step : {1394167528: ('0.04790533307209821',), 1394167525: ('0.04790533307209821',), 1394167523: ()} output_args : {1394167528: ('0.04790533307209821',), 1394167525: ('0.04790533307209821',), 1394167523: ('0.04790533307209821',), 1394167521: ('0.04790533307209821',), 1394167472: ('0.04790533307209821',), 1394167465: ('0.04790533307209821',), 1394167459: ('0.04790533307209821',), 1394167455: ('0.04790533307209821',), 1394167452: ('0.04790533307209821',)} args : 1394167523 depend.output_id : 0 input_args_next_step : {1394167528: ('0.04790533307209821',), 1394167525: ('0.04790533307209821',), 1394167523: ('0.04790533307209821',), 1394167521: ()} output_args : {1394167528: ('0.04790533307209821',), 1394167525: ('0.04790533307209821',), 1394167523: ('0.04790533307209821',), 1394167521: ('0.04790533307209821',), 1394167472: ('0.04790533307209821',), 1394167465: ('0.04790533307209821',), 1394167459: ('0.04790533307209821',), 1394167455: ('0.04790533307209821',), 1394167452: ('0.04790533307209821',)} args : 1394167521 depend.output_id : 0 input_args_next_step : {1394167528: ('0.04790533307209821',), 1394167525: ('0.04790533307209821',), 1394167523: ('0.04790533307209821',), 1394167521: ('0.04790533307209821',), 1394167472: ()} output_args : {1394167528: ('0.04790533307209821',), 1394167525: ('0.04790533307209821',), 1394167523: ('0.04790533307209821',), 1394167521: ('0.04790533307209821',), 1394167472: ('0.04790533307209821',), 1394167465: ('0.04790533307209821',), 1394167459: ('0.04790533307209821',), 1394167455: ('0.04790533307209821',), 1394167452: ('0.04790533307209821',)} args : 1394167472 depend.output_id : 0 input_args_next_step : {1394167528: ('0.04790533307209821',), 1394167525: ('0.04790533307209821',), 1394167523: ('0.04790533307209821',), 1394167521: ('0.04790533307209821',), 1394167472: ('0.04790533307209821',), 1394167465: ()} output_args : {1394167528: ('0.04790533307209821',), 1394167525: ('0.04790533307209821',), 1394167523: ('0.04790533307209821',), 1394167521: ('0.04790533307209821',), 1394167472: ('0.04790533307209821',), 1394167465: ('0.04790533307209821',), 1394167459: ('0.04790533307209821',), 1394167455: ('0.04790533307209821',), 1394167452: ('0.04790533307209821',)} args : 1394167465 depend.output_id : 0 input_args_next_step : {1394167528: ('0.04790533307209821',), 1394167525: ('0.04790533307209821',), 1394167523: ('0.04790533307209821',), 1394167521: ('0.04790533307209821',), 1394167472: ('0.04790533307209821',), 1394167465: ('0.04790533307209821',), 1394167459: ()} output_args : {1394167528: ('0.04790533307209821',), 1394167525: ('0.04790533307209821',), 1394167523: ('0.04790533307209821',), 1394167521: ('0.04790533307209821',), 1394167472: ('0.04790533307209821',), 1394167465: ('0.04790533307209821',), 1394167459: ('0.04790533307209821',), 1394167455: ('0.04790533307209821',), 1394167452: ('0.04790533307209821',)} args : 1394167459 depend.output_id : 0 input_args_next_step : {1394167528: ('0.04790533307209821',), 1394167525: ('0.04790533307209821',), 1394167523: ('0.04790533307209821',), 1394167521: ('0.04790533307209821',), 1394167472: ('0.04790533307209821',), 1394167465: ('0.04790533307209821',), 1394167459: ('0.04790533307209821',), 1394167455: ()} output_args : {1394167528: ('0.04790533307209821',), 1394167525: ('0.04790533307209821',), 1394167523: ('0.04790533307209821',), 1394167521: ('0.04790533307209821',), 1394167472: ('0.04790533307209821',), 1394167465: ('0.04790533307209821',), 1394167459: ('0.04790533307209821',), 1394167455: ('0.04790533307209821',), 1394167452: ('0.04790533307209821',)} args : 1394167455 depend.output_id : 0 input_args_next_step : {1394167528: ('0.04790533307209821',), 1394167525: ('0.04790533307209821',), 1394167523: ('0.04790533307209821',), 1394167521: ('0.04790533307209821',), 1394167472: ('0.04790533307209821',), 1394167465: ('0.04790533307209821',), 1394167459: ('0.04790533307209821',), 1394167455: ('0.04790533307209821',), 1394167452: ()} output_args : {1394167528: ('0.04790533307209821',), 1394167525: ('0.04790533307209821',), 1394167523: ('0.04790533307209821',), 1394167521: ('0.04790533307209821',), 1394167472: ('0.04790533307209821',), 1394167465: ('0.04790533307209821',), 1394167459: ('0.04790533307209821',), 1394167455: ('0.04790533307209821',), 1394167452: ('0.04790533307209821',)} args : 1394167452 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 : {28479655: [{'plastique': 28479690, 'papier': 28479691, 'Carton_brun': 28479693, 'Teint_Dans_La_Masse': 28479694, 'mal_croppe': 28479695, 'kraft': 28479697, 'Carton_gris': 28479698, 'cartonnette': 28479699, 'autre_refus': 28479701, 'environnement': 28479702, 'metal': 28479703, 'flou': 28479705}]} input_args_next_step : {1394167528: ('0.04790533307209821',), 1394167525: ('0.04790533307209821',), 1394167523: ('0.04790533307209821',), 1394167521: ('0.04790533307209821',), 1394167472: ('0.04790533307209821',), 1394167465: ('0.04790533307209821',), 1394167459: ('0.04790533307209821',), 1394167455: ('0.04790533307209821',), 1394167452: ('0.04790533307209821',), 28479655: ()} output_args : {28479655: [{'plastique': 28479690, 'papier': 28479691, 'Carton_brun': 28479693, 'Teint_Dans_La_Masse': 28479694, 'mal_croppe': 28479695, 'kraft': 28479697, 'Carton_gris': 28479698, 'cartonnette': 28479699, 'autre_refus': 28479701, 'environnement': 28479702, 'metal': 28479703, 'flou': 28479705}]} args : 28479655 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 :10, first value : ('0.04790533307209821',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28479655) 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 (1394167528,1394167525,1394167523,1394167521,1394167472,1394167465,1394167459,1394167455,1394167452) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1394167452 begin to download photo : 1394167459 begin to download photo : 1394167472 begin to download photo : 1394167523 begin to download photo : 1394167528 download finish for photo 1394167523 begin to download photo : 1394167525 download finish for photo 1394167452 begin to download photo : 1394167455 download finish for photo 1394167472 begin to download photo : 1394167521 download finish for photo 1394167528 download finish for photo 1394167459 begin to download photo : 1394167465 download finish for photo 1394167455 download finish for photo 1394167525 download finish for photo 1394167521 download finish for photo 1394167465 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 : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P28479655_13-11-2025_08_15_01.pdf 28479690 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=28479690 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394167390: '1763017886_2501474_1394165755_bc7c92ccca26e097ee12e2124fd76895_rle_crop_4032075233_0.png', 1394167448: '1763017947_2505168_1394167199_79659882f71af5f17804fef40f107789_rle_crop_4032076060_0.png', 1394167449: '1763017947_2505168_1394166957_057a78f84624b72ef5987654766327ab_rle_crop_4032076175_0.png', 1394167518: '1763018005_2508708_1394165896_ec9942967e98d4e7f1b10c4ed8c6ad63_rle_crop_4032076591_0.png', 1394167519: '1763018005_2508708_1394165896_ec9942967e98d4e7f1b10c4ed8c6ad63_rle_crop_4032076583_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/8f38333d84c73aa70594fae9b0c888d4_60289477.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/fa33995e6ea14e0379c6697eab4ad5fa_40332221.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/26236f8ba5c2b77677271275993a16c0_23265533.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/6bd7f6cac550c154127216e1cb2a75b9_11271267.png change filename to text .imagette284796901763018101/ imagette284796901763018101/1763017947_2505168_1394166957_057a78f84624b72ef5987654766327ab_rle_crop_4032076175_0.png.png imagette284796901763018101/1763017886_2501474_1394165755_bc7c92ccca26e097ee12e2124fd76895_rle_crop_4032075233_0.png.png imagette284796901763018101/1763018005_2508708_1394165896_ec9942967e98d4e7f1b10c4ed8c6ad63_rle_crop_4032076591_0.png.png imagette284796901763018101/1763017947_2505168_1394167199_79659882f71af5f17804fef40f107789_rle_crop_4032076060_0.png.png imagette284796901763018101/1763018005_2508708_1394165896_ec9942967e98d4e7f1b10c4ed8c6ad63_rle_crop_4032076583_0.png.png imagette284796951763018101/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/e5aa90e1b8b2c008cae92e8d68cf205b_15258683.png imagette284796901763018101 28479695 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=28479695 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette284796951763018101 28479697 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=28479697 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394166273: '1763017466_2480850_1394165384_9fcc0a9db6097660007c53627ba9f968_rle_crop_4032068620_0.png', 1394167451: '1763017947_2505168_1394167088_7542087c3b439a35b85829610accb1d7_rle_crop_4032076070_0.png', 1394167453: '1763017947_2505168_1394167052_cd9898e92e2a28d2e7f941d342b3f2fc_rle_crop_4032076085_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/7b2e370e0e03bb60a134ed469ec8a437_90497698.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/ee4fbd1b408eed7b485222fa9a8c7ab0_53780355.png change filename to text .imagette284796971763018101/ imagette284796971763018101/1763017466_2480850_1394165384_9fcc0a9db6097660007c53627ba9f968_rle_crop_4032068620_0.png.png imagette284796971763018101/1763017947_2505168_1394167052_cd9898e92e2a28d2e7f941d342b3f2fc_rle_crop_4032076085_0.png.png imagette284796971763018101/1763017947_2505168_1394167088_7542087c3b439a35b85829610accb1d7_rle_crop_4032076070_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/90071202b13e281e87b3a01f887ec704_25888878.png imagette284796971763018101 28479699 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=28479699 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394167304: '1763017767_2495323_1394166652_5b9e9893173d43fb9dba6c8acc914925_rle_crop_4032073146_0.png', 1394167305: '1763017767_2495323_1394166395_d8caa66b9a3cebc2745f4f990dc6f81c_rle_crop_4032073217_0.png', 1394167346: '1763017825_2498769_1394166765_289812652fa03b9a00f24be1061d8197_rle_crop_4032074629_0.png', 1394167347: '1763017825_2498769_1394166761_e6833d140e711a75df0af0e486b7e006_rle_crop_4032074646_0.png', 1394167370: '1763017866_2500872_1394166652_5b9e9893173d43fb9dba6c8acc914925_rle_crop_4032073146_0.png', 1394167371: '1763017866_2500872_1394166395_d8caa66b9a3cebc2745f4f990dc6f81c_rle_crop_4032073217_0.png', 1394167385: '1763017886_2501474_1394165755_bc7c92ccca26e097ee12e2124fd76895_rle_crop_4032075236_0.png', 1394167446: '1763017947_2505168_1394167088_7542087c3b439a35b85829610accb1d7_rle_crop_4032076073_0.png', 1394167447: '1763017947_2505168_1394167052_cd9898e92e2a28d2e7f941d342b3f2fc_rle_crop_4032076089_0.png', 1394167503: '1763017985_2507472_1394167196_d081bd603dce725aae74430d6679bb58_rle_crop_4032076352_0.png', 1394167517: '1763018005_2508708_1394166405_bd434f72ea7718945bb0a9f39bb6ee9f_rle_crop_4032076561_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/f9c129e0b33aa5a7f619d7f34df70540_26096982.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/bb529c78f59732f3e3d09f8cf0d3f636_86191946.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/54ee3dea1d7a931d8b1e182fa4b42995_60511365.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/7e0b7701f98fdb40acb1434d6e3b1d8f_81063388.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/f9c129e0b33aa5a7f619d7f34df70540_24697929.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/bb529c78f59732f3e3d09f8cf0d3f636_2691946.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/d1df80b4ad873bba0143e80b276cfd3b_87336716.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/fe29e5b2fc4533085d55779d237dd150_22476211.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/f5843c5924ba62c309cc8af9f03f4e15_23679926.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/450b8024f2214bbefeb28f2655f4a6fe_44334234.png change filename to text .imagette284796991763018101/ imagette284796991763018101/1763017825_2498769_1394166761_e6833d140e711a75df0af0e486b7e006_rle_crop_4032074646_0.png.png imagette284796991763018101/1763017767_2495323_1394166652_5b9e9893173d43fb9dba6c8acc914925_rle_crop_4032073146_0.png.png imagette284796991763018101/1763017947_2505168_1394167088_7542087c3b439a35b85829610accb1d7_rle_crop_4032076073_0.png.png imagette284796991763018101/1763017825_2498769_1394166765_289812652fa03b9a00f24be1061d8197_rle_crop_4032074629_0.png.png imagette284796991763018101/1763017985_2507472_1394167196_d081bd603dce725aae74430d6679bb58_rle_crop_4032076352_0.png.png imagette284796991763018101/1763017947_2505168_1394167052_cd9898e92e2a28d2e7f941d342b3f2fc_rle_crop_4032076089_0.png.png imagette284796991763018101/1763017866_2500872_1394166652_5b9e9893173d43fb9dba6c8acc914925_rle_crop_4032073146_0.png.png imagette284796991763018101/1763018005_2508708_1394166405_bd434f72ea7718945bb0a9f39bb6ee9f_rle_crop_4032076561_0.png.png imagette284796991763018101/1763017886_2501474_1394165755_bc7c92ccca26e097ee12e2124fd76895_rle_crop_4032075236_0.png.png imagette284796991763018101/1763017866_2500872_1394166395_d8caa66b9a3cebc2745f4f990dc6f81c_rle_crop_4032073217_0.png.png imagette284796991763018101/1763017767_2495323_1394166395_d8caa66b9a3cebc2745f4f990dc6f81c_rle_crop_4032073217_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/7d7a4cb6ee929bffefd5628a2525376b_44680533.png imagette284796991763018101 28479701 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=28479701 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394166263: '1763017466_2480850_1394165384_9fcc0a9db6097660007c53627ba9f968_rle_crop_4032068619_0.png', 1394167210: '1763017745_2494156_1394166618_28a675aa99d16ab0349e38aa38413457_rle_crop_4032072936_0.png', 1394167211: '1763017745_2494156_1394166618_28a675aa99d16ab0349e38aa38413457_rle_crop_4032072935_0.png', 1394167299: '1763017767_2495323_1394166652_5b9e9893173d43fb9dba6c8acc914925_rle_crop_4032073142_0.png', 1394167300: '1763017767_2495323_1394166399_8a0792a4dd777f42ed3c61cc23cf0584_rle_crop_4032073175_0.png', 1394167341: '1763017825_2498769_1394166765_289812652fa03b9a00f24be1061d8197_rle_crop_4032074630_0.png', 1394167363: '1763017866_2500872_1394166652_5b9e9893173d43fb9dba6c8acc914925_rle_crop_4032073142_0.png', 1394167365: '1763017866_2500872_1394166399_8a0792a4dd777f42ed3c61cc23cf0584_rle_crop_4032073175_0.png', 1394167381: '1763017886_2501474_1394165755_bc7c92ccca26e097ee12e2124fd76895_rle_crop_4032075235_0.png', 1394167382: '1763017886_2501474_1394165744_33e18facd3d10b56c5438c69e9b8c353_rle_crop_4032075247_0.png', 1394167444: '1763017947_2505168_1394166989_651c0b8bc5ccf29e68728f637f17cb55_rle_crop_4032076155_0.png', 1394167501: '1763017985_2507472_1394167196_d081bd603dce725aae74430d6679bb58_rle_crop_4032076350_0.png', 1394167502: '1763017985_2507472_1394167193_67b5cb96af16fac386fa31b4f95db3c3_rle_crop_4032076366_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/a8743869cd267643536bd7c0278c23fd_73929987.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/0eef16b9170f9ba561066fd6c6b4ab5f_22065723.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/bfa4090443653d04a99026f49e045a84_53176765.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/505b9a48d85dea34eedf9f1aeea09c87_86092484.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/ad9b3cdbfa772b30a50db34f1e7ff366_73842558.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/526e4718691989eb09549ef6841309e7_55678002.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/505b9a48d85dea34eedf9f1aeea09c87_30348567.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/ad9b3cdbfa772b30a50db34f1e7ff366_80678891.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/3644d76400d62babf7999c61694c07c5_16878430.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/18a26eccb6086013825b66cd45d78f60_78015676.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/2497e4d3ec541df895d1029cb2ff39f1_11332169.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/8a7716dfa862d34b24e296583b4da946_63245729.png change filename to text .imagette284797011763018102/ imagette284797011763018102/1763017886_2501474_1394165744_33e18facd3d10b56c5438c69e9b8c353_rle_crop_4032075247_0.png.png imagette284797011763018102/1763017886_2501474_1394165755_bc7c92ccca26e097ee12e2124fd76895_rle_crop_4032075235_0.png.png imagette284797011763018102/1763017985_2507472_1394167196_d081bd603dce725aae74430d6679bb58_rle_crop_4032076350_0.png.png imagette284797011763018102/1763017745_2494156_1394166618_28a675aa99d16ab0349e38aa38413457_rle_crop_4032072936_0.png.png imagette284797011763018102/1763017767_2495323_1394166652_5b9e9893173d43fb9dba6c8acc914925_rle_crop_4032073142_0.png.png imagette284797011763018102/1763017985_2507472_1394167193_67b5cb96af16fac386fa31b4f95db3c3_rle_crop_4032076366_0.png.png imagette284797011763018102/1763017767_2495323_1394166399_8a0792a4dd777f42ed3c61cc23cf0584_rle_crop_4032073175_0.png.png imagette284797011763018102/1763017825_2498769_1394166765_289812652fa03b9a00f24be1061d8197_rle_crop_4032074630_0.png.png imagette284797011763018102/1763017866_2500872_1394166652_5b9e9893173d43fb9dba6c8acc914925_rle_crop_4032073142_0.png.png imagette284797011763018102/1763017745_2494156_1394166618_28a675aa99d16ab0349e38aa38413457_rle_crop_4032072935_0.png.png imagette284797011763018102/1763017466_2480850_1394165384_9fcc0a9db6097660007c53627ba9f968_rle_crop_4032068619_0.png.png imagette284797011763018102/1763017866_2500872_1394166399_8a0792a4dd777f42ed3c61cc23cf0584_rle_crop_4032073175_0.png.png imagette284797011763018102/1763017947_2505168_1394166989_651c0b8bc5ccf29e68728f637f17cb55_rle_crop_4032076155_0.png.png imagette284797031763018103/ imagette284797051763018103/ wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/b1cc9cfbf01f6610abf348236dcbaadc_4080745.png imagette284797011763018102 28479703 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=28479703 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette284797031763018103 28479705 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=28479705 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette284797051763018103 28479693 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=28479693 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394167306: '1763017767_2495323_1394166396_72709cb46b5ee3f68965216e1df8715a_rle_crop_4032073205_0.png', 1394167372: '1763017866_2500872_1394166396_72709cb46b5ee3f68965216e1df8715a_rle_crop_4032073205_0.png', 1394167387: '1763017886_2501474_1394165739_ba1bc3fe8dd36c4c1c091d0f4c73282f_rle_crop_4032075264_0.png', 1394167388: '1763017886_2501474_1394165728_21b812201bffe6cb45cc3851c5179c70_rle_crop_4032075273_0.png', 1394167504: '1763017985_2507472_1394167196_d081bd603dce725aae74430d6679bb58_rle_crop_4032076356_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/09ede01dc9eaef4d0f01e4638a7e3b70_69566315.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/09ede01dc9eaef4d0f01e4638a7e3b70_74169005.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/4ea096f518682917673db91b34980538_75896826.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/ffef99991f4578b81e2a9c345b48b237_35116689.png change filename to text .imagette284796931763018103/ imagette284796931763018103/1763017886_2501474_1394165739_ba1bc3fe8dd36c4c1c091d0f4c73282f_rle_crop_4032075264_0.png.png imagette284796931763018103/1763017866_2500872_1394166396_72709cb46b5ee3f68965216e1df8715a_rle_crop_4032073205_0.png.png imagette284796931763018103/1763017985_2507472_1394167196_d081bd603dce725aae74430d6679bb58_rle_crop_4032076356_0.png.png imagette284796931763018103/1763017886_2501474_1394165728_21b812201bffe6cb45cc3851c5179c70_rle_crop_4032075273_0.png.png imagette284796931763018103/1763017767_2495323_1394166396_72709cb46b5ee3f68965216e1df8715a_rle_crop_4032073205_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/c3b4dc4d96729bee3db57e608fcde2f1_92595646.png imagette284796931763018103 28479694 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=28479694 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394167207: '1763017745_2494156_1394166618_28a675aa99d16ab0349e38aa38413457_rle_crop_4032072944_0.png', 1394167208: '1763017745_2494156_1394166606_f261b107c51fbb68f01216e78cb30ce2_rle_crop_4032072952_0.png', 1394167297: '1763017767_2495323_1394166399_8a0792a4dd777f42ed3c61cc23cf0584_rle_crop_4032073177_0.png', 1394167298: '1763017767_2495323_1394166397_a7c8bc010a60b933ae9b0543badf5f13_rle_crop_4032073192_0.png', 1394167339: '1763017825_2498769_1394166761_e6833d140e711a75df0af0e486b7e006_rle_crop_4032074647_0.png', 1394167361: '1763017866_2500872_1394166399_8a0792a4dd777f42ed3c61cc23cf0584_rle_crop_4032073177_0.png', 1394167362: '1763017866_2500872_1394166397_a7c8bc010a60b933ae9b0543badf5f13_rle_crop_4032073192_0.png', 1394167379: '1763017886_2501474_1394165755_bc7c92ccca26e097ee12e2124fd76895_rle_crop_4032075234_0.png', 1394167443: '1763017947_2505168_1394167052_cd9898e92e2a28d2e7f941d342b3f2fc_rle_crop_4032076090_0.png', 1394167484: '1763017985_2507472_1394167196_d081bd603dce725aae74430d6679bb58_rle_crop_4032076354_0.png', 1394167515: '1763018005_2508708_1394166405_bd434f72ea7718945bb0a9f39bb6ee9f_rle_crop_4032076559_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/ad247bca9e53b7caf3b65f90ad9255f6_12406650.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/530c2d9bf401b52ee764d3cec1e74b65_77119302.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/9e1287a5de804675594119db271a1452_67901086.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/fe3109f5a288ff31a6d6d250cd5644e4_641451.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/baba2a2b6e20dfaa1e12ec60bf3219b4_6752213.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/9e1287a5de804675594119db271a1452_81621805.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/fe3109f5a288ff31a6d6d250cd5644e4_7826906.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/890326cf01bd0688dbebb1fed0a1b6be_11311247.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/956cb55017408758645a6fe31abfb7e4_37756637.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/f48abc7bcae049b15163aa8985008e96_85266951.png change filename to text .imagette284796941763018103/ imagette284796941763018103/1763017947_2505168_1394167052_cd9898e92e2a28d2e7f941d342b3f2fc_rle_crop_4032076090_0.png.png imagette284796941763018103/1763017767_2495323_1394166397_a7c8bc010a60b933ae9b0543badf5f13_rle_crop_4032073192_0.png.png imagette284796941763018103/1763017985_2507472_1394167196_d081bd603dce725aae74430d6679bb58_rle_crop_4032076354_0.png.png imagette284796941763018103/1763017745_2494156_1394166606_f261b107c51fbb68f01216e78cb30ce2_rle_crop_4032072952_0.png.png imagette284796941763018103/1763017866_2500872_1394166397_a7c8bc010a60b933ae9b0543badf5f13_rle_crop_4032073192_0.png.png imagette284796941763018103/1763018005_2508708_1394166405_bd434f72ea7718945bb0a9f39bb6ee9f_rle_crop_4032076559_0.png.png imagette284796941763018103/1763017825_2498769_1394166761_e6833d140e711a75df0af0e486b7e006_rle_crop_4032074647_0.png.png imagette284796941763018103/1763017886_2501474_1394165755_bc7c92ccca26e097ee12e2124fd76895_rle_crop_4032075234_0.png.png imagette284796941763018103/1763017866_2500872_1394166399_8a0792a4dd777f42ed3c61cc23cf0584_rle_crop_4032073177_0.png.png imagette284796941763018103/1763017745_2494156_1394166618_28a675aa99d16ab0349e38aa38413457_rle_crop_4032072944_0.png.png imagette284796941763018103/1763017767_2495323_1394166399_8a0792a4dd777f42ed3c61cc23cf0584_rle_crop_4032073177_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/bce3077084169336fbf5ae84ce2f4a51_48698445.png imagette284796941763018103 28479698 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=28479698 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1394167302: '1763017767_2495323_1394166399_8a0792a4dd777f42ed3c61cc23cf0584_rle_crop_4032073172_0.png', 1394167342: '1763017825_2498769_1394166797_d7cd1b134d3c7eae7e11a1c74a6ccdf4_rle_crop_4032074616_0.png', 1394167344: '1763017825_2498769_1394166761_e6833d140e711a75df0af0e486b7e006_rle_crop_4032074645_0.png', 1394167369: '1763017866_2500872_1394166399_8a0792a4dd777f42ed3c61cc23cf0584_rle_crop_4032073172_0.png', 1394167384: '1763017886_2501474_1394165728_21b812201bffe6cb45cc3851c5179c70_rle_crop_4032075275_0.png', 1394167516: '1763018005_2508708_1394166405_bd434f72ea7718945bb0a9f39bb6ee9f_rle_crop_4032076563_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/54e3561c9ef018c9ee3216b0bb52caeb_99758419.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/79eceeb3fd55141acc44fdf527628a24_13811947.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/658eced9d571bf7e3ee57446df14a699_49182553.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/54e3561c9ef018c9ee3216b0bb52caeb_92975024.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/18fe26f66c7ed7d2e823b0d41ee0e5de_22795679.png change filename to text .imagette284796981763018104/ imagette284796981763018104/1763018005_2508708_1394166405_bd434f72ea7718945bb0a9f39bb6ee9f_rle_crop_4032076563_0.png.png imagette284796981763018104/1763017825_2498769_1394166761_e6833d140e711a75df0af0e486b7e006_rle_crop_4032074645_0.png.png imagette284796981763018104/1763017825_2498769_1394166797_d7cd1b134d3c7eae7e11a1c74a6ccdf4_rle_crop_4032074616_0.png.png imagette284796981763018104/1763017767_2495323_1394166399_8a0792a4dd777f42ed3c61cc23cf0584_rle_crop_4032073172_0.png.png imagette284796981763018104/1763017866_2500872_1394166399_8a0792a4dd777f42ed3c61cc23cf0584_rle_crop_4032073172_0.png.png imagette284796981763018104/1763017886_2501474_1394165728_21b812201bffe6cb45cc3851c5179c70_rle_crop_4032075275_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/3d36a31fbef756c8de50fd8b35a1a684_30401286.png imagette284796981763018104 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28479655 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28479715,28479716,28479717,28479718,28479719,28479720,28479721,28479722,28479723,28479724,28479726,28479727?tags=plastique,papier,Carton_brun,Teint_Dans_La_Masse,mal_croppe,kraft,Carton_gris,cartonnette,autre_refus,environnement,metal,flou your option no_mail is active, we will not send the real mail to your client args[1394167528] : ('0.04790533307209821',) no score found for photo 1394167528 We are sending mail with results at report@fotonower.com args[1394167525] : ('0.04790533307209821',) no score found for photo 1394167525 We are sending mail with results at report@fotonower.com args[1394167523] : ('0.04790533307209821',) no score found for photo 1394167523 We are sending mail with results at report@fotonower.com args[1394167521] : ('0.04790533307209821',) no score found for photo 1394167521 We are sending mail with results at report@fotonower.com args[1394167472] : ('0.04790533307209821',) no score found for photo 1394167472 We are sending mail with results at report@fotonower.com args[1394167465] : ('0.04790533307209821',) no score found for photo 1394167465 We are sending mail with results at report@fotonower.com args[1394167459] : ('0.04790533307209821',) no score found for photo 1394167459 We are sending mail with results at report@fotonower.com args[1394167455] : ('0.04790533307209821',) no score found for photo 1394167455 We are sending mail with results at report@fotonower.com args[1394167452] : ('0.04790533307209821',) no score found for photo 1394167452 We are sending mail with results at report@fotonower.com refus_total : 0.04790533307209821 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=28479655 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_P28479655_13-11-2025_08_15_01.pdf results_Auto_P28479655_13-11-2025_08_15_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28479655_13-11-2025_08_15_01.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','28479655','results_Auto_P28479655_13-11-2025_08_15_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28479655_13-11-2025_08_15_01.pdf','pdf','','0.23','0.04790533307209821') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28479655]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1394167528, 1394167525, 1394167523, 1394167521, 1394167472, 1394167465, 1394167459, 1394167455, 1394167452] map_info['map_portfolio_photo'] : {28479655: [1394167528, 1394167525, 1394167523, 1394167521, 1394167472, 1394167465, 1394167459, 1394167455, 1394167452, 1394167397, 1394167395, 1394167393, 1394167391, 1394167352, 1394167349, 1394167340, 1394167337, 1394167335, 1394167315, 1394167312, 1394167310, 1394167309, 1394167307, 1394167199, 1394167196, 1394167193, 1394167190, 1394167124, 1394167088, 1394167052, 1394167019, 1394166989, 1394166957, 1394166884, 1394166838, 1394166797, 1394166765, 1394166761, 1394166652, 1394166618, 1394166606, 1394166405, 1394166403, 1394166399, 1394166397, 1394166396, 1394166395, 1394166027, 1394165993, 1394165960, 1394165929, 1394165896, 1394165777, 1394165755, 1394165744, 1394165739, 1394165728, 1394165713, 1394165631, 1394165628, 1394165625, 1394165622, 1394165619, 1394165607, 1394165384, 1394165372]} final : False mtd_id 4302 list_pids : [1394167528, 1394167525, 1394167523, 1394167521, 1394167472, 1394167465, 1394167459, 1394167455, 1394167452] 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, '4040396') ('4302', '28479655', '1394167528', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167525', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167523', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167521', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167472', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167465', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167459', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167455', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167452', None, None, None, None, None, '4040396') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28479655', '1394167528', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167525', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167523', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167521', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167472', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167465', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167459', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167455', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167452', None, None, None, None, None, '4040396')] time used for this insertion : 0.01338815689086914 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.4261863231658936 time spend to save output : 0.013687372207641602 total time spend for step 4 : 5.439873695373535 step5:split_time_score Thu Nov 13 08:15:06 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 : ['28479655'] 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 : [('28479655',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28479655) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1394167528: {'path': 'temp/1763018100_561437_1394167528_1b9f58a36b00f989e0778a9d36073721.jpg', 'extension': 'jpg'}, 1394167452: {'path': 'temp/1763018100_561437_1394167452_9edf924a4b8888386ee81bf7d5bf738a.jpg', 'extension': 'jpg'}, 1394167455: {'path': 'temp/1763018100_561437_1394167455_9e44cda9972bfca87b74f021f1f335b8.jpg', 'extension': 'jpg'}, 1394167523: {'path': 'temp/1763018100_561437_1394167523_6a4162d771c85366fa006e5d2950b969.jpg', 'extension': 'jpg'}, 1394167525: {'path': 'temp/1763018100_561437_1394167525_239a1a5f5b77006df572846f6cd40d38.jpg', 'extension': 'jpg'}, 1394167472: {'path': 'temp/1763018100_561437_1394167472_aae88e99c9a6d4e06ac78d1316b1ef6b.jpg', 'extension': 'jpg'}, 1394167521: {'path': 'temp/1763018100_561437_1394167521_256a5f29e48209947f41f415c5f578df.jpg', 'extension': 'jpg'}, 1394167459: {'path': 'temp/1763018100_561437_1394167459_a121402bfbd7fafc25d124f931e3f1ad.jpg', 'extension': 'jpg'}, 1394167465: {'path': 'temp/1763018100_561437_1394167465_d6b902d6e1a97d7eec9a04fc70123b03.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 = 28479655; (('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 = 28479655 group by h (('08', 66),) 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=28479655 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 (28479655) 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 (28479655) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 13112025 28479655 Nombre de photos uploadées : 66 / 23040 (0%) 13112025 28479655 Nombre de photos taguées (types de déchets): 0 / 66 (0%) 13112025 28479655 Nombre de photos taguées (volume) : 0 / 66 (0%) [{'photo_id': 1394165384, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/9fcc0a9db6097660007c53627ba9f968.jpg', 'username': None, 'uploaded_at': 1763017302, 'text': 'image_13112025_08_00_04_010146m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1394165372, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/141afdc382e813aa3638a098cf870f98.jpg', 'username': None, 'uploaded_at': 1763017302, 'text': 'image_13112025_08_00_24_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1394165631, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/f0f3e3cbf6bee715500b14d7dfb6416f.jpg', 'username': None, 'uploaded_at': 1763017343, 'text': 'image_13112025_08_00_33_9123.jpg'}, {'photo_id': 1394165628, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/13/8ddef7a8ae6b3ddfdad0f695ba515489.jpg', 'username': None, 'uploaded_at': 1763017343, 'text': 'image_13112025_08_01_04_10142.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.814697265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.0251998901367188e-05 ?????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002474546432495117 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28479655, '2025-11-13' ) 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-13' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2571511,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.22100424766540527 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= 2571511 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2571511, 'dashboard_run_id': 2580935, 'mtr_portfolio_id': 28472071, 'dashboard_result_id': 17191384, '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_P28472071_13-11-2025_05_59_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28472072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28472073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28472074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28472075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28472076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28472077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28472078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28472079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28472080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28472081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28472082, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28472083, 'pht': 3726}}"}, {'dashboat_entry_day': 2571511, 'dashboard_run_id': 2580935, 'mtr_portfolio_id': 28472625, 'dashboard_result_id': 17191385, '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_P28472625_13-11-2025_06_00_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28472626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28472627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28472628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28472629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28472630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28472631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28472632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28472633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28472634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28472635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28472636, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28472637, 'pht': 3726}}"}, {'dashboat_entry_day': 2571511, 'dashboard_run_id': 2580935, 'mtr_portfolio_id': 28472733, 'dashboard_result_id': 17191386, '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_P28472733_13-11-2025_07_31_12.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28472734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28472735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28472736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28472737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28472738, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28472739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28472740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28472741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28472742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28472743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28472744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28472745, 'pht': 3726}}"}, {'dashboat_entry_day': 2571511, 'dashboard_run_id': 2580935, 'mtr_portfolio_id': 28472999, 'dashboard_result_id': 17191387, '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_P28472999_13-11-2025_06_01_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28473000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28473001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28473002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28473003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28473004, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28473005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28473006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28473007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28473008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28473009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28473010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28473011, 'pht': 3726}}"}, {'dashboat_entry_day': 2571511, 'dashboard_run_id': 2580935, 'mtr_portfolio_id': 28473209, 'dashboard_result_id': 17191388, '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_P28473209_13-11-2025_06_01_14.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28473210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28473211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28473212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28473213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28473214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28473215, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28473216, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28473217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28473218, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28473219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28473220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28473221, 'pht': 3726}}"}, {'dashboat_entry_day': 2571511, 'dashboard_run_id': 2580935, 'mtr_portfolio_id': 28473342, 'dashboard_result_id': 17191389, '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_P28473342_13-11-2025_06_01_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28473343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28473344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28473345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28473346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28473347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28473348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28473349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28473350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28473351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28473352, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28473353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28473354, 'pht': 3726}}"}, {'dashboat_entry_day': 2571511, 'dashboard_run_id': 2580935, 'mtr_portfolio_id': 28473449, 'dashboard_result_id': 17191390, '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_P28473449_13-11-2025_06_01_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28473450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28473451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28473452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28473453, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28473454, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28473455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28473456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28473457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28473458, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28473459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28473460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28473461, 'pht': 3726}}"}, {'dashboat_entry_day': 2571511, 'dashboard_run_id': 2580935, 'mtr_portfolio_id': 28473687, 'dashboard_result_id': 17191391, '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_P28473687_13-11-2025_06_02_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28473690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28473691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28473692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28473693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28473694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28473695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28473696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28473697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28473698, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28473699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28473700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28473701, 'pht': 3726}}"}, {'dashboat_entry_day': 2571511, 'dashboard_run_id': 2580935, 'mtr_portfolio_id': 28473852, 'dashboard_result_id': 17191392, '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_P28473852_13-11-2025_06_03_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28473854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28473855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28473856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28473857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28473858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28473859, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28473860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28473861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28473862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28473863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28473864, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28473865, 'pht': 3726}}"}, {'dashboat_entry_day': 2571511, 'dashboard_run_id': 2580935, 'mtr_portfolio_id': 28473961, 'dashboard_result_id': 17191393, '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_P28473961_13-11-2025_06_05_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28473963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28473964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28473965, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28473966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28473967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28473968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28473969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28473970, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28473971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28473972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28473973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28473974, 'pht': 3726}}"}, {'dashboat_entry_day': 2571511, 'dashboard_run_id': 2580935, 'mtr_portfolio_id': 28474121, 'dashboard_result_id': 17191394, '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_P28474121_13-11-2025_06_05_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28474122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28474123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28474124, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28474125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28474126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28474127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28474128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28474129, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28474130, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28474131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28474132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28474133, 'pht': 3726}}"}, {'dashboat_entry_day': 2571511, 'dashboard_run_id': 2580935, 'mtr_portfolio_id': 28474652, 'dashboard_result_id': 17191395, '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_P28474652_13-11-2025_06_05_41.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28474653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28474654, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28474655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28474656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28474657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28474658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28474659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28474660, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28474661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28474662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28474663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28474664, 'pht': 3726}}"}, {'dashboat_entry_day': 2571511, 'dashboard_run_id': 2580935, 'mtr_portfolio_id': 28474833, 'dashboard_result_id': 17191396, '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_P28474833_13-11-2025_06_05_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28474844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28474845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28474846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28474847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28474849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28474850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28474851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28474853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28474854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28474855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28474857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28474858, 'pht': 3726}}"}, {'dashboat_entry_day': 2571511, 'dashboard_run_id': 2580935, 'mtr_portfolio_id': 28475052, 'dashboard_result_id': 17191397, '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_P28475052_13-11-2025_06_03_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28475053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28475054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28475055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28475056, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28475057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28475058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28475059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28475060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28475061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28475062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28475063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28475064, 'pht': 3726}}"}, {'dashboat_entry_day': 2571511, 'dashboard_run_id': 2580935, 'mtr_portfolio_id': 28475207, 'dashboard_result_id': 17191398, '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_P28475207_13-11-2025_06_19_27.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28475267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28475268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28475269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28475270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28475271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28475272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28475273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28475274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28475275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28475276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28475277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28475278, 'pht': 3726}}"}, {'dashboat_entry_day': 2571511, 'dashboard_run_id': 2580935, 'mtr_portfolio_id': 28475735, 'dashboard_result_id': 17191399, '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_P28475735_13-11-2025_06_34_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28475740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28475741, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28475742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28475743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28475744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28475745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28475746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28475747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28475748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28475749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28475750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28475751, 'pht': 3726}}"}, {'dashboat_entry_day': 2571511, 'dashboard_run_id': 2580935, 'mtr_portfolio_id': 28476127, 'dashboard_result_id': 17191400, '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_P28476127_13-11-2025_06_49_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28476133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28476134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28476135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28476136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28476137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28476138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28476139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28476140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28476141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28476142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28476143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28476144, 'pht': 3726}}"}, {'dashboat_entry_day': 2571511, 'dashboard_run_id': 2580935, 'mtr_portfolio_id': 28476594, 'dashboard_result_id': 17191401, '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_P28476594_13-11-2025_07_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28476599, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28476600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28476601, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28476602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28476603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28476604, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28476605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28476606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28476607, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28476608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28476609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28476610, 'pht': 3726}}"}, {'dashboat_entry_day': 2571511, 'dashboard_run_id': 2580935, 'mtr_portfolio_id': 28476939, 'dashboard_result_id': 17191402, '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_P28476939_13-11-2025_07_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28476965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28476966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28476967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28476968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28476969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28476970, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28476971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28476972, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28476973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28476974, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28476975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28476976, 'pht': 3726}}"}, {'dashboat_entry_day': 2571511, 'dashboard_run_id': 2580935, 'mtr_portfolio_id': 28477612, 'dashboard_result_id': 17191403, '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_P28477612_13-11-2025_07_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28477642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28477643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28477644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28477645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28477646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28477647, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28477648, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28477649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28477650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28477651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28477652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28477653, 'pht': 3726}}"}, {'dashboat_entry_day': 2571511, 'dashboard_run_id': 2580935, 'mtr_portfolio_id': 28478484, 'dashboard_result_id': 17191404, '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_P28478484_13-11-2025_07_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28478518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28478519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28478520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28478521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28478522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28478523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28478524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28478525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28478526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28478527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28478528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28478529, 'pht': 3726}}"}, {'dashboat_entry_day': 2571511, 'dashboard_run_id': 2580935, 'mtr_portfolio_id': 28479124, 'dashboard_result_id': 17191405, '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_P28479124_13-11-2025_08_04_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28479174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28479176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28479177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28479178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28479179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28479180, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28479181, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28479182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28479183, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28479184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28479185, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28479186, 'pht': 3726}}"}, {'dashboat_entry_day': 2571511, 'dashboard_run_id': 2580935, 'mtr_portfolio_id': 28479655, 'dashboard_result_id': 17191406, '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_P28479655_13-11-2025_08_12_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28479690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28479691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28479693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28479694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28479695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28479697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28479698, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28479699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28479701, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28479702, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28479703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28479705, '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 = 28472071 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': 4039643, 'mtr_portfolio_id': 28472071, 'created_at': datetime.datetime(2025, 11, 13, 5, 59, 30), 'result': '0.07328867128515715', 'result_long': None, 'result_double': None}] Qualite : 0.07328867128515715 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28472071 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28472071_13-11-2025_05_59_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28472071 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_P28472071_13-11-2025_05_59_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28472072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28472073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28472074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28472075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28472076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28472077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28472078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28472079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28472080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28472081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28472082, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28472083, 'pht': 3726}}" where mtr_portfolio_id = 28472071 and dashboard_run_id = 2580935 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`=28472071 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17191384, 0.07328867128515715, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28472071_13-11-2025_05_59_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28472072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28472073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28472074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28472075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28472076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28472077, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28472078, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28472079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28472080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28472081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28472082, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28472083, '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 = 28472625 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': 4039644, 'mtr_portfolio_id': 28472625, 'created_at': datetime.datetime(2025, 11, 13, 5, 59, 59), 'result': '0.05459551597737143', 'result_long': None, 'result_double': None}] Qualite : 0.05459551597737143 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28472625 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28472625_13-11-2025_06_00_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28472625 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_P28472625_13-11-2025_06_00_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28472626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28472627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28472628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28472629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28472630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28472631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28472632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28472633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28472634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28472635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28472636, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28472637, 'pht': 3726}}" where mtr_portfolio_id = 28472625 and dashboard_run_id = 2580935 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`=28472625 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17191385, 0.05459551597737143, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28472625_13-11-2025_06_00_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28472626, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28472627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28472628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28472629, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28472630, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28472631, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28472632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28472633, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28472634, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28472635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28472636, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28472637, '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 = 28472733 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': 4039645, 'mtr_portfolio_id': 28472733, 'created_at': datetime.datetime(2025, 11, 13, 7, 31, 11), 'result': '0.06486000606200416', 'result_long': None, 'result_double': None}] Qualite : 0.06486000606200416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28472733 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28472733_13-11-2025_07_31_12.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28472733 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_P28472733_13-11-2025_07_31_12.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28472734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28472735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28472736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28472737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28472738, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28472739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28472740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28472741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28472742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28472743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28472744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28472745, 'pht': 3726}}" where mtr_portfolio_id = 28472733 and dashboard_run_id = 2580935 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`=28472733 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17191386, 0.06486000606200416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28472733_13-11-2025_07_31_12.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28472734, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28472735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28472736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28472737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28472738, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28472739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28472740, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28472741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28472742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28472743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28472744, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28472745, '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 = 28472999 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 = 28472999 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 = 28472999 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28472999 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 = 28472999 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4039646, 'mtr_portfolio_id': 28472999, 'created_at': datetime.datetime(2025, 11, 13, 6, 1, 1), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28472999 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28472999_13-11-2025_06_01_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28472999 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_P28472999_13-11-2025_06_01_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28473000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28473001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28473002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28473003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28473004, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28473005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28473006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28473007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28473008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28473009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28473010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28473011, 'pht': 3726}}" where mtr_portfolio_id = 28472999 and dashboard_run_id = 2580935 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`=28472999 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17191387, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28472999_13-11-2025_06_01_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28473000, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28473001, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28473002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28473003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28473004, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28473005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28473006, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28473007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28473008, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28473009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28473010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28473011, '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 = 28473209 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': 4039647, 'mtr_portfolio_id': 28473209, 'created_at': datetime.datetime(2025, 11, 13, 6, 1, 13), 'result': '0.10468934540547628', 'result_long': None, 'result_double': None}] Qualite : 0.10468934540547628 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28473209 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28473209_13-11-2025_06_01_14.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28473209 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_P28473209_13-11-2025_06_01_14.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28473210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28473211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28473212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28473213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28473214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28473215, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28473216, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28473217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28473218, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28473219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28473220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28473221, 'pht': 3726}}" where mtr_portfolio_id = 28473209 and dashboard_run_id = 2580935 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`=28473209 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17191388, 0.10468934540547628, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28473209_13-11-2025_06_01_14.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28473210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28473211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28473212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28473213, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28473214, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28473215, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28473216, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28473217, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28473218, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28473219, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28473220, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28473221, '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 = 28473342 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': 4039648, 'mtr_portfolio_id': 28473342, 'created_at': datetime.datetime(2025, 11, 13, 6, 1, 30), 'result': '0.0243220349400973', 'result_long': None, 'result_double': None}] Qualite : 0.0243220349400973 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28473342 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28473342_13-11-2025_06_01_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28473342 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_P28473342_13-11-2025_06_01_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28473343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28473344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28473345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28473346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28473347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28473348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28473349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28473350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28473351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28473352, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28473353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28473354, 'pht': 3726}}" where mtr_portfolio_id = 28473342 and dashboard_run_id = 2580935 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`=28473342 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17191389, 0.0243220349400973, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28473342_13-11-2025_06_01_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28473343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28473344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28473345, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28473346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28473347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28473348, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28473349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28473350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28473351, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28473352, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28473353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28473354, '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 = 28473449 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': 4039649, 'mtr_portfolio_id': 28473449, 'created_at': datetime.datetime(2025, 11, 13, 6, 1, 57), 'result': '0.07468073642089822', 'result_long': None, 'result_double': None}] Qualite : 0.07468073642089822 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28473449 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28473449_13-11-2025_06_01_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28473449 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_P28473449_13-11-2025_06_01_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28473450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28473451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28473452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28473453, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28473454, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28473455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28473456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28473457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28473458, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28473459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28473460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28473461, 'pht': 3726}}" where mtr_portfolio_id = 28473449 and dashboard_run_id = 2580935 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`=28473449 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17191390, 0.07468073642089822, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28473449_13-11-2025_06_01_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28473450, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28473451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28473452, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28473453, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28473454, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28473455, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28473456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28473457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28473458, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28473459, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28473460, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28473461, '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 = 28473687 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': 4039650, 'mtr_portfolio_id': 28473687, 'created_at': datetime.datetime(2025, 11, 13, 6, 2, 29), 'result': '0.06107707693387454', 'result_long': None, 'result_double': None}] Qualite : 0.06107707693387454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28473687 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28473687_13-11-2025_06_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28473687 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_P28473687_13-11-2025_06_02_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28473690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28473691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28473692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28473693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28473694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28473695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28473696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28473697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28473698, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28473699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28473700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28473701, 'pht': 3726}}" where mtr_portfolio_id = 28473687 and dashboard_run_id = 2580935 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`=28473687 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17191391, 0.06107707693387454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28473687_13-11-2025_06_02_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28473690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28473691, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28473692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28473693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28473694, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28473695, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28473696, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28473697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28473698, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28473699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28473700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28473701, '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 = 28473852 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': 4039651, 'mtr_portfolio_id': 28473852, 'created_at': datetime.datetime(2025, 11, 13, 6, 3, 56), 'result': '0.0649765457543171', 'result_long': None, 'result_double': None}] Qualite : 0.0649765457543171 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28473852 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28473852_13-11-2025_06_03_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28473852 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_P28473852_13-11-2025_06_03_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28473854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28473855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28473856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28473857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28473858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28473859, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28473860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28473861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28473862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28473863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28473864, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28473865, 'pht': 3726}}" where mtr_portfolio_id = 28473852 and dashboard_run_id = 2580935 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`=28473852 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17191392, 0.0649765457543171, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28473852_13-11-2025_06_03_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28473854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28473855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28473856, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28473857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28473858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28473859, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28473860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28473861, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28473862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28473863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28473864, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28473865, '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 = 28473961 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': 4039652, 'mtr_portfolio_id': 28473961, 'created_at': datetime.datetime(2025, 11, 13, 6, 4, 59), 'result': '0.02444975978011983', 'result_long': None, 'result_double': None}] Qualite : 0.02444975978011983 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28473961 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28473961_13-11-2025_06_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28473961 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_P28473961_13-11-2025_06_05_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28473963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28473964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28473965, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28473966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28473967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28473968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28473969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28473970, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28473971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28473972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28473973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28473974, 'pht': 3726}}" where mtr_portfolio_id = 28473961 and dashboard_run_id = 2580935 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`=28473961 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17191393, 0.02444975978011983, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28473961_13-11-2025_06_05_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28473963, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28473964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28473965, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28473966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28473967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28473968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28473969, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28473970, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28473971, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28473972, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28473973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28473974, '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 = 28474121 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': 4039653, 'mtr_portfolio_id': 28474121, 'created_at': datetime.datetime(2025, 11, 13, 6, 5, 28), 'result': '0.0528851463779323', 'result_long': None, 'result_double': None}] Qualite : 0.0528851463779323 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28474121 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28474121_13-11-2025_06_05_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28474121 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_P28474121_13-11-2025_06_05_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28474122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28474123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28474124, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28474125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28474126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28474127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28474128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28474129, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28474130, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28474131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28474132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28474133, 'pht': 3726}}" where mtr_portfolio_id = 28474121 and dashboard_run_id = 2580935 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`=28474121 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17191394, 0.0528851463779323, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28474121_13-11-2025_06_05_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28474122, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28474123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28474124, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28474125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28474126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28474127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28474128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28474129, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28474130, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28474131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28474132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28474133, '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 = 28474652 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': 4039654, 'mtr_portfolio_id': 28474652, 'created_at': datetime.datetime(2025, 11, 13, 6, 5, 40), 'result': '0.06999538444913557', 'result_long': None, 'result_double': None}] Qualite : 0.06999538444913557 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28474652 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28474652_13-11-2025_06_05_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28474652 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_P28474652_13-11-2025_06_05_41.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28474653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28474654, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28474655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28474656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28474657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28474658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28474659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28474660, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28474661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28474662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28474663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28474664, 'pht': 3726}}" where mtr_portfolio_id = 28474652 and dashboard_run_id = 2580935 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`=28474652 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17191395, 0.06999538444913557, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28474652_13-11-2025_06_05_41.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28474653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28474654, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28474655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28474656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28474657, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28474658, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28474659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28474660, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28474661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28474662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28474663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28474664, '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 = 28474833 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': 4039655, 'mtr_portfolio_id': 28474833, 'created_at': datetime.datetime(2025, 11, 13, 6, 5, 58), 'result': '0.048134693199410335', 'result_long': None, 'result_double': None}] Qualite : 0.048134693199410335 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28474833 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28474833_13-11-2025_06_05_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28474833 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_P28474833_13-11-2025_06_05_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28474844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28474845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28474846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28474847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28474849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28474850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28474851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28474853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28474854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28474855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28474857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28474858, 'pht': 3726}}" where mtr_portfolio_id = 28474833 and dashboard_run_id = 2580935 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`=28474833 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17191396, 0.048134693199410335, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28474833_13-11-2025_06_05_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28474844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28474845, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28474846, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28474847, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28474849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28474850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28474851, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28474853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28474854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28474855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28474857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28474858, '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 = 28475052 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': 4039741, 'mtr_portfolio_id': 28475052, 'created_at': datetime.datetime(2025, 11, 13, 6, 3, 28), 'result': '0.022063713505945114', 'result_long': None, 'result_double': None}] Qualite : 0.022063713505945114 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28475052 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28475052_13-11-2025_06_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28475052 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_P28475052_13-11-2025_06_03_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28475053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28475054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28475055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28475056, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28475057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28475058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28475059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28475060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28475061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28475062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28475063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28475064, 'pht': 3726}}" where mtr_portfolio_id = 28475052 and dashboard_run_id = 2580935 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`=28475052 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17191397, 0.022063713505945114, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28475052_13-11-2025_06_03_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28475053, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28475054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28475055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28475056, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28475057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28475058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28475059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28475060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28475061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28475062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28475063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28475064, '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 = 28475207 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': 4039769, 'mtr_portfolio_id': 28475207, 'created_at': datetime.datetime(2025, 11, 13, 6, 19, 27), 'result': '0.04376506133047945', 'result_long': None, 'result_double': None}] Qualite : 0.04376506133047945 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28475207 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28475207_13-11-2025_06_19_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28475207 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_P28475207_13-11-2025_06_19_27.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28475267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28475268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28475269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28475270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28475271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28475272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28475273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28475274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28475275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28475276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28475277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28475278, 'pht': 3726}}" where mtr_portfolio_id = 28475207 and dashboard_run_id = 2580935 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`=28475207 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17191398, 0.04376506133047945, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28475207_13-11-2025_06_19_27.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28475267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28475268, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28475269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28475270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28475271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28475272, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28475273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28475274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28475275, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28475276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28475277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28475278, '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 = 28475735 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': 4039827, 'mtr_portfolio_id': 28475735, 'created_at': datetime.datetime(2025, 11, 13, 6, 34, 31), 'result': '0.0544181805509275', 'result_long': None, 'result_double': None}] Qualite : 0.0544181805509275 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28475735 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28475735_13-11-2025_06_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28475735 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_P28475735_13-11-2025_06_34_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28475740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28475741, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28475742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28475743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28475744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28475745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28475746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28475747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28475748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28475749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28475750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28475751, 'pht': 3726}}" where mtr_portfolio_id = 28475735 and dashboard_run_id = 2580935 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`=28475735 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17191399, 0.0544181805509275, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28475735_13-11-2025_06_34_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28475740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28475741, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28475742, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28475743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28475744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28475745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28475746, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28475747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28475748, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28475749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28475750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28475751, '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 = 28476127 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': 4039895, 'mtr_portfolio_id': 28476127, 'created_at': datetime.datetime(2025, 11, 13, 6, 49, 29), 'result': '0.050524107177754386', 'result_long': None, 'result_double': None}] Qualite : 0.050524107177754386 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28476127 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28476127_13-11-2025_06_49_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28476127 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_P28476127_13-11-2025_06_49_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28476133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28476134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28476135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28476136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28476137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28476138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28476139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28476140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28476141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28476142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28476143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28476144, 'pht': 3726}}" where mtr_portfolio_id = 28476127 and dashboard_run_id = 2580935 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`=28476127 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17191400, 0.050524107177754386, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28476127_13-11-2025_06_49_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28476133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28476134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28476135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28476136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28476137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28476138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28476139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28476140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28476141, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28476142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28476143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28476144, '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 = 28476594 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': 4039971, 'mtr_portfolio_id': 28476594, 'created_at': datetime.datetime(2025, 11, 13, 7, 3), 'result': '0.043009974397672485', 'result_long': None, 'result_double': None}] Qualite : 0.043009974397672485 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28476594 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28476594_13-11-2025_07_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28476594 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_P28476594_13-11-2025_07_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28476599, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28476600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28476601, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28476602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28476603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28476604, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28476605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28476606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28476607, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28476608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28476609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28476610, 'pht': 3726}}" where mtr_portfolio_id = 28476594 and dashboard_run_id = 2580935 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`=28476594 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17191401, 0.043009974397672485, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28476594_13-11-2025_07_03_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28476599, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28476600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28476601, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28476602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28476603, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28476604, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28476605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28476606, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28476607, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28476608, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28476609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28476610, '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 = 28476939 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': 4040045, 'mtr_portfolio_id': 28476939, 'created_at': datetime.datetime(2025, 11, 13, 7, 16, 59), 'result': '0.047635561577237105', 'result_long': None, 'result_double': None}] Qualite : 0.047635561577237105 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28476939 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28476939_13-11-2025_07_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28476939 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_P28476939_13-11-2025_07_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28476965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28476966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28476967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28476968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28476969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28476970, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28476971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28476972, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28476973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28476974, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28476975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28476976, 'pht': 3726}}" where mtr_portfolio_id = 28476939 and dashboard_run_id = 2580935 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`=28476939 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17191402, 0.047635561577237105, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28476939_13-11-2025_07_17_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28476965, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28476966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28476967, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28476968, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28476969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28476970, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28476971, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28476972, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28476973, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28476974, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28476975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28476976, '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 = 28477612 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': 4040150, 'mtr_portfolio_id': 28477612, 'created_at': datetime.datetime(2025, 11, 13, 7, 33), 'result': '0.048438390295776984', 'result_long': None, 'result_double': None}] Qualite : 0.048438390295776984 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28477612 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28477612_13-11-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28477612 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_P28477612_13-11-2025_07_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28477642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28477643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28477644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28477645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28477646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28477647, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28477648, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28477649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28477650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28477651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28477652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28477653, 'pht': 3726}}" where mtr_portfolio_id = 28477612 and dashboard_run_id = 2580936 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`=28477612 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17191403, 0.048438390295776984, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28477612_13-11-2025_07_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28477642, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28477643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28477644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28477645, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28477646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28477647, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28477648, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28477649, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28477650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28477651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28477652, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28477653, '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 = 28478484 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': 4040227, 'mtr_portfolio_id': 28478484, 'created_at': datetime.datetime(2025, 11, 13, 7, 49), 'result': '0.05360937205150954', 'result_long': None, 'result_double': None}] Qualite : 0.05360937205150954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28478484 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28478484_13-11-2025_07_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28478484 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_P28478484_13-11-2025_07_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28478518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28478519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28478520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28478521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28478522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28478523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28478524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28478525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28478526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28478527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28478528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28478529, 'pht': 3726}}" where mtr_portfolio_id = 28478484 and dashboard_run_id = 2580936 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`=28478484 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17191404, 0.05360937205150954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28478484_13-11-2025_07_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28478518, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28478519, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28478520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28478521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28478522, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28478523, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28478524, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28478525, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28478526, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28478527, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28478528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28478529, '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 = 28479124 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': 4040306, 'mtr_portfolio_id': 28479124, 'created_at': datetime.datetime(2025, 11, 13, 8, 4, 58), 'result': '0.04723136382493055', 'result_long': None, 'result_double': None}] Qualite : 0.04723136382493055 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28479124 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28479124_13-11-2025_08_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28479124 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_P28479124_13-11-2025_08_04_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28479174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28479176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28479177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28479178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28479179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28479180, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28479181, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28479182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28479183, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28479184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28479185, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28479186, 'pht': 3726}}" where mtr_portfolio_id = 28479124 and dashboard_run_id = 2580936 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`=28479124 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17191405, 0.04723136382493055, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28479124_13-11-2025_08_04_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28479174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28479176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28479177, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28479178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28479179, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28479180, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28479181, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28479182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28479183, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28479184, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28479185, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28479186, '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 = 28479655 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': 4040396, 'mtr_portfolio_id': 28479655, 'created_at': datetime.datetime(2025, 11, 13, 8, 15), 'result': '0.04790533307209821', 'result_long': None, 'result_double': None}] Qualite : 0.04790533307209821 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28479655 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28479655_13-11-2025_08_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28479655 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_P28479655_13-11-2025_08_15_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28479690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28479691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28479693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28479694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28479695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28479697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28479698, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28479699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28479701, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28479702, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28479703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28479705, 'pht': 3726}}" where mtr_portfolio_id = 28479655 and dashboard_run_id = 2580936 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`=28479655 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17191406, 0.04790533307209821, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28479655_13-11-2025_08_15_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28479690, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28479691, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28479693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28479694, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28479695, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28479697, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28479698, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28479699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28479701, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28479702, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28479703, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28479705, '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 (28472071,28472625,28472733,28472999,28473209,28473342,28473449,28473687,28473852,28473961,28474121,28474652,28474833,28475052,28475207,28475735,28476127,28476594,28476939,28477612,28478484,28479124,28479655) result : ((1394133573,), (1394133823,), (1394133824,), (1394134091,), (1394134214,), (1394134217,), (1394134284,), (1394134287,), (1394134367,), (1394138510,), (1394138536,), (1394138610,), (1394138613,), (1394138650,), (1394138652,), (1394138653,), (1394138654,), (1394138713,), (1394138715,), (1394138806,), (1394138831,), (1394138858,), (1394138860,), (1394139061,), (1394139063,), (1394140058,), (1394140070,), (1394140096,), (1394140116,), (1394140139,), (1394140137,), (1394140490,), (1394141894,), (1394142345,), (1394142365,), (1394142499,), (1394142573,), (1394142676,), (1394142709,), (1394142736,), (1394142782,), (1394142838,), (1394142884,), (1394142910,), (1394142940,), (1394142943,), (1394142963,), (1394142964,), (1394142965,), (1394142967,), (1394143056,), (1394143059,), (1394143062,), (1394143087,), (1394143174,), (1394143168,), (1394143197,), (1394143250,), (1394143252,), (1394143253,), (1394143378,), (1394143400,), (1394143405,), (1394143408,), (1394143457,), (1394143482,), (1394143484,), (1394143517,), (1394143555,), (1394143585,), (1394143586,), (1394143663,), (1394143666,), (1394143688,), (1394143689,), (1394143795,), (1394143797,), (1394143798,), (1394143818,), (1394144370,), (1394144422,), (1394144426,), (1394144843,), (1394144871,), (1394144900,), (1394145458,), (1394145460,), (1394145580,), (1394145581,), (1394145634,), (1394145657,), (1394145706,), (1394145737,), (1394145758,), (1394145793,), (1394145843,), (1394145841,), (1394145873,), (1394145926,), (1394145928,), (1394145954,), (1394145980,), (1394146009,), (1394146050,), (1394146069,), (1394146072,), (1394146100,), (1394146125,), (1394146170,), (1394146192,), (1394146211,), (1394146214,), (1394146246,), (1394146249,), (1394146349,), (1394146351,), (1394146403,), (1394146405,), (1394146424,), (1394146485,), (1394146541,), (1394146543,), (1394146594,), (1394146593,), (1394146621,), (1394146649,), (1394146699,), (1394146700,), (1394146724,), (1394146754,), (1394146755,), (1394146840,), (1394146845,), (1394146866,), (1394146868,), (1394148200,), (1394151231,), (1394151862,), (1394151896,), (1394151952,), (1394151954,), (1394151987,), (1394151989,), (1394151992,), (1394152017,), (1394152018,), (1394152043,), (1394152046,), (1394152084,), (1394152107,), (1394152109,), (1394152111,), (1394152144,), (1394152146,), (1394152148,), (1394152172,), (1394152174,), (1394152176,), (1394152180,), (1394152185,), (1394152212,), (1394152209,), (1394152210,), (1394152239,), (1394152241,), (1394152242,), (1394152244,), (1394152248,), (1394152250,), (1394152274,), (1394152277,), (1394152278,), (1394152280,), (1394152301,), (1394153021,), (1394153091,), (1394153248,), (1394153273,), (1394153277,), (1394153280,), (1394153283,), (1394153286,), (1394153304,), (1394153307,), (1394153311,), (1394153316,), (1394153320,), (1394153337,), (1394153338,), (1394153339,), (1394153342,), (1394153346,), (1394153366,), (1394153368,), (1394153402,), (1394153404,), (1394153405,), (1394153406,), (1394154128,), (1394154177,), (1394154214,), (1394154245,), (1394154254,), (1394154424,), (1394154420,), (1394154422,), (1394154453,), (1394154457,), (1394154462,), (1394154467,), (1394154473,), (1394154493,), (1394154495,), (1394154497,), (1394154500,), (1394154656,), (1394154691,), (1394154725,), (1394154758,), (1394154795,), (1394154835,), (1394155132,), (1394155135,), (1394155137,), (1394155285,), (1394155287,), (1394155289,), (1394155317,), (1394155319,), (1394155321,), (1394155325,), (1394155354,), (1394155356,), (1394155357,), (1394155359,), (1394155380,), (1394155383,), (1394155436,), (1394155438,), (1394155462,), (1394155465,), (1394155467,), (1394155470,), (1394155498,), (1394155500,), (1394155502,), (1394155505,), (1394155530,), (1394155532,), (1394155535,), (1394155539,), (1394155543,), (1394155545,), (1394155578,), (1394155580,), (1394155583,), (1394155604,), (1394155607,), (1394155610,), (1394155612,), (1394155613,), (1394155615,), (1394155663,), (1394155649,), (1394155651,), (1394155653,), (1394155655,), (1394155659,), (1394155682,), (1394155684,), (1394155685,), (1394155686,), (1394155724,), (1394155727,), (1394155729,), (1394155731,), (1394155733,), (1394155754,), (1394155755,), (1394155756,), (1394155758,), (1394155761,), (1394155793,), (1394155796,), (1394155799,), (1394155803,), (1394155822,), (1394155823,), (1394155851,), (1394155852,), (1394155853,), (1394155855,), (1394155876,), (1394155879,), (1394155881,), (1394155911,), (1394155913,), (1394155914,), (1394155936,), (1394155938,), (1394155942,), (1394155949,), (1394155952,), (1394155980,), (1394155982,), (1394155985,), (1394155988,), (1394156011,), (1394156012,), (1394156013,), (1394156014,), (1394156056,), (1394156059,), (1394156062,), (1394156066,), (1394156095,), (1394156097,), (1394156098,), (1394156099,), (1394156102,), (1394156152,), (1394156153,), (1394156155,), (1394156159,), (1394156164,), (1394156168,), (1394156207,), (1394156214,), (1394156215,), (1394156219,), (1394156223,), (1394156225,), (1394156227,), (1394156242,), (1394156246,), (1394156182,), (1394156185,), (1394156190,), (1394156194,), (1394156201,), (1394156234,), (1394156236,), (1394156239,), (1394156253,), (1394156255,), (1394156257,), (1394156316,), (1394156318,), (1394156320,), (1394156323,), (1394156354,), (1394156355,), (1394156357,), (1394156389,), (1394156427,), (1394156429,), (1394156430,), (1394156432,), (1394156435,), (1394156437,), (1394156452,), (1394156455,), (1394156458,), (1394156462,), (1394156466,), (1394156470,), (1394156499,), (1394156501,), (1394156502,), (1394156504,), (1394156522,), (1394156525,), (1394156558,), (1394156560,), (1394156562,), (1394156565,), (1394156587,), (1394156589,), (1394156592,), (1394156596,), (1394156600,), (1394156642,), (1394156646,), (1394156647,), (1394156675,), (1394156678,), (1394156725,), (1394156712,), (1394156714,), (1394156716,), (1394156720,), (1394156744,), (1394156746,), (1394156748,), (1394156751,), (1394156755,), (1394156782,), (1394156785,), (1394156787,), (1394156807,), (1394156809,), (1394156811,), (1394156816,), (1394156820,), (1394156841,), (1394156872,), (1394156874,), (1394156875,), (1394156877,), (1394156879,), (1394156916,), (1394156917,), (1394156918,), (1394156920,), (1394156943,), (1394156946,), (1394156949,), (1394156954,), (1394156988,), (1394156991,), (1394156993,), (1394157015,), (1394157016,), (1394157017,), (1394157019,), (1394157022,), (1394157047,), (1394157050,), (1394157053,), (1394157056,), (1394157060,), (1394157064,), (1394157083,), (1394157086,), (1394157089,), (1394157115,), (1394157118,), (1394157120,), (1394157155,), (1394157160,), (1394157166,), (1394157284,), (1394157345,), (1394157406,), (1394157473,), (1394157217,), (1394158183,), (1394158244,), (1394158752,), (1394158757,), (1394159065,), (1394159067,), (1394159094,), (1394159097,), (1394159099,), (1394159101,), (1394159126,), (1394159127,), (1394159128,), (1394159131,), (1394159155,), (1394159156,), (1394159158,), (1394159162,), (1394159167,), (1394159191,), (1394159198,), (1394159201,), (1394159205,), (1394159207,), (1394159221,), (1394159244,), (1394159246,), (1394159346,), (1394159348,), (1394159350,), (1394159440,), (1394159442,), (1394159444,), (1394159447,), (1394159451,), (1394159550,), (1394159556,), (1394159558,), (1394159561,), (1394159565,), (1394159590,), (1394159591,), (1394159593,), (1394159596,), (1394159702,), (1394159705,), (1394159708,), (1394159711,), (1394159716,), (1394159720,), (1394159856,), (1394159861,), (1394159863,), (1394159864,), (1394159867,), (1394159870,), (1394159917,), (1394159909,), (1394159912,), (1394159914,), (1394159939,), (1394159944,), (1394159947,), (1394159963,), (1394159968,), (1394159972,), (1394159996,), (1394159999,), (1394160002,), (1394160035,), (1394160071,), (1394160131,), (1394160133,), (1394160134,), (1394160254,), (1394160268,), (1394160291,), (1394160360,), (1394160542,), (1394160551,), (1394160563,), (1394160667,), (1394160681,), (1394161095,), (1394161112,), (1394161115,), (1394161119,), (1394161265,), (1394161268,), (1394161271,), (1394161277,), (1394161345,), (1394161348,), (1394161350,), (1394161358,), (1394161431,), (1394161434,), (1394161436,), (1394161442,), (1394161445,), (1394161450,), (1394161471,), (1394161473,), (1394161521,), (1394161725,), (1394161740,), (1394161840,), (1394161887,), (1394162194,), (1394162227,), (1394162229,), (1394162231,), (1394162280,), (1394162315,), (1394162319,), (1394162322,), (1394162326,), (1394162438,), (1394162440,), (1394162441,), (1394162469,), (1394162472,), (1394162475,), (1394162479,), (1394162514,), (1394162517,), (1394162544,), (1394162547,), (1394162549,), (1394162553,), (1394162561,), (1394162607,), (1394162610,), (1394162612,), (1394162615,), (1394162620,), (1394162625,), (1394162755,), (1394162758,), (1394162762,), (1394162768,), (1394162773,), (1394162777,), (1394162805,), (1394162812,), (1394162884,), (1394162889,), (1394162895,), (1394163011,), (1394163043,), (1394163052,), (1394163055,), (1394163060,), (1394163062,), (1394163183,), (1394163189,), (1394163195,), (1394163203,), (1394163213,), (1394163217,), (1394163250,), (1394163253,), (1394163255,), (1394163283,), (1394163286,), (1394163290,), (1394163294,), (1394163299,), (1394163339,), (1394163322,), (1394163323,), (1394163324,), (1394163326,), (1394163330,), (1394163495,), (1394163503,), (1394163506,), (1394163509,), (1394163514,), (1394163517,), (1394163533,), (1394163534,), (1394163597,), (1394163605,), (1394163608,), (1394163613,), (1394163616,), (1394163619,), (1394163629,), (1394163632,), (1394163639,), (1394163641,), (1394163643,), (1394163731,), (1394163758,), (1394163759,), (1394163907,), (1394163909,), (1394163940,), (1394163960,), (1394163990,), (1394163992,), (1394163993,), (1394163994,), (1394164029,), (1394164039,), (1394164042,), (1394164046,), (1394164051,), (1394164055,), (1394164071,), (1394164073,), (1394164120,), (1394164121,), (1394164122,), (1394164125,), (1394164152,), (1394164159,), (1394164217,), (1394164220,), (1394164223,), (1394164226,), (1394164230,), (1394164255,), (1394164257,), (1394164259,), (1394164261,), (1394164327,), (1394164365,), (1394164433,), (1394164496,), (1394164557,), (1394164789,), (1394164853,), (1394164923,), (1394164987,), (1394165416,), (1394165450,), (1394165492,), (1394165496,), (1394165652,), (1394165372,), (1394165384,), (1394165607,), (1394165619,), (1394165622,), (1394165625,), (1394165628,), (1394165631,), (1394165713,), (1394165728,), (1394165739,), (1394165744,), (1394165755,), (1394165777,), (1394165896,), (1394165929,), (1394165960,), (1394165993,), (1394166027,), (1394166395,), (1394166396,), (1394166397,), (1394166399,), (1394166403,), (1394166405,), (1394166606,), (1394166618,), (1394166652,), (1394166761,), (1394166765,), (1394166797,), (1394166838,), (1394166884,), (1394166957,), (1394166989,), (1394167019,), (1394167052,), (1394167088,), (1394167124,), (1394167190,), (1394167193,), (1394167196,), (1394167199,), (1394167307,), (1394167309,), (1394167310,), (1394167312,), (1394167315,), (1394167335,), (1394167337,), (1394167340,), (1394167349,), (1394167352,), (1394167391,), (1394167393,), (1394167395,), (1394167397,), (1394167452,), (1394167455,), (1394167459,), (1394167465,), (1394167472,), (1394167521,), (1394167523,), (1394167525,), (1394167528,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'13112025': {'nb_upload': 66, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28479655]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1394167528, 1394167525, 1394167523, 1394167521, 1394167472, 1394167465, 1394167459, 1394167455, 1394167452] map_info['map_portfolio_photo'] : {28479655: [1394167528, 1394167525, 1394167523, 1394167521, 1394167472, 1394167465, 1394167459, 1394167455, 1394167452, 1394167397, 1394167395, 1394167393, 1394167391, 1394167352, 1394167349, 1394167340, 1394167337, 1394167335, 1394167315, 1394167312, 1394167310, 1394167309, 1394167307, 1394167199, 1394167196, 1394167193, 1394167190, 1394167124, 1394167088, 1394167052, 1394167019, 1394166989, 1394166957, 1394166884, 1394166838, 1394166797, 1394166765, 1394166761, 1394166652, 1394166618, 1394166606, 1394166405, 1394166403, 1394166399, 1394166397, 1394166396, 1394166395, 1394166027, 1394165993, 1394165960, 1394165929, 1394165896, 1394165777, 1394165755, 1394165744, 1394165739, 1394165728, 1394165713, 1394165631, 1394165628, 1394165625, 1394165622, 1394165619, 1394165607, 1394165384, 1394165372]} final : True mtd_id 4302 list_pids : [1394167528, 1394167525, 1394167523, 1394167521, 1394167472, 1394167465, 1394167459, 1394167455, 1394167452] Looping around the photos to save general results len do output : 1 /28479655Didn'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, '4040396') ('4302', '28479655', '1394167528', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167525', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167523', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167521', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167472', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167465', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167459', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167455', None, None, None, None, None, '4040396') ('4302', None, None, None, None, None, None, None, '4040396') ('4302', '28479655', '1394167452', None, None, None, None, None, '4040396') 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', None, '28479655', 'None', None, None, None, None, '4040396'), ('4302', '28479655', '1394167528', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167525', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167523', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167521', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167472', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167465', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167459', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167455', None, None, None, None, None, '4040396'), ('4302', '28479655', '1394167452', None, None, None, None, None, '4040396')] time used for this insertion : 0.013882875442504883 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5890212059020996 time spend to save output : 0.014103889465332031 total time spend for step 5 : 1.6031250953674316 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 (4040396) 2.34user 2.52system 0:12.18elapsed 40%CPU (0avgtext+0avgdata 161584maxresident)k 1432inputs+14408outputs (40major+75904minor)pagefaults 0swaps