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 : 732785 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 (3693461) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3693461) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26744795 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3693461'] with mtr_portfolio_ids : ['26744795'] and first list_photo_ids : [] new path : /proc/732785/ Name: python3 Umask: 0002 State: R (running) Tgid: 732785 Ngid: 0 Pid: 732785 PPid: 732784 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 732785 NSpid: 732785 NSpgid: 731651 NSsid: 731651 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97744 kB VmRSS: 97744 kB RssAnon: 60156 kB RssFile: 37588 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 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: 55 nonvoluntary_ctxt_switches: 94 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '732785', 'Ngid': '0', 'Pid': '732785', 'PPid': '732784', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '732785', 'NSpid': '732785', 'NSpgid': '731651', 'NSsid': '731651', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97744 kB', 'VmRSS': '97744 kB', 'RssAnon': '60156 kB', 'RssFile': '37588 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 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': '55', 'nonvoluntary_ctxt_switches': '94'} ('datou_batch_current', '732785', '1107252', '0', '1107252', '866004', '97744', b'', 'marlene', '3693461') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (26744795) 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 (3693461 ) ) 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 (26744795) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1383202517, 'portfolio_id': 26744795}, {'photo_id': 1383202512, 'portfolio_id': 26744795}, {'photo_id': 1383202511, 'portfolio_id': 26744795}, {'photo_id': 1383202509, 'portfolio_id': 26744795}, {'photo_id': 1383202455, 'portfolio_id': 26744795}, {'photo_id': 1383202431, 'portfolio_id': 26744795}, {'photo_id': 1383202428, 'portfolio_id': 26744795}, {'photo_id': 1383202425, 'portfolio_id': 26744795}, {'photo_id': 1383202413, 'portfolio_id': 26744795}, {'photo_id': 1383202396, 'portfolio_id': 26744795}, {'photo_id': 1383202320, 'portfolio_id': 26744795}, {'photo_id': 1383202318, 'portfolio_id': 26744795}, {'photo_id': 1383202315, 'portfolio_id': 26744795}, {'photo_id': 1383202264, 'portfolio_id': 26744795}, {'photo_id': 1383202261, 'portfolio_id': 26744795}, {'photo_id': 1383202258, 'portfolio_id': 26744795}, {'photo_id': 1383202256, 'portfolio_id': 26744795}, {'photo_id': 1383202253, 'portfolio_id': 26744795}, {'photo_id': 1383202251, 'portfolio_id': 26744795}, {'photo_id': 1383202228, 'portfolio_id': 26744795}, {'photo_id': 1383202224, 'portfolio_id': 26744795}, {'photo_id': 1383202218, 'portfolio_id': 26744795}, {'photo_id': 1383202213, 'portfolio_id': 26744795}, {'photo_id': 1383202209, 'portfolio_id': 26744795}, {'photo_id': 1383202204, 'portfolio_id': 26744795}, {'photo_id': 1383202194, 'portfolio_id': 26744795}, {'photo_id': 1383202190, 'portfolio_id': 26744795}, {'photo_id': 1383202187, 'portfolio_id': 26744795}, {'photo_id': 1383202183, 'portfolio_id': 26744795}, {'photo_id': 1383202160, 'portfolio_id': 26744795}, {'photo_id': 1383202139, 'portfolio_id': 26744795}, {'photo_id': 1383202106, 'portfolio_id': 26744795}, {'photo_id': 1383202076, 'portfolio_id': 26744795}, {'photo_id': 1383202061, 'portfolio_id': 26744795}, {'photo_id': 1383202034, 'portfolio_id': 26744795}, {'photo_id': 1383202002, 'portfolio_id': 26744795}, {'photo_id': 1383201982, 'portfolio_id': 26744795}, {'photo_id': 1383201977, 'portfolio_id': 26744795}, {'photo_id': 1383201972, 'portfolio_id': 26744795}, {'photo_id': 1383201650, 'portfolio_id': 26744795}, {'photo_id': 1383201609, 'portfolio_id': 26744795}, {'photo_id': 1383201554, 'portfolio_id': 26744795}, {'photo_id': 1383201497, 'portfolio_id': 26744795}, {'photo_id': 1383201443, 'portfolio_id': 26744795}, {'photo_id': 1383201110, 'portfolio_id': 26744795}, {'photo_id': 1383201078, 'portfolio_id': 26744795}, {'photo_id': 1383201051, 'portfolio_id': 26744795}, {'photo_id': 1383200660, 'portfolio_id': 26744795}, {'photo_id': 1383200569, 'portfolio_id': 26744795}, {'photo_id': 1383200481, 'portfolio_id': 26744795}, {'photo_id': 1383200394, 'portfolio_id': 26744795}, {'photo_id': 1383200314, 'portfolio_id': 26744795}, {'photo_id': 1383200233, 'portfolio_id': 26744795}, {'photo_id': 1383199871, 'portfolio_id': 26744795}, {'photo_id': 1383199815, 'portfolio_id': 26744795}, {'photo_id': 1383199744, 'portfolio_id': 26744795}, {'photo_id': 1383199690, 'portfolio_id': 26744795}, {'photo_id': 1383199631, 'portfolio_id': 26744795}, {'photo_id': 1383199396, 'portfolio_id': 26744795}, {'photo_id': 1383198940, 'portfolio_id': 26744795}, {'photo_id': 1383198903, 'portfolio_id': 26744795}, {'photo_id': 1383198873, 'portfolio_id': 26744795}, {'photo_id': 1383198843, 'portfolio_id': 26744795}, {'photo_id': 1383198472, 'portfolio_id': 26744795}] map_portfolio_id_photo_id: {26744795: [1383202517, 1383202512, 1383202511, 1383202509, 1383202455, 1383202431, 1383202428, 1383202425, 1383202413, 1383202396, 1383202320, 1383202318, 1383202315, 1383202264, 1383202261, 1383202258, 1383202256, 1383202253, 1383202251, 1383202228, 1383202224, 1383202218, 1383202213, 1383202209, 1383202204, 1383202194, 1383202190, 1383202187, 1383202183, 1383202160, 1383202139, 1383202106, 1383202076, 1383202061, 1383202034, 1383202002, 1383201982, 1383201977, 1383201972, 1383201650, 1383201609, 1383201554, 1383201497, 1383201443, 1383201110, 1383201078, 1383201051, 1383200660, 1383200569, 1383200481, 1383200394, 1383200314, 1383200233, 1383199871, 1383199815, 1383199744, 1383199690, 1383199631, 1383199396, 1383198940, 1383198903, 1383198873, 1383198843, 1383198472]} ##### 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.01627326011657715 #### 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 Sep 11 06:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26744795) 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 : 26744795 get user id for portfolio 26744795 get sub ptf for main ptf 26744795, type 3726 and hashtags ['Carton_gris', 'Carton_brun', 'cartonnette', 'Teint_Dans_La_Masse', 'metal', 'plastique', 'autre_refus', 'environnement', 'mal_croppe', 'kraft', 'papier', 'flou'] 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`=26744795 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','cartonnette','Teint_Dans_La_Masse','metal','plastique','autre_refus','environnement','mal_croppe','kraft','papier','flou')) 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`=26744795 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','cartonnette','Teint_Dans_La_Masse','metal','plastique','autre_refus','environnement','mal_croppe','kraft','papier','flou')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 26744795, 'sub_port_id': 26744802, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034201, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 57)}, 'cartonnette': {'main_port_id': 26744795, 'sub_port_id': 26744803, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034202, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 57)}, 'papier': {'main_port_id': 26744795, 'sub_port_id': 26744804, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034203, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 57)}, 'flou': {'main_port_id': 26744795, 'sub_port_id': 26744805, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034204, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 57)}, 'Carton_gris': {'main_port_id': 26744795, 'sub_port_id': 26744806, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034205, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 57)}, 'Carton_brun': {'main_port_id': 26744795, 'sub_port_id': 26744807, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034206, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 57)}, 'kraft': {'main_port_id': 26744795, 'sub_port_id': 26744808, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034207, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 26744795, 'sub_port_id': 26744809, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034208, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 57)}, 'environnement': {'main_port_id': 26744795, 'sub_port_id': 26744810, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034209, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 57)}, 'plastique': {'main_port_id': 26744795, 'sub_port_id': 26744811, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034210, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 57)}, 'metal': {'main_port_id': 26744795, 'sub_port_id': 26744812, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034211, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 57)}, 'autre_refus': {'main_port_id': 26744795, 'sub_port_id': 26744813, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034212, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26744802 , 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=26744795 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 (26744802) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26744795) result : ((1383198472,), (1383198843,), (1383198873,), (1383198903,), (1383198940,), (1383199396,), (1383199631,), (1383199690,), (1383199744,), (1383199815,), (1383199871,), (1383200233,), (1383200314,), (1383200394,), (1383200481,), (1383200569,), (1383200660,), (1383201051,), (1383201078,), (1383201110,), (1383201443,), (1383201497,), (1383201554,), (1383201609,), (1383201650,), (1383201972,), (1383201977,), (1383201982,), (1383202002,), (1383202034,), (1383202061,), (1383202076,), (1383202106,), (1383202139,), (1383202160,), (1383202183,), (1383202187,), (1383202190,), (1383202194,), (1383202204,), (1383202209,), (1383202213,), (1383202218,), (1383202224,), (1383202228,), (1383202251,), (1383202253,), (1383202256,), (1383202258,), (1383202261,), (1383202264,), (1383202315,), (1383202318,), (1383202320,), (1383202396,), (1383202413,), (1383202425,), (1383202428,), (1383202431,), (1383202455,), (1383202509,), (1383202511,), (1383202512,), (1383202517,)) 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 26744803 , 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=26744795 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 (26744803) result : ((1383202235,), (1383202236,), (1383202247,), (1383202248,), (1383202249,), (1383202542,), (1383202543,), (1383202544,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26744795) result : ((1383198472,), (1383198843,), (1383198873,), (1383198903,), (1383198940,), (1383199396,), (1383199631,), (1383199690,), (1383199744,), (1383199815,), (1383199871,), (1383200233,), (1383200314,), (1383200394,), (1383200481,), (1383200569,), (1383200660,), (1383201051,), (1383201078,), (1383201110,), (1383201443,), (1383201497,), (1383201554,), (1383201609,), (1383201650,), (1383201972,), (1383201977,), (1383201982,), (1383202002,), (1383202034,), (1383202061,), (1383202076,), (1383202106,), (1383202139,), (1383202160,), (1383202183,), (1383202187,), (1383202190,), (1383202194,), (1383202204,), (1383202209,), (1383202213,), (1383202218,), (1383202224,), (1383202228,), (1383202251,), (1383202253,), (1383202256,), (1383202258,), (1383202261,), (1383202264,), (1383202315,), (1383202318,), (1383202320,), (1383202396,), (1383202413,), (1383202425,), (1383202428,), (1383202431,), (1383202455,), (1383202509,), (1383202511,), (1383202512,), (1383202517,)) 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 26744804 , 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=26744795 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 (26744804) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26744795) result : ((1383198472,), (1383198843,), (1383198873,), (1383198903,), (1383198940,), (1383199396,), (1383199631,), (1383199690,), (1383199744,), (1383199815,), (1383199871,), (1383200233,), (1383200314,), (1383200394,), (1383200481,), (1383200569,), (1383200660,), (1383201051,), (1383201078,), (1383201110,), (1383201443,), (1383201497,), (1383201554,), (1383201609,), (1383201650,), (1383201972,), (1383201977,), (1383201982,), (1383202002,), (1383202034,), (1383202061,), (1383202076,), (1383202106,), (1383202139,), (1383202160,), (1383202183,), (1383202187,), (1383202190,), (1383202194,), (1383202204,), (1383202209,), (1383202213,), (1383202218,), (1383202224,), (1383202228,), (1383202251,), (1383202253,), (1383202256,), (1383202258,), (1383202261,), (1383202264,), (1383202315,), (1383202318,), (1383202320,), (1383202396,), (1383202413,), (1383202425,), (1383202428,), (1383202431,), (1383202455,), (1383202509,), (1383202511,), (1383202512,), (1383202517,)) 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 26744805 , 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=26744795 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 (26744805) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26744795) result : ((1383198472,), (1383198843,), (1383198873,), (1383198903,), (1383198940,), (1383199396,), (1383199631,), (1383199690,), (1383199744,), (1383199815,), (1383199871,), (1383200233,), (1383200314,), (1383200394,), (1383200481,), (1383200569,), (1383200660,), (1383201051,), (1383201078,), (1383201110,), (1383201443,), (1383201497,), (1383201554,), (1383201609,), (1383201650,), (1383201972,), (1383201977,), (1383201982,), (1383202002,), (1383202034,), (1383202061,), (1383202076,), (1383202106,), (1383202139,), (1383202160,), (1383202183,), (1383202187,), (1383202190,), (1383202194,), (1383202204,), (1383202209,), (1383202213,), (1383202218,), (1383202224,), (1383202228,), (1383202251,), (1383202253,), (1383202256,), (1383202258,), (1383202261,), (1383202264,), (1383202315,), (1383202318,), (1383202320,), (1383202396,), (1383202413,), (1383202425,), (1383202428,), (1383202431,), (1383202455,), (1383202509,), (1383202511,), (1383202512,), (1383202517,)) 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 26744806 , 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=26744795 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 (26744806) result : ((1383202234,), (1383202243,), (1383202245,), (1383202246,), (1383202541,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26744795) result : ((1383198472,), (1383198843,), (1383198873,), (1383198903,), (1383198940,), (1383199396,), (1383199631,), (1383199690,), (1383199744,), (1383199815,), (1383199871,), (1383200233,), (1383200314,), (1383200394,), (1383200481,), (1383200569,), (1383200660,), (1383201051,), (1383201078,), (1383201110,), (1383201443,), (1383201497,), (1383201554,), (1383201609,), (1383201650,), (1383201972,), (1383201977,), (1383201982,), (1383202002,), (1383202034,), (1383202061,), (1383202076,), (1383202106,), (1383202139,), (1383202160,), (1383202183,), (1383202187,), (1383202190,), (1383202194,), (1383202204,), (1383202209,), (1383202213,), (1383202218,), (1383202224,), (1383202228,), (1383202251,), (1383202253,), (1383202256,), (1383202258,), (1383202261,), (1383202264,), (1383202315,), (1383202318,), (1383202320,), (1383202396,), (1383202413,), (1383202425,), (1383202428,), (1383202431,), (1383202455,), (1383202509,), (1383202511,), (1383202512,), (1383202517,)) 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 26744807 , 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=26744795 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 (26744807) result : ((1383202380,), (1383202531,), (1383202532,), (1383202546,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26744795) result : ((1383198472,), (1383198843,), (1383198873,), (1383198903,), (1383198940,), (1383199396,), (1383199631,), (1383199690,), (1383199744,), (1383199815,), (1383199871,), (1383200233,), (1383200314,), (1383200394,), (1383200481,), (1383200569,), (1383200660,), (1383201051,), (1383201078,), (1383201110,), (1383201443,), (1383201497,), (1383201554,), (1383201609,), (1383201650,), (1383201972,), (1383201977,), (1383201982,), (1383202002,), (1383202034,), (1383202061,), (1383202076,), (1383202106,), (1383202139,), (1383202160,), (1383202183,), (1383202187,), (1383202190,), (1383202194,), (1383202204,), (1383202209,), (1383202213,), (1383202218,), (1383202224,), (1383202228,), (1383202251,), (1383202253,), (1383202256,), (1383202258,), (1383202261,), (1383202264,), (1383202315,), (1383202318,), (1383202320,), (1383202396,), (1383202413,), (1383202425,), (1383202428,), (1383202431,), (1383202455,), (1383202509,), (1383202511,), (1383202512,), (1383202517,)) 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 26744808 , 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=26744795 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 (26744808) result : ((1383202552,), (1383202553,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26744795) result : ((1383198472,), (1383198843,), (1383198873,), (1383198903,), (1383198940,), (1383199396,), (1383199631,), (1383199690,), (1383199744,), (1383199815,), (1383199871,), (1383200233,), (1383200314,), (1383200394,), (1383200481,), (1383200569,), (1383200660,), (1383201051,), (1383201078,), (1383201110,), (1383201443,), (1383201497,), (1383201554,), (1383201609,), (1383201650,), (1383201972,), (1383201977,), (1383201982,), (1383202002,), (1383202034,), (1383202061,), (1383202076,), (1383202106,), (1383202139,), (1383202160,), (1383202183,), (1383202187,), (1383202190,), (1383202194,), (1383202204,), (1383202209,), (1383202213,), (1383202218,), (1383202224,), (1383202228,), (1383202251,), (1383202253,), (1383202256,), (1383202258,), (1383202261,), (1383202264,), (1383202315,), (1383202318,), (1383202320,), (1383202396,), (1383202413,), (1383202425,), (1383202428,), (1383202431,), (1383202455,), (1383202509,), (1383202511,), (1383202512,), (1383202517,)) 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 26744809 , 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=26744795 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 (26744809) result : ((1383202231,), (1383202232,), (1383202233,), (1383202362,), (1383202528,), (1383202537,), (1383202538,), (1383202539,), (1383202540,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26744795) result : ((1383198472,), (1383198843,), (1383198873,), (1383198903,), (1383198940,), (1383199396,), (1383199631,), (1383199690,), (1383199744,), (1383199815,), (1383199871,), (1383200233,), (1383200314,), (1383200394,), (1383200481,), (1383200569,), (1383200660,), (1383201051,), (1383201078,), (1383201110,), (1383201443,), (1383201497,), (1383201554,), (1383201609,), (1383201650,), (1383201972,), (1383201977,), (1383201982,), (1383202002,), (1383202034,), (1383202061,), (1383202076,), (1383202106,), (1383202139,), (1383202160,), (1383202183,), (1383202187,), (1383202190,), (1383202194,), (1383202204,), (1383202209,), (1383202213,), (1383202218,), (1383202224,), (1383202228,), (1383202251,), (1383202253,), (1383202256,), (1383202258,), (1383202261,), (1383202264,), (1383202315,), (1383202318,), (1383202320,), (1383202396,), (1383202413,), (1383202425,), (1383202428,), (1383202431,), (1383202455,), (1383202509,), (1383202511,), (1383202512,), (1383202517,)) 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 26744810 , 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=26744795 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 (26744810) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26744795) result : ((1383198472,), (1383198843,), (1383198873,), (1383198903,), (1383198940,), (1383199396,), (1383199631,), (1383199690,), (1383199744,), (1383199815,), (1383199871,), (1383200233,), (1383200314,), (1383200394,), (1383200481,), (1383200569,), (1383200660,), (1383201051,), (1383201078,), (1383201110,), (1383201443,), (1383201497,), (1383201554,), (1383201609,), (1383201650,), (1383201972,), (1383201977,), (1383201982,), (1383202002,), (1383202034,), (1383202061,), (1383202076,), (1383202106,), (1383202139,), (1383202160,), (1383202183,), (1383202187,), (1383202190,), (1383202194,), (1383202204,), (1383202209,), (1383202213,), (1383202218,), (1383202224,), (1383202228,), (1383202251,), (1383202253,), (1383202256,), (1383202258,), (1383202261,), (1383202264,), (1383202315,), (1383202318,), (1383202320,), (1383202396,), (1383202413,), (1383202425,), (1383202428,), (1383202431,), (1383202455,), (1383202509,), (1383202511,), (1383202512,), (1383202517,)) 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 26744811 , 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=26744795 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 (26744811) result : ((1383202364,), (1383202382,), (1383202534,), (1383202535,), (1383202549,), (1383202550,), (1383202551,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26744795) result : ((1383198472,), (1383198843,), (1383198873,), (1383198903,), (1383198940,), (1383199396,), (1383199631,), (1383199690,), (1383199744,), (1383199815,), (1383199871,), (1383200233,), (1383200314,), (1383200394,), (1383200481,), (1383200569,), (1383200660,), (1383201051,), (1383201078,), (1383201110,), (1383201443,), (1383201497,), (1383201554,), (1383201609,), (1383201650,), (1383201972,), (1383201977,), (1383201982,), (1383202002,), (1383202034,), (1383202061,), (1383202076,), (1383202106,), (1383202139,), (1383202160,), (1383202183,), (1383202187,), (1383202190,), (1383202194,), (1383202204,), (1383202209,), (1383202213,), (1383202218,), (1383202224,), (1383202228,), (1383202251,), (1383202253,), (1383202256,), (1383202258,), (1383202261,), (1383202264,), (1383202315,), (1383202318,), (1383202320,), (1383202396,), (1383202413,), (1383202425,), (1383202428,), (1383202431,), (1383202455,), (1383202509,), (1383202511,), (1383202512,), (1383202517,)) 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 26744812 , 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=26744795 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 (26744812) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26744795) result : ((1383198472,), (1383198843,), (1383198873,), (1383198903,), (1383198940,), (1383199396,), (1383199631,), (1383199690,), (1383199744,), (1383199815,), (1383199871,), (1383200233,), (1383200314,), (1383200394,), (1383200481,), (1383200569,), (1383200660,), (1383201051,), (1383201078,), (1383201110,), (1383201443,), (1383201497,), (1383201554,), (1383201609,), (1383201650,), (1383201972,), (1383201977,), (1383201982,), (1383202002,), (1383202034,), (1383202061,), (1383202076,), (1383202106,), (1383202139,), (1383202160,), (1383202183,), (1383202187,), (1383202190,), (1383202194,), (1383202204,), (1383202209,), (1383202213,), (1383202218,), (1383202224,), (1383202228,), (1383202251,), (1383202253,), (1383202256,), (1383202258,), (1383202261,), (1383202264,), (1383202315,), (1383202318,), (1383202320,), (1383202396,), (1383202413,), (1383202425,), (1383202428,), (1383202431,), (1383202455,), (1383202509,), (1383202511,), (1383202512,), (1383202517,)) 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 26744813 , 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=26744795 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 (26744813) result : ((1383202240,), (1383202241,), (1383202529,), (1383202530,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26744795) result : ((1383198472,), (1383198843,), (1383198873,), (1383198903,), (1383198940,), (1383199396,), (1383199631,), (1383199690,), (1383199744,), (1383199815,), (1383199871,), (1383200233,), (1383200314,), (1383200394,), (1383200481,), (1383200569,), (1383200660,), (1383201051,), (1383201078,), (1383201110,), (1383201443,), (1383201497,), (1383201554,), (1383201609,), (1383201650,), (1383201972,), (1383201977,), (1383201982,), (1383202002,), (1383202034,), (1383202061,), (1383202076,), (1383202106,), (1383202139,), (1383202160,), (1383202183,), (1383202187,), (1383202190,), (1383202194,), (1383202204,), (1383202209,), (1383202213,), (1383202218,), (1383202224,), (1383202228,), (1383202251,), (1383202253,), (1383202256,), (1383202258,), (1383202261,), (1383202264,), (1383202315,), (1383202318,), (1383202320,), (1383202396,), (1383202413,), (1383202425,), (1383202428,), (1383202431,), (1383202455,), (1383202509,), (1383202511,), (1383202512,), (1383202517,)) 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`=26744795 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','cartonnette','Teint_Dans_La_Masse','metal','plastique','autre_refus','environnement','mal_croppe','kraft','papier','flou')) 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`=26744795 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','cartonnette','Teint_Dans_La_Masse','metal','plastique','autre_refus','environnement','mal_croppe','kraft','papier','flou')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 26744795, 'sub_port_id': 26744814, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034213, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 59)}, 'cartonnette': {'main_port_id': 26744795, 'sub_port_id': 26744815, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034214, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 59)}, 'papier': {'main_port_id': 26744795, 'sub_port_id': 26744816, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034215, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 59)}, 'flou': {'main_port_id': 26744795, 'sub_port_id': 26744817, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034216, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 59)}, 'Carton_gris': {'main_port_id': 26744795, 'sub_port_id': 26744818, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034217, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 59)}, 'Carton_brun': {'main_port_id': 26744795, 'sub_port_id': 26744819, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034218, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 59)}, 'kraft': {'main_port_id': 26744795, 'sub_port_id': 26744820, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034219, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 26744795, 'sub_port_id': 26744821, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034220, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 59)}, 'environnement': {'main_port_id': 26744795, 'sub_port_id': 26744822, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034221, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 59)}, 'plastique': {'main_port_id': 26744795, 'sub_port_id': 26744823, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034222, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 59)}, 'metal': {'main_port_id': 26744795, 'sub_port_id': 26744824, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034223, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 59)}, 'autre_refus': {'main_port_id': 26744795, 'sub_port_id': 26744825, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18034224, 'last_updated_at': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 11, 6, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 11, 6, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26744814,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26744802 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26744815,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26744803 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26744816,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26744804 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26744817,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26744805 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26744818,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26744806 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26744819,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26744807 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26744820,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26744808 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26744821,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26744809 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26744822,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26744810 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26744823,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26744811 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26744824,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26744812 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26744825,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26744813 lien utilise dans velours : https://marlene.fotonower.com/velours/26744814,26744815,26744816,26744817,26744818,26744819,26744820,26744821,26744822,26744823,26744824,26744825?tags=mal_croppe,cartonnette,papier,flou,Carton_gris,Carton_brun,kraft,Teint_Dans_La_Masse,environnement,plastique,metal,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26744795]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1383202517, 1383202512, 1383202511, 1383202509, 1383202455, 1383202431, 1383202428, 1383202425, 1383202413] map_info['map_portfolio_photo'] : {26744795: [1383202517, 1383202512, 1383202511, 1383202509, 1383202455, 1383202431, 1383202428, 1383202425, 1383202413, 1383202396, 1383202320, 1383202318, 1383202315, 1383202264, 1383202261, 1383202258, 1383202256, 1383202253, 1383202251, 1383202228, 1383202224, 1383202218, 1383202213, 1383202209, 1383202204, 1383202194, 1383202190, 1383202187, 1383202183, 1383202160, 1383202139, 1383202106, 1383202076, 1383202061, 1383202034, 1383202002, 1383201982, 1383201977, 1383201972, 1383201650, 1383201609, 1383201554, 1383201497, 1383201443, 1383201110, 1383201078, 1383201051, 1383200660, 1383200569, 1383200481, 1383200394, 1383200314, 1383200233, 1383199871, 1383199815, 1383199744, 1383199690, 1383199631, 1383199396, 1383198940, 1383198903, 1383198873, 1383198843, 1383198472]} final : False mtd_id 4302 list_pids : [1383202517, 1383202512, 1383202511, 1383202509, 1383202455, 1383202431, 1383202428, 1383202425, 1383202413] Looping around the photos to save general results len do output : 1 /26744795. 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, '3693461') ('4302', '26744795', '1383202517', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202512', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202511', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202509', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202455', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202431', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202428', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202425', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202413', None, None, None, None, None, '3693461') 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, '26744795', "{'mal_croppe': 26744802, 'cartonnette': 26744803, 'papier': 26744804, 'flou': 26744805, 'Carton_gris': 26744806, 'Carton_brun': 26744807, 'kraft': 26744808, 'Teint_Dans_La_Masse': 26744809, 'environnement': 26744810, 'plastique': 26744811, 'metal': 26744812, 'autre_refus': 26744813}", None, None, None, None, '3693461'), ('4302', '26744795', '1383202517', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202512', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202511', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202509', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202455', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202431', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202428', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202425', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202413', None, None, None, None, None, '3693461')] time used for this insertion : 0.015328168869018555 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7544715404510498 time spend to save output : 0.015636444091796875 total time spend for step 1 : 1.7701079845428467 step2:final Thu Sep 11 06: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 (26744795) 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 26744795 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1383198472,1383198940,1383198903,1383198873,1383198843,1383199871,1383199815,1383199744,1383199396,1383199690,1383199631,1383200660,1383200569,1383200481,1383200394,1383200314,1383200233,1383201110,1383201078,1383201051,1383202160,1383201650,1383202139,1383201609,1383202106,1383201554,1383202076,1383201497,1383202061,1383201443,1383202034,1383202002,1383201982,1383201977,1383201972,1383202194,1383202190,1383202187,1383202183,1383202228,1383202224,1383202218,1383202213,1383202209,1383202204,1383202264,1383202261,1383202258,1383202256,1383202253,1383202251,1383202320,1383202318,1383202315,1383202455,1383202431,1383202428,1383202425,1383202396,1383202413,1383202517,1383202512,1383202511,1383202509); 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([26744795]) Inside saveOutput : final : False verbose : True original output for save of step final : {1383202517: ('0.06661903008532415',), 1383202512: ('0.06661903008532415',), 1383202511: ('0.06661903008532415',), 1383202509: ('0.06661903008532415',), 1383202455: ('0.06661903008532415',), 1383202431: ('0.06661903008532415',), 1383202428: ('0.06661903008532415',), 1383202425: ('0.06661903008532415',), 1383202413: ('0.06661903008532415',)} new output for save of step final : {1383202517: ('0.06661903008532415',), 1383202512: ('0.06661903008532415',), 1383202511: ('0.06661903008532415',), 1383202509: ('0.06661903008532415',), 1383202455: ('0.06661903008532415',), 1383202431: ('0.06661903008532415',), 1383202428: ('0.06661903008532415',), 1383202425: ('0.06661903008532415',), 1383202413: ('0.06661903008532415',)} [1383202517, 1383202512, 1383202511, 1383202509, 1383202455, 1383202431, 1383202428, 1383202425, 1383202413] map_info['map_portfolio_photo'] : {26744795: [1383202517, 1383202512, 1383202511, 1383202509, 1383202455, 1383202431, 1383202428, 1383202425, 1383202413, 1383202396, 1383202320, 1383202318, 1383202315, 1383202264, 1383202261, 1383202258, 1383202256, 1383202253, 1383202251, 1383202228, 1383202224, 1383202218, 1383202213, 1383202209, 1383202204, 1383202194, 1383202190, 1383202187, 1383202183, 1383202160, 1383202139, 1383202106, 1383202076, 1383202061, 1383202034, 1383202002, 1383201982, 1383201977, 1383201972, 1383201650, 1383201609, 1383201554, 1383201497, 1383201443, 1383201110, 1383201078, 1383201051, 1383200660, 1383200569, 1383200481, 1383200394, 1383200314, 1383200233, 1383199871, 1383199815, 1383199744, 1383199690, 1383199631, 1383199396, 1383198940, 1383198903, 1383198873, 1383198843, 1383198472]} final : False mtd_id 4302 list_pids : [1383202517, 1383202512, 1383202511, 1383202509, 1383202455, 1383202431, 1383202428, 1383202425, 1383202413] Looping around the photos to save general results len do output : 9 /1383202517.Didn't retrieve data . /1383202512.Didn't retrieve data . /1383202511.Didn't retrieve data . /1383202509.Didn't retrieve data . /1383202455.Didn't retrieve data . /1383202431.Didn't retrieve data . /1383202428.Didn't retrieve data . /1383202425.Didn't retrieve data . /1383202413.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, '3693461') ('4302', '26744795', '1383202517', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202512', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202511', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202509', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202455', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202431', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202428', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202425', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202413', None, None, None, None, None, '3693461') 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', '26744795', '1383202517', '0.06661903008532415', None, None, None, None, '3693461'), ('4302', '26744795', '1383202512', '0.06661903008532415', None, None, None, None, '3693461'), ('4302', '26744795', '1383202511', '0.06661903008532415', None, None, None, None, '3693461'), ('4302', '26744795', '1383202509', '0.06661903008532415', None, None, None, None, '3693461'), ('4302', '26744795', '1383202455', '0.06661903008532415', None, None, None, None, '3693461'), ('4302', '26744795', '1383202431', '0.06661903008532415', None, None, None, None, '3693461'), ('4302', '26744795', '1383202428', '0.06661903008532415', None, None, None, None, '3693461'), ('4302', '26744795', '1383202425', '0.06661903008532415', None, None, None, None, '3693461'), ('4302', '26744795', '1383202413', '0.06661903008532415', None, None, None, None, '3693461')] time used for this insertion : 0.015501260757446289 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.18423676490783691 time spend to save output : 0.0160219669342041 total time spend for step 2 : 0.20025873184204102 step3:velours_tree Thu Sep 11 06:15:01 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 : {26744795: [{'mal_croppe': 26744802, 'cartonnette': 26744803, 'papier': 26744804, 'flou': 26744805, 'Carton_gris': 26744806, 'Carton_brun': 26744807, 'kraft': 26744808, 'Teint_Dans_La_Masse': 26744809, 'environnement': 26744810, 'plastique': 26744811, 'metal': 26744812, 'autre_refus': 26744813}]} input_args_next_step : {26744795: ()} output_args : {26744795: [{'mal_croppe': 26744802, 'cartonnette': 26744803, 'papier': 26744804, 'flou': 26744805, 'Carton_gris': 26744806, 'Carton_brun': 26744807, 'kraft': 26744808, 'Teint_Dans_La_Masse': 26744809, 'environnement': 26744810, 'plastique': 26744811, 'metal': 26744812, 'autre_refus': 26744813}]} args : 26744795 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 : ({'mal_croppe': 26744802, 'cartonnette': 26744803, 'papier': 26744804, 'flou': 26744805, 'Carton_gris': 26744806, 'Carton_brun': 26744807, 'kraft': 26744808, 'Teint_Dans_La_Masse': 26744809, 'environnement': 26744810, 'plastique': 26744811, 'metal': 26744812, 'autre_refus': 26744813},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26744795) 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([26744795]) 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.3050723075866699 time spend to save output : 7.390975952148438e-05 total time spend for step 3 : 0.3051462173461914 step4:send_mail_cod Thu Sep 11 06:15:01 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 : {1383202517: ('0.06661903008532415',), 1383202512: ('0.06661903008532415',), 1383202511: ('0.06661903008532415',), 1383202509: ('0.06661903008532415',), 1383202455: ('0.06661903008532415',), 1383202431: ('0.06661903008532415',), 1383202428: ('0.06661903008532415',), 1383202425: ('0.06661903008532415',), 1383202413: ('0.06661903008532415',)} input_args_next_step : {1383202517: ()} output_args : {1383202517: ('0.06661903008532415',), 1383202512: ('0.06661903008532415',), 1383202511: ('0.06661903008532415',), 1383202509: ('0.06661903008532415',), 1383202455: ('0.06661903008532415',), 1383202431: ('0.06661903008532415',), 1383202428: ('0.06661903008532415',), 1383202425: ('0.06661903008532415',), 1383202413: ('0.06661903008532415',)} args : 1383202517 depend.output_id : 0 input_args_next_step : {1383202517: ('0.06661903008532415',), 1383202512: ()} output_args : {1383202517: ('0.06661903008532415',), 1383202512: ('0.06661903008532415',), 1383202511: ('0.06661903008532415',), 1383202509: ('0.06661903008532415',), 1383202455: ('0.06661903008532415',), 1383202431: ('0.06661903008532415',), 1383202428: ('0.06661903008532415',), 1383202425: ('0.06661903008532415',), 1383202413: ('0.06661903008532415',)} args : 1383202512 depend.output_id : 0 input_args_next_step : {1383202517: ('0.06661903008532415',), 1383202512: ('0.06661903008532415',), 1383202511: ()} output_args : {1383202517: ('0.06661903008532415',), 1383202512: ('0.06661903008532415',), 1383202511: ('0.06661903008532415',), 1383202509: ('0.06661903008532415',), 1383202455: ('0.06661903008532415',), 1383202431: ('0.06661903008532415',), 1383202428: ('0.06661903008532415',), 1383202425: ('0.06661903008532415',), 1383202413: ('0.06661903008532415',)} args : 1383202511 depend.output_id : 0 input_args_next_step : {1383202517: ('0.06661903008532415',), 1383202512: ('0.06661903008532415',), 1383202511: ('0.06661903008532415',), 1383202509: ()} output_args : {1383202517: ('0.06661903008532415',), 1383202512: ('0.06661903008532415',), 1383202511: ('0.06661903008532415',), 1383202509: ('0.06661903008532415',), 1383202455: ('0.06661903008532415',), 1383202431: ('0.06661903008532415',), 1383202428: ('0.06661903008532415',), 1383202425: ('0.06661903008532415',), 1383202413: ('0.06661903008532415',)} args : 1383202509 depend.output_id : 0 input_args_next_step : {1383202517: ('0.06661903008532415',), 1383202512: ('0.06661903008532415',), 1383202511: ('0.06661903008532415',), 1383202509: ('0.06661903008532415',), 1383202455: ()} output_args : {1383202517: ('0.06661903008532415',), 1383202512: ('0.06661903008532415',), 1383202511: ('0.06661903008532415',), 1383202509: ('0.06661903008532415',), 1383202455: ('0.06661903008532415',), 1383202431: ('0.06661903008532415',), 1383202428: ('0.06661903008532415',), 1383202425: ('0.06661903008532415',), 1383202413: ('0.06661903008532415',)} args : 1383202455 depend.output_id : 0 input_args_next_step : {1383202517: ('0.06661903008532415',), 1383202512: ('0.06661903008532415',), 1383202511: ('0.06661903008532415',), 1383202509: ('0.06661903008532415',), 1383202455: ('0.06661903008532415',), 1383202431: ()} output_args : {1383202517: ('0.06661903008532415',), 1383202512: ('0.06661903008532415',), 1383202511: ('0.06661903008532415',), 1383202509: ('0.06661903008532415',), 1383202455: ('0.06661903008532415',), 1383202431: ('0.06661903008532415',), 1383202428: ('0.06661903008532415',), 1383202425: ('0.06661903008532415',), 1383202413: ('0.06661903008532415',)} args : 1383202431 depend.output_id : 0 input_args_next_step : {1383202517: ('0.06661903008532415',), 1383202512: ('0.06661903008532415',), 1383202511: ('0.06661903008532415',), 1383202509: ('0.06661903008532415',), 1383202455: ('0.06661903008532415',), 1383202431: ('0.06661903008532415',), 1383202428: ()} output_args : {1383202517: ('0.06661903008532415',), 1383202512: ('0.06661903008532415',), 1383202511: ('0.06661903008532415',), 1383202509: ('0.06661903008532415',), 1383202455: ('0.06661903008532415',), 1383202431: ('0.06661903008532415',), 1383202428: ('0.06661903008532415',), 1383202425: ('0.06661903008532415',), 1383202413: ('0.06661903008532415',)} args : 1383202428 depend.output_id : 0 input_args_next_step : {1383202517: ('0.06661903008532415',), 1383202512: ('0.06661903008532415',), 1383202511: ('0.06661903008532415',), 1383202509: ('0.06661903008532415',), 1383202455: ('0.06661903008532415',), 1383202431: ('0.06661903008532415',), 1383202428: ('0.06661903008532415',), 1383202425: ()} output_args : {1383202517: ('0.06661903008532415',), 1383202512: ('0.06661903008532415',), 1383202511: ('0.06661903008532415',), 1383202509: ('0.06661903008532415',), 1383202455: ('0.06661903008532415',), 1383202431: ('0.06661903008532415',), 1383202428: ('0.06661903008532415',), 1383202425: ('0.06661903008532415',), 1383202413: ('0.06661903008532415',)} args : 1383202425 depend.output_id : 0 input_args_next_step : {1383202517: ('0.06661903008532415',), 1383202512: ('0.06661903008532415',), 1383202511: ('0.06661903008532415',), 1383202509: ('0.06661903008532415',), 1383202455: ('0.06661903008532415',), 1383202431: ('0.06661903008532415',), 1383202428: ('0.06661903008532415',), 1383202425: ('0.06661903008532415',), 1383202413: ()} output_args : {1383202517: ('0.06661903008532415',), 1383202512: ('0.06661903008532415',), 1383202511: ('0.06661903008532415',), 1383202509: ('0.06661903008532415',), 1383202455: ('0.06661903008532415',), 1383202431: ('0.06661903008532415',), 1383202428: ('0.06661903008532415',), 1383202425: ('0.06661903008532415',), 1383202413: ('0.06661903008532415',)} args : 1383202413 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 : {26744795: [{'mal_croppe': 26744802, 'cartonnette': 26744803, 'papier': 26744804, 'flou': 26744805, 'Carton_gris': 26744806, 'Carton_brun': 26744807, 'kraft': 26744808, 'Teint_Dans_La_Masse': 26744809, 'environnement': 26744810, 'plastique': 26744811, 'metal': 26744812, 'autre_refus': 26744813}]} input_args_next_step : {1383202517: ('0.06661903008532415',), 1383202512: ('0.06661903008532415',), 1383202511: ('0.06661903008532415',), 1383202509: ('0.06661903008532415',), 1383202455: ('0.06661903008532415',), 1383202431: ('0.06661903008532415',), 1383202428: ('0.06661903008532415',), 1383202425: ('0.06661903008532415',), 1383202413: ('0.06661903008532415',), 26744795: ()} output_args : {26744795: [{'mal_croppe': 26744802, 'cartonnette': 26744803, 'papier': 26744804, 'flou': 26744805, 'Carton_gris': 26744806, 'Carton_brun': 26744807, 'kraft': 26744808, 'Teint_Dans_La_Masse': 26744809, 'environnement': 26744810, 'plastique': 26744811, 'metal': 26744812, 'autre_refus': 26744813}]} args : 26744795 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.06661903008532415',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26744795) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1383202517,1383202512,1383202511,1383202509,1383202455,1383202431,1383202428,1383202425,1383202413) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1383202413 begin to download photo : 1383202428 begin to download photo : 1383202455 begin to download photo : 1383202511 begin to download photo : 1383202517 download finish for photo 1383202511 begin to download photo : 1383202512 download finish for photo 1383202428 begin to download photo : 1383202431 download finish for photo 1383202413 begin to download photo : 1383202425 download finish for photo 1383202517 download finish for photo 1383202455 begin to download photo : 1383202509 download finish for photo 1383202431 download finish for photo 1383202425 download finish for photo 1383202509 download finish for photo 1383202512 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette267448021757564101/ length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P26744795_11-09-2025_06_15_01.pdf 26744802 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26744802 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267448021757564101 26744803 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26744803 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383202235: '1757563745_3575359_1383200569_8087c925222b405bdcc915c811a2011d_rle_crop_3955170922_0.png', 1383202236: '1757563745_3575359_1383200394_e369da92e4366310e2c64055d3a75f8c_rle_crop_3955170940_0.png', 1383202247: '1757563765_3576434_1383199631_ad13b5f9fbcd79bda545139843507c2e_rle_crop_3955171209_0.png', 1383202248: '1757563765_3576434_1383199631_ad13b5f9fbcd79bda545139843507c2e_rle_crop_3955171213_0.png', 1383202249: '1757563765_3576434_1383199396_834c8a77f65b14ff1f703635085b9f91_rle_crop_3955171227_0.png', 1383202542: '1757564006_3590934_1383202213_78e5aa7fb016104cfff83714fb79086c_rle_crop_3955172035_0.png', 1383202543: '1757564006_3590934_1383202209_a6a4c910da13cbe6948d7588e694b5e9_rle_crop_3955172052_0.png', 1383202544: '1757564006_3590934_1383202204_cab6fde892b54cef0003bd026d61de47_rle_crop_3955172073_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/7e5d31b1857db7267c781243463e105a_63437552.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/44ce1377cbef1fc8045db21081c3b9ff_65595671.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/1a1b18548c2ac142289acd087c80abe0_9003042.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/37f585dbea4f8067ab04b88697841394_23333912.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/96469dcbda6a125085a4133b93933844_3386412.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/47bda4b851dddd49802e90067134324d_20247933.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/d06716f80544777dd9e51a30ebb6f0bd_47922359.png change filename to text .imagette267448031757564101/ imagette267448031757564101/1757563765_3576434_1383199631_ad13b5f9fbcd79bda545139843507c2e_rle_crop_3955171213_0.png.png imagette267448031757564101/1757563765_3576434_1383199631_ad13b5f9fbcd79bda545139843507c2e_rle_crop_3955171209_0.png.png imagette267448031757564101/1757563765_3576434_1383199396_834c8a77f65b14ff1f703635085b9f91_rle_crop_3955171227_0.png.png imagette267448031757564101/1757563745_3575359_1383200569_8087c925222b405bdcc915c811a2011d_rle_crop_3955170922_0.png.png imagette267448031757564101/1757563745_3575359_1383200394_e369da92e4366310e2c64055d3a75f8c_rle_crop_3955170940_0.png.png imagette267448031757564101/1757564006_3590934_1383202213_78e5aa7fb016104cfff83714fb79086c_rle_crop_3955172035_0.png.png imagette267448031757564101/1757564006_3590934_1383202204_cab6fde892b54cef0003bd026d61de47_rle_crop_3955172073_0.png.png imagette267448031757564101/1757564006_3590934_1383202209_a6a4c910da13cbe6948d7588e694b5e9_rle_crop_3955172052_0.png.png imagette267448051757564102/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/4350a5e9f95d1f68e570a31392afb1ea_7875747.png imagette267448031757564101 26744805 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26744805 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267448051757564102 26744808 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26744808 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383202552: '1757564006_3590934_1383202213_78e5aa7fb016104cfff83714fb79086c_rle_crop_3955172040_0.png', 1383202553: '1757564006_3590934_1383202204_cab6fde892b54cef0003bd026d61de47_rle_crop_3955172063_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/c34979c37cdb151501c3ce6ce46b14b3_12273198.png change filename to text .imagette267448081757564102/ imagette267448081757564102/1757564006_3590934_1383202213_78e5aa7fb016104cfff83714fb79086c_rle_crop_3955172040_0.png.png imagette267448081757564102/1757564006_3590934_1383202204_cab6fde892b54cef0003bd026d61de47_rle_crop_3955172063_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/a00d2663b4df35a4358e5570d1dd5184_62769808.png imagette267448081757564102 26744811 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26744811 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383202364: '1757563867_3582942_1383198472_c88d30cd24a12dff7f776b064c3ab5d9_rle_crop_3955171540_0.png', 1383202382: '1757563887_3583560_1383198903_7db73583343d0e019034590b834d6d28_rle_crop_3955171649_0.png', 1383202534: '1757563985_3590520_1383202190_76f59c23ee987ec0a7aa601fa841c04f_rle_crop_3955171877_0.png', 1383202535: '1757563985_3590520_1383202187_b4895566b53d5482b4c495e0047d8346_rle_crop_3955171891_0.png', 1383202549: '1757564006_3590934_1383202213_78e5aa7fb016104cfff83714fb79086c_rle_crop_3955172039_0.png', 1383202550: '1757564006_3590934_1383202204_cab6fde892b54cef0003bd026d61de47_rle_crop_3955172074_0.png', 1383202551: '1757564006_3590934_1383202204_cab6fde892b54cef0003bd026d61de47_rle_crop_3955172076_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/b64e35e8878efbf0c4ebe9e64d7543e2_34490142.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/73ada2878c93386bef0f7e2dad9dc84e_6978141.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/4d5e663cc78b06638ff2db5befbe4aa2_57645971.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/7fbb2f95df95320e415e260e88dbda14_81675913.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/4eb06a2308e66f7ed2cb9d4412a461b0_33492231.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/2b8214a1a776a1a1b981d4764179586e_99088952.png change filename to text .imagette267448111757564102/ imagette267448111757564102/1757563887_3583560_1383198903_7db73583343d0e019034590b834d6d28_rle_crop_3955171649_0.png.png imagette267448111757564102/1757563985_3590520_1383202190_76f59c23ee987ec0a7aa601fa841c04f_rle_crop_3955171877_0.png.png imagette267448111757564102/1757564006_3590934_1383202204_cab6fde892b54cef0003bd026d61de47_rle_crop_3955172074_0.png.png imagette267448111757564102/1757563867_3582942_1383198472_c88d30cd24a12dff7f776b064c3ab5d9_rle_crop_3955171540_0.png.png imagette267448111757564102/1757564006_3590934_1383202204_cab6fde892b54cef0003bd026d61de47_rle_crop_3955172076_0.png.png imagette267448111757564102/1757563985_3590520_1383202187_b4895566b53d5482b4c495e0047d8346_rle_crop_3955171891_0.png.png imagette267448111757564102/1757564006_3590934_1383202213_78e5aa7fb016104cfff83714fb79086c_rle_crop_3955172039_0.png.png imagette267448121757564103/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/e52b539151a9013434e330fb62213a12_68140110.png imagette267448111757564102 26744812 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26744812 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267448121757564103 26744813 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26744813 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383202240: '1757563765_3576434_1383199690_fd74c3dcc7256275f307dcaf6e6274d5_rle_crop_3955171200_0.png', 1383202241: '1757563765_3576434_1383199396_834c8a77f65b14ff1f703635085b9f91_rle_crop_3955171232_0.png', 1383202529: '1757563985_3590520_1383202187_b4895566b53d5482b4c495e0047d8346_rle_crop_3955171889_0.png', 1383202530: '1757563985_3590520_1383202183_7240be943940231a9d7d506b2a754576_rle_crop_3955171906_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/3c4d90cefa6618ea392a056e29eb7fbd_79526586.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/13f0f01f225c327bfc9f56edc8ee087e_38870521.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/c6e57666be8e4a8524165aa420891acd_72802956.png change filename to text .imagette267448131757564103/ imagette267448131757564103/1757563765_3576434_1383199690_fd74c3dcc7256275f307dcaf6e6274d5_rle_crop_3955171200_0.png.png imagette267448131757564103/1757563985_3590520_1383202183_7240be943940231a9d7d506b2a754576_rle_crop_3955171906_0.png.png imagette267448131757564103/1757563765_3576434_1383199396_834c8a77f65b14ff1f703635085b9f91_rle_crop_3955171232_0.png.png imagette267448131757564103/1757563985_3590520_1383202187_b4895566b53d5482b4c495e0047d8346_rle_crop_3955171889_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/fd3ff825ef17e3378e3a861f97a5af26_15639273.png imagette267448131757564103 26744806 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26744806 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383202234: '1757563745_3575359_1383200233_ad1f5f5f565dcf78bcedf58a6b02d0bc_rle_crop_3955170965_0.png', 1383202243: '1757563765_3576434_1383199744_c0b98b8e53632f5cef85de1c63320473_rle_crop_3955171189_0.png', 1383202245: '1757563765_3576434_1383199690_fd74c3dcc7256275f307dcaf6e6274d5_rle_crop_3955171198_0.png', 1383202246: '1757563765_3576434_1383199396_834c8a77f65b14ff1f703635085b9f91_rle_crop_3955171230_0.png', 1383202541: '1757564006_3590934_1383202213_78e5aa7fb016104cfff83714fb79086c_rle_crop_3955172036_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/8f620087ea585748961bd09f98d533aa_15415054.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/189afc7a8b91b94ea1825b03f8814664_16426108.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/4e822aed7a01d062f61c0c1d223b9b9b_40752755.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/db9d772b0de08cb1e9a9589c248eaa05_40955544.png change filename to text .imagette267448061757564103/ imagette267448061757564103/1757564006_3590934_1383202213_78e5aa7fb016104cfff83714fb79086c_rle_crop_3955172036_0.png.png imagette267448061757564103/1757563765_3576434_1383199690_fd74c3dcc7256275f307dcaf6e6274d5_rle_crop_3955171198_0.png.png imagette267448061757564103/1757563745_3575359_1383200233_ad1f5f5f565dcf78bcedf58a6b02d0bc_rle_crop_3955170965_0.png.png imagette267448061757564103/1757563765_3576434_1383199744_c0b98b8e53632f5cef85de1c63320473_rle_crop_3955171189_0.png.png imagette267448061757564103/1757563765_3576434_1383199396_834c8a77f65b14ff1f703635085b9f91_rle_crop_3955171230_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/69a1f47084878bcb6efcbdddead0c4b5_6389140.png imagette267448061757564103 26744807 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26744807 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383202380: '1757563887_3583560_1383198843_f40bba66e43c75885f70fa4f659a5bf6_rle_crop_3955171667_0.png', 1383202531: '1757563985_3590520_1383202183_7240be943940231a9d7d506b2a754576_rle_crop_3955171907_0.png', 1383202532: '1757563985_3590520_1383202183_7240be943940231a9d7d506b2a754576_rle_crop_3955171910_0.png', 1383202546: '1757564006_3590934_1383202213_78e5aa7fb016104cfff83714fb79086c_rle_crop_3955172037_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/abfe70ac4c61c38383db8f702a94dda8_21333854.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/12ac769f35dfac8ec55c0e13925bf9b7_74198625.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/55e4f6cd5f7492885d170d1428f721ef_69834551.png change filename to text .imagette267448071757564103/ imagette267448071757564103/1757564006_3590934_1383202213_78e5aa7fb016104cfff83714fb79086c_rle_crop_3955172037_0.png.png imagette267448071757564103/1757563887_3583560_1383198843_f40bba66e43c75885f70fa4f659a5bf6_rle_crop_3955171667_0.png.png imagette267448071757564103/1757563985_3590520_1383202183_7240be943940231a9d7d506b2a754576_rle_crop_3955171907_0.png.png imagette267448071757564103/1757563985_3590520_1383202183_7240be943940231a9d7d506b2a754576_rle_crop_3955171910_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/6507cc47bddc47fe6af10437f5abc90d_12715234.png imagette267448071757564103 26744809 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26744809 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1383202231: '1757563745_3575359_1383200481_3f22a174a04b5de2d7b0d338233df3c8_rle_crop_3955170934_0.png', 1383202232: '1757563745_3575359_1383200314_2aa808d0acca46f699bc90c1f1bbaaea_rle_crop_3955170953_0.png', 1383202233: '1757563745_3575359_1383200233_ad1f5f5f565dcf78bcedf58a6b02d0bc_rle_crop_3955170970_0.png', 1383202362: '1757563867_3582942_1383198472_c88d30cd24a12dff7f776b064c3ab5d9_rle_crop_3955171543_0.png', 1383202528: '1757563985_3590520_1383202183_7240be943940231a9d7d506b2a754576_rle_crop_3955171909_0.png', 1383202537: '1757564006_3590934_1383202213_78e5aa7fb016104cfff83714fb79086c_rle_crop_3955172038_0.png', 1383202538: '1757564006_3590934_1383202213_78e5aa7fb016104cfff83714fb79086c_rle_crop_3955172044_0.png', 1383202539: '1757564006_3590934_1383202209_a6a4c910da13cbe6948d7588e694b5e9_rle_crop_3955172058_0.png', 1383202540: '1757564006_3590934_1383202204_cab6fde892b54cef0003bd026d61de47_rle_crop_3955172068_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/7c344896945927b307ae21a72cdde840_60112646.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/2869910e6a595d262d2a4abc66af8179_23510673.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/63be09e0edc8582cf621394723ff0a23_67039099.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/d6c5f56a7b7d40d210dbd3ca5bc892a9_43223000.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/b8e166fe404442ec6926e50b65e55866_8662711.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/c8ef01215b4b3c4cc3b09bedc381adbf_2499738.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/d982ed4190c38d6b7114f91bfce42fc8_82032114.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/b604aa9aa6588fa41c5c7d6960cd9175_36112966.png change filename to text .imagette267448091757564103/ imagette267448091757564103/1757563745_3575359_1383200233_ad1f5f5f565dcf78bcedf58a6b02d0bc_rle_crop_3955170970_0.png.png imagette267448091757564103/1757563745_3575359_1383200481_3f22a174a04b5de2d7b0d338233df3c8_rle_crop_3955170934_0.png.png imagette267448091757564103/1757563867_3582942_1383198472_c88d30cd24a12dff7f776b064c3ab5d9_rle_crop_3955171543_0.png.png imagette267448091757564103/1757564006_3590934_1383202204_cab6fde892b54cef0003bd026d61de47_rle_crop_3955172068_0.png.png imagette267448091757564103/1757564006_3590934_1383202209_a6a4c910da13cbe6948d7588e694b5e9_rle_crop_3955172058_0.png.png imagette267448091757564103/1757563985_3590520_1383202183_7240be943940231a9d7d506b2a754576_rle_crop_3955171909_0.png.png imagette267448091757564103/1757564006_3590934_1383202213_78e5aa7fb016104cfff83714fb79086c_rle_crop_3955172044_0.png.png imagette267448091757564103/1757564006_3590934_1383202213_78e5aa7fb016104cfff83714fb79086c_rle_crop_3955172038_0.png.png imagette267448091757564103/1757563745_3575359_1383200314_2aa808d0acca46f699bc90c1f1bbaaea_rle_crop_3955170953_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/ce585e9944687c3dbb8d7ba05e0e0bf9_63143855.png imagette267448091757564103 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26744795 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26744814,26744815,26744816,26744817,26744818,26744819,26744820,26744821,26744822,26744823,26744824,26744825?tags=mal_croppe,cartonnette,papier,flou,Carton_gris,Carton_brun,kraft,Teint_Dans_La_Masse,environnement,plastique,metal,autre_refus your option no_mail is active, we will not send the real mail to your client args[1383202517] : ('0.06661903008532415',) no score found for photo 1383202517 We are sending mail with results at report@fotonower.com args[1383202512] : ('0.06661903008532415',) no score found for photo 1383202512 We are sending mail with results at report@fotonower.com args[1383202511] : ('0.06661903008532415',) no score found for photo 1383202511 We are sending mail with results at report@fotonower.com args[1383202509] : ('0.06661903008532415',) no score found for photo 1383202509 We are sending mail with results at report@fotonower.com args[1383202455] : ('0.06661903008532415',) no score found for photo 1383202455 We are sending mail with results at report@fotonower.com args[1383202431] : ('0.06661903008532415',) no score found for photo 1383202431 We are sending mail with results at report@fotonower.com args[1383202428] : ('0.06661903008532415',) no score found for photo 1383202428 We are sending mail with results at report@fotonower.com args[1383202425] : ('0.06661903008532415',) no score found for photo 1383202425 We are sending mail with results at report@fotonower.com args[1383202413] : ('0.06661903008532415',) no score found for photo 1383202413 We are sending mail with results at report@fotonower.com refus_total : 0.06661903008532415 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26744795 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_P26744795_11-09-2025_06_15_01.pdf results_Auto_P26744795_11-09-2025_06_15_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26744795_11-09-2025_06_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','26744795','results_Auto_P26744795_11-09-2025_06_15_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26744795_11-09-2025_06_15_01.pdf','pdf','','0.21','0.06661903008532415') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26744795]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1383202517, 1383202512, 1383202511, 1383202509, 1383202455, 1383202431, 1383202428, 1383202425, 1383202413] map_info['map_portfolio_photo'] : {26744795: [1383202517, 1383202512, 1383202511, 1383202509, 1383202455, 1383202431, 1383202428, 1383202425, 1383202413, 1383202396, 1383202320, 1383202318, 1383202315, 1383202264, 1383202261, 1383202258, 1383202256, 1383202253, 1383202251, 1383202228, 1383202224, 1383202218, 1383202213, 1383202209, 1383202204, 1383202194, 1383202190, 1383202187, 1383202183, 1383202160, 1383202139, 1383202106, 1383202076, 1383202061, 1383202034, 1383202002, 1383201982, 1383201977, 1383201972, 1383201650, 1383201609, 1383201554, 1383201497, 1383201443, 1383201110, 1383201078, 1383201051, 1383200660, 1383200569, 1383200481, 1383200394, 1383200314, 1383200233, 1383199871, 1383199815, 1383199744, 1383199690, 1383199631, 1383199396, 1383198940, 1383198903, 1383198873, 1383198843, 1383198472]} final : False mtd_id 4302 list_pids : [1383202517, 1383202512, 1383202511, 1383202509, 1383202455, 1383202431, 1383202428, 1383202425, 1383202413] 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, '3693461') ('4302', '26744795', '1383202517', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202512', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202511', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202509', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202455', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202431', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202428', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202425', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202413', None, None, None, None, None, '3693461') 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', '26744795', '1383202517', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202512', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202511', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202509', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202455', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202431', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202428', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202425', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202413', None, None, None, None, None, '3693461')] time used for this insertion : 0.015867233276367188 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.9369356632232666 time spend to save output : 0.016133546829223633 total time spend for step 4 : 3.9530692100524902 step5:split_time_score Thu Sep 11 06:15:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['26744795'] 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 : [('26744795',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26744795) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1383202517: {'path': 'temp/1757564101_732785_1383202517_5c752d4e1b98632e3a90b8b5c500e0e2.jpg', 'extension': 'jpg'}, 1383202428: {'path': 'temp/1757564101_732785_1383202428_30dafa4977a86af0b6871e93b05e86c8.jpg', 'extension': 'jpg'}, 1383202431: {'path': 'temp/1757564101_732785_1383202431_8b66f761b53559e7c663ed58ee4188c0.jpg', 'extension': 'jpg'}, 1383202413: {'path': 'temp/1757564101_732785_1383202413_af75d85b6d73891e9a883f83093d2519.jpg', 'extension': 'jpg'}, 1383202425: {'path': 'temp/1757564101_732785_1383202425_d021d409331e7f3a7d65253b798b7d88.jpg', 'extension': 'jpg'}, 1383202455: {'path': 'temp/1757564101_732785_1383202455_4a8845dda782e5089f435740bee9abc4.jpg', 'extension': 'jpg'}, 1383202509: {'path': 'temp/1757564101_732785_1383202509_06ddc8b58c6cc3a520010caa2c810a96.jpg', 'extension': 'jpg'}, 1383202511: {'path': 'temp/1757564101_732785_1383202511_4b5fb19fa689054438fb93417060b92c.jpg', 'extension': 'jpg'}, 1383202512: {'path': 'temp/1757564101_732785_1383202512_e1d6de5982b21b02d3e6314a4cc94299.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 = 26744795; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26744795 group by h (('06', 64),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26744795 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 (26744795) 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 (26744795) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11092025 26744795 Nombre de photos uploadées : 64 / 23040 (0%) 11092025 26744795 Nombre de photos taguées (types de déchets): 0 / 64 (0%) 11092025 26744795 Nombre de photos taguées (volume) : 0 / 64 (0%) [{'photo_id': 1383198472, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/c88d30cd24a12dff7f776b064c3ab5d9.jpg', 'username': None, 'uploaded_at': 1757563267, 'text': 'image_11092025_06_00_04_010168m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1383198940, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/77faa04223fa6b96c02afce0e2e570ae.jpg', 'username': None, 'uploaded_at': 1757563328, 'text': 'image_11092025_06_00_13_009124m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1383198903, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/7db73583343d0e019034590b834d6d28.jpg', 'username': None, 'uploaded_at': 1757563328, 'text': 'image_11092025_06_01_04_10140.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1383198873, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/11/4bd59d6084a0241c9083bddc3d2e0ccf.jpg', 'username': None, 'uploaded_at': 1757563328, 'text': 'image_11092025_06_01_23_10135.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ???????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0027208328247070312 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26744795, '2025-09-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-09-11' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2268717,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20245957374572754 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= 2268717 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2268717, 'dashboard_run_id': 2277733, 'mtr_portfolio_id': 26735086, 'dashboard_result_id': 15017243, '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_P26735086_11-09-2025_05_54_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26735089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26735090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26735091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26735092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26735093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26735094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26735095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26735096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26735097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26735098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26735099, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26735100, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2277733, 'mtr_portfolio_id': 26735395, 'dashboard_result_id': 15017244, '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_P26735395_11-09-2025_05_55_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26735401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26735402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26735403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26735404, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26735405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26735406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26735407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26735408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26735409, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26735410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26735411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26735412, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2277733, 'mtr_portfolio_id': 26735834, 'dashboard_result_id': 15017245, '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_P26735834_11-09-2025_05_56_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26735841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26735842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26735843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26735844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26735845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26735846, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26735847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26735848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26735849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26735850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26735851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26735852, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2277733, 'mtr_portfolio_id': 26736224, 'dashboard_result_id': 15017246, '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_P26736224_11-09-2025_05_56_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26736232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26736233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26736234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26736235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26736236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26736237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26736238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26736239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26736240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26736241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26736242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26736243, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2277733, 'mtr_portfolio_id': 26737263, 'dashboard_result_id': 15017247, '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_P26737263_11-09-2025_05_57_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26737266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26737267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26737268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26737269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26737270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26737271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26737272, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26737273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26737274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26737275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26737276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26737277, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2277733, 'mtr_portfolio_id': 26737663, 'dashboard_result_id': 15017248, '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_P26737663_11-09-2025_05_58_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26737668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26737669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26737670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26737671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26737672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26737673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26737674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26737675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26737676, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26737677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26737678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26737679, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2277733, 'mtr_portfolio_id': 26738034, 'dashboard_result_id': 15017249, '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_P26738034_11-09-2025_05_58_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26738040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26738041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26738042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26738043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26738044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26738045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26738046, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26738047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26738048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26738049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26738050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26738051, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2277733, 'mtr_portfolio_id': 26738546, 'dashboard_result_id': 15017250, '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_P26738546_11-09-2025_05_59_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26738554, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26738555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26738556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26738557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26738558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26738559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26738560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26738561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26738562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26738563, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26738564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26738565, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2277733, 'mtr_portfolio_id': 26739074, 'dashboard_result_id': 15017251, '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_P26739074_11-09-2025_02_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26739084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26739085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26739086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26739087, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26739088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26739089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26739090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26739091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26739092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26739093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26739094, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26739095, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2277733, 'mtr_portfolio_id': 26739557, 'dashboard_result_id': 15017252, '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_P26739557_11-09-2025_03_02_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26739583, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26739584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26739585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26739586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26739587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26739588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26739589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26739590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26739591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26739592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26739593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26739594, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2277733, 'mtr_portfolio_id': 26739949, 'dashboard_result_id': 15017253, '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_P26739949_11-09-2025_03_18_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26739964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26739965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26739966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26739967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26739968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26739969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26739970, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26739971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26739972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26739973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26739974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26739975, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2277733, 'mtr_portfolio_id': 26740580, 'dashboard_result_id': 15017254, '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_P26740580_11-09-2025_03_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26740616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26740617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26740618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26740619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26740620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26740621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26740622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26740623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26740624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26740625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26740626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26740627, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2277733, 'mtr_portfolio_id': 26741023, 'dashboard_result_id': 15017255, '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_P26741023_11-09-2025_03_51_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26741035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26741036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26741037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26741038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26741039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26741040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26741041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26741042, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26741043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26741044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26741045, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26741046, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2277733, 'mtr_portfolio_id': 26741502, 'dashboard_result_id': 15017256, '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_P26741502_11-09-2025_04_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26741528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26741529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26741530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26741531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26741532, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26741533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26741534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26741535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26741536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26741537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26741538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26741539, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2277733, 'mtr_portfolio_id': 26741873, 'dashboard_result_id': 15017257, '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_P26741873_11-09-2025_04_11_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26741878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26741879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26741880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26741881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26741882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26741883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26741884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26741885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26741886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26741887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26741888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26741889, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2277733, 'mtr_portfolio_id': 26743183, 'dashboard_result_id': 15017258, '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_P26743183_11-09-2025_05_18_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26743184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26743185, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26743186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26743187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26743188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26743189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26743190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26743191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26743192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26743193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26743194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26743195, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2277733, 'mtr_portfolio_id': 26743522, 'dashboard_result_id': 15017259, '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_P26743522_11-09-2025_06_06_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26743527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26743528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26743529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26743530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26743531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26743532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26743533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26743534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26743535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26743536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26743537, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26743538, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2277733, 'mtr_portfolio_id': 26743928, 'dashboard_result_id': 15017260, '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_P26743928_11-09-2025_05_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26743936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26743937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26743938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26743939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26743940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26743941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26743942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26743943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26743944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26743945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26743946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26743947, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2277733, 'mtr_portfolio_id': 26744290, 'dashboard_result_id': 15017261, '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_P26744290_11-09-2025_06_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26744296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26744297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26744298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26744299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26744300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26744301, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26744302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26744303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26744304, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26744305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26744306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26744307, 'pht': 3726}}"}, {'dashboat_entry_day': 2268717, 'dashboard_run_id': 2277733, 'mtr_portfolio_id': 26744795, 'dashboard_result_id': 15017262, '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_P26744795_11-09-2025_06_10_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26744802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26744803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26744804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26744805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26744806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26744807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26744808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26744809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26744810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26744811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26744812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26744813, '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 = 26735086 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': 3693258, 'mtr_portfolio_id': 26735086, 'created_at': datetime.datetime(2025, 9, 11, 5, 54, 29), 'result': '0.06353463721231627', 'result_long': None, 'result_double': None}] Qualite : 0.06353463721231627 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26735086 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26735086_11-09-2025_05_54_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26735086 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_P26735086_11-09-2025_05_54_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26735089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26735090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26735091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26735092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26735093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26735094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26735095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26735096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26735097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26735098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26735099, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26735100, 'pht': 3726}}" where mtr_portfolio_id = 26735086 and dashboard_run_id = 2277733 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`=26735086 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15017243, 0.06353463721231627, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26735086_11-09-2025_05_54_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26735089, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26735090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26735091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26735092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26735093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26735094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26735095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26735096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26735097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26735098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26735099, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26735100, '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 = 26735395 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': 3693259, 'mtr_portfolio_id': 26735395, 'created_at': datetime.datetime(2025, 9, 11, 5, 55, 28), 'result': '0.0697973737177141', 'result_long': None, 'result_double': None}] Qualite : 0.0697973737177141 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26735395 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26735395_11-09-2025_05_55_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26735395 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_P26735395_11-09-2025_05_55_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26735401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26735402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26735403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26735404, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26735405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26735406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26735407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26735408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26735409, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26735410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26735411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26735412, 'pht': 3726}}" where mtr_portfolio_id = 26735395 and dashboard_run_id = 2277733 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`=26735395 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15017244, 0.0697973737177141, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26735395_11-09-2025_05_55_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26735401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26735402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26735403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26735404, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26735405, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26735406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26735407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26735408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26735409, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26735410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26735411, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26735412, '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 = 26735834 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': 3693260, 'mtr_portfolio_id': 26735834, 'created_at': datetime.datetime(2025, 9, 11, 5, 56, 1), 'result': '0.06548156566856073', 'result_long': None, 'result_double': None}] Qualite : 0.06548156566856073 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26735834 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26735834_11-09-2025_05_56_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26735834 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_P26735834_11-09-2025_05_56_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26735841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26735842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26735843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26735844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26735845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26735846, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26735847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26735848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26735849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26735850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26735851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26735852, 'pht': 3726}}" where mtr_portfolio_id = 26735834 and dashboard_run_id = 2277733 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`=26735834 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15017245, 0.06548156566856073, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26735834_11-09-2025_05_56_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26735841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26735842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26735843, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26735844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26735845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26735846, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26735847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26735848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26735849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26735850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26735851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26735852, '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 = 26736224 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': 3693261, 'mtr_portfolio_id': 26736224, 'created_at': datetime.datetime(2025, 9, 11, 5, 56, 29), 'result': '0.07705090525339167', 'result_long': None, 'result_double': None}] Qualite : 0.07705090525339167 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26736224 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26736224_11-09-2025_05_56_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26736224 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_P26736224_11-09-2025_05_56_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26736232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26736233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26736234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26736235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26736236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26736237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26736238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26736239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26736240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26736241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26736242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26736243, 'pht': 3726}}" where mtr_portfolio_id = 26736224 and dashboard_run_id = 2277733 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`=26736224 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15017246, 0.07705090525339167, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26736224_11-09-2025_05_56_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26736232, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26736233, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26736234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26736235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26736236, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26736237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26736238, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26736239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26736240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26736241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26736242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26736243, '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 = 26737263 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': 3693262, 'mtr_portfolio_id': 26737263, 'created_at': datetime.datetime(2025, 9, 11, 5, 57, 32), 'result': '0.08766231374296815', 'result_long': None, 'result_double': None}] Qualite : 0.08766231374296815 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26737263 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26737263_11-09-2025_05_57_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26737263 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_P26737263_11-09-2025_05_57_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26737266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26737267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26737268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26737269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26737270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26737271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26737272, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26737273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26737274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26737275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26737276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26737277, 'pht': 3726}}" where mtr_portfolio_id = 26737263 and dashboard_run_id = 2277733 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`=26737263 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15017247, 0.08766231374296815, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26737263_11-09-2025_05_57_34.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26737266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26737267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26737268, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26737269, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26737270, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26737271, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26737272, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26737273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26737274, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26737275, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26737276, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26737277, '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 = 26737663 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': 3693263, 'mtr_portfolio_id': 26737663, 'created_at': datetime.datetime(2025, 9, 11, 5, 58, 1), 'result': '0.07541063006684272', 'result_long': None, 'result_double': None}] Qualite : 0.07541063006684272 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26737663 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26737663_11-09-2025_05_58_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26737663 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_P26737663_11-09-2025_05_58_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26737668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26737669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26737670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26737671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26737672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26737673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26737674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26737675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26737676, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26737677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26737678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26737679, 'pht': 3726}}" where mtr_portfolio_id = 26737663 and dashboard_run_id = 2277733 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`=26737663 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15017248, 0.07541063006684272, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26737663_11-09-2025_05_58_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26737668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26737669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26737670, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26737671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26737672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26737673, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26737674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26737675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26737676, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26737677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26737678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26737679, '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 = 26738034 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': 3693264, 'mtr_portfolio_id': 26738034, 'created_at': datetime.datetime(2025, 9, 11, 5, 58, 28), 'result': '0.04973152555026351', 'result_long': None, 'result_double': None}] Qualite : 0.04973152555026351 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26738034 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26738034_11-09-2025_05_58_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26738034 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_P26738034_11-09-2025_05_58_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26738040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26738041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26738042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26738043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26738044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26738045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26738046, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26738047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26738048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26738049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26738050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26738051, 'pht': 3726}}" where mtr_portfolio_id = 26738034 and dashboard_run_id = 2277733 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`=26738034 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15017249, 0.04973152555026351, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26738034_11-09-2025_05_58_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26738040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26738041, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26738042, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26738043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26738044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26738045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26738046, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26738047, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26738048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26738049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26738050, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26738051, '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 = 26738546 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': 3693265, 'mtr_portfolio_id': 26738546, 'created_at': datetime.datetime(2025, 9, 11, 5, 59, 29), 'result': '0.06591712506064186', 'result_long': None, 'result_double': None}] Qualite : 0.06591712506064186 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26738546 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26738546_11-09-2025_05_59_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26738546 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_P26738546_11-09-2025_05_59_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26738554, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26738555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26738556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26738557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26738558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26738559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26738560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26738561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26738562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26738563, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26738564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26738565, 'pht': 3726}}" where mtr_portfolio_id = 26738546 and dashboard_run_id = 2277733 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`=26738546 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15017250, 0.06591712506064186, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26738546_11-09-2025_05_59_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26738554, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26738555, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26738556, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26738557, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26738558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26738559, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26738560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26738561, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26738562, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26738563, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26738564, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26738565, '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 = 26739074 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': 3693266, 'mtr_portfolio_id': 26739074, 'created_at': datetime.datetime(2025, 9, 11, 6, 1, 29), 'result': '0.075331617261646', 'result_long': None, 'result_double': None}] Qualite : 0.075331617261646 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26739074 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26739074_11-09-2025_06_01_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26739074 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_P26739074_11-09-2025_06_01_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26739084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26739085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26739086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26739087, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26739088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26739089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26739090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26739091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26739092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26739093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26739094, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26739095, 'pht': 3726}}" where mtr_portfolio_id = 26739074 and dashboard_run_id = 2277733 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`=26739074 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15017251, 0.075331617261646, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26739074_11-09-2025_06_01_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26739084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26739085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26739086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26739087, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26739088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26739089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26739090, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26739091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26739092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26739093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26739094, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26739095, '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 = 26739557 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': 3693267, 'mtr_portfolio_id': 26739557, 'created_at': datetime.datetime(2025, 9, 11, 6, 2), 'result': '0.05369697338449529', 'result_long': None, 'result_double': None}] Qualite : 0.05369697338449529 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26739557 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26739557_11-09-2025_06_02_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26739557 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_P26739557_11-09-2025_06_02_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26739583, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26739584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26739585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26739586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26739587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26739588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26739589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26739590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26739591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26739592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26739593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26739594, 'pht': 3726}}" where mtr_portfolio_id = 26739557 and dashboard_run_id = 2277733 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`=26739557 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15017252, 0.05369697338449529, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26739557_11-09-2025_06_02_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26739583, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26739584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26739585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26739586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26739587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26739588, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26739589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26739590, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26739591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26739592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26739593, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26739594, '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 = 26739949 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': 3693268, 'mtr_portfolio_id': 26739949, 'created_at': datetime.datetime(2025, 9, 11, 6, 2, 28), 'result': '0.05380399396258448', 'result_long': None, 'result_double': None}] Qualite : 0.05380399396258448 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26739949 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26739949_11-09-2025_06_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26739949 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_P26739949_11-09-2025_06_02_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26739964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26739965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26739966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26739967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26739968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26739969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26739970, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26739971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26739972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26739973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26739974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26739975, 'pht': 3726}}" where mtr_portfolio_id = 26739949 and dashboard_run_id = 2277733 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`=26739949 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15017253, 0.05380399396258448, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26739949_11-09-2025_06_02_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26739964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26739965, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26739966, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26739967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26739968, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26739969, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26739970, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26739971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26739972, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26739973, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26739974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26739975, '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 = 26740580 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': 3693269, 'mtr_portfolio_id': 26740580, 'created_at': datetime.datetime(2025, 9, 11, 6, 3, 30), 'result': '0.05082739095227996', 'result_long': None, 'result_double': None}] Qualite : 0.05082739095227996 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26740580 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26740580_11-09-2025_06_03_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26740580 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_P26740580_11-09-2025_06_03_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26740616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26740617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26740618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26740619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26740620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26740621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26740622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26740623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26740624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26740625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26740626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26740627, 'pht': 3726}}" where mtr_portfolio_id = 26740580 and dashboard_run_id = 2277733 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`=26740580 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15017254, 0.05082739095227996, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26740580_11-09-2025_06_03_34.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26740616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26740617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26740618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26740619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26740620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26740621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26740622, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26740623, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26740624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26740625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26740626, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26740627, '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 = 26741023 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': 3693270, 'mtr_portfolio_id': 26741023, 'created_at': datetime.datetime(2025, 9, 11, 6, 3, 59), 'result': '0.07019873337060782', 'result_long': None, 'result_double': None}] Qualite : 0.07019873337060782 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26741023 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26741023_11-09-2025_06_04_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26741023 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_P26741023_11-09-2025_06_04_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26741035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26741036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26741037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26741038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26741039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26741040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26741041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26741042, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26741043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26741044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26741045, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26741046, 'pht': 3726}}" where mtr_portfolio_id = 26741023 and dashboard_run_id = 2277733 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`=26741023 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15017255, 0.07019873337060782, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26741023_11-09-2025_06_04_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26741035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26741036, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26741037, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26741038, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26741039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26741040, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26741041, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26741042, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26741043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26741044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26741045, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26741046, '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 = 26741502 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': 3693271, 'mtr_portfolio_id': 26741502, 'created_at': datetime.datetime(2025, 9, 11, 6, 4, 28), 'result': '0.06709637877485654', 'result_long': None, 'result_double': None}] Qualite : 0.06709637877485654 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26741502 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26741502_11-09-2025_06_04_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26741502 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_P26741502_11-09-2025_06_04_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26741528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26741529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26741530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26741531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26741532, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26741533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26741534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26741535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26741536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26741537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26741538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26741539, 'pht': 3726}}" where mtr_portfolio_id = 26741502 and dashboard_run_id = 2277733 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`=26741502 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15017256, 0.06709637877485654, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26741502_11-09-2025_06_04_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26741528, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26741529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26741530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26741531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26741532, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26741533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26741534, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26741535, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26741536, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26741537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26741538, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26741539, '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 = 26741873 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': 3693272, 'mtr_portfolio_id': 26741873, 'created_at': datetime.datetime(2025, 9, 11, 6, 5, 29), 'result': '0.06251679095806', 'result_long': None, 'result_double': None}] Qualite : 0.06251679095806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26741873 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26741873_11-09-2025_06_05_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26741873 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_P26741873_11-09-2025_06_05_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26741878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26741879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26741880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26741881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26741882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26741883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26741884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26741885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26741886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26741887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26741888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26741889, 'pht': 3726}}" where mtr_portfolio_id = 26741873 and dashboard_run_id = 2277733 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`=26741873 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15017257, 0.06251679095806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26741873_11-09-2025_06_05_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26741878, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26741879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26741880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26741881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26741882, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26741883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26741884, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26741885, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26741886, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26741887, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26741888, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26741889, '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 = 26743183 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': 3693274, 'mtr_portfolio_id': 26743183, 'created_at': datetime.datetime(2025, 9, 11, 6, 5, 59), 'result': '0.07277648308829932', 'result_long': None, 'result_double': None}] Qualite : 0.07277648308829932 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26743183 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26743183_11-09-2025_06_06_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26743183 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_P26743183_11-09-2025_06_06_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26743184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26743185, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26743186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26743187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26743188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26743189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26743190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26743191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26743192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26743193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26743194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26743195, 'pht': 3726}}" where mtr_portfolio_id = 26743183 and dashboard_run_id = 2277733 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`=26743183 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15017258, 0.07277648308829932, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26743183_11-09-2025_06_06_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26743184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26743185, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26743186, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26743187, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26743188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26743189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26743190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26743191, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26743192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26743193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26743194, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26743195, '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 = 26743522 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': 3693275, 'mtr_portfolio_id': 26743522, 'created_at': datetime.datetime(2025, 9, 11, 6, 6, 29), 'result': '0.09065951838393031', 'result_long': None, 'result_double': None}] Qualite : 0.09065951838393031 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26743522 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26743522_11-09-2025_06_06_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26743522 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_P26743522_11-09-2025_06_06_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26743527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26743528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26743529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26743530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26743531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26743532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26743533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26743534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26743535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26743536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26743537, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26743538, 'pht': 3726}}" where mtr_portfolio_id = 26743522 and dashboard_run_id = 2277735 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`=26743522 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15017259, 0.09065951838393031, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26743522_11-09-2025_06_06_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26743527, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26743528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26743529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26743530, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26743531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26743532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26743533, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26743534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26743535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26743536, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26743537, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26743538, '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 = 26743928 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': 3693294, 'mtr_portfolio_id': 26743928, 'created_at': datetime.datetime(2025, 9, 11, 5, 48, 58), 'result': '0.06547554551828937', 'result_long': None, 'result_double': None}] Qualite : 0.06547554551828937 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26743928 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26743928_11-09-2025_05_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26743928 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_P26743928_11-09-2025_05_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26743936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26743937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26743938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26743939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26743940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26743941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26743942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26743943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26743944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26743945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26743946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26743947, 'pht': 3726}}" where mtr_portfolio_id = 26743928 and dashboard_run_id = 2277735 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`=26743928 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15017260, 0.06547554551828937, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26743928_11-09-2025_05_48_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26743936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26743937, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26743938, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26743939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26743940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26743941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26743942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26743943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26743944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26743945, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26743946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26743947, '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 = 26744290 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': 3693351, 'mtr_portfolio_id': 26744290, 'created_at': datetime.datetime(2025, 9, 11, 6, 3), 'result': '0.04445800103117129', 'result_long': None, 'result_double': None}] Qualite : 0.04445800103117129 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26744290 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26744290_11-09-2025_06_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26744290 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_P26744290_11-09-2025_06_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26744296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26744297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26744298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26744299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26744300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26744301, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26744302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26744303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26744304, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26744305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26744306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26744307, 'pht': 3726}}" where mtr_portfolio_id = 26744290 and dashboard_run_id = 2277735 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`=26744290 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15017261, 0.04445800103117129, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26744290_11-09-2025_06_03_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26744296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26744297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26744298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26744299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26744300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26744301, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26744302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26744303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26744304, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26744305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26744306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26744307, '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 = 26744795 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': 3693461, 'mtr_portfolio_id': 26744795, 'created_at': datetime.datetime(2025, 9, 11, 6, 15, 1), 'result': '0.06661903008532415', 'result_long': None, 'result_double': None}] Qualite : 0.06661903008532415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26744795 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26744795_11-09-2025_06_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26744795 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_P26744795_11-09-2025_06_15_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26744802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26744803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26744804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26744805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26744806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26744807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26744808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26744809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26744810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26744811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26744812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26744813, 'pht': 3726}}" where mtr_portfolio_id = 26744795 and dashboard_run_id = 2277735 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`=26744795 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (15017262, 0.06661903008532415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26744795_11-09-2025_06_15_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26744802, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26744803, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26744804, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26744805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26744806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26744807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26744808, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26744809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26744810, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26744811, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26744812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26744813, '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 (26735086,26735395,26735834,26736224,26737263,26737663,26738034,26738546,26739074,26739557,26739949,26740580,26741023,26741502,26741873,26743183,26743522,26743928,26744290,26744795) result : ((1383161281,), (1383161320,), (1383161765,), (1383161825,), (1383161885,), (1383162588,), (1383162676,), (1383162763,), (1383162829,), (1383162901,), (1383162973,), (1383163172,), (1383163186,), (1383163255,), (1383163327,), (1383163331,), (1383163337,), (1383163345,), (1383163347,), (1383163378,), (1383163379,), (1383163380,), (1383163383,), (1383163387,), (1383163412,), (1383163415,), (1383163419,), (1383163425,), (1383163428,), (1383163433,), (1383163461,), (1383163470,), (1383163477,), (1383163479,), (1383163549,), (1383163552,), (1383163556,), (1383163565,), (1383163567,), (1383163569,), (1383163573,), (1383163577,), (1383163581,), (1383163604,), (1383163607,), (1383163621,), (1383163624,), (1383163629,), (1383163653,), (1383163659,), (1383163662,), (1383163666,), (1383163671,), (1383163699,), (1383163701,), (1383163704,), (1383163706,), (1383163710,), (1383163713,), (1383163790,), (1383163792,), (1383163823,), (1383163827,), (1383163862,), (1383163864,), (1383163866,), (1383163871,), (1383163877,), (1383163891,), (1383163894,), (1383164017,), (1383163917,), (1383163946,), (1383163948,), (1383163950,), (1383163954,), (1383163967,), (1383163976,), (1383164003,), (1383164006,), (1383164009,), (1383164013,), (1383164028,), (1383164030,), (1383164032,), (1383164034,), (1383164047,), (1383164048,), (1383164049,), (1383164051,), (1383164055,), (1383164162,), (1383164230,), (1383164288,), (1383164344,), (1383164650,), (1383164656,), (1383164667,), (1383164684,), (1383164721,), (1383164723,), (1383164725,), (1383164745,), (1383164746,), (1383164748,), (1383164751,), (1383164800,), (1383164802,), (1383164805,), (1383164811,), (1383164816,), (1383164828,), (1383164832,), (1383164837,), (1383164841,), (1383164844,), (1383164851,), (1383164861,), (1383164864,), (1383164867,), (1383164871,), (1383164893,), (1383164899,), (1383164905,), (1383164909,), (1383164919,), (1383164924,), (1383164961,), (1383164975,), (1383164978,), (1383164982,), (1383164984,), (1383164987,), (1383165003,), (1383165005,), (1383165008,), (1383165013,), (1383165019,), (1383165049,), (1383165052,), (1383165055,), (1383165107,), (1383165094,), (1383165095,), (1383165099,), (1383165103,), (1383165127,), (1383165135,), (1383165140,), (1383165145,), (1383165182,), (1383165186,), (1383165192,), (1383165196,), (1383165225,), (1383165229,), (1383165232,), (1383165236,), (1383165250,), (1383165253,), (1383165255,), (1383165258,), (1383165264,), (1383165268,), (1383165280,), (1383165282,), (1383165285,), (1383165292,), (1383165298,), (1383165308,), (1383165310,), (1383165325,), (1383165338,), (1383165342,), (1383165366,), (1383165374,), (1383165377,), (1383165388,), (1383165389,), (1383165393,), (1383165398,), (1383165412,), (1383165416,), (1383165420,), (1383165425,), (1383165431,), (1383165445,), (1383165448,), (1383165450,), (1383165452,), (1383165474,), (1383165477,), (1383165480,), (1383165527,), (1383165536,), (1383165543,), (1383165555,), (1383165558,), (1383165572,), (1383165580,), (1383165584,), (1383165589,), (1383165593,), (1383165604,), (1383165683,), (1383165797,), (1383165678,), (1383165680,), (1383165700,), (1383165702,), (1383165706,), (1383165711,), (1383165715,), (1383165720,), (1383165752,), (1383165779,), (1383165815,), (1383165820,), (1383165825,), (1383165828,), (1383165831,), (1383165834,), (1383165840,), (1383165844,), (1383165853,), (1383165857,), (1383165877,), (1383165880,), (1383165882,), (1383165885,), (1383165889,), (1383165904,), (1383165907,), (1383165911,), (1383165916,), (1383165921,), (1383165955,), (1383165959,), (1383165962,), (1383165983,), (1383165985,), (1383165987,), (1383165990,), (1383165993,), (1383166023,), (1383166027,), (1383166032,), (1383166036,), (1383166039,), (1383166041,), (1383166054,), (1383166055,), (1383166056,), (1383166061,), (1383166074,), (1383166077,), (1383166080,), (1383166085,), (1383166090,), (1383166093,), (1383166108,), (1383166113,), (1383166125,), (1383166139,), (1383166154,), (1383166169,), (1383166186,), (1383166187,), (1383166189,), (1383166191,), (1383166205,), (1383166206,), (1383166209,), (1383166211,), (1383166213,), (1383166214,), (1383166217,), (1383166220,), (1383166222,), (1383166224,), (1383170642,), (1383170734,), (1383170737,), (1383170741,), (1383170745,), (1383170749,), (1383170753,), (1383170788,), (1383170793,), (1383170806,), (1383170811,), (1383170828,), (1383170829,), (1383170845,), (1383170849,), (1383170852,), (1383170908,), (1383170919,), (1383170922,), (1383170925,), (1383170937,), (1383170939,), (1383170948,), (1383170958,), (1383170968,), (1383170977,), (1383170991,), (1383170994,), (1383170997,), (1383171002,), (1383171020,), (1383171024,), (1383171031,), (1383171035,), (1383171076,), (1383171083,), (1383171088,), (1383171114,), (1383171141,), (1383171157,), (1383171160,), (1383171164,), (1383171186,), (1383171188,), (1383171189,), (1383171192,), (1383171233,), (1383171239,), (1383171242,), (1383171247,), (1383171250,), (1383171301,), (1383171304,), (1383171308,), (1383171335,), (1383171338,), (1383171341,), (1383171346,), (1383171351,), (1383171375,), (1383171380,), (1383171382,), (1383171386,), (1383171389,), (1383171393,), (1383171426,), (1383171501,), (1383171419,), (1383171420,), (1383171422,), (1383171447,), (1383171449,), (1383171451,), (1383171457,), (1383171461,), (1383171464,), (1383171491,), (1383171496,), (1383171498,), (1383171510,), (1383171513,), (1383171515,), (1383171518,), (1383171522,), (1383171525,), (1383171534,), (1383171538,), (1383171544,), (1383171550,), (1383171555,), (1383171585,), (1383171590,), (1383171593,), (1383171684,), (1383171686,), (1383171688,), (1383171692,), (1383171696,), (1383171704,), (1383171730,), (1383171739,), (1383171742,), (1383171765,), (1383171767,), (1383171770,), (1383171801,), (1383171807,), (1383171811,), (1383171815,), (1383171827,), (1383171829,), (1383171833,), (1383171836,), (1383171839,), (1383171842,), (1383171849,), (1383171852,), (1383171860,), (1383171872,), (1383171877,), (1383171880,), (1383171919,), (1383171941,), (1383171950,), (1383171973,), (1383172013,), (1383172009,), (1383172039,), (1383172043,), (1383172047,), (1383172051,), (1383172079,), (1383172111,), (1383172142,), (1383172173,), (1383172469,), (1383172499,), (1383172532,), (1383172566,), (1383172616,), (1383172878,), (1383172921,), (1383172977,), (1383173035,), (1383173423,), (1383173452,), (1383173482,), (1383173511,), (1383173545,), (1383174016,), (1383174073,), (1383174135,), (1383174200,), (1383174273,), (1383174356,), (1383174632,), (1383174683,), (1383174715,), (1383174749,), (1383174807,), (1383174955,), (1383174972,), (1383175018,), (1383175090,), (1383175092,), (1383175094,), (1383175096,), (1383175099,), (1383175102,), (1383175121,), (1383175134,), (1383175137,), (1383175141,), (1383175145,), (1383175171,), (1383175173,), (1383175176,), (1383175181,), (1383175184,), (1383175214,), (1383175217,), (1383175258,), (1383175261,), (1383175263,), (1383175266,), (1383175269,), (1383175289,), (1383175293,), (1383175294,), (1383175296,), (1383175301,), (1383175465,), (1383175492,), (1383175521,), (1383175552,), (1383175911,), (1383176411,), (1383175855,), (1383175882,), (1383176243,), (1383176273,), (1383176303,), (1383176334,), (1383176344,), (1383176347,), (1383176357,), (1383176380,), (1383176494,), (1383176499,), (1383176524,), (1383176531,), (1383176552,), (1383176570,), (1383176574,), (1383176578,), (1383176606,), (1383176625,), (1383176638,), (1383176670,), (1383176675,), (1383176679,), (1383176683,), (1383176689,), (1383176695,), (1383176718,), (1383176720,), (1383176723,), (1383176732,), (1383176742,), (1383176755,), (1383176758,), (1383176760,), (1383176763,), (1383176792,), (1383176793,), (1383176794,), (1383176797,), (1383176803,), (1383176808,), (1383176843,), (1383176847,), (1383176857,), (1383176863,), (1383176875,), (1383176921,), (1383176924,), (1383176928,), (1383176931,), (1383176936,), (1383176945,), (1383176947,), (1383176950,), (1383176953,), (1383176959,), (1383176965,), (1383176975,), (1383176981,), (1383176989,), (1383176994,), (1383176997,), (1383176999,), (1383177002,), (1383177014,), (1383177017,), (1383177054,), (1383177058,), (1383177090,), (1383177122,), (1383177126,), (1383177130,), (1383177155,), (1383177159,), (1383177163,), (1383177186,), (1383177189,), (1383177191,), (1383177195,), (1383177199,), (1383177202,), (1383177220,), (1383177224,), (1383177231,), (1383177236,), (1383177244,), (1383177263,), (1383177266,), (1383177308,), (1383177310,), (1383177313,), (1383177317,), (1383177322,), (1383177325,), (1383177330,), (1383177337,), (1383177346,), (1383177352,), (1383177355,), (1383177358,), (1383177372,), (1383177373,), (1383177375,), (1383177378,), (1383177419,), (1383177422,), (1383177425,), (1383177429,), (1383177454,), (1383177458,), (1383177462,), (1383177467,), (1383177471,), (1383177517,), (1383177519,), (1383177521,), (1383177523,), (1383177544,), (1383177596,), (1383177609,), (1383177642,), (1383177645,), (1383177647,), (1383177652,), (1383177657,), (1383177660,), (1383177670,), (1383177672,), (1383177675,), (1383177682,), (1383177686,), (1383177690,), (1383177736,), (1383177792,), (1383177718,), (1383177721,), (1383177724,), (1383177728,), (1383177733,), (1383177744,), (1383177745,), (1383177749,), (1383177752,), (1383177756,), (1383177760,), (1383177774,), (1383177777,), (1383177785,), (1383177800,), (1383177804,), (1383177808,), (1383177811,), (1383177814,), (1383177818,), (1383177842,), (1383177844,), (1383177845,), (1383177848,), (1383177853,), (1383177878,), (1383177883,), (1383177889,), (1383177895,), (1383177899,), (1383177902,), (1383177921,), (1383177923,), (1383177926,), (1383177930,), (1383177933,), (1383177939,), (1383177965,), (1383177968,), (1383177969,), (1383177984,), (1383178055,), (1383178057,), (1383178059,), (1383178062,), (1383178065,), (1383178069,), (1383178096,), (1383178100,), (1383178102,), (1383178106,), (1383178109,), (1383178126,), (1383178129,), (1383178133,), (1383178147,), (1383178149,), (1383178153,), (1383178156,), (1383178177,), (1383178178,), (1383178182,), (1383178185,), (1383178188,), (1383178193,), (1383178206,), (1383178233,), (1383178263,), (1383178295,), (1383178329,), (1383178361,), (1383178459,), (1383178488,), (1383178518,), (1383178553,), (1383178583,), (1383178618,), (1383178835,), (1383178838,), (1383178842,), (1383178846,), (1383178851,), (1383178861,), (1383178971,), (1383179045,), (1383179106,), (1383179186,), (1383179274,), (1383179376,), (1383180010,), (1383179638,), (1383179704,), (1383179804,), (1383179896,), (1383179962,), (1383180230,), (1383180273,), (1383180306,), (1383180678,), (1383180710,), (1383180742,), (1383180776,), (1383180810,), (1383181085,), (1383181092,), (1383181094,), (1383181128,), (1383181131,), (1383181138,), (1383181143,), (1383181147,), (1383181150,), (1383181331,), (1383181365,), (1383181395,), (1383181427,), (1383181645,), (1383181675,), (1383181714,), (1383181718,), (1383181728,), (1383181747,), (1383181861,), (1383181886,), (1383181899,), (1383181905,), (1383181908,), (1383181911,), (1383181914,), (1383181917,), (1383181961,), (1383181970,), (1383181974,), (1383181979,), (1383181983,), (1383181985,), (1383181986,), (1383182000,), (1383182003,), (1383182006,), (1383182011,), (1383182014,), (1383182017,), (1383182044,), (1383182046,), (1383182047,), (1383182050,), (1383182071,), (1383182076,), (1383182081,), (1383182084,), (1383182110,), (1383182116,), (1383182118,), (1383182123,), (1383182127,), (1383182143,), (1383182146,), (1383182153,), (1383182159,), (1383182162,), (1383182167,), (1383182192,), (1383182253,), (1383182180,), (1383182181,), (1383182182,), (1383182186,), (1383182211,), (1383182215,), (1383182220,), (1383182226,), (1383182230,), (1383182234,), (1383182241,), (1383182250,), (1383182269,), (1383182273,), (1383182275,), (1383182277,), (1383182279,), (1383182291,), (1383182298,), (1383182305,), (1383182307,), (1383182311,), (1383182315,), (1383182335,), (1383182337,), (1383182338,), (1383182366,), (1383182369,), (1383182371,), (1383182377,), (1383182386,), (1383182390,), (1383182433,), (1383182451,), (1383182459,), (1383182462,), (1383182466,), (1383182480,), (1383182484,), (1383182489,), (1383182513,), (1383182515,), (1383182518,), (1383182520,), (1383182525,), (1383182528,), (1383182549,), (1383182553,), (1383182556,), (1383182560,), (1383182564,), (1383182569,), (1383182582,), (1383182583,), (1383182584,), (1383182588,), (1383182611,), (1383182618,), (1383182623,), (1383182626,), (1383182629,), (1383182638,), (1383182680,), (1383182698,), (1383182701,), (1383182704,), (1383182708,), (1383182713,), (1383182717,), (1383182730,), (1383182731,), (1383182732,), (1383182735,), (1383182762,), (1383182767,), (1383182771,), (1383182776,), (1383182781,), (1383182785,), (1383182822,), (1383182810,), (1383182813,), (1383182816,), (1383182819,), (1383182855,), (1383182864,), (1383182871,), (1383182925,), (1383182928,), (1383182933,), (1383182938,), (1383182942,), (1383182951,), (1383182953,), (1383182955,), (1383182985,), (1383182988,), (1383182991,), (1383182994,), (1383182998,), (1383183026,), (1383183029,), (1383183033,), (1383183049,), (1383183051,), (1383183054,), (1383183065,), (1383183072,), (1383183076,), (1383183117,), (1383183125,), (1383183126,), (1383183129,), (1383183148,), (1383183152,), (1383183159,), (1383183164,), (1383183191,), (1383183201,), (1383183207,), (1383183210,), (1383183237,), (1383183241,), (1383183244,), (1383183247,), (1383183271,), (1383183272,), (1383183273,), (1383183277,), (1383183282,), (1383183339,), (1383183353,), (1383183356,), (1383183361,), (1383183394,), (1383183395,), (1383183397,), (1383183402,), (1383183407,), (1383183410,), (1383183425,), (1383183427,), (1383183430,), (1383183435,), (1383183465,), (1383183546,), (1383183449,), (1383183450,), (1383183452,), (1383183457,), (1383183461,), (1383183484,), (1383183489,), (1383183495,), (1383183500,), (1383183509,), (1383183515,), (1383183524,), (1383183534,), (1383183536,), (1383183538,), (1383183540,), (1383183557,), (1383183561,), (1383183566,), (1383183570,), (1383183581,), (1383183585,), (1383183588,), (1383183592,), (1383183594,), (1383183596,), (1383183614,), (1383183616,), (1383183620,), (1383183623,), (1383183626,), (1383183641,), (1383183642,), (1383183644,), (1383183648,), (1383183676,), (1383183679,), (1383183683,), (1383183688,), (1383183693,), (1383183697,), (1383183726,), (1383183729,), (1383183734,), (1383183740,), (1383183776,), (1383183779,), (1383183782,), (1383183786,), (1383183789,), (1383183792,), (1383183807,), (1383183808,), (1383183809,), (1383183811,), (1383183817,), (1383183832,), (1383183834,), (1383183836,), (1383183840,), (1383183846,), (1383183850,), (1383183866,), (1383183870,), (1383183874,), (1383183879,), (1383183883,), (1383183885,), (1383183907,), (1383183913,), (1383183915,), (1383183918,), (1383183921,), (1383183925,), (1383183936,), (1383183940,), (1383183945,), (1383184058,), (1383184092,), (1383184800,), (1383184494,), (1383184555,), (1383184650,), (1383184726,), (1383185453,), (1383185541,), (1383185616,), (1383186264,), (1383186318,), (1383186373,), (1383186417,), (1383186457,), (1383186485,), (1383186790,), (1383186839,), (1383186868,), (1383186915,), (1383187404,), (1383187412,), (1383187445,), (1383187474,), (1383187480,), (1383187490,), (1383187537,), (1383187538,), (1383187539,), (1383187754,), (1383187781,), (1383187819,), (1383187849,), (1383187878,), (1383187909,), (1383188016,), (1383188046,), (1383188105,), (1383188107,), (1383188112,), (1383188122,), (1383188151,), (1383188182,), (1383188280,), (1383188291,), (1383188313,), (1383194720,), (1383195091,), (1383195481,), (1383195533,), (1383195722,), (1383195751,), (1383195781,), (1383195816,), (1383195852,), (1383196025,), (1383196027,), (1383196052,), (1383196086,), (1383196115,), (1383196120,), (1383196210,), (1383196214,), (1383196219,), (1383196246,), (1383196249,), (1383196286,), (1383196292,), (1383196295,), (1383196298,), (1383196321,), (1383196324,), (1383196326,), (1383196330,), (1383196368,), (1383196372,), (1383196377,), (1383196382,), (1383196397,), (1383196401,), (1383196405,), (1383196409,), (1383196414,), (1383196418,), (1383196438,), (1383196549,), (1383196436,), (1383196465,), (1383196475,), (1383196486,), (1383196502,), (1383196506,), (1383196538,), (1383196546,), (1383196570,), (1383196575,), (1383196579,), (1383196583,), (1383196600,), (1383196604,), (1383196610,), (1383196614,), (1383196647,), (1383196650,), (1383196653,), (1383196659,), (1383196663,), (1383196675,), (1383196677,), (1383196679,), (1383196683,), (1383196688,), (1383196712,), (1383196714,), (1383196716,), (1383196780,), (1383196800,), (1383196815,), (1383196820,), (1383196895,), (1383196899,), (1383196902,), (1383196909,), (1383196915,), (1383196921,), (1383196935,), (1383196939,), (1383196944,), (1383196948,), (1383196952,), (1383196972,), (1383196975,), (1383196979,), (1383197003,), (1383197005,), (1383197010,), (1383197017,), (1383197024,), (1383197027,), (1383197032,), (1383197034,), (1383197041,), (1383197046,), (1383197111,), (1383197114,), (1383197119,), (1383197129,), (1383197136,), (1383197158,), (1383197171,), (1383197176,), (1383197182,), (1383197189,), (1383197224,), (1383197210,), (1383197216,), (1383197219,), (1383197261,), (1383197265,), (1383197268,), (1383197273,), (1383197291,), (1383197292,), (1383197293,), (1383197326,), (1383197328,), (1383197331,), (1383197336,), (1383197341,), (1383197346,), (1383197359,), (1383197363,), (1383197367,), (1383197375,), (1383197412,), (1383197414,), (1383197416,), (1383197420,), (1383197423,), (1383197438,), (1383197441,), (1383197446,), (1383197451,), (1383197455,), (1383197458,), (1383197477,), (1383197480,), (1383197483,), (1383197493,), (1383197498,), (1383197504,), (1383197520,), (1383197525,), (1383197531,), (1383197536,), (1383197542,), (1383197545,), (1383197569,), (1383197571,), (1383197584,), (1383197592,), (1383197598,), (1383197635,), (1383197640,), (1383197646,), (1383197683,), (1383197688,), (1383197690,), (1383197694,), (1383197715,), (1383197718,), (1383197721,), (1383197726,), (1383197729,), (1383197732,), (1383197749,), (1383197751,), (1383197754,), (1383197776,), (1383197780,), (1383197783,), (1383197829,), (1383197879,), (1383197815,), (1383197819,), (1383197823,), (1383197843,), (1383197845,), (1383197848,), (1383197851,), (1383197854,), (1383197857,), (1383197875,), (1383197877,), (1383197897,), (1383197902,), (1383197905,), (1383197908,), (1383197910,), (1383197922,), (1383197926,), (1383197932,), (1383197935,), (1383197938,), (1383197968,), (1383197974,), (1383197976,), (1383198012,), (1383198014,), (1383198017,), (1383198025,), (1383198029,), (1383198033,), (1383198054,), (1383198064,), (1383198072,), (1383198076,), (1383198080,), (1383198083,), (1383198097,), (1383198098,), (1383198099,), (1383198118,), (1383198121,), (1383198125,), (1383198129,), (1383198133,), (1383198136,), (1383198154,), (1383198156,), (1383198158,), (1383198160,), (1383198202,), (1383198210,), (1383198213,), (1383198217,), (1383198220,), (1383198233,), (1383198234,), (1383198238,), (1383198242,), (1383198248,), (1383198252,), (1383198260,), (1383198261,), (1383198262,), (1383198281,), (1383198284,), (1383198288,), (1383198369,), (1383198378,), (1383198382,), (1383198387,), (1383198405,), (1383198425,), (1383198426,), (1383198442,), (1383198507,), (1383198472,), (1383198843,), (1383198873,), (1383198903,), (1383198940,), (1383199396,), (1383199631,), (1383199690,), (1383199744,), (1383199815,), (1383199871,), (1383200233,), (1383200314,), (1383200394,), (1383200481,), (1383200569,), (1383200660,), (1383201051,), (1383201078,), (1383201110,), (1383201443,), (1383201497,), (1383201554,), (1383201609,), (1383201650,), (1383201972,), (1383201977,), (1383201982,), (1383202002,), (1383202034,), (1383202061,), (1383202076,), (1383202106,), (1383202139,), (1383202160,), (1383202183,), (1383202187,), (1383202190,), (1383202194,), (1383202204,), (1383202209,), (1383202213,), (1383202218,), (1383202224,), (1383202228,), (1383202251,), (1383202253,), (1383202256,), (1383202258,), (1383202261,), (1383202264,), (1383202315,), (1383202318,), (1383202320,), (1383202396,), (1383202413,), (1383202425,), (1383202428,), (1383202431,), (1383202455,), (1383202509,), (1383202511,), (1383202512,), (1383202517,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11092025': {'nb_upload': 64, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26744795]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1383202517, 1383202512, 1383202511, 1383202509, 1383202455, 1383202431, 1383202428, 1383202425, 1383202413] map_info['map_portfolio_photo'] : {26744795: [1383202517, 1383202512, 1383202511, 1383202509, 1383202455, 1383202431, 1383202428, 1383202425, 1383202413, 1383202396, 1383202320, 1383202318, 1383202315, 1383202264, 1383202261, 1383202258, 1383202256, 1383202253, 1383202251, 1383202228, 1383202224, 1383202218, 1383202213, 1383202209, 1383202204, 1383202194, 1383202190, 1383202187, 1383202183, 1383202160, 1383202139, 1383202106, 1383202076, 1383202061, 1383202034, 1383202002, 1383201982, 1383201977, 1383201972, 1383201650, 1383201609, 1383201554, 1383201497, 1383201443, 1383201110, 1383201078, 1383201051, 1383200660, 1383200569, 1383200481, 1383200394, 1383200314, 1383200233, 1383199871, 1383199815, 1383199744, 1383199690, 1383199631, 1383199396, 1383198940, 1383198903, 1383198873, 1383198843, 1383198472]} final : True mtd_id 4302 list_pids : [1383202517, 1383202512, 1383202511, 1383202509, 1383202455, 1383202431, 1383202428, 1383202425, 1383202413] Looping around the photos to save general results len do output : 1 /26744795Didn'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, '3693461') ('4302', '26744795', '1383202517', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202512', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202511', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202509', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202455', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202431', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202428', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202425', None, None, None, None, None, '3693461') ('4302', None, None, None, None, None, None, None, '3693461') ('4302', '26744795', '1383202413', None, None, None, None, None, '3693461') 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, '26744795', 'None', None, None, None, None, '3693461'), ('4302', '26744795', '1383202517', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202512', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202511', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202509', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202455', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202431', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202428', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202425', None, None, None, None, None, '3693461'), ('4302', '26744795', '1383202413', None, None, None, None, None, '3693461')] time used for this insertion : 0.015990734100341797 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0138304233551025 time spend to save output : 0.01624774932861328 total time spend for step 5 : 2.030078172683716 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 (3693461) 2.07user 2.48system 0:12.22elapsed 37%CPU (0avgtext+0avgdata 159688maxresident)k 288inputs+11560outputs (1major+64311minor)pagefaults 0swaps