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 : 160812 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 (3940363) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3940363) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27797621 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3940363'] with mtr_portfolio_ids : ['27797621'] and first list_photo_ids : [] new path : /proc/160812/ Name: python3 Umask: 0002 State: R (running) Tgid: 160812 Ngid: 0 Pid: 160812 PPid: 160811 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 160812 NSpid: 160812 NSpgid: 159759 NSsid: 159759 VmPeak: 1106856 kB VmSize: 1106856 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98508 kB VmRSS: 98508 kB RssAnon: 59844 kB RssFile: 38664 kB RssShmem: 0 kB VmData: 865608 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 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: 50 nonvoluntary_ctxt_switches: 91 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '160812', 'Ngid': '0', 'Pid': '160812', 'PPid': '160811', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '160812', 'NSpid': '160812', 'NSpgid': '159759', 'NSsid': '159759', 'VmPeak': '1106856 kB', 'VmSize': '1106856 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98508 kB', 'VmRSS': '98508 kB', 'RssAnon': '59844 kB', 'RssFile': '38664 kB', 'RssShmem': '0 kB', 'VmData': '865608 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 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': '50', 'nonvoluntary_ctxt_switches': '91'} ('datou_batch_current', '160812', '1106856', '0', '1106856', '865608', '98508', b'', 'marlene', '3940363') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (27797621) 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 (3940363 ) ) 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 (27797621) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1389411232, 'portfolio_id': 27797621}, {'photo_id': 1389411178, 'portfolio_id': 27797621}, {'photo_id': 1389411175, 'portfolio_id': 27797621}, {'photo_id': 1389411173, 'portfolio_id': 27797621}, {'photo_id': 1389411172, 'portfolio_id': 27797621}, {'photo_id': 1389411169, 'portfolio_id': 27797621}, {'photo_id': 1389411147, 'portfolio_id': 27797621}, {'photo_id': 1389411145, 'portfolio_id': 27797621}, {'photo_id': 1389411142, 'portfolio_id': 27797621}, {'photo_id': 1389411139, 'portfolio_id': 27797621}, {'photo_id': 1389411136, 'portfolio_id': 27797621}, {'photo_id': 1389411124, 'portfolio_id': 27797621}, {'photo_id': 1389411122, 'portfolio_id': 27797621}, {'photo_id': 1389411120, 'portfolio_id': 27797621}, {'photo_id': 1389411116, 'portfolio_id': 27797621}, {'photo_id': 1389411113, 'portfolio_id': 27797621}, {'photo_id': 1389411110, 'portfolio_id': 27797621}, {'photo_id': 1389411107, 'portfolio_id': 27797621}, {'photo_id': 1389411102, 'portfolio_id': 27797621}, {'photo_id': 1389411100, 'portfolio_id': 27797621}, {'photo_id': 1389411095, 'portfolio_id': 27797621}, {'photo_id': 1389411091, 'portfolio_id': 27797621}, {'photo_id': 1389411082, 'portfolio_id': 27797621}, {'photo_id': 1389411081, 'portfolio_id': 27797621}, {'photo_id': 1389411079, 'portfolio_id': 27797621}, {'photo_id': 1389411078, 'portfolio_id': 27797621}, {'photo_id': 1389411059, 'portfolio_id': 27797621}, {'photo_id': 1389411057, 'portfolio_id': 27797621}, {'photo_id': 1389411054, 'portfolio_id': 27797621}, {'photo_id': 1389411053, 'portfolio_id': 27797621}, {'photo_id': 1389411044, 'portfolio_id': 27797621}, {'photo_id': 1389411043, 'portfolio_id': 27797621}, {'photo_id': 1389411031, 'portfolio_id': 27797621}, {'photo_id': 1389411029, 'portfolio_id': 27797621}, {'photo_id': 1389411027, 'portfolio_id': 27797621}, {'photo_id': 1389411024, 'portfolio_id': 27797621}, {'photo_id': 1389411020, 'portfolio_id': 27797621}, {'photo_id': 1389411018, 'portfolio_id': 27797621}, {'photo_id': 1389411004, 'portfolio_id': 27797621}, {'photo_id': 1389410713, 'portfolio_id': 27797621}, {'photo_id': 1389410710, 'portfolio_id': 27797621}, {'photo_id': 1389410707, 'portfolio_id': 27797621}, {'photo_id': 1389410704, 'portfolio_id': 27797621}, {'photo_id': 1389410702, 'portfolio_id': 27797621}, {'photo_id': 1389410694, 'portfolio_id': 27797621}, {'photo_id': 1389410691, 'portfolio_id': 27797621}, {'photo_id': 1389410686, 'portfolio_id': 27797621}, {'photo_id': 1389410578, 'portfolio_id': 27797621}, {'photo_id': 1389410572, 'portfolio_id': 27797621}, {'photo_id': 1389410569, 'portfolio_id': 27797621}, {'photo_id': 1389410265, 'portfolio_id': 27797621}, {'photo_id': 1389410263, 'portfolio_id': 27797621}, {'photo_id': 1389410261, 'portfolio_id': 27797621}, {'photo_id': 1389410260, 'portfolio_id': 27797621}, {'photo_id': 1389410259, 'portfolio_id': 27797621}, {'photo_id': 1389410258, 'portfolio_id': 27797621}, {'photo_id': 1389409364, 'portfolio_id': 27797621}, {'photo_id': 1389409348, 'portfolio_id': 27797621}, {'photo_id': 1389409308, 'portfolio_id': 27797621}, {'photo_id': 1389409069, 'portfolio_id': 27797621}, {'photo_id': 1389409062, 'portfolio_id': 27797621}, {'photo_id': 1389408807, 'portfolio_id': 27797621}, {'photo_id': 1389408805, 'portfolio_id': 27797621}, {'photo_id': 1389408804, 'portfolio_id': 27797621}, {'photo_id': 1389408803, 'portfolio_id': 27797621}, {'photo_id': 1389408175, 'portfolio_id': 27797621}, {'photo_id': 1389407702, 'portfolio_id': 27797621}, {'photo_id': 1389407701, 'portfolio_id': 27797621}, {'photo_id': 1389407700, 'portfolio_id': 27797621}, {'photo_id': 1389407695, 'portfolio_id': 27797621}, {'photo_id': 1389407693, 'portfolio_id': 27797621}, {'photo_id': 1389407690, 'portfolio_id': 27797621}, {'photo_id': 1389407689, 'portfolio_id': 27797621}, {'photo_id': 1389407687, 'portfolio_id': 27797621}, {'photo_id': 1389407686, 'portfolio_id': 27797621}, {'photo_id': 1389407668, 'portfolio_id': 27797621}, {'photo_id': 1389407667, 'portfolio_id': 27797621}, {'photo_id': 1389407665, 'portfolio_id': 27797621}, {'photo_id': 1389407664, 'portfolio_id': 27797621}, {'photo_id': 1389407645, 'portfolio_id': 27797621}, {'photo_id': 1389407644, 'portfolio_id': 27797621}, {'photo_id': 1389407643, 'portfolio_id': 27797621}, {'photo_id': 1389407642, 'portfolio_id': 27797621}, {'photo_id': 1389407633, 'portfolio_id': 27797621}, {'photo_id': 1389407628, 'portfolio_id': 27797621}, {'photo_id': 1389407626, 'portfolio_id': 27797621}, {'photo_id': 1389407623, 'portfolio_id': 27797621}, {'photo_id': 1389407621, 'portfolio_id': 27797621}, {'photo_id': 1389407620, 'portfolio_id': 27797621}, {'photo_id': 1389407615, 'portfolio_id': 27797621}, {'photo_id': 1389407614, 'portfolio_id': 27797621}, {'photo_id': 1389407611, 'portfolio_id': 27797621}] map_portfolio_id_photo_id: {27797621: [1389411232, 1389411178, 1389411175, 1389411173, 1389411172, 1389411169, 1389411147, 1389411145, 1389411142, 1389411139, 1389411136, 1389411124, 1389411122, 1389411120, 1389411116, 1389411113, 1389411110, 1389411107, 1389411102, 1389411100, 1389411095, 1389411091, 1389411082, 1389411081, 1389411079, 1389411078, 1389411059, 1389411057, 1389411054, 1389411053, 1389411044, 1389411043, 1389411031, 1389411029, 1389411027, 1389411024, 1389411020, 1389411018, 1389411004, 1389410713, 1389410710, 1389410707, 1389410704, 1389410702, 1389410694, 1389410691, 1389410686, 1389410578, 1389410572, 1389410569, 1389410265, 1389410263, 1389410261, 1389410260, 1389410259, 1389410258, 1389409364, 1389409348, 1389409308, 1389409069, 1389409062, 1389408807, 1389408805, 1389408804, 1389408803, 1389408175, 1389407702, 1389407701, 1389407700, 1389407695, 1389407693, 1389407690, 1389407689, 1389407687, 1389407686, 1389407668, 1389407667, 1389407665, 1389407664, 1389407645, 1389407644, 1389407643, 1389407642, 1389407633, 1389407628, 1389407626, 1389407623, 1389407621, 1389407620, 1389407615, 1389407614, 1389407611]} ##### 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.0549774169921875 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Oct 14 14:32:56 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 (27797621) 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 : 27797621 get user id for portfolio 27797621 get sub ptf for main ptf 27797621, type 3726 and hashtags ['autre_refus', 'plastique', 'papier', 'Carton_brun', 'mal_croppe', 'Carton_gris', 'cartonnette', 'Teint_Dans_La_Masse', 'environnement', 'metal', 'flou', 'kraft'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27797621 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','papier','Carton_brun','mal_croppe','Carton_gris','cartonnette','Teint_Dans_La_Masse','environnement','metal','flou','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27797621 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','papier','Carton_brun','mal_croppe','Carton_gris','cartonnette','Teint_Dans_La_Masse','environnement','metal','flou','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 27797621, 'sub_port_id': 27797632, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754580, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 30)}, 'papier': {'main_port_id': 27797621, 'sub_port_id': 27797633, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754581, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 30)}, 'kraft': {'main_port_id': 27797621, 'sub_port_id': 27797634, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754582, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 30)}, 'Carton_brun': {'main_port_id': 27797621, 'sub_port_id': 27797635, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754583, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 30)}, 'cartonnette': {'main_port_id': 27797621, 'sub_port_id': 27797636, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754584, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 30)}, 'environnement': {'main_port_id': 27797621, 'sub_port_id': 27797637, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754585, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 27797621, 'sub_port_id': 27797638, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754586, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 30)}, 'plastique': {'main_port_id': 27797621, 'sub_port_id': 27797639, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754587, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 30)}, 'metal': {'main_port_id': 27797621, 'sub_port_id': 27797640, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754588, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 30)}, 'autre_refus': {'main_port_id': 27797621, 'sub_port_id': 27797641, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754589, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 30)}, 'mal_croppe': {'main_port_id': 27797621, 'sub_port_id': 27797642, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754590, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 30)}, 'flou': {'main_port_id': 27797621, 'sub_port_id': 27797643, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754591, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 30)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27797632 , 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=27797621 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 (27797632) result : ((1389408798,), (1389408799,), (1389408800,), (1389409409,), (1389409410,), (1389409415,), (1389410580,), (1389411045,), (1389411130,), (1389411156,), (1389411157,), (1389411158,), (1389411159,), (1389411160,), (1389411239,), (1389411240,), (1389411241,), (1389411242,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27797621) result : ((1389407611,), (1389407614,), (1389407615,), (1389407620,), (1389407621,), (1389407623,), (1389407626,), (1389407628,), (1389407633,), (1389407642,), (1389407643,), (1389407644,), (1389407645,), (1389407664,), (1389407665,), (1389407667,), (1389407668,), (1389407686,), (1389407687,), (1389407689,), (1389407690,), (1389407693,), (1389407695,), (1389407700,), (1389407701,), (1389407702,), (1389408175,), (1389408803,), (1389408804,), (1389408805,), (1389408807,), (1389409062,), (1389409069,), (1389409308,), (1389409348,), (1389409364,), (1389410258,), (1389410259,), (1389410260,), (1389410261,), (1389410263,), (1389410265,), (1389410569,), (1389410572,), (1389410578,), (1389410686,), (1389410691,), (1389410694,), (1389410702,), (1389410704,), (1389410707,), (1389410710,), (1389410713,), (1389411004,), (1389411018,), (1389411020,), (1389411024,), (1389411027,), (1389411029,), (1389411031,), (1389411043,), (1389411044,), (1389411053,), (1389411054,), (1389411057,), (1389411059,), (1389411078,), (1389411079,), (1389411081,), (1389411082,), (1389411091,), (1389411095,), (1389411100,), (1389411102,), (1389411107,), (1389411110,), (1389411113,), (1389411116,), (1389411120,), (1389411122,), (1389411124,), (1389411136,), (1389411139,), (1389411142,), (1389411145,), (1389411147,), (1389411169,), (1389411172,), (1389411173,), (1389411175,), (1389411178,), (1389411232,)) 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 (1389411100,1389407700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27797633 , 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=27797621 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 (27797633) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27797621) result : ((1389407611,), (1389407614,), (1389407615,), (1389407620,), (1389407621,), (1389407623,), (1389407626,), (1389407628,), (1389407633,), (1389407642,), (1389407643,), (1389407644,), (1389407645,), (1389407664,), (1389407665,), (1389407667,), (1389407668,), (1389407686,), (1389407687,), (1389407689,), (1389407690,), (1389407693,), (1389407695,), (1389407700,), (1389407701,), (1389407702,), (1389408175,), (1389408803,), (1389408804,), (1389408805,), (1389408807,), (1389409062,), (1389409069,), (1389409308,), (1389409348,), (1389409364,), (1389410258,), (1389410259,), (1389410260,), (1389410261,), (1389410263,), (1389410265,), (1389410569,), (1389410572,), (1389410578,), (1389410686,), (1389410691,), (1389410694,), (1389410702,), (1389410704,), (1389410707,), (1389410710,), (1389410713,), (1389411004,), (1389411018,), (1389411020,), (1389411024,), (1389411027,), (1389411029,), (1389411031,), (1389411043,), (1389411044,), (1389411053,), (1389411054,), (1389411057,), (1389411059,), (1389411078,), (1389411079,), (1389411081,), (1389411082,), (1389411091,), (1389411095,), (1389411100,), (1389411102,), (1389411107,), (1389411110,), (1389411113,), (1389411116,), (1389411120,), (1389411122,), (1389411124,), (1389411136,), (1389411139,), (1389411142,), (1389411145,), (1389411147,), (1389411169,), (1389411172,), (1389411173,), (1389411175,), (1389411178,), (1389411232,)) 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 (1389411100,1389407700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27797634 , 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=27797621 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 (27797634) result : ((1389409416,), (1389410654,), (1389411052,), (1389411165,), (1389411166,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27797621) result : ((1389407611,), (1389407614,), (1389407615,), (1389407620,), (1389407621,), (1389407623,), (1389407626,), (1389407628,), (1389407633,), (1389407642,), (1389407643,), (1389407644,), (1389407645,), (1389407664,), (1389407665,), (1389407667,), (1389407668,), (1389407686,), (1389407687,), (1389407689,), (1389407690,), (1389407693,), (1389407695,), (1389407700,), (1389407701,), (1389407702,), (1389408175,), (1389408803,), (1389408804,), (1389408805,), (1389408807,), (1389409062,), (1389409069,), (1389409308,), (1389409348,), (1389409364,), (1389410258,), (1389410259,), (1389410260,), (1389410261,), (1389410263,), (1389410265,), (1389410569,), (1389410572,), (1389410578,), (1389410686,), (1389410691,), (1389410694,), (1389410702,), (1389410704,), (1389410707,), (1389410710,), (1389410713,), (1389411004,), (1389411018,), (1389411020,), (1389411024,), (1389411027,), (1389411029,), (1389411031,), (1389411043,), (1389411044,), (1389411053,), (1389411054,), (1389411057,), (1389411059,), (1389411078,), (1389411079,), (1389411081,), (1389411082,), (1389411091,), (1389411095,), (1389411100,), (1389411102,), (1389411107,), (1389411110,), (1389411113,), (1389411116,), (1389411120,), (1389411122,), (1389411124,), (1389411136,), (1389411139,), (1389411142,), (1389411145,), (1389411147,), (1389411169,), (1389411172,), (1389411173,), (1389411175,), (1389411178,), (1389411232,)) 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 (1389411100,1389407700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27797635 , 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=27797621 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 (27797635) result : ((1389408801,), (1389409411,), (1389410698,), (1389410699,), (1389411048,), (1389411049,), (1389411050,), (1389411133,), (1389411134,), (1389411135,), (1389411163,), (1389411243,), (1389411244,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27797621) result : ((1389407611,), (1389407614,), (1389407615,), (1389407620,), (1389407621,), (1389407623,), (1389407626,), (1389407628,), (1389407633,), (1389407642,), (1389407643,), (1389407644,), (1389407645,), (1389407664,), (1389407665,), (1389407667,), (1389407668,), (1389407686,), (1389407687,), (1389407689,), (1389407690,), (1389407693,), (1389407695,), (1389407700,), (1389407701,), (1389407702,), (1389408175,), (1389408803,), (1389408804,), (1389408805,), (1389408807,), (1389409062,), (1389409069,), (1389409308,), (1389409348,), (1389409364,), (1389410258,), (1389410259,), (1389410260,), (1389410261,), (1389410263,), (1389410265,), (1389410569,), (1389410572,), (1389410578,), (1389410686,), (1389410691,), (1389410694,), (1389410702,), (1389410704,), (1389410707,), (1389410710,), (1389410713,), (1389411004,), (1389411018,), (1389411020,), (1389411024,), (1389411027,), (1389411029,), (1389411031,), (1389411043,), (1389411044,), (1389411053,), (1389411054,), (1389411057,), (1389411059,), (1389411078,), (1389411079,), (1389411081,), (1389411082,), (1389411091,), (1389411095,), (1389411100,), (1389411102,), (1389411107,), (1389411110,), (1389411113,), (1389411116,), (1389411120,), (1389411122,), (1389411124,), (1389411136,), (1389411139,), (1389411142,), (1389411145,), (1389411147,), (1389411169,), (1389411172,), (1389411173,), (1389411175,), (1389411178,), (1389411232,)) 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 (1389411100,1389407700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27797636 , 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=27797621 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 (27797636) result : ((1389410696,), (1389411046,), (1389411047,), (1389411131,), (1389411161,), (1389411162,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27797621) result : ((1389407611,), (1389407614,), (1389407615,), (1389407620,), (1389407621,), (1389407623,), (1389407626,), (1389407628,), (1389407633,), (1389407642,), (1389407643,), (1389407644,), (1389407645,), (1389407664,), (1389407665,), (1389407667,), (1389407668,), (1389407686,), (1389407687,), (1389407689,), (1389407690,), (1389407693,), (1389407695,), (1389407700,), (1389407701,), (1389407702,), (1389408175,), (1389408803,), (1389408804,), (1389408805,), (1389408807,), (1389409062,), (1389409069,), (1389409308,), (1389409348,), (1389409364,), (1389410258,), (1389410259,), (1389410260,), (1389410261,), (1389410263,), (1389410265,), (1389410569,), (1389410572,), (1389410578,), (1389410686,), (1389410691,), (1389410694,), (1389410702,), (1389410704,), (1389410707,), (1389410710,), (1389410713,), (1389411004,), (1389411018,), (1389411020,), (1389411024,), (1389411027,), (1389411029,), (1389411031,), (1389411043,), (1389411044,), (1389411053,), (1389411054,), (1389411057,), (1389411059,), (1389411078,), (1389411079,), (1389411081,), (1389411082,), (1389411091,), (1389411095,), (1389411100,), (1389411102,), (1389411107,), (1389411110,), (1389411113,), (1389411116,), (1389411120,), (1389411122,), (1389411124,), (1389411136,), (1389411139,), (1389411142,), (1389411145,), (1389411147,), (1389411169,), (1389411172,), (1389411173,), (1389411175,), (1389411178,), (1389411232,)) 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 (1389411100,1389407700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27797637 , 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=27797621 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 (27797637) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27797621) result : ((1389407611,), (1389407614,), (1389407615,), (1389407620,), (1389407621,), (1389407623,), (1389407626,), (1389407628,), (1389407633,), (1389407642,), (1389407643,), (1389407644,), (1389407645,), (1389407664,), (1389407665,), (1389407667,), (1389407668,), (1389407686,), (1389407687,), (1389407689,), (1389407690,), (1389407693,), (1389407695,), (1389407700,), (1389407701,), (1389407702,), (1389408175,), (1389408803,), (1389408804,), (1389408805,), (1389408807,), (1389409062,), (1389409069,), (1389409308,), (1389409348,), (1389409364,), (1389410258,), (1389410259,), (1389410260,), (1389410261,), (1389410263,), (1389410265,), (1389410569,), (1389410572,), (1389410578,), (1389410686,), (1389410691,), (1389410694,), (1389410702,), (1389410704,), (1389410707,), (1389410710,), (1389410713,), (1389411004,), (1389411018,), (1389411020,), (1389411024,), (1389411027,), (1389411029,), (1389411031,), (1389411043,), (1389411044,), (1389411053,), (1389411054,), (1389411057,), (1389411059,), (1389411078,), (1389411079,), (1389411081,), (1389411082,), (1389411091,), (1389411095,), (1389411100,), (1389411102,), (1389411107,), (1389411110,), (1389411113,), (1389411116,), (1389411120,), (1389411122,), (1389411124,), (1389411136,), (1389411139,), (1389411142,), (1389411145,), (1389411147,), (1389411169,), (1389411172,), (1389411173,), (1389411175,), (1389411178,), (1389411232,)) 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 (1389411100,1389407700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27797638 , 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=27797621 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 (27797638) result : ((1389408796,), (1389409407,), (1389409408,), (1389410577,), (1389410695,), (1389411035,), (1389411037,), (1389411038,), (1389411149,), (1389411150,), (1389411151,), (1389411152,), (1389411153,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27797621) result : ((1389407611,), (1389407614,), (1389407615,), (1389407620,), (1389407621,), (1389407623,), (1389407626,), (1389407628,), (1389407633,), (1389407642,), (1389407643,), (1389407644,), (1389407645,), (1389407664,), (1389407665,), (1389407667,), (1389407668,), (1389407686,), (1389407687,), (1389407689,), (1389407690,), (1389407693,), (1389407695,), (1389407700,), (1389407701,), (1389407702,), (1389408175,), (1389408803,), (1389408804,), (1389408805,), (1389408807,), (1389409062,), (1389409069,), (1389409308,), (1389409348,), (1389409364,), (1389410258,), (1389410259,), (1389410260,), (1389410261,), (1389410263,), (1389410265,), (1389410569,), (1389410572,), (1389410578,), (1389410686,), (1389410691,), (1389410694,), (1389410702,), (1389410704,), (1389410707,), (1389410710,), (1389410713,), (1389411004,), (1389411018,), (1389411020,), (1389411024,), (1389411027,), (1389411029,), (1389411031,), (1389411043,), (1389411044,), (1389411053,), (1389411054,), (1389411057,), (1389411059,), (1389411078,), (1389411079,), (1389411081,), (1389411082,), (1389411091,), (1389411095,), (1389411100,), (1389411102,), (1389411107,), (1389411110,), (1389411113,), (1389411116,), (1389411120,), (1389411122,), (1389411124,), (1389411136,), (1389411139,), (1389411142,), (1389411145,), (1389411147,), (1389411169,), (1389411172,), (1389411173,), (1389411175,), (1389411178,), (1389411232,)) 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 (1389411100,1389407700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27797639 , 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=27797621 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 (27797639) result : ((1389409412,), (1389410583,), (1389410584,), (1389411164,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27797621) result : ((1389407611,), (1389407614,), (1389407615,), (1389407620,), (1389407621,), (1389407623,), (1389407626,), (1389407628,), (1389407633,), (1389407642,), (1389407643,), (1389407644,), (1389407645,), (1389407664,), (1389407665,), (1389407667,), (1389407668,), (1389407686,), (1389407687,), (1389407689,), (1389407690,), (1389407693,), (1389407695,), (1389407700,), (1389407701,), (1389407702,), (1389408175,), (1389408803,), (1389408804,), (1389408805,), (1389408807,), (1389409062,), (1389409069,), (1389409308,), (1389409348,), (1389409364,), (1389410258,), (1389410259,), (1389410260,), (1389410261,), (1389410263,), (1389410265,), (1389410569,), (1389410572,), (1389410578,), (1389410686,), (1389410691,), (1389410694,), (1389410702,), (1389410704,), (1389410707,), (1389410710,), (1389410713,), (1389411004,), (1389411018,), (1389411020,), (1389411024,), (1389411027,), (1389411029,), (1389411031,), (1389411043,), (1389411044,), (1389411053,), (1389411054,), (1389411057,), (1389411059,), (1389411078,), (1389411079,), (1389411081,), (1389411082,), (1389411091,), (1389411095,), (1389411100,), (1389411102,), (1389411107,), (1389411110,), (1389411113,), (1389411116,), (1389411120,), (1389411122,), (1389411124,), (1389411136,), (1389411139,), (1389411142,), (1389411145,), (1389411147,), (1389411169,), (1389411172,), (1389411173,), (1389411175,), (1389411178,), (1389411232,)) 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 (1389411100,1389407700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27797640 , 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=27797621 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 (27797640) result : ((1389410684,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27797621) result : ((1389407611,), (1389407614,), (1389407615,), (1389407620,), (1389407621,), (1389407623,), (1389407626,), (1389407628,), (1389407633,), (1389407642,), (1389407643,), (1389407644,), (1389407645,), (1389407664,), (1389407665,), (1389407667,), (1389407668,), (1389407686,), (1389407687,), (1389407689,), (1389407690,), (1389407693,), (1389407695,), (1389407700,), (1389407701,), (1389407702,), (1389408175,), (1389408803,), (1389408804,), (1389408805,), (1389408807,), (1389409062,), (1389409069,), (1389409308,), (1389409348,), (1389409364,), (1389410258,), (1389410259,), (1389410260,), (1389410261,), (1389410263,), (1389410265,), (1389410569,), (1389410572,), (1389410578,), (1389410686,), (1389410691,), (1389410694,), (1389410702,), (1389410704,), (1389410707,), (1389410710,), (1389410713,), (1389411004,), (1389411018,), (1389411020,), (1389411024,), (1389411027,), (1389411029,), (1389411031,), (1389411043,), (1389411044,), (1389411053,), (1389411054,), (1389411057,), (1389411059,), (1389411078,), (1389411079,), (1389411081,), (1389411082,), (1389411091,), (1389411095,), (1389411100,), (1389411102,), (1389411107,), (1389411110,), (1389411113,), (1389411116,), (1389411120,), (1389411122,), (1389411124,), (1389411136,), (1389411139,), (1389411142,), (1389411145,), (1389411147,), (1389411169,), (1389411172,), (1389411173,), (1389411175,), (1389411178,), (1389411232,)) 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 (1389411100,1389407700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27797641 , 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=27797621 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 (27797641) result : ((1389408797,), (1389410579,), (1389411039,), (1389411040,), (1389411042,), (1389411154,), (1389411155,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27797621) result : ((1389407611,), (1389407614,), (1389407615,), (1389407620,), (1389407621,), (1389407623,), (1389407626,), (1389407628,), (1389407633,), (1389407642,), (1389407643,), (1389407644,), (1389407645,), (1389407664,), (1389407665,), (1389407667,), (1389407668,), (1389407686,), (1389407687,), (1389407689,), (1389407690,), (1389407693,), (1389407695,), (1389407700,), (1389407701,), (1389407702,), (1389408175,), (1389408803,), (1389408804,), (1389408805,), (1389408807,), (1389409062,), (1389409069,), (1389409308,), (1389409348,), (1389409364,), (1389410258,), (1389410259,), (1389410260,), (1389410261,), (1389410263,), (1389410265,), (1389410569,), (1389410572,), (1389410578,), (1389410686,), (1389410691,), (1389410694,), (1389410702,), (1389410704,), (1389410707,), (1389410710,), (1389410713,), (1389411004,), (1389411018,), (1389411020,), (1389411024,), (1389411027,), (1389411029,), (1389411031,), (1389411043,), (1389411044,), (1389411053,), (1389411054,), (1389411057,), (1389411059,), (1389411078,), (1389411079,), (1389411081,), (1389411082,), (1389411091,), (1389411095,), (1389411100,), (1389411102,), (1389411107,), (1389411110,), (1389411113,), (1389411116,), (1389411120,), (1389411122,), (1389411124,), (1389411136,), (1389411139,), (1389411142,), (1389411145,), (1389411147,), (1389411169,), (1389411172,), (1389411173,), (1389411175,), (1389411178,), (1389411232,)) 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 (1389411100,1389407700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27797642 , 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=27797621 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 (27797642) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27797621) result : ((1389407611,), (1389407614,), (1389407615,), (1389407620,), (1389407621,), (1389407623,), (1389407626,), (1389407628,), (1389407633,), (1389407642,), (1389407643,), (1389407644,), (1389407645,), (1389407664,), (1389407665,), (1389407667,), (1389407668,), (1389407686,), (1389407687,), (1389407689,), (1389407690,), (1389407693,), (1389407695,), (1389407700,), (1389407701,), (1389407702,), (1389408175,), (1389408803,), (1389408804,), (1389408805,), (1389408807,), (1389409062,), (1389409069,), (1389409308,), (1389409348,), (1389409364,), (1389410258,), (1389410259,), (1389410260,), (1389410261,), (1389410263,), (1389410265,), (1389410569,), (1389410572,), (1389410578,), (1389410686,), (1389410691,), (1389410694,), (1389410702,), (1389410704,), (1389410707,), (1389410710,), (1389410713,), (1389411004,), (1389411018,), (1389411020,), (1389411024,), (1389411027,), (1389411029,), (1389411031,), (1389411043,), (1389411044,), (1389411053,), (1389411054,), (1389411057,), (1389411059,), (1389411078,), (1389411079,), (1389411081,), (1389411082,), (1389411091,), (1389411095,), (1389411100,), (1389411102,), (1389411107,), (1389411110,), (1389411113,), (1389411116,), (1389411120,), (1389411122,), (1389411124,), (1389411136,), (1389411139,), (1389411142,), (1389411145,), (1389411147,), (1389411169,), (1389411172,), (1389411173,), (1389411175,), (1389411178,), (1389411232,)) 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 (1389411100,1389407700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 27797643 , 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=27797621 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 (27797643) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (27797621) result : ((1389407611,), (1389407614,), (1389407615,), (1389407620,), (1389407621,), (1389407623,), (1389407626,), (1389407628,), (1389407633,), (1389407642,), (1389407643,), (1389407644,), (1389407645,), (1389407664,), (1389407665,), (1389407667,), (1389407668,), (1389407686,), (1389407687,), (1389407689,), (1389407690,), (1389407693,), (1389407695,), (1389407700,), (1389407701,), (1389407702,), (1389408175,), (1389408803,), (1389408804,), (1389408805,), (1389408807,), (1389409062,), (1389409069,), (1389409308,), (1389409348,), (1389409364,), (1389410258,), (1389410259,), (1389410260,), (1389410261,), (1389410263,), (1389410265,), (1389410569,), (1389410572,), (1389410578,), (1389410686,), (1389410691,), (1389410694,), (1389410702,), (1389410704,), (1389410707,), (1389410710,), (1389410713,), (1389411004,), (1389411018,), (1389411020,), (1389411024,), (1389411027,), (1389411029,), (1389411031,), (1389411043,), (1389411044,), (1389411053,), (1389411054,), (1389411057,), (1389411059,), (1389411078,), (1389411079,), (1389411081,), (1389411082,), (1389411091,), (1389411095,), (1389411100,), (1389411102,), (1389411107,), (1389411110,), (1389411113,), (1389411116,), (1389411120,), (1389411122,), (1389411124,), (1389411136,), (1389411139,), (1389411142,), (1389411145,), (1389411147,), (1389411169,), (1389411172,), (1389411173,), (1389411175,), (1389411178,), (1389411232,)) 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 (1389411100,1389407700) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27797621 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','papier','Carton_brun','mal_croppe','Carton_gris','cartonnette','Teint_Dans_La_Masse','environnement','metal','flou','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=27797621 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','plastique','papier','Carton_brun','mal_croppe','Carton_gris','cartonnette','Teint_Dans_La_Masse','environnement','metal','flou','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 27797621, 'sub_port_id': 27797668, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754616, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 19, 36), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 19, 36), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 36)}, 'papier': {'main_port_id': 27797621, 'sub_port_id': 27797669, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754617, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 19, 36), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 19, 36), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 36)}, 'kraft': {'main_port_id': 27797621, 'sub_port_id': 27797670, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754618, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 19, 36), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 19, 36), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 36)}, 'Carton_brun': {'main_port_id': 27797621, 'sub_port_id': 27797671, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754619, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 19, 36), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 19, 36), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 36)}, 'cartonnette': {'main_port_id': 27797621, 'sub_port_id': 27797672, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754620, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 19, 36), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 19, 36), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 36)}, 'environnement': {'main_port_id': 27797621, 'sub_port_id': 27797673, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754621, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 19, 36), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 19, 36), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 36)}, 'Teint_Dans_La_Masse': {'main_port_id': 27797621, 'sub_port_id': 27797674, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754622, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 19, 36), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 19, 36), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 36)}, 'plastique': {'main_port_id': 27797621, 'sub_port_id': 27797675, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754623, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 19, 36), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 19, 36), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 36)}, 'metal': {'main_port_id': 27797621, 'sub_port_id': 27797676, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754624, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 19, 36), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 19, 36), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 36)}, 'autre_refus': {'main_port_id': 27797621, 'sub_port_id': 27797677, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754625, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 19, 36), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 19, 36), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 36)}, 'mal_croppe': {'main_port_id': 27797621, 'sub_port_id': 27797678, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754626, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 19, 36), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 19, 36), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 36)}, 'flou': {'main_port_id': 27797621, 'sub_port_id': 27797679, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18754627, 'last_updated_at': datetime.datetime(2025, 10, 14, 14, 31), 'last_updated_at_desc': datetime.datetime(2025, 10, 14, 14, 31), 'last_updated_at_asc': datetime.datetime(2025, 10, 14, 14, 19, 36)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27797668,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27797632 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27797669,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27797633 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27797670,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27797634 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27797671,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27797635 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27797672,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27797636 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27797673,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27797637 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27797674,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27797638 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27797675,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27797639 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27797676,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27797640 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27797677,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27797641 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27797678,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27797642 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 27797679,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 27797643 lien utilise dans velours : https://marlene.fotonower.com/velours/27797668,27797669,27797670,27797671,27797672,27797673,27797674,27797675,27797676,27797677,27797678,27797679?tags=Carton_gris,papier,kraft,Carton_brun,cartonnette,environnement,Teint_Dans_La_Masse,plastique,metal,autre_refus,mal_croppe,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27797621]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1389411232, 1389411178, 1389411175, 1389411173, 1389411172, 1389411169] map_info['map_portfolio_photo'] : {27797621: [1389411232, 1389411178, 1389411175, 1389411173, 1389411172, 1389411169, 1389411147, 1389411145, 1389411142, 1389411139, 1389411136, 1389411124, 1389411122, 1389411120, 1389411116, 1389411113, 1389411110, 1389411107, 1389411102, 1389411100, 1389411095, 1389411091, 1389411082, 1389411081, 1389411079, 1389411078, 1389411059, 1389411057, 1389411054, 1389411053, 1389411044, 1389411043, 1389411031, 1389411029, 1389411027, 1389411024, 1389411020, 1389411018, 1389411004, 1389410713, 1389410710, 1389410707, 1389410704, 1389410702, 1389410694, 1389410691, 1389410686, 1389410578, 1389410572, 1389410569, 1389410265, 1389410263, 1389410261, 1389410260, 1389410259, 1389410258, 1389409364, 1389409348, 1389409308, 1389409069, 1389409062, 1389408807, 1389408805, 1389408804, 1389408803, 1389408175, 1389407702, 1389407701, 1389407700, 1389407695, 1389407693, 1389407690, 1389407689, 1389407687, 1389407686, 1389407668, 1389407667, 1389407665, 1389407664, 1389407645, 1389407644, 1389407643, 1389407642, 1389407633, 1389407628, 1389407626, 1389407623, 1389407621, 1389407620, 1389407615, 1389407614, 1389407611]} final : False mtd_id 4302 list_pids : [1389411232, 1389411178, 1389411175, 1389411173, 1389411172, 1389411169] Looping around the photos to save general results len do output : 1 /27797621. 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, '3940363') ('4302', '27797621', '1389411232', None, None, None, None, None, '3940363') ('4302', None, None, None, None, None, None, None, '3940363') ('4302', '27797621', '1389411178', None, None, None, None, None, '3940363') ('4302', None, None, None, None, None, None, None, '3940363') ('4302', '27797621', '1389411175', None, None, None, None, None, '3940363') ('4302', None, None, None, None, None, None, None, '3940363') ('4302', '27797621', '1389411173', None, None, None, None, None, '3940363') ('4302', None, None, None, None, None, None, None, '3940363') ('4302', '27797621', '1389411172', None, None, None, None, None, '3940363') ('4302', None, None, None, None, None, None, None, '3940363') ('4302', '27797621', '1389411169', None, None, None, None, None, '3940363') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '27797621', "{'Carton_gris': 27797632, 'papier': 27797633, 'kraft': 27797634, 'Carton_brun': 27797635, 'cartonnette': 27797636, 'environnement': 27797637, 'Teint_Dans_La_Masse': 27797638, 'plastique': 27797639, 'metal': 27797640, 'autre_refus': 27797641, 'mal_croppe': 27797642, 'flou': 27797643}", None, None, None, None, '3940363'), ('4302', '27797621', '1389411232', None, None, None, None, None, '3940363'), ('4302', '27797621', '1389411178', None, None, None, None, None, '3940363'), ('4302', '27797621', '1389411175', None, None, None, None, None, '3940363'), ('4302', '27797621', '1389411173', None, None, None, None, None, '3940363'), ('4302', '27797621', '1389411172', None, None, None, None, None, '3940363'), ('4302', '27797621', '1389411169', None, None, None, None, None, '3940363')] time used for this insertion : 0.03726005554199219 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7227652072906494 time spend to save output : 0.03748774528503418 total time spend for step 1 : 1.7602529525756836 step2:final Tue Oct 14 14:32:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (27797621) 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 27797621 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1389407615,1389407614,1389407611,1389407633,1389407628,1389407626,1389407623,1389407621,1389407620,1389407645,1389407644,1389407643,1389407642,1389407668,1389407667,1389407665,1389407664,1389407695,1389407693,1389407690,1389407689,1389407687,1389407686,1389408175,1389407702,1389407701,1389407700,1389409069,1389409062,1389408807,1389408805,1389408804,1389408803,1389409364,1389409348,1389409308,1389411124,1389410265,1389410263,1389411122,1389410261,1389411120,1389410260,1389411095,1389411091,1389410259,1389411031,1389410694,1389410691,1389411029,1389410258,1389411027,1389410686,1389411024,1389410578,1389411020,1389410572,1389411018,1389410569,1389411004,1389410713,1389410710,1389410707,1389410704,1389410702,1389411081,1389411082,1389411078,1389411079,1389411057,1389411059,1389411054,1389411053,1389411044,1389411043,1389411116,1389411113,1389411110,1389411107,1389411102,1389411100,1389411147,1389411145,1389411142,1389411139,1389411136,1389411178,1389411175,1389411173,1389411172,1389411169,1389411232); 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([27797621]) Inside saveOutput : final : False verbose : True original output for save of step final : {1389411232: ('0.06384741601101801',), 1389411178: ('0.06384741601101801',), 1389411175: ('0.06384741601101801',), 1389411173: ('0.06384741601101801',), 1389411172: ('0.06384741601101801',), 1389411169: ('0.06384741601101801',)} new output for save of step final : {1389411232: ('0.06384741601101801',), 1389411178: ('0.06384741601101801',), 1389411175: ('0.06384741601101801',), 1389411173: ('0.06384741601101801',), 1389411172: ('0.06384741601101801',), 1389411169: ('0.06384741601101801',)} [1389411232, 1389411178, 1389411175, 1389411173, 1389411172, 1389411169] map_info['map_portfolio_photo'] : {27797621: [1389411232, 1389411178, 1389411175, 1389411173, 1389411172, 1389411169, 1389411147, 1389411145, 1389411142, 1389411139, 1389411136, 1389411124, 1389411122, 1389411120, 1389411116, 1389411113, 1389411110, 1389411107, 1389411102, 1389411100, 1389411095, 1389411091, 1389411082, 1389411081, 1389411079, 1389411078, 1389411059, 1389411057, 1389411054, 1389411053, 1389411044, 1389411043, 1389411031, 1389411029, 1389411027, 1389411024, 1389411020, 1389411018, 1389411004, 1389410713, 1389410710, 1389410707, 1389410704, 1389410702, 1389410694, 1389410691, 1389410686, 1389410578, 1389410572, 1389410569, 1389410265, 1389410263, 1389410261, 1389410260, 1389410259, 1389410258, 1389409364, 1389409348, 1389409308, 1389409069, 1389409062, 1389408807, 1389408805, 1389408804, 1389408803, 1389408175, 1389407702, 1389407701, 1389407700, 1389407695, 1389407693, 1389407690, 1389407689, 1389407687, 1389407686, 1389407668, 1389407667, 1389407665, 1389407664, 1389407645, 1389407644, 1389407643, 1389407642, 1389407633, 1389407628, 1389407626, 1389407623, 1389407621, 1389407620, 1389407615, 1389407614, 1389407611]} final : False mtd_id 4302 list_pids : [1389411232, 1389411178, 1389411175, 1389411173, 1389411172, 1389411169] Looping around the photos to save general results len do output : 6 /1389411232.Didn't retrieve data . /1389411178.Didn't retrieve data . /1389411175.Didn't retrieve data . /1389411173.Didn't retrieve data . /1389411172.Didn't retrieve data . /1389411169.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, '3940363') ('4302', '27797621', '1389411232', None, None, None, None, None, '3940363') ('4302', None, None, None, None, None, None, None, '3940363') ('4302', '27797621', '1389411178', None, None, None, None, None, '3940363') ('4302', None, None, None, None, None, None, None, '3940363') ('4302', '27797621', '1389411175', None, None, None, None, None, '3940363') ('4302', None, None, None, None, None, None, None, '3940363') ('4302', '27797621', '1389411173', None, None, None, None, None, '3940363') ('4302', None, None, None, None, None, None, None, '3940363') ('4302', '27797621', '1389411172', None, None, None, None, None, '3940363') ('4302', None, None, None, None, None, None, None, '3940363') ('4302', '27797621', '1389411169', None, None, None, None, None, '3940363') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '27797621', '1389411232', '0.06384741601101801', None, None, None, None, '3940363'), ('4302', '27797621', '1389411178', '0.06384741601101801', None, None, None, None, '3940363'), ('4302', '27797621', '1389411175', '0.06384741601101801', None, None, None, None, '3940363'), ('4302', '27797621', '1389411173', '0.06384741601101801', None, None, None, None, '3940363'), ('4302', '27797621', '1389411172', '0.06384741601101801', None, None, None, None, '3940363'), ('4302', '27797621', '1389411169', '0.06384741601101801', None, None, None, None, '3940363')] time used for this insertion : 0.03660869598388672 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2454540729522705 time spend to save output : 0.03697800636291504 total time spend for step 2 : 0.28243207931518555 step3:velours_tree Tue Oct 14 14:32:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {27797621: [{'Carton_gris': 27797632, 'papier': 27797633, 'kraft': 27797634, 'Carton_brun': 27797635, 'cartonnette': 27797636, 'environnement': 27797637, 'Teint_Dans_La_Masse': 27797638, 'plastique': 27797639, 'metal': 27797640, 'autre_refus': 27797641, 'mal_croppe': 27797642, 'flou': 27797643}]} input_args_next_step : {27797621: ()} output_args : {27797621: [{'Carton_gris': 27797632, 'papier': 27797633, 'kraft': 27797634, 'Carton_brun': 27797635, 'cartonnette': 27797636, 'environnement': 27797637, 'Teint_Dans_La_Masse': 27797638, 'plastique': 27797639, 'metal': 27797640, 'autre_refus': 27797641, 'mal_croppe': 27797642, 'flou': 27797643}]} args : 27797621 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 27797632, 'papier': 27797633, 'kraft': 27797634, 'Carton_brun': 27797635, 'cartonnette': 27797636, 'environnement': 27797637, 'Teint_Dans_La_Masse': 27797638, 'plastique': 27797639, 'metal': 27797640, 'autre_refus': 27797641, 'mal_croppe': 27797642, 'flou': 27797643},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27797621) 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([27797621]) 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.303480863571167 time spend to save output : 5.817413330078125e-05 total time spend for step 3 : 0.3035390377044678 step4:send_mail_cod Tue Oct 14 14:32: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 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 : {1389411232: ('0.06384741601101801',), 1389411178: ('0.06384741601101801',), 1389411175: ('0.06384741601101801',), 1389411173: ('0.06384741601101801',), 1389411172: ('0.06384741601101801',), 1389411169: ('0.06384741601101801',)} input_args_next_step : {1389411232: ()} output_args : {1389411232: ('0.06384741601101801',), 1389411178: ('0.06384741601101801',), 1389411175: ('0.06384741601101801',), 1389411173: ('0.06384741601101801',), 1389411172: ('0.06384741601101801',), 1389411169: ('0.06384741601101801',)} args : 1389411232 depend.output_id : 0 input_args_next_step : {1389411232: ('0.06384741601101801',), 1389411178: ()} output_args : {1389411232: ('0.06384741601101801',), 1389411178: ('0.06384741601101801',), 1389411175: ('0.06384741601101801',), 1389411173: ('0.06384741601101801',), 1389411172: ('0.06384741601101801',), 1389411169: ('0.06384741601101801',)} args : 1389411178 depend.output_id : 0 input_args_next_step : {1389411232: ('0.06384741601101801',), 1389411178: ('0.06384741601101801',), 1389411175: ()} output_args : {1389411232: ('0.06384741601101801',), 1389411178: ('0.06384741601101801',), 1389411175: ('0.06384741601101801',), 1389411173: ('0.06384741601101801',), 1389411172: ('0.06384741601101801',), 1389411169: ('0.06384741601101801',)} args : 1389411175 depend.output_id : 0 input_args_next_step : {1389411232: ('0.06384741601101801',), 1389411178: ('0.06384741601101801',), 1389411175: ('0.06384741601101801',), 1389411173: ()} output_args : {1389411232: ('0.06384741601101801',), 1389411178: ('0.06384741601101801',), 1389411175: ('0.06384741601101801',), 1389411173: ('0.06384741601101801',), 1389411172: ('0.06384741601101801',), 1389411169: ('0.06384741601101801',)} args : 1389411173 depend.output_id : 0 input_args_next_step : {1389411232: ('0.06384741601101801',), 1389411178: ('0.06384741601101801',), 1389411175: ('0.06384741601101801',), 1389411173: ('0.06384741601101801',), 1389411172: ()} output_args : {1389411232: ('0.06384741601101801',), 1389411178: ('0.06384741601101801',), 1389411175: ('0.06384741601101801',), 1389411173: ('0.06384741601101801',), 1389411172: ('0.06384741601101801',), 1389411169: ('0.06384741601101801',)} args : 1389411172 depend.output_id : 0 input_args_next_step : {1389411232: ('0.06384741601101801',), 1389411178: ('0.06384741601101801',), 1389411175: ('0.06384741601101801',), 1389411173: ('0.06384741601101801',), 1389411172: ('0.06384741601101801',), 1389411169: ()} output_args : {1389411232: ('0.06384741601101801',), 1389411178: ('0.06384741601101801',), 1389411175: ('0.06384741601101801',), 1389411173: ('0.06384741601101801',), 1389411172: ('0.06384741601101801',), 1389411169: ('0.06384741601101801',)} args : 1389411169 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 : {27797621: [{'Carton_gris': 27797632, 'papier': 27797633, 'kraft': 27797634, 'Carton_brun': 27797635, 'cartonnette': 27797636, 'environnement': 27797637, 'Teint_Dans_La_Masse': 27797638, 'plastique': 27797639, 'metal': 27797640, 'autre_refus': 27797641, 'mal_croppe': 27797642, 'flou': 27797643}]} input_args_next_step : {1389411232: ('0.06384741601101801',), 1389411178: ('0.06384741601101801',), 1389411175: ('0.06384741601101801',), 1389411173: ('0.06384741601101801',), 1389411172: ('0.06384741601101801',), 1389411169: ('0.06384741601101801',), 27797621: ()} output_args : {27797621: [{'Carton_gris': 27797632, 'papier': 27797633, 'kraft': 27797634, 'Carton_brun': 27797635, 'cartonnette': 27797636, 'environnement': 27797637, 'Teint_Dans_La_Masse': 27797638, 'plastique': 27797639, 'metal': 27797640, 'autre_refus': 27797641, 'mal_croppe': 27797642, 'flou': 27797643}]} args : 27797621 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 :7, first value : ('0.06384741601101801',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27797621) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1389411232,1389411178,1389411175,1389411173,1389411172,1389411169) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1389411169 begin to download photo : 1389411173 begin to download photo : 1389411178 download finish for photo 1389411173 begin to download photo : 1389411175 download finish for photo 1389411169 begin to download photo : 1389411172 download finish for photo 1389411178 begin to download photo : 1389411232 download finish for photo 1389411175 download finish for photo 1389411232 download finish for photo 1389411172 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P27797621_14-10-2025_14_32_59.pdf 27797634 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27797634 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389409416: '1760444607_2587742_1389407695_16c609348fef60f17b1fbe57ac668bec_rle_crop_3997611759_0.png', 1389410654: '1760444704_2592931_1389407700_9e0d821bd6d87ce46ecf812006856fbc_rle_crop_3997611876_0.png', 1389411052: '1760444825_2599369_1389408805_4511e4faf455e5ea4dadb581f58c1d8b_rle_crop_3997612132_0.png', 1389411165: '1760444964_2605437_1389410691_fdda41e584e25ab3b3c597fddea1f3d9_rle_crop_3997612771_0.png', 1389411166: '1760444964_2605437_1389410258_b0728d011e608bdc89a37542024d993f_rle_crop_3997612857_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/c2fef0e466a176a9d1c0dbade6dcd78d_80057704.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/ad2d758febefd672b75f8189a0940a6a_20819814.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/21c8c5ce05943a234de96babc910a2e8_1141213.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/cf8cfaf1f9d0cad1695b1d950fe4613f_42204688.png change filename to text .imagette277976341760445179/ imagette277976341760445179/1760444825_2599369_1389408805_4511e4faf455e5ea4dadb581f58c1d8b_rle_crop_3997612132_0.png.png imagette277976341760445179/1760444964_2605437_1389410258_b0728d011e608bdc89a37542024d993f_rle_crop_3997612857_0.png.png imagette277976341760445179/1760444607_2587742_1389407695_16c609348fef60f17b1fbe57ac668bec_rle_crop_3997611759_0.png.png imagette277976341760445179/1760444964_2605437_1389410691_fdda41e584e25ab3b3c597fddea1f3d9_rle_crop_3997612771_0.png.png imagette277976341760445179/1760444704_2592931_1389407700_9e0d821bd6d87ce46ecf812006856fbc_rle_crop_3997611876_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/cf8cfaf1f9d0cad1695b1d950fe4613f_48443473.png imagette277976341760445179 27797636 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27797636 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389410696: '1760444724_2593374_1389409348_a3864cfa744c1684845a787ae72f3a18_rle_crop_3997611940_0.png', 1389411046: '1760444825_2599369_1389409062_4fe25630cd8436bdc6d39fece3481751_rle_crop_3997612102_0.png', 1389411047: '1760444825_2599369_1389408803_cc9359ec39d23841dd067d680e77424a_rle_crop_3997612154_0.png', 1389411131: '1760444944_2604967_1389410572_07e4c6eafde892d13fc0274fff8dc2e2_rle_crop_3997612486_0.png', 1389411161: '1760444964_2605437_1389410691_fdda41e584e25ab3b3c597fddea1f3d9_rle_crop_3997612767_0.png', 1389411162: '1760444964_2605437_1389410258_b0728d011e608bdc89a37542024d993f_rle_crop_3997612853_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/ff9ccd983746ed191610dd2d6a393488_10443017.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/1b4eee198b05dfa295876042b226fedd_62785179.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/2fa993d81c25d4d881605d1c1785316f_6458762.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/de30e0d59706c0ec92c9e6e1e30f41ad_35299526.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/d9ec140b7df7b03e8c8e24a2e19875e4_46156331.png change filename to text .imagette277976361760445179/ imagette277976361760445179/1760444964_2605437_1389410691_fdda41e584e25ab3b3c597fddea1f3d9_rle_crop_3997612767_0.png.png imagette277976361760445179/1760444724_2593374_1389409348_a3864cfa744c1684845a787ae72f3a18_rle_crop_3997611940_0.png.png imagette277976361760445179/1760444964_2605437_1389410258_b0728d011e608bdc89a37542024d993f_rle_crop_3997612853_0.png.png imagette277976361760445179/1760444944_2604967_1389410572_07e4c6eafde892d13fc0274fff8dc2e2_rle_crop_3997612486_0.png.png imagette277976361760445179/1760444825_2599369_1389409062_4fe25630cd8436bdc6d39fece3481751_rle_crop_3997612102_0.png.png imagette277976361760445179/1760444825_2599369_1389408803_cc9359ec39d23841dd067d680e77424a_rle_crop_3997612154_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/d9ec140b7df7b03e8c8e24a2e19875e4_32058631.png imagette277976361760445179 27797639 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27797639 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389409412: '1760444585_2587302_1389407644_59b3f2b7cfc136e5f5eb1dcde11f0929_rle_crop_3997611696_0.png', 1389410583: '1760444704_2592931_1389407701_345990d75ac5ebd51af0a46ffa693314_rle_crop_3997611867_0.png', 1389410584: '1760444704_2592931_1389407700_9e0d821bd6d87ce46ecf812006856fbc_rle_crop_3997611872_0.png', 1389411164: '1760444964_2605437_1389410261_6493258cce38e46f460a6504fc976915_rle_crop_3997612812_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/2ecd02faaa5069579e477d4acd5f88e1_27370214.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/c7af72c348d28f8b3f56bd3863c8d4d1_8223499.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/033712b13ea32bfa92a21b3dfaef4824_94505878.png change filename to text .imagette277976391760445180/ imagette277976391760445180/1760444585_2587302_1389407644_59b3f2b7cfc136e5f5eb1dcde11f0929_rle_crop_3997611696_0.png.png imagette277976391760445180/1760444964_2605437_1389410261_6493258cce38e46f460a6504fc976915_rle_crop_3997612812_0.png.png imagette277976391760445180/1760444704_2592931_1389407700_9e0d821bd6d87ce46ecf812006856fbc_rle_crop_3997611872_0.png.png imagette277976391760445180/1760444704_2592931_1389407701_345990d75ac5ebd51af0a46ffa693314_rle_crop_3997611867_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/4d88c159105652f2335c1e53f06961de_5582879.png imagette277976391760445180 27797640 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27797640 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389410684: '1760444704_2592931_1389407701_345990d75ac5ebd51af0a46ffa693314_rle_crop_3997611863_0.png'} change filename to text .imagette277976401760445180/ imagette277976401760445180/1760444704_2592931_1389407701_345990d75ac5ebd51af0a46ffa693314_rle_crop_3997611863_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/8fec4a5df7d9f13aa85e7c05c775c5c4_27368535.png imagette277976401760445180 27797641 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27797641 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389408797: '1760444485_2581759_1389407664_8a7a27749df3ac0f2dabb2676a8745fa_rle_crop_3997610609_0.png', 1389410579: '1760444704_2592931_1389407701_345990d75ac5ebd51af0a46ffa693314_rle_crop_3997611860_0.png', 1389411039: '1760444825_2599369_1389409062_4fe25630cd8436bdc6d39fece3481751_rle_crop_3997612100_0.png', 1389411040: '1760444825_2599369_1389408805_4511e4faf455e5ea4dadb581f58c1d8b_rle_crop_3997612128_0.png', 1389411042: '1760444825_2599369_1389408803_cc9359ec39d23841dd067d680e77424a_rle_crop_3997612152_0.png', 1389411154: '1760444964_2605437_1389410694_2d9b0419ba5f3d9fbd162a9a65efda0f_rle_crop_3997612749_0.png', 1389411155: '1760444964_2605437_1389410259_9f86e25cb8dbd7ce98b7de46184e4593_rle_crop_3997612835_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/25b0674a3427551424939322fdd7e667_60375702.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/d111d4318065193bf5db32ebfdf8f96a_42419012.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/2bc45a3a1245d64afda8ca832f900e8c_99485216.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/ba32cd53d12d6da79e6f95d7532d6957_44419834.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/c35694eca7e60b129f1392e075f09ea5_43864713.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/a28376c23e237ae9b46a80000a4a20aa_3597306.png change filename to text .imagette277976411760445181/ imagette277976411760445181/1760444964_2605437_1389410259_9f86e25cb8dbd7ce98b7de46184e4593_rle_crop_3997612835_0.png.png imagette277976411760445181/1760444825_2599369_1389408805_4511e4faf455e5ea4dadb581f58c1d8b_rle_crop_3997612128_0.png.png imagette277976411760445181/1760444825_2599369_1389409062_4fe25630cd8436bdc6d39fece3481751_rle_crop_3997612100_0.png.png imagette277976411760445181/1760444704_2592931_1389407701_345990d75ac5ebd51af0a46ffa693314_rle_crop_3997611860_0.png.png imagette277976411760445181/1760444964_2605437_1389410694_2d9b0419ba5f3d9fbd162a9a65efda0f_rle_crop_3997612749_0.png.png imagette277976411760445181/1760444825_2599369_1389408803_cc9359ec39d23841dd067d680e77424a_rle_crop_3997612152_0.png.png imagette277976411760445181/1760444485_2581759_1389407664_8a7a27749df3ac0f2dabb2676a8745fa_rle_crop_3997610609_0.png.png imagette277976421760445181/ imagette277976431760445181/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/a28376c23e237ae9b46a80000a4a20aa_44046082.png imagette277976411760445181 27797642 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27797642 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette277976421760445181 27797643 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27797643 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette277976431760445181 27797632 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27797632 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389411156: '1760444964_2605437_1389410694_2d9b0419ba5f3d9fbd162a9a65efda0f_rle_crop_3997612750_0.png', 1389411242: '1760445065_2610578_1389411053_99b7d9eb7231726d78ad4573923c2fbf_rle_crop_3997613139_0.png', 1389411241: '1760445065_2610578_1389411053_99b7d9eb7231726d78ad4573923c2fbf_rle_crop_3997613138_0.png', 1389411240: '1760445065_2610578_1389411054_04b5a08275c6e2ee8763d31825356bc8_rle_crop_3997613122_0.png', 1389411239: '1760445065_2610578_1389411054_04b5a08275c6e2ee8763d31825356bc8_rle_crop_3997613121_0.png', 1389411160: '1760444964_2605437_1389410259_9f86e25cb8dbd7ce98b7de46184e4593_rle_crop_3997612836_0.png', 1389411159: '1760444964_2605437_1389410260_62d264b19803488307049b9697c67893_rle_crop_3997612831_0.png', 1389411158: '1760444964_2605437_1389410261_6493258cce38e46f460a6504fc976915_rle_crop_3997612810_0.png', 1389411157: '1760444964_2605437_1389410261_6493258cce38e46f460a6504fc976915_rle_crop_3997612809_0.png', 1389408798: '1760444485_2581759_1389407665_0568b00605e9b71b6355f5e9a67cb9da_rle_crop_3997610592_0.png', 1389411130: '1760444944_2604967_1389410569_a563a1966d6f59ff072705563d662ebf_rle_crop_3997612504_0.png', 1389411045: '1760444825_2599369_1389408804_644c14e443abb5f5964fa5b6330a28e4_rle_crop_3997612138_0.png', 1389410580: '1760444704_2592931_1389407700_9e0d821bd6d87ce46ecf812006856fbc_rle_crop_3997611873_0.png', 1389409415: '1760444607_2587742_1389407695_16c609348fef60f17b1fbe57ac668bec_rle_crop_3997611754_0.png', 1389409410: '1760444585_2587302_1389407643_b640af5489cfb76827ac991713446fc6_rle_crop_3997611705_0.png', 1389409409: '1760444585_2587302_1389407644_59b3f2b7cfc136e5f5eb1dcde11f0929_rle_crop_3997611693_0.png', 1389408800: '1760444485_2581759_1389407664_8a7a27749df3ac0f2dabb2676a8745fa_rle_crop_3997610610_0.png', 1389408799: '1760444485_2581759_1389407665_0568b00605e9b71b6355f5e9a67cb9da_rle_crop_3997610593_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/e5534947277579df5332650327421408_1338083.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/0cdb7da77ff20037481a7137897bf709_79249978.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/7c0254a6316cd77164688bdcfe61ce5e_42623669.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/0cdb7da77ff20037481a7137897bf709_66415704.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/7c0254a6316cd77164688bdcfe61ce5e_5474599.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/e5534947277579df5332650327421408_67645868.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/cbc8c99ead4cc04992375639d3923e90_19344519.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/3bbbe36b1e347a94929479aab9ce076b_94486170.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/a1bed7b9ae794018cbac759577050b0a_68166932.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/af1bafa452a43748ea109190b4cccae6_75536461.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/05d12912e32bb8cb2ee69ca621630c83_89912295.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/82f6e02f90809b24a70e5864b8c8ab15_95316924.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/f97751096c74a3cbe52a2764e48d9f8f_23365620.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/907e7692c4fb81a3f7ffaed7e8f15a9d_75252576.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/7d67d48cb67ca37533c9b07f50f497cf_72661062.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/382ce7afe732e976f9200c192e73863e_95298110.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/89c183f619a581ba4eb9fb96e92b5dd0_32784259.png change filename to text .imagette277976321760445181/ imagette277976321760445181/1760444585_2587302_1389407643_b640af5489cfb76827ac991713446fc6_rle_crop_3997611705_0.png.png imagette277976321760445181/1760444607_2587742_1389407695_16c609348fef60f17b1fbe57ac668bec_rle_crop_3997611754_0.png.png imagette277976321760445181/1760444964_2605437_1389410259_9f86e25cb8dbd7ce98b7de46184e4593_rle_crop_3997612836_0.png.png imagette277976321760445181/1760444964_2605437_1389410261_6493258cce38e46f460a6504fc976915_rle_crop_3997612809_0.png.png imagette277976321760445181/1760444964_2605437_1389410260_62d264b19803488307049b9697c67893_rle_crop_3997612831_0.png.png imagette277976321760445181/1760444485_2581759_1389407665_0568b00605e9b71b6355f5e9a67cb9da_rle_crop_3997610592_0.png.png imagette277976321760445181/1760445065_2610578_1389411054_04b5a08275c6e2ee8763d31825356bc8_rle_crop_3997613121_0.png.png imagette277976321760445181/1760444704_2592931_1389407700_9e0d821bd6d87ce46ecf812006856fbc_rle_crop_3997611873_0.png.png imagette277976321760445181/1760444964_2605437_1389410261_6493258cce38e46f460a6504fc976915_rle_crop_3997612810_0.png.png imagette277976321760445181/1760444485_2581759_1389407664_8a7a27749df3ac0f2dabb2676a8745fa_rle_crop_3997610610_0.png.png imagette277976321760445181/1760444825_2599369_1389408804_644c14e443abb5f5964fa5b6330a28e4_rle_crop_3997612138_0.png.png imagette277976321760445181/1760444944_2604967_1389410569_a563a1966d6f59ff072705563d662ebf_rle_crop_3997612504_0.png.png imagette277976321760445181/1760445065_2610578_1389411053_99b7d9eb7231726d78ad4573923c2fbf_rle_crop_3997613138_0.png.png imagette277976321760445181/1760444964_2605437_1389410694_2d9b0419ba5f3d9fbd162a9a65efda0f_rle_crop_3997612750_0.png.png imagette277976321760445181/1760444485_2581759_1389407665_0568b00605e9b71b6355f5e9a67cb9da_rle_crop_3997610593_0.png.png imagette277976321760445181/1760444585_2587302_1389407644_59b3f2b7cfc136e5f5eb1dcde11f0929_rle_crop_3997611693_0.png.png imagette277976321760445181/1760445065_2610578_1389411053_99b7d9eb7231726d78ad4573923c2fbf_rle_crop_3997613139_0.png.png imagette277976321760445181/1760445065_2610578_1389411054_04b5a08275c6e2ee8763d31825356bc8_rle_crop_3997613122_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/de04fe1edfb92f5f3643d8086234d821_36019982.png imagette277976321760445181 27797635 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27797635 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389408801: '1760444485_2581759_1389407665_0568b00605e9b71b6355f5e9a67cb9da_rle_crop_3997610597_0.png', 1389409411: '1760444585_2587302_1389407642_8bfc7f6a3e68586622f1692f05e6ce4c_rle_crop_3997611716_0.png', 1389410698: '1760444724_2593374_1389409348_a3864cfa744c1684845a787ae72f3a18_rle_crop_3997611946_0.png', 1389410699: '1760444724_2593374_1389409348_a3864cfa744c1684845a787ae72f3a18_rle_crop_3997611942_0.png', 1389411048: '1760444825_2599369_1389408807_ba98090292240868978aa77fd0872a49_rle_crop_3997612118_0.png', 1389411049: '1760444825_2599369_1389408807_ba98090292240868978aa77fd0872a49_rle_crop_3997612114_0.png', 1389411050: '1760444825_2599369_1389408803_cc9359ec39d23841dd067d680e77424a_rle_crop_3997612155_0.png', 1389411133: '1760444944_2604967_1389410572_07e4c6eafde892d13fc0274fff8dc2e2_rle_crop_3997612488_0.png', 1389411134: '1760444944_2604967_1389410569_a563a1966d6f59ff072705563d662ebf_rle_crop_3997612515_0.png', 1389411135: '1760444944_2604967_1389410569_a563a1966d6f59ff072705563d662ebf_rle_crop_3997612513_0.png', 1389411163: '1760444964_2605437_1389410263_f8f203a1ab3995713caeae4e52a09deb_rle_crop_3997612799_0.png', 1389411243: '1760445065_2610578_1389411054_04b5a08275c6e2ee8763d31825356bc8_rle_crop_3997613125_0.png', 1389411244: '1760445065_2610578_1389411053_99b7d9eb7231726d78ad4573923c2fbf_rle_crop_3997613142_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/b786530a7f0664d6aaf08c36e7bff163_32719989.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/95d028bd2ecbf3390c4c07f531533499_36206636.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/1de6bdfd91b63facc7fd4e58f59259d3_63610093.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/f2ea83512afdac6170205308aa592d74_15765071.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/a8d6d9697b9b4b654563f21f0bd7f53f_84778629.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/dece5caaa0df114539f16e572e3a34cc_47612842.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/f5ebd7132e7385d2cc609df571ba3971_76801815.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/512b3cc0ed9f8b8b4f3526fbc8b6f3d6_21508350.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/4a15ab1588c4b00d517979c14ae01505_17471420.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/1d1ae99af116b37f97ec72545a00e8b4_60755040.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/e007a1b53a34874b3c44d21cc301e301_59984642.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/8d4dc46dfe57f9785cdc46560e751e9c_48576277.png change filename to text .imagette277976351760445183/ imagette277976351760445183/1760444485_2581759_1389407665_0568b00605e9b71b6355f5e9a67cb9da_rle_crop_3997610597_0.png.png imagette277976351760445183/1760445065_2610578_1389411054_04b5a08275c6e2ee8763d31825356bc8_rle_crop_3997613125_0.png.png imagette277976351760445183/1760444585_2587302_1389407642_8bfc7f6a3e68586622f1692f05e6ce4c_rle_crop_3997611716_0.png.png imagette277976351760445183/1760444724_2593374_1389409348_a3864cfa744c1684845a787ae72f3a18_rle_crop_3997611942_0.png.png imagette277976351760445183/1760444964_2605437_1389410263_f8f203a1ab3995713caeae4e52a09deb_rle_crop_3997612799_0.png.png imagette277976351760445183/1760444944_2604967_1389410569_a563a1966d6f59ff072705563d662ebf_rle_crop_3997612515_0.png.png imagette277976351760445183/1760444724_2593374_1389409348_a3864cfa744c1684845a787ae72f3a18_rle_crop_3997611946_0.png.png imagette277976351760445183/1760444944_2604967_1389410569_a563a1966d6f59ff072705563d662ebf_rle_crop_3997612513_0.png.png imagette277976351760445183/1760444944_2604967_1389410572_07e4c6eafde892d13fc0274fff8dc2e2_rle_crop_3997612488_0.png.png imagette277976351760445183/1760444825_2599369_1389408807_ba98090292240868978aa77fd0872a49_rle_crop_3997612114_0.png.png imagette277976351760445183/1760444825_2599369_1389408803_cc9359ec39d23841dd067d680e77424a_rle_crop_3997612155_0.png.png imagette277976351760445183/1760444825_2599369_1389408807_ba98090292240868978aa77fd0872a49_rle_crop_3997612118_0.png.png imagette277976351760445183/1760445065_2610578_1389411053_99b7d9eb7231726d78ad4573923c2fbf_rle_crop_3997613142_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/8d4dc46dfe57f9785cdc46560e751e9c_13166847.png imagette277976351760445183 27797638 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27797638 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1389408796: '1760444485_2581759_1389407665_0568b00605e9b71b6355f5e9a67cb9da_rle_crop_3997610594_0.png', 1389409407: '1760444585_2587302_1389407643_b640af5489cfb76827ac991713446fc6_rle_crop_3997611709_0.png', 1389409408: '1760444585_2587302_1389407643_b640af5489cfb76827ac991713446fc6_rle_crop_3997611708_0.png', 1389410577: '1760444704_2592931_1389407700_9e0d821bd6d87ce46ecf812006856fbc_rle_crop_3997611874_0.png', 1389410695: '1760444724_2593374_1389409348_a3864cfa744c1684845a787ae72f3a18_rle_crop_3997611941_0.png', 1389411035: '1760444825_2599369_1389408807_ba98090292240868978aa77fd0872a49_rle_crop_3997612116_0.png', 1389411037: '1760444825_2599369_1389408807_ba98090292240868978aa77fd0872a49_rle_crop_3997612120_0.png', 1389411038: '1760444825_2599369_1389408805_4511e4faf455e5ea4dadb581f58c1d8b_rle_crop_3997612131_0.png', 1389411149: '1760444964_2605437_1389410691_fdda41e584e25ab3b3c597fddea1f3d9_rle_crop_3997612768_0.png', 1389411150: '1760444964_2605437_1389410263_f8f203a1ab3995713caeae4e52a09deb_rle_crop_3997612802_0.png', 1389411151: '1760444964_2605437_1389410263_f8f203a1ab3995713caeae4e52a09deb_rle_crop_3997612800_0.png', 1389411152: '1760444964_2605437_1389410260_62d264b19803488307049b9697c67893_rle_crop_3997612830_0.png', 1389411153: '1760444964_2605437_1389410258_b0728d011e608bdc89a37542024d993f_rle_crop_3997612854_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/5ac21188aae153777d2486cd04798185_45547100.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/94b59cc3679a14709ffe1a0094c02e61_54182537.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/6debb52c5054cf47ab2d8c1c7085607d_52018409.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/6eb9bb2529e9e3f8710d82580f1bbe80_59326008.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/77e53eb24772422b0e1d03056a16b967_535840.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/5025ca28e7054a15a46baef95a11b520_21075435.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/8646f5eac781a7d70e1534a7096d30d9_17122335.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/19e9630e040312486491548b11b6feb9_3422045.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/8c094a25564668725b509a83e3f36857_94029969.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/6d03fcddd72d24ff41018a15a1560b64_84323383.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/ca4261fc1da6512c53fb206bb9c03790_22447860.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/7cfdd449ebcb6230e9657dcfbd03ffb5_20709332.png change filename to text .imagette277976381760445184/ imagette277976381760445184/1760444724_2593374_1389409348_a3864cfa744c1684845a787ae72f3a18_rle_crop_3997611941_0.png.png imagette277976381760445184/1760444825_2599369_1389408805_4511e4faf455e5ea4dadb581f58c1d8b_rle_crop_3997612131_0.png.png imagette277976381760445184/1760444825_2599369_1389408807_ba98090292240868978aa77fd0872a49_rle_crop_3997612120_0.png.png imagette277976381760445184/1760444825_2599369_1389408807_ba98090292240868978aa77fd0872a49_rle_crop_3997612116_0.png.png imagette277976381760445184/1760444704_2592931_1389407700_9e0d821bd6d87ce46ecf812006856fbc_rle_crop_3997611874_0.png.png imagette277976381760445184/1760444964_2605437_1389410258_b0728d011e608bdc89a37542024d993f_rle_crop_3997612854_0.png.png imagette277976381760445184/1760444485_2581759_1389407665_0568b00605e9b71b6355f5e9a67cb9da_rle_crop_3997610594_0.png.png imagette277976381760445184/1760444585_2587302_1389407643_b640af5489cfb76827ac991713446fc6_rle_crop_3997611709_0.png.png imagette277976381760445184/1760444964_2605437_1389410263_f8f203a1ab3995713caeae4e52a09deb_rle_crop_3997612800_0.png.png imagette277976381760445184/1760444585_2587302_1389407643_b640af5489cfb76827ac991713446fc6_rle_crop_3997611708_0.png.png imagette277976381760445184/1760444964_2605437_1389410263_f8f203a1ab3995713caeae4e52a09deb_rle_crop_3997612802_0.png.png imagette277976381760445184/1760444964_2605437_1389410260_62d264b19803488307049b9697c67893_rle_crop_3997612830_0.png.png imagette277976381760445184/1760444964_2605437_1389410691_fdda41e584e25ab3b3c597fddea1f3d9_rle_crop_3997612768_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/8c094a25564668725b509a83e3f36857_69578261.png imagette277976381760445184 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=27797621 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/27797668,27797669,27797670,27797671,27797672,27797673,27797674,27797675,27797676,27797677,27797678,27797679?tags=Carton_gris,papier,kraft,Carton_brun,cartonnette,environnement,Teint_Dans_La_Masse,plastique,metal,autre_refus,mal_croppe,flou your option no_mail is active, we will not send the real mail to your client args[1389411232] : ('0.06384741601101801',) no score found for photo 1389411232 We are sending mail with results at report@fotonower.com args[1389411178] : ('0.06384741601101801',) no score found for photo 1389411178 We are sending mail with results at report@fotonower.com args[1389411175] : ('0.06384741601101801',) no score found for photo 1389411175 We are sending mail with results at report@fotonower.com args[1389411173] : ('0.06384741601101801',) no score found for photo 1389411173 We are sending mail with results at report@fotonower.com args[1389411172] : ('0.06384741601101801',) no score found for photo 1389411172 We are sending mail with results at report@fotonower.com args[1389411169] : ('0.06384741601101801',) no score found for photo 1389411169 We are sending mail with results at report@fotonower.com refus_total : 0.06384741601101801 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27797621 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_P27797621_14-10-2025_14_32_59.pdf results_Auto_P27797621_14-10-2025_14_32_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27797621_14-10-2025_14_32_59.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','27797621','results_Auto_P27797621_14-10-2025_14_32_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27797621_14-10-2025_14_32_59.pdf','pdf','','0.23','0.06384741601101801') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27797621]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1389411232, 1389411178, 1389411175, 1389411173, 1389411172, 1389411169] map_info['map_portfolio_photo'] : {27797621: [1389411232, 1389411178, 1389411175, 1389411173, 1389411172, 1389411169, 1389411147, 1389411145, 1389411142, 1389411139, 1389411136, 1389411124, 1389411122, 1389411120, 1389411116, 1389411113, 1389411110, 1389411107, 1389411102, 1389411100, 1389411095, 1389411091, 1389411082, 1389411081, 1389411079, 1389411078, 1389411059, 1389411057, 1389411054, 1389411053, 1389411044, 1389411043, 1389411031, 1389411029, 1389411027, 1389411024, 1389411020, 1389411018, 1389411004, 1389410713, 1389410710, 1389410707, 1389410704, 1389410702, 1389410694, 1389410691, 1389410686, 1389410578, 1389410572, 1389410569, 1389410265, 1389410263, 1389410261, 1389410260, 1389410259, 1389410258, 1389409364, 1389409348, 1389409308, 1389409069, 1389409062, 1389408807, 1389408805, 1389408804, 1389408803, 1389408175, 1389407702, 1389407701, 1389407700, 1389407695, 1389407693, 1389407690, 1389407689, 1389407687, 1389407686, 1389407668, 1389407667, 1389407665, 1389407664, 1389407645, 1389407644, 1389407643, 1389407642, 1389407633, 1389407628, 1389407626, 1389407623, 1389407621, 1389407620, 1389407615, 1389407614, 1389407611]} final : False mtd_id 4302 list_pids : [1389411232, 1389411178, 1389411175, 1389411173, 1389411172, 1389411169] 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, '3940363') ('4302', '27797621', '1389411232', None, None, None, None, None, '3940363') ('4302', None, None, None, None, None, None, None, '3940363') ('4302', '27797621', '1389411178', None, None, None, None, None, '3940363') ('4302', None, None, None, None, None, None, None, '3940363') ('4302', '27797621', '1389411175', None, None, None, None, None, '3940363') ('4302', None, None, None, None, None, None, None, '3940363') ('4302', '27797621', '1389411173', None, None, None, None, None, '3940363') ('4302', None, None, None, None, None, None, None, '3940363') ('4302', '27797621', '1389411172', None, None, None, None, None, '3940363') ('4302', None, None, None, None, None, None, None, '3940363') ('4302', '27797621', '1389411169', None, None, None, None, None, '3940363') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '27797621', '1389411232', None, None, None, None, None, '3940363'), ('4302', '27797621', '1389411178', None, None, None, None, None, '3940363'), ('4302', '27797621', '1389411175', None, None, None, None, None, '3940363'), ('4302', '27797621', '1389411173', None, None, None, None, None, '3940363'), ('4302', '27797621', '1389411172', None, None, None, None, None, '3940363'), ('4302', '27797621', '1389411169', None, None, None, None, None, '3940363')] time used for this insertion : 0.0364534854888916 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.290751695632935 time spend to save output : 0.036643028259277344 total time spend for step 4 : 7.327394723892212 step5:split_time_score Tue Oct 14 14:33:06 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['27797621'] 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 : [('27797621',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (27797621) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1389411173: {'path': 'temp/1760445179_160812_1389411173_07d273625a637582a3596ad9295cd6ed.jpg', 'extension': 'jpg'}, 1389411175: {'path': 'temp/1760445179_160812_1389411175_4ea15f3daa1214a6d0ef0bd90d119026.jpg', 'extension': 'jpg'}, 1389411178: {'path': 'temp/1760445179_160812_1389411178_26ae65a34145883682937c270ca24a14.jpg', 'extension': 'jpg'}, 1389411232: {'path': 'temp/1760445179_160812_1389411232_d715130e9e2e4285c3dc4f8a53bc85c8.jpg', 'extension': 'jpg'}, 1389411169: {'path': 'temp/1760445179_160812_1389411169_a6bf3cedf39edc024342282a34b81136.jpg', 'extension': 'jpg'}, 1389411172: {'path': 'temp/1760445179_160812_1389411172_06a80b5993dc5cc69349ec2294343db4.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 = 27797621; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 27797621 group by h (('14', 92),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=27797621 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 (27797621) 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 (27797621) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 14102025 27797621 Nombre de photos uploadées : 92 / 23040 (0%) 14102025 27797621 Nombre de photos taguées (types de déchets): 0 / 92 (0%) 14102025 27797621 Nombre de photos taguées (volume) : 0 / 92 (0%) [{'photo_id': 1389407615, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/495ccb43bb0c796563bef6418a4d8179.jpg', 'username': None, 'uploaded_at': 1760444178, 'text': 'image_14102025_14_15_04_10141.jpg'}, {'photo_id': 1389407614, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/a61c11013e7a66d4b3f2814de83bbe13.jpg', 'username': None, 'uploaded_at': 1760444178, 'text': 'image_14102025_14_15_14_10134.jpg'}, {'photo_id': 1389407611, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/173a77638eba17796cb446d9fda25274.jpg', 'username': None, 'uploaded_at': 1760444178, 'text': 'image_14102025_14_15_24_10135.jpg'}, {'photo_id': 1389407633, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/10/14/b8c382c40b6947ed43a77a08771d8d3d.jpg', 'username': None, 'uploaded_at': 1760444228, 'text': 'image_14102025_14_15_34_10133.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 7.152557373046875e-06 ???????????????????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004144191741943359 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 27797621, '2025-10-14' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2442841,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.6900365352630615 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= 2442841 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27777996, 'dashboard_result_id': 16373350, '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_P27777996_14-10-2025_05_56_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27777997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27777998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27777999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778001, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778008, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27778872, 'dashboard_result_id': 16373351, '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_P27778872_14-10-2025_05_56_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27778874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778875, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27778880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27778882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778884, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27779391, 'dashboard_result_id': 16373352, '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_P27779391_14-10-2025_05_56_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779403, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27779550, 'dashboard_result_id': 16373353, '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_P27779550_14-10-2025_05_57_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779562, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27779656, 'dashboard_result_id': 16373354, '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_P27779656_14-10-2025_05_58_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779671, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27780223, 'dashboard_result_id': 16373355, '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_P27780223_14-10-2025_05_59_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780235, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27780493, 'dashboard_result_id': 16373356, '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_P27780493_14-10-2025_05_59_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780508, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27780862, 'dashboard_result_id': 16373357, '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_P27780862_14-10-2025_05_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27780867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780868, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780871, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780878, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27781293, 'dashboard_result_id': 16373358, '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_P27781293_14-10-2025_07_31_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27781298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781309, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27781652, 'dashboard_result_id': 16373359, '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_P27781652_14-10-2025_06_19_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781661, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27781669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781671, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27782198, 'dashboard_result_id': 16373360, '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_P27782198_14-10-2025_06_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27782234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27782235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27782236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27782237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27782238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27782239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27782240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27782241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27782242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27782243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27782244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27782245, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27782598, 'dashboard_result_id': 16373361, '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_P27782598_14-10-2025_06_49_41.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27782623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27782624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27782625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27782626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27782627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27782628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27782629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27782630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27782631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27782632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27782633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27782634, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27783071, 'dashboard_result_id': 16373362, '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_P27783071_14-10-2025_07_33_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27783072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27783073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27783074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27783075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27783076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27783077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27783078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27783079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27783080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27783081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27783082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27783083, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27783528, 'dashboard_result_id': 16373363, '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_P27783528_14-10-2025_07_19_25.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27783534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27783537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27783538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27783539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27783540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27783541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27783542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27783543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27783544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27783545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27783546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27783547, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27784517, 'dashboard_result_id': 16373364, '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_P27784517_14-10-2025_07_39_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27784572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27784573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27784574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27784575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27784576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27784577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27784578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27784579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27784580, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27784581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27784582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27784583, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27785515, 'dashboard_result_id': 16373365, '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_P27785515_14-10-2025_07_53_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27785543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27785544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27785545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27785546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27785547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27785548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27785549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27785550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27785551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27785552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27785553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27785554, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27786047, 'dashboard_result_id': 16373366, '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_P27786047_14-10-2025_08_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27786057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27786058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27786059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27786060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27786061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27786062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27786063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27786064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27786065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27786066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27786067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27786068, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27786429, 'dashboard_result_id': 16373367, '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_P27786429_14-10-2025_11_01_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27786477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27786478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27786479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27786480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27786481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27786482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27786483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27786484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27786485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27786486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27786487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27786488, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27790040, 'dashboard_result_id': 16373368, '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_P27790040_14-10-2025_10_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27790042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27790043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27790044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27790045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27790046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27790047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27790048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27790049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27790050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27790052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27790053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27790054, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27790322, 'dashboard_result_id': 16373369, '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_P27790322_14-10-2025_10_47_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27790350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27790363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27790364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27790365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27790366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27790367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27790368, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27790369, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27790370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27790372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27790373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27790374, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27791327, 'dashboard_result_id': 16373370, '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_P27791327_14-10-2025_11_03_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27791332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27791333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27791334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27791335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27791336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27791337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27791338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27791339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27791340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27791341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27791342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27791343, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27791435, 'dashboard_result_id': 16373371, '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_P27791435_14-10-2025_11_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27791474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27791475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27791476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27791477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27791478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27791479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27791480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27791481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27791482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27791484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27791485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27791486, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27792192, 'dashboard_result_id': 16373372, '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_P27792192_14-10-2025_11_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27792223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27792224, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27792225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27792226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27792227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27792228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27792230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27792242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27792243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27792244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27792245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27792246, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27792805, 'dashboard_result_id': 16373373, '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_P27792805_14-10-2025_11_47_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27792852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27792853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27792854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27792855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27792856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27792857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27792858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27792859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27792860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27792861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27792862, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27792863, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27793427, 'dashboard_result_id': 16373374, '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_P27793427_14-10-2025_12_03_27.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27793437, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27793438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27793439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27793440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27793441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27793442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27793443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27793444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27793445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27793446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27793447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27793448, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27793854, 'dashboard_result_id': 16373375, '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_P27793854_14-10-2025_13_59_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27793888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27793889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27793890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27793891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27793892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27793893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27793894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27793895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27793896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27793897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27793898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27793899, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27796261, 'dashboard_result_id': 16373376, '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_P27796261_14-10-2025_13_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27796262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27796263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27796264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27796265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27796266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27796267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27796268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27796269, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27796270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27796271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27796272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27796273, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27796544, 'dashboard_result_id': 16373377, '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_P27796544_14-10-2025_14_03_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27796573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27796574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27796575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27796576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27796577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27796578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27796579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27796580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27796581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27796582, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27796583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27796584, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27797034, 'dashboard_result_id': 16373378, '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_P27797034_14-10-2025_14_18_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27797067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27797068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27797069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27797070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27797071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27797072, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27797073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27797074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27797075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27797076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27797077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27797078, 'pht': 3726}}"}, {'dashboat_entry_day': 2442841, 'dashboard_run_id': 2454719, 'mtr_portfolio_id': 27797621, 'dashboard_result_id': 16373379, '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_P27797621_14-10-2025_14_31_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27797632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27797633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27797634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27797635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27797636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27797637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27797638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27797639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27797640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27797641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27797642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27797643, '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 = 27777996 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': 3936795, 'mtr_portfolio_id': 27777996, 'created_at': datetime.datetime(2025, 10, 14, 5, 56, 4), 'result': '0.08473370900574158', 'result_long': None, 'result_double': None}] Qualite : 0.08473370900574158 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27777996 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27777996_14-10-2025_05_56_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27777996 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_P27777996_14-10-2025_05_56_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27777997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27777998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27777999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778001, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778008, 'pht': 3726}}" where mtr_portfolio_id = 27777996 and dashboard_run_id = 2454719 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`=27777996 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373350, 0.08473370900574158, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27777996_14-10-2025_05_56_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27777997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27777998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27777999, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778001, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778002, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778005, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778008, '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 = 27778872 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': 3936796, 'mtr_portfolio_id': 27778872, 'created_at': datetime.datetime(2025, 10, 14, 5, 56, 4), 'result': '0.05252490161835598', 'result_long': None, 'result_double': None}] Qualite : 0.05252490161835598 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27778872 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27778872_14-10-2025_05_56_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27778872 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_P27778872_14-10-2025_05_56_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27778874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778875, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27778880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27778882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778884, 'pht': 3726}}" where mtr_portfolio_id = 27778872 and dashboard_run_id = 2454719 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`=27778872 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373351, 0.05252490161835598, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27778872_14-10-2025_05_56_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27778873, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27778874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27778875, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27778876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27778877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27778878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27778879, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27778880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27778881, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27778882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27778883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27778884, '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 = 27779391 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': 3936797, 'mtr_portfolio_id': 27779391, 'created_at': datetime.datetime(2025, 10, 14, 5, 56, 35), 'result': '0.12409417799557848', 'result_long': None, 'result_double': None}] Qualite : 0.12409417799557848 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27779391 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779391_14-10-2025_05_56_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27779391 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_P27779391_14-10-2025_05_56_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779403, 'pht': 3726}}" where mtr_portfolio_id = 27779391 and dashboard_run_id = 2454719 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`=27779391 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373352, 0.12409417799557848, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779391_14-10-2025_05_56_36.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779394, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779395, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779402, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779403, '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 = 27779550 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': 3936798, 'mtr_portfolio_id': 27779550, 'created_at': datetime.datetime(2025, 10, 14, 5, 57, 33), 'result': '0.03184540944410446', 'result_long': None, 'result_double': None}] Qualite : 0.03184540944410446 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27779550 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779550_14-10-2025_05_57_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27779550 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_P27779550_14-10-2025_05_57_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779562, 'pht': 3726}}" where mtr_portfolio_id = 27779550 and dashboard_run_id = 2454719 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`=27779550 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373353, 0.03184540944410446, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779550_14-10-2025_05_57_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779551, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779554, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779558, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779559, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779561, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779562, '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 = 27779656 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': 3936799, 'mtr_portfolio_id': 27779656, 'created_at': datetime.datetime(2025, 10, 14, 5, 58, 2), 'result': '0.05052474997406134', 'result_long': None, 'result_double': None}] Qualite : 0.05052474997406134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27779656 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779656_14-10-2025_05_58_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27779656 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_P27779656_14-10-2025_05_58_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779671, 'pht': 3726}}" where mtr_portfolio_id = 27779656 and dashboard_run_id = 2454719 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`=27779656 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373354, 0.05052474997406134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27779656_14-10-2025_05_58_03.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27779660, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27779661, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27779662, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27779663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27779664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27779665, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27779666, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27779667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27779668, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27779669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27779670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27779671, '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 = 27780223 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': 3936800, 'mtr_portfolio_id': 27780223, 'created_at': datetime.datetime(2025, 10, 14, 5, 59, 4), 'result': '0.040319035993793335', 'result_long': None, 'result_double': None}] Qualite : 0.040319035993793335 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27780223 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780223_14-10-2025_05_59_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27780223 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_P27780223_14-10-2025_05_59_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780235, 'pht': 3726}}" where mtr_portfolio_id = 27780223 and dashboard_run_id = 2454719 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`=27780223 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373355, 0.040319035993793335, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780223_14-10-2025_05_59_05.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780228, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780231, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780232, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780233, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780234, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780235, '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 = 27780493 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': 3936801, 'mtr_portfolio_id': 27780493, 'created_at': datetime.datetime(2025, 10, 14, 5, 59, 29), 'result': '0.04214279264128584', 'result_long': None, 'result_double': None}] Qualite : 0.04214279264128584 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27780493 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780493_14-10-2025_05_59_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27780493 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_P27780493_14-10-2025_05_59_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780508, 'pht': 3726}}" where mtr_portfolio_id = 27780493 and dashboard_run_id = 2454719 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`=27780493 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373356, 0.04214279264128584, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780493_14-10-2025_05_59_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780497, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27780498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780500, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780501, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780506, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780507, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780508, '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 = 27780862 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': 3936750, 'mtr_portfolio_id': 27780862, 'created_at': datetime.datetime(2025, 10, 14, 5, 49), 'result': '0.057302103776373695', 'result_long': None, 'result_double': None}] Qualite : 0.057302103776373695 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27780862 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780862_14-10-2025_05_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27780862 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_P27780862_14-10-2025_05_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27780867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780868, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780871, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780878, 'pht': 3726}}" where mtr_portfolio_id = 27780862 and dashboard_run_id = 2454719 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`=27780862 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373357, 0.057302103776373695, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27780862_14-10-2025_05_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27780867, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27780868, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27780869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27780870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27780871, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27780872, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27780873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27780874, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27780875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27780876, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27780877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27780878, '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 = 27781293 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': 3936877, 'mtr_portfolio_id': 27781293, 'created_at': datetime.datetime(2025, 10, 14, 7, 31, 34), 'result': '0.053436839507607185', 'result_long': None, 'result_double': None}] Qualite : 0.053436839507607185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27781293 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27781293_14-10-2025_07_31_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27781293 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_P27781293_14-10-2025_07_31_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27781298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781309, 'pht': 3726}}" where mtr_portfolio_id = 27781293 and dashboard_run_id = 2454719 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`=27781293 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373358, 0.053436839507607185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27781293_14-10-2025_07_31_35.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 27781298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781300, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781303, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781304, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781307, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781308, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781309, '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 = 27781652 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': 3936958, 'mtr_portfolio_id': 27781652, 'created_at': datetime.datetime(2025, 10, 14, 6, 19, 4), 'result': '0.05147357773397054', 'result_long': None, 'result_double': None}] Qualite : 0.05147357773397054 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27781652 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27781652_14-10-2025_06_19_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27781652 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_P27781652_14-10-2025_06_19_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781661, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27781669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781671, 'pht': 3726}}" where mtr_portfolio_id = 27781652 and dashboard_run_id = 2454719 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`=27781652 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373359, 0.05147357773397054, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27781652_14-10-2025_06_19_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27781660, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27781661, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27781662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27781663, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27781664, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27781665, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27781666, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27781667, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27781668, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27781669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27781670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27781671, '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 = 27782198 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': 3937066, 'mtr_portfolio_id': 27782198, 'created_at': datetime.datetime(2025, 10, 14, 6, 33, 1), 'result': '0.0493053223759745', 'result_long': None, 'result_double': None}] Qualite : 0.0493053223759745 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27782198 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27782198_14-10-2025_06_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27782198 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_P27782198_14-10-2025_06_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27782234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27782235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27782236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27782237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27782238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27782239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27782240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27782241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27782242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27782243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27782244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27782245, 'pht': 3726}}" where mtr_portfolio_id = 27782198 and dashboard_run_id = 2454719 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`=27782198 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373360, 0.0493053223759745, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27782198_14-10-2025_06_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27782234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27782235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27782236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27782237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27782238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27782239, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27782240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27782241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27782242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27782243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27782244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27782245, '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 = 27782598 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': 3937171, 'mtr_portfolio_id': 27782598, 'created_at': datetime.datetime(2025, 10, 14, 6, 49, 40), 'result': '0.06079474485418993', 'result_long': None, 'result_double': None}] Qualite : 0.06079474485418993 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27782598 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27782598_14-10-2025_06_49_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27782598 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_P27782598_14-10-2025_06_49_41.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27782623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27782624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27782625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27782626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27782627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27782628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27782629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27782630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27782631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27782632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27782633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27782634, 'pht': 3726}}" where mtr_portfolio_id = 27782598 and dashboard_run_id = 2454719 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`=27782598 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373361, 0.06079474485418993, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27782598_14-10-2025_06_49_41.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27782623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27782624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27782625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27782626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27782627, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27782628, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27782629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27782630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27782631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27782632, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27782633, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27782634, '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 = 27783071 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': 3937254, 'mtr_portfolio_id': 27783071, 'created_at': datetime.datetime(2025, 10, 14, 7, 33, 35), 'result': '0.048274391748035834', 'result_long': None, 'result_double': None}] Qualite : 0.048274391748035834 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27783071 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27783071_14-10-2025_07_33_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27783071 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_P27783071_14-10-2025_07_33_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27783072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27783073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27783074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27783075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27783076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27783077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27783078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27783079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27783080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27783081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27783082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27783083, 'pht': 3726}}" where mtr_portfolio_id = 27783071 and dashboard_run_id = 2454719 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`=27783071 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373362, 0.048274391748035834, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27783071_14-10-2025_07_33_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27783072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27783073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27783074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27783075, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27783076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27783077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27783078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27783079, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27783080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27783081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27783082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27783083, '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 = 27783528 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': 3937337, 'mtr_portfolio_id': 27783528, 'created_at': datetime.datetime(2025, 10, 14, 7, 19, 25), 'result': '0.05530928467378432', 'result_long': None, 'result_double': None}] Qualite : 0.05530928467378432 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27783528 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27783528_14-10-2025_07_19_25.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27783528 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_P27783528_14-10-2025_07_19_25.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27783534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27783537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27783538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27783539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27783540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27783541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27783542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27783543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27783544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27783545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27783546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27783547, 'pht': 3726}}" where mtr_portfolio_id = 27783528 and dashboard_run_id = 2454719 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`=27783528 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373363, 0.05530928467378432, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27783528_14-10-2025_07_19_25.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27783534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27783537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27783538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27783539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27783540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27783541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27783542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27783543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27783544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27783545, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27783546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27783547, '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 = 27784517 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': 3937518, 'mtr_portfolio_id': 27784517, 'created_at': datetime.datetime(2025, 10, 14, 7, 39, 5), 'result': '0.04888910278439528', 'result_long': None, 'result_double': None}] Qualite : 0.04888910278439528 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27784517 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27784517_14-10-2025_07_39_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27784517 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_P27784517_14-10-2025_07_39_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27784572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27784573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27784574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27784575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27784576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27784577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27784578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27784579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27784580, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27784581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27784582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27784583, 'pht': 3726}}" where mtr_portfolio_id = 27784517 and dashboard_run_id = 2454719 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`=27784517 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373364, 0.04888910278439528, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27784517_14-10-2025_07_39_05.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27784572, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27784573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27784574, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27784575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27784576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27784577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27784578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27784579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27784580, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27784581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27784582, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27784583, '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 = 27785515 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': 3937668, 'mtr_portfolio_id': 27785515, 'created_at': datetime.datetime(2025, 10, 14, 7, 53, 5), 'result': '0.060807710097367865', 'result_long': None, 'result_double': None}] Qualite : 0.060807710097367865 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27785515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27785515_14-10-2025_07_53_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27785515 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_P27785515_14-10-2025_07_53_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27785543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27785544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27785545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27785546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27785547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27785548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27785549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27785550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27785551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27785552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27785553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27785554, 'pht': 3726}}" where mtr_portfolio_id = 27785515 and dashboard_run_id = 2454719 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`=27785515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373365, 0.060807710097367865, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27785515_14-10-2025_07_53_05.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 27785543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27785544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27785545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27785546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27785547, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27785548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27785549, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27785550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27785551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27785552, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27785553, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27785554, '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 = 27786047 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': 3937747, 'mtr_portfolio_id': 27786047, 'created_at': datetime.datetime(2025, 10, 14, 8, 3), 'result': '0.02845605389933981', 'result_long': None, 'result_double': None}] Qualite : 0.02845605389933981 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27786047 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27786047_14-10-2025_08_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27786047 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_P27786047_14-10-2025_08_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27786057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27786058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27786059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27786060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27786061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27786062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27786063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27786064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27786065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27786066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27786067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27786068, 'pht': 3726}}" where mtr_portfolio_id = 27786047 and dashboard_run_id = 2454719 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`=27786047 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373366, 0.02845605389933981, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27786047_14-10-2025_08_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27786057, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27786058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27786059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27786060, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27786061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27786062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27786063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27786064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27786065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27786066, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27786067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27786068, '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 = 27786429 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': 3937805, 'mtr_portfolio_id': 27786429, 'created_at': datetime.datetime(2025, 10, 14, 11, 1, 6), 'result': '0.06314637600543734', 'result_long': None, 'result_double': None}] Qualite : 0.06314637600543734 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27786429 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27786429_14-10-2025_11_01_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27786429 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_P27786429_14-10-2025_11_01_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27786477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27786478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27786479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27786480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27786481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27786482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27786483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27786484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27786485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27786486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27786487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27786488, 'pht': 3726}}" where mtr_portfolio_id = 27786429 and dashboard_run_id = 2454719 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`=27786429 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373367, 0.06314637600543734, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27786429_14-10-2025_11_01_06.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27786477, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27786478, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27786479, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27786480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27786481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27786482, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27786483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27786484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27786485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27786486, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27786487, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27786488, '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 = 27790040 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': 3938286, 'mtr_portfolio_id': 27790040, 'created_at': datetime.datetime(2025, 10, 14, 10, 32, 59), 'result': '0.05811433970642424', 'result_long': None, 'result_double': None}] Qualite : 0.05811433970642424 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27790040 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27790040_14-10-2025_10_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27790040 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_P27790040_14-10-2025_10_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27790042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27790043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27790044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27790045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27790046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27790047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27790048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27790049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27790050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27790052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27790053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27790054, 'pht': 3726}}" where mtr_portfolio_id = 27790040 and dashboard_run_id = 2454719 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`=27790040 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373368, 0.05811433970642424, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27790040_14-10-2025_10_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27790042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27790043, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27790044, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27790045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27790046, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27790047, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27790048, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27790049, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27790050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27790052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27790053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27790054, '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 = 27790322 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': 3938319, 'mtr_portfolio_id': 27790322, 'created_at': datetime.datetime(2025, 10, 14, 10, 47, 2), 'result': '0.06000424361585336', 'result_long': None, 'result_double': None}] Qualite : 0.06000424361585336 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27790322 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27790322_14-10-2025_10_47_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27790322 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_P27790322_14-10-2025_10_47_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27790350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27790363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27790364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27790365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27790366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27790367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27790368, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27790369, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27790370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27790372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27790373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27790374, 'pht': 3726}}" where mtr_portfolio_id = 27790322 and dashboard_run_id = 2454719 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`=27790322 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373369, 0.06000424361585336, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27790322_14-10-2025_10_47_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27790350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27790363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27790364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27790365, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27790366, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27790367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27790368, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27790369, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27790370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27790372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27790373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27790374, '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 = 27791327 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': 3939473, 'mtr_portfolio_id': 27791327, 'created_at': datetime.datetime(2025, 10, 14, 11, 3, 2), 'result': '0.0372580187497969', 'result_long': None, 'result_double': None}] Qualite : 0.0372580187497969 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27791327 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27791327_14-10-2025_11_03_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27791327 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_P27791327_14-10-2025_11_03_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27791332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27791333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27791334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27791335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27791336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27791337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27791338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27791339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27791340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27791341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27791342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27791343, 'pht': 3726}}" where mtr_portfolio_id = 27791327 and dashboard_run_id = 2454719 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`=27791327 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373370, 0.0372580187497969, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27791327_14-10-2025_11_03_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27791332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27791333, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27791334, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27791335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27791336, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27791337, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27791338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27791339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27791340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27791341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27791342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27791343, '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 = 27791435 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': 3939481, 'mtr_portfolio_id': 27791435, 'created_at': datetime.datetime(2025, 10, 14, 11, 18, 59), 'result': '0.045839638250844146', 'result_long': None, 'result_double': None}] Qualite : 0.045839638250844146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27791435 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27791435_14-10-2025_11_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27791435 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_P27791435_14-10-2025_11_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27791474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27791475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27791476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27791477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27791478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27791479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27791480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27791481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27791482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27791484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27791485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27791486, 'pht': 3726}}" where mtr_portfolio_id = 27791435 and dashboard_run_id = 2454719 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`=27791435 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373371, 0.045839638250844146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27791435_14-10-2025_11_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 27791474, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27791475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27791476, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27791477, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27791478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27791479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27791480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27791481, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27791482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27791484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27791485, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27791486, '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 = 27792192 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': 3939560, 'mtr_portfolio_id': 27792192, 'created_at': datetime.datetime(2025, 10, 14, 11, 32, 58), 'result': '0.032723373849768526', 'result_long': None, 'result_double': None}] Qualite : 0.032723373849768526 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27792192 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27792192_14-10-2025_11_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27792192 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_P27792192_14-10-2025_11_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27792223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27792224, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27792225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27792226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27792227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27792228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27792230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27792242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27792243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27792244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27792245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27792246, 'pht': 3726}}" where mtr_portfolio_id = 27792192 and dashboard_run_id = 2454719 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`=27792192 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373372, 0.032723373849768526, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27792192_14-10-2025_11_32_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27792223, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27792224, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27792225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27792226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27792227, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27792228, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27792230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27792242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27792243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27792244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27792245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27792246, '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 = 27792805 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': 3939651, 'mtr_portfolio_id': 27792805, 'created_at': datetime.datetime(2025, 10, 14, 11, 47, 2), 'result': '0.09023723377520439', 'result_long': None, 'result_double': None}] Qualite : 0.09023723377520439 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27792805 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27792805_14-10-2025_11_47_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27792805 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_P27792805_14-10-2025_11_47_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27792852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27792853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27792854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27792855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27792856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27792857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27792858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27792859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27792860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27792861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27792862, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27792863, 'pht': 3726}}" where mtr_portfolio_id = 27792805 and dashboard_run_id = 2454719 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`=27792805 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373373, 0.09023723377520439, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27792805_14-10-2025_11_47_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27792852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27792853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27792854, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27792855, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27792856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27792857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27792858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27792859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27792860, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27792861, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27792862, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27792863, '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 = 27793427 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': 3939757, 'mtr_portfolio_id': 27793427, 'created_at': datetime.datetime(2025, 10, 14, 12, 3, 26), 'result': '0.02928398329343354', 'result_long': None, 'result_double': None}] Qualite : 0.02928398329343354 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27793427 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27793427_14-10-2025_12_03_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27793427 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_P27793427_14-10-2025_12_03_27.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27793437, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27793438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27793439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27793440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27793441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27793442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27793443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27793444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27793445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27793446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27793447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27793448, 'pht': 3726}}" where mtr_portfolio_id = 27793427 and dashboard_run_id = 2454719 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`=27793427 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373374, 0.02928398329343354, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27793427_14-10-2025_12_03_27.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27793437, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27793438, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27793439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27793440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27793441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27793442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27793443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27793444, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27793445, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27793446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27793447, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27793448, '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 = 27793854 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': 3939875, 'mtr_portfolio_id': 27793854, 'created_at': datetime.datetime(2025, 10, 14, 13, 59, 31), 'result': '0.06671815326071187', 'result_long': None, 'result_double': None}] Qualite : 0.06671815326071187 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27793854 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27793854_14-10-2025_13_59_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27793854 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_P27793854_14-10-2025_13_59_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27793888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27793889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27793890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27793891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27793892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27793893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27793894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27793895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27793896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27793897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27793898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27793899, 'pht': 3726}}" where mtr_portfolio_id = 27793854 and dashboard_run_id = 2454719 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`=27793854 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373375, 0.06671815326071187, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27793854_14-10-2025_13_59_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27793888, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27793889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27793890, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27793891, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27793892, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27793893, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27793894, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27793895, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27793896, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27793897, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27793898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27793899, '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 = 27796261 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': 3940197, 'mtr_portfolio_id': 27796261, 'created_at': datetime.datetime(2025, 10, 14, 13, 49, 2), 'result': '0.06068483945329608', 'result_long': None, 'result_double': None}] Qualite : 0.06068483945329608 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27796261 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27796261_14-10-2025_13_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27796261 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_P27796261_14-10-2025_13_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27796262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27796263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27796264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27796265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27796266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27796267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27796268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27796269, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27796270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27796271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27796272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27796273, 'pht': 3726}}" where mtr_portfolio_id = 27796261 and dashboard_run_id = 2454721 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`=27796261 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373376, 0.06068483945329608, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27796261_14-10-2025_13_49_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27796262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27796263, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27796264, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27796265, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27796266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27796267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27796268, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27796269, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27796270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27796271, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27796272, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27796273, '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 = 27796544 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': 3940220, 'mtr_portfolio_id': 27796544, 'created_at': datetime.datetime(2025, 10, 14, 14, 3, 3), 'result': '0.03774535744291173', 'result_long': None, 'result_double': None}] Qualite : 0.03774535744291173 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27796544 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27796544_14-10-2025_14_03_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27796544 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_P27796544_14-10-2025_14_03_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27796573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27796574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27796575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27796576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27796577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27796578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27796579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27796580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27796581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27796582, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27796583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27796584, 'pht': 3726}}" where mtr_portfolio_id = 27796544 and dashboard_run_id = 2454721 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`=27796544 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373377, 0.03774535744291173, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27796544_14-10-2025_14_03_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27796573, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27796574, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27796575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27796576, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27796577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27796578, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27796579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27796580, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27796581, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27796582, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27796583, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27796584, '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 = 27797034 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': 3940284, 'mtr_portfolio_id': 27797034, 'created_at': datetime.datetime(2025, 10, 14, 14, 18, 58), 'result': '0.05916738851558205', 'result_long': None, 'result_double': None}] Qualite : 0.05916738851558205 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27797034 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27797034_14-10-2025_14_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27797034 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_P27797034_14-10-2025_14_18_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27797067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27797068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27797069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27797070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27797071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27797072, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27797073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27797074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27797075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27797076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27797077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27797078, 'pht': 3726}}" where mtr_portfolio_id = 27797034 and dashboard_run_id = 2454721 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`=27797034 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373378, 0.05916738851558205, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27797034_14-10-2025_14_18_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27797067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27797068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27797069, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27797070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27797071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27797072, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27797073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27797074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27797075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27797076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27797077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27797078, '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 = 27797621 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': 3940363, 'mtr_portfolio_id': 27797621, 'created_at': datetime.datetime(2025, 10, 14, 14, 32, 58), 'result': '0.06384741601101801', 'result_long': None, 'result_double': None}] Qualite : 0.06384741601101801 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 27797621 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27797621_14-10-2025_14_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 27797621 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_P27797621_14-10-2025_14_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27797632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27797633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27797634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27797635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27797636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27797637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27797638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27797639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27797640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27797641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27797642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27797643, 'pht': 3726}}" where mtr_portfolio_id = 27797621 and dashboard_run_id = 2454721 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`=27797621 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (16373379, 0.06384741601101801, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27797621_14-10-2025_14_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 27797632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 27797633, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 27797634, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 27797635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 27797636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 27797637, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 27797638, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 27797639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 27797640, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 27797641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 27797642, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 27797643, '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 (27777996,27778872,27779391,27779550,27779656,27780223,27780493,27780862,27781293,27781652,27782198,27782598,27783071,27783528,27784517,27785515,27786047,27786429,27790040,27790322,27791327,27791435,27792192,27792805,27793427,27793854,27796261,27796544,27797034,27797621) result : ((1389325084,), (1389325226,), (1389325245,), (1389325345,), (1389325726,), (1389325883,), (1389325885,), (1389326199,), (1389331930,), (1389332748,), (1389333287,), (1389333288,), (1389333300,), (1389333351,), (1389333367,), (1389333368,), (1389333393,), (1389335401,), (1389335981,), (1389335993,), (1389336007,), (1389336008,), (1389336024,), (1389336040,), (1389336057,), (1389336061,), (1389336090,), (1389336101,), (1389336134,), (1389336151,), (1389336188,), (1389336187,), (1389336243,), (1389336261,), (1389336274,), (1389336288,), (1389336289,), (1389336290,), (1389336307,), (1389336308,), (1389336345,), (1389336362,), (1389336378,), (1389336391,), (1389336492,), (1389336509,), (1389336522,), (1389336524,), (1389336528,), (1389336531,), (1389336558,), (1389336560,), (1389336562,), (1389336574,), (1389336575,), (1389336616,), (1389336617,), (1389336645,), (1389336689,), (1389336691,), (1389336746,), (1389340467,), (1389340529,), (1389340555,), (1389340557,), (1389340578,), (1389340582,), (1389340608,), (1389340617,), (1389340621,), (1389340626,), (1389340636,), (1389340654,), (1389340656,), (1389340673,), (1389340675,), (1389340697,), (1389340699,), (1389340701,), (1389340717,), (1389340742,), (1389340744,), (1389340748,), (1389340752,), (1389340764,), (1389340766,), (1389340810,), (1389340795,), (1389340798,), (1389340801,), (1389340805,), (1389340818,), (1389340824,), (1389340829,), (1389340836,), (1389340843,), (1389340846,), (1389340854,), (1389340856,), (1389340858,), (1389340866,), (1389340871,), (1389340874,), (1389340877,), (1389340879,), (1389340881,), (1389340904,), (1389340906,), (1389340908,), (1389340912,), (1389340917,), (1389340929,), (1389340931,), (1389340933,), (1389340935,), (1389340938,), (1389340957,), (1389340958,), (1389340960,), (1389340962,), (1389340979,), (1389340985,), (1389340991,), (1389340996,), (1389341003,), (1389341006,), (1389341049,), (1389341052,), (1389341056,), (1389341059,), (1389341062,), (1389341065,), (1389341068,), (1389341069,), (1389341070,), (1389341072,), (1389341074,), (1389341077,), (1389341081,), (1389341091,), (1389341097,), (1389341100,), (1389341108,), (1389341109,), (1389341110,), (1389341113,), (1389341127,), (1389341129,), (1389341131,), (1389341134,), (1389341139,), (1389341142,), (1389341171,), (1389341172,), (1389341173,), (1389341175,), (1389341190,), (1389341192,), (1389341193,), (1389341195,), (1389341198,), (1389341246,), (1389341252,), (1389341255,), (1389341259,), (1389341262,), (1389341278,), (1389341272,), (1389341275,), (1389341313,), (1389341315,), (1389341316,), (1389341347,), (1389341348,), (1389341350,), (1389341354,), (1389341358,), (1389341361,), (1389341368,), (1389341370,), (1389341372,), (1389341374,), (1389341380,), (1389341389,), (1389341390,), (1389341392,), (1389341394,), (1389341407,), (1389341409,), (1389341411,), (1389341413,), (1389341419,), (1389341429,), (1389341444,), (1389341445,), (1389341446,), (1389341448,), (1389341451,), (1389341462,), (1389341464,), (1389341469,), (1389341476,), (1389341493,), (1389341494,), (1389341495,), (1389341497,), (1389341500,), (1389341503,), (1389341517,), (1389341519,), (1389341521,), (1389341525,), (1389341527,), (1389341558,), (1389341559,), (1389341560,), (1389341576,), (1389341579,), (1389341606,), (1389341608,), (1389341609,), (1389341612,), (1389341616,), (1389341627,), (1389341628,), (1389341631,), (1389341636,), (1389341646,), (1389341677,), (1389341665,), (1389341666,), (1389341669,), (1389341673,), (1389341675,), (1389341686,), (1389341687,), (1389341688,), (1389341691,), (1389341711,), (1389341712,), (1389341713,), (1389341716,), (1389341722,), (1389341731,), (1389341733,), (1389341738,), (1389341742,), (1389341746,), (1389341749,), (1389341761,), (1389341762,), (1389341763,), (1389341779,), (1389341781,), (1389341782,), (1389341785,), (1389341789,), (1389341807,), (1389341808,), (1389341811,), (1389341815,), (1389341818,), (1389341821,), (1389341828,), (1389341830,), (1389341831,), (1389341834,), (1389341859,), (1389341860,), (1389341861,), (1389341864,), (1389341868,), (1389341880,), (1389341882,), (1389341884,), (1389341887,), (1389341889,), (1389341895,), (1389341908,), (1389341911,), (1389341912,), (1389341914,), (1389341928,), (1389341931,), (1389341932,), (1389341934,), (1389341937,), (1389341944,), (1389341959,), (1389341961,), (1389341963,), (1389341965,), (1389341969,), (1389341973,), (1389342228,), (1389342234,), (1389342239,), (1389342243,), (1389342267,), (1389342255,), (1389342259,), (1389342262,), (1389342265,), (1389343169,), (1389343170,), (1389343171,), (1389343174,), (1389343343,), (1389343345,), (1389343347,), (1389343369,), (1389343370,), (1389343372,), (1389343375,), (1389343378,), (1389343381,), (1389343387,), (1389343389,), (1389343390,), (1389343392,), (1389343395,), (1389343416,), (1389343417,), (1389343418,), (1389343423,), (1389343426,), (1389343429,), (1389343433,), (1389343435,), (1389343436,), (1389343439,), (1389343460,), (1389343461,), (1389343462,), (1389343465,), (1389343479,), (1389343480,), (1389343481,), (1389343485,), (1389343488,), (1389343492,), (1389343508,), (1389343509,), (1389343510,), (1389343513,), (1389343517,), (1389343526,), (1389343528,), (1389343529,), (1389343531,), (1389343557,), (1389343558,), (1389343559,), (1389343562,), (1389343565,), (1389343569,), (1389343575,), (1389343578,), (1389343582,), (1389343602,), (1389343605,), (1389343607,), (1389343610,), (1389343614,), (1389343618,), (1389343623,), (1389343624,), (1389343626,), (1389343630,), (1389343634,), (1389343639,), (1389343674,), (1389343661,), (1389343662,), (1389343663,), (1389343667,), (1389343670,), (1389343683,), (1389343685,), (1389343686,), (1389343688,), (1389343711,), (1389343712,), (1389343713,), (1389343716,), (1389343720,), (1389343723,), (1389343732,), (1389343734,), (1389343735,), (1389343738,), (1389343756,), (1389343757,), (1389343758,), (1389343761,), (1389343765,), (1389343776,), (1389343778,), (1389343779,), (1389343782,), (1389343789,), (1389343792,), (1389343806,), (1389343807,), (1389343810,), (1389343813,), (1389343816,), (1389343831,), (1389343833,), (1389343835,), (1389343838,), (1389343871,), (1389343872,), (1389343873,), (1389343876,), (1389343880,), (1389343891,), (1389343893,), (1389343894,), (1389343897,), (1389343901,), (1389343932,), (1389343933,), (1389343934,), (1389343937,), (1389343941,), (1389343952,), (1389343954,), (1389343955,), (1389343980,), (1389343981,), (1389343983,), (1389343985,), (1389343989,), (1389343998,), (1389344000,), (1389344001,), (1389344003,), (1389344006,), (1389344029,), (1389344031,), (1389344032,), (1389344034,), (1389344037,), (1389344056,), (1389344048,), (1389344050,), (1389344051,), (1389344053,), (1389344079,), (1389344080,), (1389344083,), (1389344088,), (1389344090,), (1389344091,), (1389344110,), (1389344113,), (1389344115,), (1389344138,), (1389344139,), (1389344140,), (1389344143,), (1389344147,), (1389344155,), (1389344157,), (1389344159,), (1389344163,), (1389344166,), (1389344182,), (1389344183,), (1389344184,), (1389344188,), (1389344191,), (1389344199,), (1389344201,), (1389344203,), (1389344205,), (1389344210,), (1389344235,), (1389344236,), (1389344237,), (1389344239,), (1389344241,), (1389344255,), (1389344296,), (1389344297,), (1389344302,), (1389344306,), (1389344308,), (1389344310,), (1389344318,), (1389344320,), (1389344324,), (1389344335,), (1389344340,), (1389344349,), (1389344351,), (1389344355,), (1389344358,), (1389344365,), (1389344369,), (1389344371,), (1389344373,), (1389344380,), (1389344402,), (1389344415,), (1389344419,), (1389344420,), (1389344422,), (1389344425,), (1389344443,), (1389344449,), (1389344456,), (1389344459,), (1389344462,), (1389344465,), (1389344468,), (1389344471,), (1389344496,), (1389344484,), (1389344487,), (1389344489,), (1389344492,), (1389344515,), (1389344517,), (1389344520,), (1389344544,), (1389344553,), (1389344558,), (1389344562,), (1389344563,), (1389344566,), (1389344571,), (1389344572,), (1389344576,), (1389344579,), (1389344583,), (1389344586,), (1389344590,), (1389344594,), (1389344596,), (1389344599,), (1389344602,), (1389344606,), (1389344611,), (1389344614,), (1389344617,), (1389344620,), (1389344621,), (1389344638,), (1389344647,), (1389344668,), (1389344677,), (1389344682,), (1389344683,), (1389344688,), (1389344690,), (1389344694,), (1389344698,), (1389344701,), (1389344707,), (1389344719,), (1389344720,), (1389344721,), (1389344724,), (1389344727,), (1389344731,), (1389344735,), (1389344740,), (1389344749,), (1389344754,), (1389344767,), (1389344781,), (1389344782,), (1389344786,), (1389344790,), (1389344795,), (1389344798,), (1389344802,), (1389344803,), (1389344807,), (1389344814,), (1389344816,), (1389344822,), (1389344827,), (1389344836,), (1389344846,), (1389344852,), (1389344864,), (1389344868,), (1389344873,), (1389344880,), (1389344886,), (1389344889,), (1389344892,), (1389344895,), (1389344898,), (1389344916,), (1389344917,), (1389344919,), (1389347905,), (1389347908,), (1389347911,), (1389347913,), (1389347916,), (1389348098,), (1389348101,), (1389348153,), (1389348156,), (1389348160,), (1389348166,), (1389348178,), (1389348222,), (1389348534,), (1389348539,), (1389348966,), (1389349212,), (1389349213,), (1389349215,), (1389349216,), (1389349218,), (1389349219,), (1389349401,), (1389349447,), (1389349450,), (1389349451,), (1389349452,), (1389349455,), (1389349457,), (1389349678,), (1389349681,), (1389349686,), (1389349690,), (1389349693,), (1389349696,), (1389349709,), (1389349722,), (1389349725,), (1389349729,), (1389349895,), (1389349899,), (1389349903,), (1389349963,), (1389349966,), (1389349968,), (1389350054,), (1389350056,), (1389350063,), (1389350066,), (1389350112,), (1389350115,), (1389350129,), (1389350220,), (1389350226,), (1389350229,), (1389350241,), (1389350252,), (1389350356,), (1389350411,), (1389350414,), (1389350658,), (1389350678,), (1389350696,), (1389350697,), (1389350701,), (1389350703,), (1389350745,), (1389350750,), (1389350752,), (1389350754,), (1389344904,), (1389344910,), (1389344913,), (1389344923,), (1389344929,), (1389344968,), (1389345175,), (1389345186,), (1389345201,), (1389345209,), (1389345221,), (1389345403,), (1389345550,), (1389345553,), (1389345554,), (1389345568,), (1389345575,), (1389345577,), (1389345580,), (1389345583,), (1389345591,), (1389345865,), (1389345881,), (1389345904,), (1389346143,), (1389346395,), (1389346493,), (1389346547,), (1389346548,), (1389346575,), (1389346576,), (1389346604,), (1389346605,), (1389346617,), (1389346618,), (1389346656,), (1389346664,), (1389346686,), (1389346690,), (1389346964,), (1389347033,), (1389347074,), (1389347122,), (1389347166,), (1389347204,), (1389347241,), (1389347244,), (1389347245,), (1389347265,), (1389347318,), (1389347367,), (1389347532,), (1389347572,), (1389347590,), (1389347600,), (1389347601,), (1389347626,), (1389347656,), (1389347660,), (1389347665,), (1389347668,), (1389347673,), (1389347677,), (1389347680,), (1389347693,), (1389347697,), (1389347699,), (1389347702,), (1389347705,), (1389347746,), (1389347925,), (1389347928,), (1389347930,), (1389347943,), (1389347944,), (1389347948,), (1389348047,), (1389348062,), (1389348064,), (1389348077,), (1389348305,), (1389348312,), (1389348379,), (1389348387,), (1389348392,), (1389348394,), (1389348400,), (1389348402,), (1389348513,), (1389348522,), (1389348549,), (1389348551,), (1389348554,), (1389348558,), (1389348592,), (1389348596,), (1389348682,), (1389348964,), (1389348613,), (1389348615,), (1389348617,), (1389348674,), (1389348678,), (1389348892,), (1389348906,), (1389348909,), (1389348914,), (1389348919,), (1389348931,), (1389348958,), (1389348959,), (1389348960,), (1389348962,), (1389349039,), (1389349040,), (1389349059,), (1389349112,), (1389349209,), (1389349210,), (1389349346,), (1389349362,), (1389349373,), (1389349377,), (1389349383,), (1389349462,), (1389349464,), (1389349570,), (1389349642,), (1389349654,), (1389349673,), (1389349703,), (1389349705,), (1389349837,), (1389349851,), (1389349877,), (1389349884,), (1389349888,), (1389349890,), (1389349992,), (1389349994,), (1389349995,), (1389349997,), (1389349999,), (1389350001,), (1389350011,), (1389350016,), (1389350094,), (1389350096,), (1389350099,), (1389350110,), (1389350262,), (1389350265,), (1389350268,), (1389350278,), (1389350287,), (1389350290,), (1389350298,), (1389350301,), (1389350311,), (1389350313,), (1389350315,), (1389350316,), (1389350318,), (1389350319,), (1389350321,), (1389350322,), (1389350323,), (1389350324,), (1389350331,), (1389350345,), (1389350353,), (1389350716,), (1389350717,), (1389350719,), (1389350721,), (1389350723,), (1389350724,), (1389350728,), (1389350732,), (1389350736,), (1389350738,), (1389350742,), (1389351556,), (1389351549,), (1389351553,), (1389351588,), (1389351590,), (1389351592,), (1389351657,), (1389351661,), (1389351663,), (1389351665,), (1389351669,), (1389351672,), (1389351833,), (1389351834,), (1389351835,), (1389352071,), (1389352607,), (1389352543,), (1389352546,), (1389352647,), (1389352649,), (1389352651,), (1389352683,), (1389352686,), (1389352688,), (1389352691,), (1389352694,), (1389352761,), (1389352765,), (1389352771,), (1389352775,), (1389352778,), (1389352780,), (1389352786,), (1389352800,), (1389352802,), (1389352806,), (1389352811,), (1389352814,), (1389352819,), (1389352822,), (1389352828,), (1389352830,), (1389352836,), (1389352919,), (1389352921,), (1389352922,), (1389352925,), (1389352929,), (1389352954,), (1389352970,), (1389352974,), (1389352978,), (1389352982,), (1389353709,), (1389353718,), (1389353724,), (1389353748,), (1389353743,), (1389353746,), (1389353871,), (1389353874,), (1389353901,), (1389353906,), (1389354400,), (1389354892,), (1389354913,), (1389354927,), (1389355303,), (1389355354,), (1389355383,), (1389355400,), (1389355410,), (1389356075,), (1389356078,), (1389356081,), (1389356085,), (1389356088,), (1389356374,), (1389356422,), (1389356426,), (1389356431,), (1389356467,), (1389356473,), (1389356477,), (1389356494,), (1389356497,), (1389356512,), (1389356547,), (1389356551,), (1389356555,), (1389356568,), (1389356618,), (1389356620,), (1389356621,), (1389356695,), (1389356697,), (1389356698,), (1389356701,), (1389356704,), (1389356708,), (1389356739,), (1389356740,), (1389356741,), (1389356744,), (1389356779,), (1389356784,), (1389356791,), (1389356793,), (1389356797,), (1389356816,), (1389356817,), (1389356838,), (1389356847,), (1389356850,), (1389372207,), (1389371959,), (1389372200,), (1389372201,), (1389372202,), (1389372204,), (1389372223,), (1389372226,), (1389372229,), (1389372285,), (1389372315,), (1389372317,), (1389372318,), (1389372320,), (1389372323,), (1389372335,), (1389372339,), (1389372340,), (1389372347,), (1389372365,), (1389372378,), (1389372380,), (1389372381,), (1389372383,), (1389372400,), (1389372401,), (1389372414,), (1389372433,), (1389372472,), (1389372475,), (1389372476,), (1389372478,), (1389372481,), (1389372484,), (1389372506,), (1389372503,), (1389372504,), (1389372531,), (1389372534,), (1389372537,), (1389372602,), (1389372607,), (1389372608,), (1389372609,), (1389372615,), (1389372616,), (1389372638,), (1389372639,), (1389372641,), (1389372644,), (1389372647,), (1389372653,), (1389372673,), (1389372674,), (1389372675,), (1389372676,), (1389372677,), (1389372683,), (1389372687,), (1389372705,), (1389372707,), (1389372709,), (1389372711,), (1389372714,), (1389372764,), (1389372775,), (1389372779,), (1389372782,), (1389372785,), (1389372817,), (1389372820,), (1389372824,), (1389372830,), (1389372848,), (1389372849,), (1389372850,), (1389372892,), (1389372894,), (1389372895,), (1389372897,), (1389372974,), (1389373031,), (1389373032,), (1389373034,), (1389373037,), (1389373262,), (1389373264,), (1389373274,), (1389373276,), (1389373320,), (1389373329,), (1389373330,), (1389373433,), (1389373453,), (1389373458,), (1389373944,), (1389373946,), (1389373978,), (1389374047,), (1389374045,), (1389375617,), (1389375620,), (1389375650,), (1389375660,), (1389375672,), (1389375673,), (1389375674,), (1389375675,), (1389375677,), (1389375679,), (1389376143,), (1389375685,), (1389375695,), (1389375700,), (1389375705,), (1389376422,), (1389376467,), (1389376469,), (1389376509,), (1389376554,), (1389376555,), (1389376556,), (1389376614,), (1389376615,), (1389376836,), (1389377202,), (1389377206,), (1389377310,), (1389377431,), (1389377536,), (1389377540,), (1389377545,), (1389377549,), (1389377576,), (1389377586,), (1389377594,), (1389377616,), (1389377617,), (1389377619,), (1389377622,), (1389377626,), (1389377629,), (1389377675,), (1389377677,), (1389377678,), (1389377681,), (1389377685,), (1389377726,), (1389377727,), (1389377728,), (1389377762,), (1389377765,), (1389377766,), (1389377772,), (1389377878,), (1389377940,), (1389377947,), (1389377984,), (1389377990,), (1389377994,), (1389378001,), (1389378002,), (1389378004,), (1389378093,), (1389378102,), (1389378104,), (1389378106,), (1389378141,), (1389378151,), (1389378158,), (1389378159,), (1389378161,), (1389378164,), (1389378166,), (1389378170,), (1389378184,), (1389378189,), (1389378274,), (1389378260,), (1389378261,), (1389378262,), (1389378265,), (1389378270,), (1389378542,), (1389378545,), (1389378569,), (1389378571,), (1389378576,), (1389378825,), (1389378827,), (1389378828,), (1389378854,), (1389378857,), (1389378859,), (1389378862,), (1389378865,), (1389378868,), (1389378975,), (1389379002,), (1389379003,), (1389379021,), (1389379022,), (1389379044,), (1389379050,), (1389379054,), (1389379062,), (1389379474,), (1389379476,), (1389379521,), (1389379524,), (1389379656,), (1389379662,), (1389379665,), (1389379668,), (1389379739,), (1389379740,), (1389379743,), (1389379746,), (1389379749,), (1389379752,), (1389379760,), (1389379762,), (1389379768,), (1389379773,), (1389379786,), (1389379806,), (1389379808,), (1389379810,), (1389379833,), (1389379835,), (1389379837,), (1389379922,), (1389379949,), (1389379951,), (1389380000,), (1389380002,), (1389380003,), (1389380044,), (1389380023,), (1389380034,), (1389380036,), (1389380040,), (1389380058,), (1389380060,), (1389380061,), (1389380064,), (1389380078,), (1389380079,), (1389380080,), (1389380082,), (1389380087,), (1389380110,), (1389380216,), (1389380220,), (1389380252,), (1389380268,), (1389380269,), (1389380270,), (1389380272,), (1389380276,), (1389380291,), (1389380293,), (1389380312,), (1389380314,), (1389380337,), (1389380338,), (1389380340,), (1389380342,), (1389380355,), (1389380356,), (1389380358,), (1389380360,), (1389380397,), (1389380398,), (1389380399,), (1389380402,), (1389380407,), (1389380421,), (1389380423,), (1389380425,), (1389380429,), (1389380434,), (1389380456,), (1389380457,), (1389380460,), (1389380465,), (1389380468,), (1389380496,), (1389380497,), (1389380499,), (1389380503,), (1389380509,), (1389380513,), (1389380521,), (1389380525,), (1389380527,), (1389380532,), (1389380535,), (1389380539,), (1389380543,), (1389380545,), (1389380548,), (1389380557,), (1389380566,), (1389380570,), (1389380573,), (1389380591,), (1389380604,), (1389380621,), (1389380622,), (1389380623,), (1389380653,), (1389380654,), (1389380657,), (1389380660,), (1389380665,), (1389380680,), (1389380682,), (1389380693,), (1389380736,), (1389380737,), (1389380739,), (1389380741,), (1389380746,), (1389380749,), (1389380758,), (1389380760,), (1389380761,), (1389380764,), (1389380771,), (1389380797,), (1389380798,), (1389380799,), (1389380816,), (1389380818,), (1389380819,), (1389380839,), (1389380841,), (1389380843,), (1389380847,), (1389380888,), (1389380898,), (1389380899,), (1389380902,), (1389380924,), (1389380925,), (1389380927,), (1389380933,), (1389380943,), (1389380945,), (1389380946,), (1389380990,), (1389380991,), (1389380993,), (1389380996,), (1389381016,), (1389381022,), (1389381027,), (1389381030,), (1389381446,), (1389381451,), (1389381461,), (1389381480,), (1389381481,), (1389382497,), (1389382407,), (1389382443,), (1389382476,), (1389382493,), (1389382508,), (1389382510,), (1389382511,), (1389382774,), (1389382789,), (1389382794,), (1389384002,), (1389384004,), (1389384007,), (1389384304,), (1389384306,), (1389384372,), (1389384375,), (1389384465,), (1389384467,), (1389384469,), (1389384472,), (1389384485,), (1389384539,), (1389384543,), (1389384576,), (1389384579,), (1389384626,), (1389384627,), (1389384628,), (1389384665,), (1389384672,), (1389384677,), (1389384680,), (1389384683,), (1389384700,), (1389384701,), (1389384703,), (1389384742,), (1389384744,), (1389384745,), (1389384748,), (1389384781,), (1389399264,), (1389399263,), (1389399355,), (1389399357,), (1389399359,), (1389399385,), (1389399411,), (1389399414,), (1389399422,), (1389399426,), (1389399620,), (1389399631,), (1389399648,), (1389400055,), (1389400056,), (1389400066,), (1389400085,), (1389400204,), (1389400222,), (1389400224,), (1389400225,), (1389400227,), (1389400491,), (1389400495,), (1389400500,), (1389400575,), (1389400587,), (1389400591,), (1389400609,), (1389400662,), (1389400633,), (1389400635,), (1389400647,), (1389400657,), (1389400715,), (1389400736,), (1389400737,), (1389400740,), (1389400745,), (1389400765,), (1389400767,), (1389400768,), (1389400773,), (1389400779,), (1389400832,), (1389400836,), (1389400841,), (1389400850,), (1389400854,), (1389400857,), (1389400870,), (1389400871,), (1389400872,), (1389400875,), (1389400903,), (1389400904,), (1389400905,), (1389400909,), (1389400913,), (1389400919,), (1389400953,), (1389400954,), (1389400955,), (1389400972,), (1389400973,), (1389400975,), (1389400977,), (1389400985,), (1389400992,), (1389402104,), (1389402123,), (1389402124,), (1389402126,), (1389402129,), (1389402213,), (1389402576,), (1389402577,), (1389402579,), (1389402583,), (1389402586,), (1389402589,), (1389402594,), (1389402596,), (1389402597,), (1389402598,), (1389402600,), (1389402602,), (1389402604,), (1389402865,), (1389402915,), (1389402919,), (1389403217,), (1389403218,), (1389403299,), (1389403301,), (1389403333,), (1389403336,), (1389403503,), (1389403505,), (1389403507,), (1389403510,), (1389404172,), (1389404174,), (1389404178,), (1389404181,), (1389404185,), (1389404191,), (1389404192,), (1389404194,), (1389404252,), (1389404241,), (1389404244,), (1389404246,), (1389404248,), (1389404251,), (1389404349,), (1389404351,), (1389405246,), (1389405249,), (1389405252,), (1389405256,), (1389405257,), (1389405418,), (1389405459,), (1389405463,), (1389405624,), (1389405625,), (1389405626,), (1389405629,), (1389406332,), (1389406334,), (1389406337,), (1389406341,), (1389406489,), (1389406566,), (1389406613,), (1389406620,), (1389406661,), (1389407000,), (1389407003,), (1389407005,), (1389407010,), (1389407013,), (1389407127,), (1389407191,), (1389407192,), (1389407193,), (1389407327,), (1389407358,), (1389407361,), (1389407365,), (1389407369,), (1389407372,), (1389407374,), (1389407380,), (1389407382,), (1389407383,), (1389407385,), (1389407388,), (1389407418,), (1389407419,), (1389407421,), (1389407424,), (1389407437,), (1389407439,), (1389407440,), (1389407443,), (1389407446,), (1389407450,), (1389407473,), (1389407475,), (1389407476,), (1389407479,), (1389407495,), (1389407496,), (1389407497,), (1389407499,), (1389407503,), (1389407511,), (1389407536,), (1389407537,), (1389407540,), (1389407542,), (1389407557,), (1389407558,), (1389407562,), (1389407566,), (1389407574,), (1389407578,), (1389407590,), (1389407591,), (1389407601,), (1389407607,), (1389407617,), (1389407611,), (1389407614,), (1389407615,), (1389407620,), (1389407621,), (1389407623,), (1389407626,), (1389407628,), (1389407633,), (1389407642,), (1389407643,), (1389407644,), (1389407645,), (1389407664,), (1389407665,), (1389407667,), (1389407668,), (1389407686,), (1389407687,), (1389407689,), (1389407690,), (1389407693,), (1389407695,), (1389407700,), (1389407701,), (1389407702,), (1389408175,), (1389408803,), (1389408804,), (1389408805,), (1389408807,), (1389409062,), (1389409069,), (1389409308,), (1389409348,), (1389409364,), (1389410258,), (1389410259,), (1389410260,), (1389410261,), (1389410263,), (1389410265,), (1389410569,), (1389410572,), (1389410578,), (1389410686,), (1389410691,), (1389410694,), (1389410702,), (1389410704,), (1389410707,), (1389410710,), (1389410713,), (1389411004,), (1389411018,), (1389411020,), (1389411024,), (1389411027,), (1389411029,), (1389411031,), (1389411043,), (1389411044,), (1389411053,), (1389411054,), (1389411057,), (1389411059,), (1389411078,), (1389411079,), (1389411081,), (1389411082,), (1389411091,), (1389411095,), (1389411100,), (1389411102,), (1389411107,), (1389411110,), (1389411113,), (1389411116,), (1389411120,), (1389411122,), (1389411124,), (1389411136,), (1389411139,), (1389411142,), (1389411145,), (1389411147,), (1389411169,), (1389411172,), (1389411173,), (1389411175,), (1389411178,), (1389411232,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'14102025': {'nb_upload': 92, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([27797621]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1389411232, 1389411178, 1389411175, 1389411173, 1389411172, 1389411169] map_info['map_portfolio_photo'] : {27797621: [1389411232, 1389411178, 1389411175, 1389411173, 1389411172, 1389411169, 1389411147, 1389411145, 1389411142, 1389411139, 1389411136, 1389411124, 1389411122, 1389411120, 1389411116, 1389411113, 1389411110, 1389411107, 1389411102, 1389411100, 1389411095, 1389411091, 1389411082, 1389411081, 1389411079, 1389411078, 1389411059, 1389411057, 1389411054, 1389411053, 1389411044, 1389411043, 1389411031, 1389411029, 1389411027, 1389411024, 1389411020, 1389411018, 1389411004, 1389410713, 1389410710, 1389410707, 1389410704, 1389410702, 1389410694, 1389410691, 1389410686, 1389410578, 1389410572, 1389410569, 1389410265, 1389410263, 1389410261, 1389410260, 1389410259, 1389410258, 1389409364, 1389409348, 1389409308, 1389409069, 1389409062, 1389408807, 1389408805, 1389408804, 1389408803, 1389408175, 1389407702, 1389407701, 1389407700, 1389407695, 1389407693, 1389407690, 1389407689, 1389407687, 1389407686, 1389407668, 1389407667, 1389407665, 1389407664, 1389407645, 1389407644, 1389407643, 1389407642, 1389407633, 1389407628, 1389407626, 1389407623, 1389407621, 1389407620, 1389407615, 1389407614, 1389407611]} final : True mtd_id 4302 list_pids : [1389411232, 1389411178, 1389411175, 1389411173, 1389411172, 1389411169] Looping around the photos to save general results len do output : 1 /27797621Didn'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, '3940363') ('4302', '27797621', '1389411232', None, None, None, None, None, '3940363') ('4302', None, None, None, None, None, None, None, '3940363') ('4302', '27797621', '1389411178', None, None, None, None, None, '3940363') ('4302', None, None, None, None, None, None, None, '3940363') ('4302', '27797621', '1389411175', None, None, None, None, None, '3940363') ('4302', None, None, None, None, None, None, None, '3940363') ('4302', '27797621', '1389411173', None, None, None, None, None, '3940363') ('4302', None, None, None, None, None, None, None, '3940363') ('4302', '27797621', '1389411172', None, None, None, None, None, '3940363') ('4302', None, None, None, None, None, None, None, '3940363') ('4302', '27797621', '1389411169', None, None, None, None, None, '3940363') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '27797621', 'None', None, None, None, None, '3940363'), ('4302', '27797621', '1389411232', None, None, None, None, None, '3940363'), ('4302', '27797621', '1389411178', None, None, None, None, None, '3940363'), ('4302', '27797621', '1389411175', None, None, None, None, None, '3940363'), ('4302', '27797621', '1389411173', None, None, None, None, None, '3940363'), ('4302', '27797621', '1389411172', None, None, None, None, None, '3940363'), ('4302', '27797621', '1389411169', None, None, None, None, None, '3940363')] time used for this insertion : 0.037117719650268555 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.590696573257446 time spend to save output : 0.03728914260864258 total time spend for step 5 : 7.627985715866089 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 (3940363) 2.10user 2.67system 0:19.39elapsed 24%CPU (0avgtext+0avgdata 159064maxresident)k 80inputs+12728outputs (2major+64149minor)pagefaults 0swaps