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 : 3417522 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 (3668232) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3668232) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26563505 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3668232'] with mtr_portfolio_ids : ['26563505'] and first list_photo_ids : [] new path : /proc/3417522/ Name: python3 Umask: 0002 State: R (running) Tgid: 3417522 Ngid: 0 Pid: 3417522 PPid: 3417521 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3417522 NSpid: 3417522 NSpgid: 3415117 NSsid: 3415117 VmPeak: 1107252 kB VmSize: 1107252 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98956 kB VmRSS: 98956 kB RssAnon: 60164 kB RssFile: 38792 kB RssShmem: 0 kB VmData: 866004 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 584 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: 53 nonvoluntary_ctxt_switches: 85 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3417522', 'Ngid': '0', 'Pid': '3417522', 'PPid': '3417521', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3417522', 'NSpid': '3417522', 'NSpgid': '3415117', 'NSsid': '3415117', 'VmPeak': '1107252 kB', 'VmSize': '1107252 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98956 kB', 'VmRSS': '98956 kB', 'RssAnon': '60164 kB', 'RssFile': '38792 kB', 'RssShmem': '0 kB', 'VmData': '866004 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '584 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': '53', 'nonvoluntary_ctxt_switches': '85'} ('datou_batch_current', '3417522', '1107252', '0', '1107252', '866004', '98956', b'', 'marlene', '3668232') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (26563505) 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 (3668232 ) ) 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 (26563505) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1381638499, 'portfolio_id': 26563505}, {'photo_id': 1381638498, 'portfolio_id': 26563505}, {'photo_id': 1381638497, 'portfolio_id': 26563505}, {'photo_id': 1381638496, 'portfolio_id': 26563505}, {'photo_id': 1381638495, 'portfolio_id': 26563505}, {'photo_id': 1381638450, 'portfolio_id': 26563505}, {'photo_id': 1381638449, 'portfolio_id': 26563505}, {'photo_id': 1381638448, 'portfolio_id': 26563505}, {'photo_id': 1381638299, 'portfolio_id': 26563505}, {'photo_id': 1381638297, 'portfolio_id': 26563505}, {'photo_id': 1381638296, 'portfolio_id': 26563505}, {'photo_id': 1381638295, 'portfolio_id': 26563505}, {'photo_id': 1381638038, 'portfolio_id': 26563505}, {'photo_id': 1381638035, 'portfolio_id': 26563505}, {'photo_id': 1381638033, 'portfolio_id': 26563505}, {'photo_id': 1381638031, 'portfolio_id': 26563505}, {'photo_id': 1381638029, 'portfolio_id': 26563505}, {'photo_id': 1381637913, 'portfolio_id': 26563505}, {'photo_id': 1381637912, 'portfolio_id': 26563505}, {'photo_id': 1381637911, 'portfolio_id': 26563505}, {'photo_id': 1381637910, 'portfolio_id': 26563505}, {'photo_id': 1381637729, 'portfolio_id': 26563505}, {'photo_id': 1381637726, 'portfolio_id': 26563505}, {'photo_id': 1381637723, 'portfolio_id': 26563505}, {'photo_id': 1381637720, 'portfolio_id': 26563505}, {'photo_id': 1381637716, 'portfolio_id': 26563505}, {'photo_id': 1381637440, 'portfolio_id': 26563505}, {'photo_id': 1381637439, 'portfolio_id': 26563505}, {'photo_id': 1381637438, 'portfolio_id': 26563505}, {'photo_id': 1381637437, 'portfolio_id': 26563505}, {'photo_id': 1381637436, 'portfolio_id': 26563505}, {'photo_id': 1381637435, 'portfolio_id': 26563505}, {'photo_id': 1381637363, 'portfolio_id': 26563505}, {'photo_id': 1381637362, 'portfolio_id': 26563505}, {'photo_id': 1381637361, 'portfolio_id': 26563505}, {'photo_id': 1381637210, 'portfolio_id': 26563505}, {'photo_id': 1381637208, 'portfolio_id': 26563505}, {'photo_id': 1381637206, 'portfolio_id': 26563505}, {'photo_id': 1381637204, 'portfolio_id': 26563505}, {'photo_id': 1381637202, 'portfolio_id': 26563505}, {'photo_id': 1381636981, 'portfolio_id': 26563505}, {'photo_id': 1381636979, 'portfolio_id': 26563505}, {'photo_id': 1381636977, 'portfolio_id': 26563505}, {'photo_id': 1381636975, 'portfolio_id': 26563505}, {'photo_id': 1381636973, 'portfolio_id': 26563505}, {'photo_id': 1381636515, 'portfolio_id': 26563505}, {'photo_id': 1381636512, 'portfolio_id': 26563505}, {'photo_id': 1381636509, 'portfolio_id': 26563505}, {'photo_id': 1381635884, 'portfolio_id': 26563505}, {'photo_id': 1381635881, 'portfolio_id': 26563505}, {'photo_id': 1381635878, 'portfolio_id': 26563505}, {'photo_id': 1381635875, 'portfolio_id': 26563505}, {'photo_id': 1381635872, 'portfolio_id': 26563505}, {'photo_id': 1381635869, 'portfolio_id': 26563505}, {'photo_id': 1381635360, 'portfolio_id': 26563505}, {'photo_id': 1381635358, 'portfolio_id': 26563505}, {'photo_id': 1381635356, 'portfolio_id': 26563505}, {'photo_id': 1381635354, 'portfolio_id': 26563505}, {'photo_id': 1381634837, 'portfolio_id': 26563505}, {'photo_id': 1381634834, 'portfolio_id': 26563505}, {'photo_id': 1381634831, 'portfolio_id': 26563505}, {'photo_id': 1381634828, 'portfolio_id': 26563505}] map_portfolio_id_photo_id: {26563505: [1381638499, 1381638498, 1381638497, 1381638496, 1381638495, 1381638450, 1381638449, 1381638448, 1381638299, 1381638297, 1381638296, 1381638295, 1381638038, 1381638035, 1381638033, 1381638031, 1381638029, 1381637913, 1381637912, 1381637911, 1381637910, 1381637729, 1381637726, 1381637723, 1381637720, 1381637716, 1381637440, 1381637439, 1381637438, 1381637437, 1381637436, 1381637435, 1381637363, 1381637362, 1381637361, 1381637210, 1381637208, 1381637206, 1381637204, 1381637202, 1381636981, 1381636979, 1381636977, 1381636975, 1381636973, 1381636515, 1381636512, 1381636509, 1381635884, 1381635881, 1381635878, 1381635875, 1381635872, 1381635869, 1381635360, 1381635358, 1381635356, 1381635354, 1381634837, 1381634834, 1381634831, 1381634828]} ##### 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.016105175018310547 #### 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 Fri Sep 5 07:14:57 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 (26563505) 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 : 26563505 get user id for portfolio 26563505 get sub ptf for main ptf 26563505, type 3726 and hashtags ['cartonnette', 'flou', 'Teint_Dans_La_Masse', 'environnement', 'Carton_gris', 'kraft', 'mal_croppe', 'Carton_brun', 'plastique', 'metal', 'papier', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26563505 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','Teint_Dans_La_Masse','environnement','Carton_gris','kraft','mal_croppe','Carton_brun','plastique','metal','papier','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26563505 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','Teint_Dans_La_Masse','environnement','Carton_gris','kraft','mal_croppe','Carton_brun','plastique','metal','papier','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 26563505, 'sub_port_id': 26563534, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891003, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 26)}, 'Carton_gris': {'main_port_id': 26563505, 'sub_port_id': 26563535, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891004, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 26)}, 'papier': {'main_port_id': 26563505, 'sub_port_id': 26563536, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891005, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 26)}, 'flou': {'main_port_id': 26563505, 'sub_port_id': 26563537, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891006, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 26)}, 'Carton_brun': {'main_port_id': 26563505, 'sub_port_id': 26563538, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891007, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 26)}, 'kraft': {'main_port_id': 26563505, 'sub_port_id': 26563539, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891008, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 26563505, 'sub_port_id': 26563540, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891009, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 26)}, 'environnement': {'main_port_id': 26563505, 'sub_port_id': 26563541, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891010, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 26)}, 'cartonnette': {'main_port_id': 26563505, 'sub_port_id': 26563542, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891011, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 26)}, 'mal_croppe': {'main_port_id': 26563505, 'sub_port_id': 26563544, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891012, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 26)}, 'plastique': {'main_port_id': 26563505, 'sub_port_id': 26563545, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891013, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 26)}, 'metal': {'main_port_id': 26563505, 'sub_port_id': 26563546, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891014, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26563534 , 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=26563505 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 (26563534) result : ((1381638210,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26563505) result : ((1381634828,), (1381634831,), (1381634834,), (1381634837,), (1381635354,), (1381635356,), (1381635358,), (1381635360,), (1381635869,), (1381635872,), (1381635875,), (1381635878,), (1381635881,), (1381635884,), (1381636509,), (1381636512,), (1381636515,), (1381636973,), (1381636975,), (1381636977,), (1381636979,), (1381636981,), (1381637202,), (1381637204,), (1381637206,), (1381637208,), (1381637210,), (1381637361,), (1381637362,), (1381637363,), (1381637435,), (1381637436,), (1381637437,), (1381637438,), (1381637439,), (1381637440,), (1381637716,), (1381637720,), (1381637723,), (1381637726,), (1381637729,), (1381637910,), (1381637911,), (1381637912,), (1381637913,), (1381638029,), (1381638031,), (1381638033,), (1381638035,), (1381638038,), (1381638295,), (1381638296,), (1381638297,), (1381638299,), (1381638448,), (1381638449,), (1381638450,), (1381638495,), (1381638496,), (1381638497,), (1381638498,), (1381638499,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26563535 , 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=26563505 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 (26563535) result : ((1381637070,), (1381637072,), (1381637884,), (1381637885,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26563505) result : ((1381634828,), (1381634831,), (1381634834,), (1381634837,), (1381635354,), (1381635356,), (1381635358,), (1381635360,), (1381635869,), (1381635872,), (1381635875,), (1381635878,), (1381635881,), (1381635884,), (1381636509,), (1381636512,), (1381636515,), (1381636973,), (1381636975,), (1381636977,), (1381636979,), (1381636981,), (1381637202,), (1381637204,), (1381637206,), (1381637208,), (1381637210,), (1381637361,), (1381637362,), (1381637363,), (1381637435,), (1381637436,), (1381637437,), (1381637438,), (1381637439,), (1381637440,), (1381637716,), (1381637720,), (1381637723,), (1381637726,), (1381637729,), (1381637910,), (1381637911,), (1381637912,), (1381637913,), (1381638029,), (1381638031,), (1381638033,), (1381638035,), (1381638038,), (1381638295,), (1381638296,), (1381638297,), (1381638299,), (1381638448,), (1381638449,), (1381638450,), (1381638495,), (1381638496,), (1381638497,), (1381638498,), (1381638499,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26563536 , 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=26563505 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 (26563536) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26563505) result : ((1381634828,), (1381634831,), (1381634834,), (1381634837,), (1381635354,), (1381635356,), (1381635358,), (1381635360,), (1381635869,), (1381635872,), (1381635875,), (1381635878,), (1381635881,), (1381635884,), (1381636509,), (1381636512,), (1381636515,), (1381636973,), (1381636975,), (1381636977,), (1381636979,), (1381636981,), (1381637202,), (1381637204,), (1381637206,), (1381637208,), (1381637210,), (1381637361,), (1381637362,), (1381637363,), (1381637435,), (1381637436,), (1381637437,), (1381637438,), (1381637439,), (1381637440,), (1381637716,), (1381637720,), (1381637723,), (1381637726,), (1381637729,), (1381637910,), (1381637911,), (1381637912,), (1381637913,), (1381638029,), (1381638031,), (1381638033,), (1381638035,), (1381638038,), (1381638295,), (1381638296,), (1381638297,), (1381638299,), (1381638448,), (1381638449,), (1381638450,), (1381638495,), (1381638496,), (1381638497,), (1381638498,), (1381638499,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26563537 , 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=26563505 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 (26563537) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26563505) result : ((1381634828,), (1381634831,), (1381634834,), (1381634837,), (1381635354,), (1381635356,), (1381635358,), (1381635360,), (1381635869,), (1381635872,), (1381635875,), (1381635878,), (1381635881,), (1381635884,), (1381636509,), (1381636512,), (1381636515,), (1381636973,), (1381636975,), (1381636977,), (1381636979,), (1381636981,), (1381637202,), (1381637204,), (1381637206,), (1381637208,), (1381637210,), (1381637361,), (1381637362,), (1381637363,), (1381637435,), (1381637436,), (1381637437,), (1381637438,), (1381637439,), (1381637440,), (1381637716,), (1381637720,), (1381637723,), (1381637726,), (1381637729,), (1381637910,), (1381637911,), (1381637912,), (1381637913,), (1381638029,), (1381638031,), (1381638033,), (1381638035,), (1381638038,), (1381638295,), (1381638296,), (1381638297,), (1381638299,), (1381638448,), (1381638449,), (1381638450,), (1381638495,), (1381638496,), (1381638497,), (1381638498,), (1381638499,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26563538 , 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=26563505 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 (26563538) result : ((1381637090,), (1381637092,), (1381637094,), (1381637096,), (1381637098,), (1381637509,), (1381637510,), (1381637511,), (1381637513,), (1381637891,), (1381637893,), (1381637895,), (1381637897,), (1381637899,), (1381638215,), (1381638471,), (1381638472,), (1381638473,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26563505) result : ((1381634828,), (1381634831,), (1381634834,), (1381634837,), (1381635354,), (1381635356,), (1381635358,), (1381635360,), (1381635869,), (1381635872,), (1381635875,), (1381635878,), (1381635881,), (1381635884,), (1381636509,), (1381636512,), (1381636515,), (1381636973,), (1381636975,), (1381636977,), (1381636979,), (1381636981,), (1381637202,), (1381637204,), (1381637206,), (1381637208,), (1381637210,), (1381637361,), (1381637362,), (1381637363,), (1381637435,), (1381637436,), (1381637437,), (1381637438,), (1381637439,), (1381637440,), (1381637716,), (1381637720,), (1381637723,), (1381637726,), (1381637729,), (1381637910,), (1381637911,), (1381637912,), (1381637913,), (1381638029,), (1381638031,), (1381638033,), (1381638035,), (1381638038,), (1381638295,), (1381638296,), (1381638297,), (1381638299,), (1381638448,), (1381638449,), (1381638450,), (1381638495,), (1381638496,), (1381638497,), (1381638498,), (1381638499,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26563539 , 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=26563505 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 (26563539) result : ((1381637525,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26563505) result : ((1381634828,), (1381634831,), (1381634834,), (1381634837,), (1381635354,), (1381635356,), (1381635358,), (1381635360,), (1381635869,), (1381635872,), (1381635875,), (1381635878,), (1381635881,), (1381635884,), (1381636509,), (1381636512,), (1381636515,), (1381636973,), (1381636975,), (1381636977,), (1381636979,), (1381636981,), (1381637202,), (1381637204,), (1381637206,), (1381637208,), (1381637210,), (1381637361,), (1381637362,), (1381637363,), (1381637435,), (1381637436,), (1381637437,), (1381637438,), (1381637439,), (1381637440,), (1381637716,), (1381637720,), (1381637723,), (1381637726,), (1381637729,), (1381637910,), (1381637911,), (1381637912,), (1381637913,), (1381638029,), (1381638031,), (1381638033,), (1381638035,), (1381638038,), (1381638295,), (1381638296,), (1381638297,), (1381638299,), (1381638448,), (1381638449,), (1381638450,), (1381638495,), (1381638496,), (1381638497,), (1381638498,), (1381638499,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26563540 , 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=26563505 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 (26563540) result : ((1381637058,), (1381637062,), (1381637447,), (1381637448,), (1381637451,), (1381637455,), (1381637460,), (1381637464,), (1381637469,), (1381637473,), (1381637477,), (1381637481,), (1381637880,), (1381637881,), (1381637882,), (1381638198,), (1381638200,), (1381638202,), (1381638412,), (1381638470,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26563505) result : ((1381634828,), (1381634831,), (1381634834,), (1381634837,), (1381635354,), (1381635356,), (1381635358,), (1381635360,), (1381635869,), (1381635872,), (1381635875,), (1381635878,), (1381635881,), (1381635884,), (1381636509,), (1381636512,), (1381636515,), (1381636973,), (1381636975,), (1381636977,), (1381636979,), (1381636981,), (1381637202,), (1381637204,), (1381637206,), (1381637208,), (1381637210,), (1381637361,), (1381637362,), (1381637363,), (1381637435,), (1381637436,), (1381637437,), (1381637438,), (1381637439,), (1381637440,), (1381637716,), (1381637720,), (1381637723,), (1381637726,), (1381637729,), (1381637910,), (1381637911,), (1381637912,), (1381637913,), (1381638029,), (1381638031,), (1381638033,), (1381638035,), (1381638038,), (1381638295,), (1381638296,), (1381638297,), (1381638299,), (1381638448,), (1381638449,), (1381638450,), (1381638495,), (1381638496,), (1381638497,), (1381638498,), (1381638499,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26563541 , 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=26563505 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 (26563541) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26563505) result : ((1381634828,), (1381634831,), (1381634834,), (1381634837,), (1381635354,), (1381635356,), (1381635358,), (1381635360,), (1381635869,), (1381635872,), (1381635875,), (1381635878,), (1381635881,), (1381635884,), (1381636509,), (1381636512,), (1381636515,), (1381636973,), (1381636975,), (1381636977,), (1381636979,), (1381636981,), (1381637202,), (1381637204,), (1381637206,), (1381637208,), (1381637210,), (1381637361,), (1381637362,), (1381637363,), (1381637435,), (1381637436,), (1381637437,), (1381637438,), (1381637439,), (1381637440,), (1381637716,), (1381637720,), (1381637723,), (1381637726,), (1381637729,), (1381637910,), (1381637911,), (1381637912,), (1381637913,), (1381638029,), (1381638031,), (1381638033,), (1381638035,), (1381638038,), (1381638295,), (1381638296,), (1381638297,), (1381638299,), (1381638448,), (1381638449,), (1381638450,), (1381638495,), (1381638496,), (1381638497,), (1381638498,), (1381638499,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26563542 , 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=26563505 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 (26563542) result : ((1381637079,), (1381637501,), (1381637502,), (1381637503,), (1381637504,), (1381637505,), (1381637886,), (1381637887,), (1381638213,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26563505) result : ((1381634828,), (1381634831,), (1381634834,), (1381634837,), (1381635354,), (1381635356,), (1381635358,), (1381635360,), (1381635869,), (1381635872,), (1381635875,), (1381635878,), (1381635881,), (1381635884,), (1381636509,), (1381636512,), (1381636515,), (1381636973,), (1381636975,), (1381636977,), (1381636979,), (1381636981,), (1381637202,), (1381637204,), (1381637206,), (1381637208,), (1381637210,), (1381637361,), (1381637362,), (1381637363,), (1381637435,), (1381637436,), (1381637437,), (1381637438,), (1381637439,), (1381637440,), (1381637716,), (1381637720,), (1381637723,), (1381637726,), (1381637729,), (1381637910,), (1381637911,), (1381637912,), (1381637913,), (1381638029,), (1381638031,), (1381638033,), (1381638035,), (1381638038,), (1381638295,), (1381638296,), (1381638297,), (1381638299,), (1381638448,), (1381638449,), (1381638450,), (1381638495,), (1381638496,), (1381638497,), (1381638498,), (1381638499,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26563544 , 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=26563505 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 (26563544) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26563505) result : ((1381634828,), (1381634831,), (1381634834,), (1381634837,), (1381635354,), (1381635356,), (1381635358,), (1381635360,), (1381635869,), (1381635872,), (1381635875,), (1381635878,), (1381635881,), (1381635884,), (1381636509,), (1381636512,), (1381636515,), (1381636973,), (1381636975,), (1381636977,), (1381636979,), (1381636981,), (1381637202,), (1381637204,), (1381637206,), (1381637208,), (1381637210,), (1381637361,), (1381637362,), (1381637363,), (1381637435,), (1381637436,), (1381637437,), (1381637438,), (1381637439,), (1381637440,), (1381637716,), (1381637720,), (1381637723,), (1381637726,), (1381637729,), (1381637910,), (1381637911,), (1381637912,), (1381637913,), (1381638029,), (1381638031,), (1381638033,), (1381638035,), (1381638038,), (1381638295,), (1381638296,), (1381638297,), (1381638299,), (1381638448,), (1381638449,), (1381638450,), (1381638495,), (1381638496,), (1381638497,), (1381638498,), (1381638499,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26563545 , 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=26563505 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 (26563545) result : ((1381637104,), (1381637900,), (1381638417,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26563505) result : ((1381634828,), (1381634831,), (1381634834,), (1381634837,), (1381635354,), (1381635356,), (1381635358,), (1381635360,), (1381635869,), (1381635872,), (1381635875,), (1381635878,), (1381635881,), (1381635884,), (1381636509,), (1381636512,), (1381636515,), (1381636973,), (1381636975,), (1381636977,), (1381636979,), (1381636981,), (1381637202,), (1381637204,), (1381637206,), (1381637208,), (1381637210,), (1381637361,), (1381637362,), (1381637363,), (1381637435,), (1381637436,), (1381637437,), (1381637438,), (1381637439,), (1381637440,), (1381637716,), (1381637720,), (1381637723,), (1381637726,), (1381637729,), (1381637910,), (1381637911,), (1381637912,), (1381637913,), (1381638029,), (1381638031,), (1381638033,), (1381638035,), (1381638038,), (1381638295,), (1381638296,), (1381638297,), (1381638299,), (1381638448,), (1381638449,), (1381638450,), (1381638495,), (1381638496,), (1381638497,), (1381638498,), (1381638499,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26563546 , 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=26563505 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 (26563546) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26563505) result : ((1381634828,), (1381634831,), (1381634834,), (1381634837,), (1381635354,), (1381635356,), (1381635358,), (1381635360,), (1381635869,), (1381635872,), (1381635875,), (1381635878,), (1381635881,), (1381635884,), (1381636509,), (1381636512,), (1381636515,), (1381636973,), (1381636975,), (1381636977,), (1381636979,), (1381636981,), (1381637202,), (1381637204,), (1381637206,), (1381637208,), (1381637210,), (1381637361,), (1381637362,), (1381637363,), (1381637435,), (1381637436,), (1381637437,), (1381637438,), (1381637439,), (1381637440,), (1381637716,), (1381637720,), (1381637723,), (1381637726,), (1381637729,), (1381637910,), (1381637911,), (1381637912,), (1381637913,), (1381638029,), (1381638031,), (1381638033,), (1381638035,), (1381638038,), (1381638295,), (1381638296,), (1381638297,), (1381638299,), (1381638448,), (1381638449,), (1381638450,), (1381638495,), (1381638496,), (1381638497,), (1381638498,), (1381638499,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26563505 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','Teint_Dans_La_Masse','environnement','Carton_gris','kraft','mal_croppe','Carton_brun','plastique','metal','papier','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26563505 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','Teint_Dans_La_Masse','environnement','Carton_gris','kraft','mal_croppe','Carton_brun','plastique','metal','papier','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 26563505, 'sub_port_id': 26563548, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891015, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 32)}, 'Carton_gris': {'main_port_id': 26563505, 'sub_port_id': 26563549, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891016, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 32)}, 'papier': {'main_port_id': 26563505, 'sub_port_id': 26563550, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891017, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 32)}, 'flou': {'main_port_id': 26563505, 'sub_port_id': 26563551, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891018, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 32)}, 'Carton_brun': {'main_port_id': 26563505, 'sub_port_id': 26563552, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891019, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 32)}, 'kraft': {'main_port_id': 26563505, 'sub_port_id': 26563553, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891020, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 26563505, 'sub_port_id': 26563554, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891021, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 32)}, 'environnement': {'main_port_id': 26563505, 'sub_port_id': 26563555, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891022, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 32)}, 'cartonnette': {'main_port_id': 26563505, 'sub_port_id': 26563556, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891023, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 32)}, 'mal_croppe': {'main_port_id': 26563505, 'sub_port_id': 26563557, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891024, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 32)}, 'plastique': {'main_port_id': 26563505, 'sub_port_id': 26563558, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891025, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 32)}, 'metal': {'main_port_id': 26563505, 'sub_port_id': 26563559, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17891026, 'last_updated_at': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 9, 5, 7, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 9, 5, 7, 3, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26563548,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26563534 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26563549,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26563535 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26563550,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26563536 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26563551,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26563537 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26563552,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26563538 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26563553,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26563539 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26563554,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26563540 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26563555,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26563541 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26563556,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26563542 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26563557,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26563544 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26563558,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26563545 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26563559,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26563546 lien utilise dans velours : https://marlene.fotonower.com/velours/26563548,26563549,26563550,26563551,26563552,26563553,26563554,26563555,26563556,26563557,26563558,26563559?tags=autre_refus,Carton_gris,papier,flou,Carton_brun,kraft,Teint_Dans_La_Masse,environnement,cartonnette,mal_croppe,plastique,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26563505]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1381638499, 1381638498, 1381638497, 1381638496, 1381638495, 1381638450, 1381638449, 1381638448] map_info['map_portfolio_photo'] : {26563505: [1381638499, 1381638498, 1381638497, 1381638496, 1381638495, 1381638450, 1381638449, 1381638448, 1381638299, 1381638297, 1381638296, 1381638295, 1381638038, 1381638035, 1381638033, 1381638031, 1381638029, 1381637913, 1381637912, 1381637911, 1381637910, 1381637729, 1381637726, 1381637723, 1381637720, 1381637716, 1381637440, 1381637439, 1381637438, 1381637437, 1381637436, 1381637435, 1381637363, 1381637362, 1381637361, 1381637210, 1381637208, 1381637206, 1381637204, 1381637202, 1381636981, 1381636979, 1381636977, 1381636975, 1381636973, 1381636515, 1381636512, 1381636509, 1381635884, 1381635881, 1381635878, 1381635875, 1381635872, 1381635869, 1381635360, 1381635358, 1381635356, 1381635354, 1381634837, 1381634834, 1381634831, 1381634828]} final : False mtd_id 4302 list_pids : [1381638499, 1381638498, 1381638497, 1381638496, 1381638495, 1381638450, 1381638449, 1381638448] Looping around the photos to save general results len do output : 1 /26563505. 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, '3668232') ('4302', '26563505', '1381638499', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638498', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638497', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638496', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638495', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638450', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638449', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638448', None, None, None, None, None, '3668232') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26563505', "{'autre_refus': 26563534, 'Carton_gris': 26563535, 'papier': 26563536, 'flou': 26563537, 'Carton_brun': 26563538, 'kraft': 26563539, 'Teint_Dans_La_Masse': 26563540, 'environnement': 26563541, 'cartonnette': 26563542, 'mal_croppe': 26563544, 'plastique': 26563545, 'metal': 26563546}", None, None, None, None, '3668232'), ('4302', '26563505', '1381638499', None, None, None, None, None, '3668232'), ('4302', '26563505', '1381638498', None, None, None, None, None, '3668232'), ('4302', '26563505', '1381638497', None, None, None, None, None, '3668232'), ('4302', '26563505', '1381638496', None, None, None, None, None, '3668232'), ('4302', '26563505', '1381638495', None, None, None, None, None, '3668232'), ('4302', '26563505', '1381638450', None, None, None, None, None, '3668232'), ('4302', '26563505', '1381638449', None, None, None, None, None, '3668232'), ('4302', '26563505', '1381638448', None, None, None, None, None, '3668232')] time used for this insertion : 0.016445159912109375 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8040111064910889 time spend to save output : 0.016735315322875977 total time spend for step 1 : 1.8207464218139648 step2:final Fri Sep 5 07:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (26563505) 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 26563505 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1381634837,1381634834,1381634831,1381634828,1381635360,1381635358,1381635356,1381635354,1381635884,1381635881,1381635878,1381635875,1381635872,1381635869,1381636515,1381636512,1381636509,1381636981,1381636979,1381636977,1381636975,1381636973,1381637210,1381637208,1381637206,1381637204,1381637202,1381637363,1381637362,1381637361,1381637440,1381637439,1381637438,1381637437,1381637436,1381637435,1381637729,1381637726,1381637723,1381637720,1381637716,1381637913,1381637912,1381637911,1381637910,1381638038,1381638035,1381638033,1381638031,1381638029,1381638299,1381638297,1381638296,1381638295,1381638450,1381638449,1381638448,1381638499,1381638498,1381638497,1381638496,1381638495); 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([26563505]) Inside saveOutput : final : False verbose : True original output for save of step final : {1381638499: ('0.063863720813574',), 1381638498: ('0.063863720813574',), 1381638497: ('0.063863720813574',), 1381638496: ('0.063863720813574',), 1381638495: ('0.063863720813574',), 1381638450: ('0.063863720813574',), 1381638449: ('0.063863720813574',), 1381638448: ('0.063863720813574',)} new output for save of step final : {1381638499: ('0.063863720813574',), 1381638498: ('0.063863720813574',), 1381638497: ('0.063863720813574',), 1381638496: ('0.063863720813574',), 1381638495: ('0.063863720813574',), 1381638450: ('0.063863720813574',), 1381638449: ('0.063863720813574',), 1381638448: ('0.063863720813574',)} [1381638499, 1381638498, 1381638497, 1381638496, 1381638495, 1381638450, 1381638449, 1381638448] map_info['map_portfolio_photo'] : {26563505: [1381638499, 1381638498, 1381638497, 1381638496, 1381638495, 1381638450, 1381638449, 1381638448, 1381638299, 1381638297, 1381638296, 1381638295, 1381638038, 1381638035, 1381638033, 1381638031, 1381638029, 1381637913, 1381637912, 1381637911, 1381637910, 1381637729, 1381637726, 1381637723, 1381637720, 1381637716, 1381637440, 1381637439, 1381637438, 1381637437, 1381637436, 1381637435, 1381637363, 1381637362, 1381637361, 1381637210, 1381637208, 1381637206, 1381637204, 1381637202, 1381636981, 1381636979, 1381636977, 1381636975, 1381636973, 1381636515, 1381636512, 1381636509, 1381635884, 1381635881, 1381635878, 1381635875, 1381635872, 1381635869, 1381635360, 1381635358, 1381635356, 1381635354, 1381634837, 1381634834, 1381634831, 1381634828]} final : False mtd_id 4302 list_pids : [1381638499, 1381638498, 1381638497, 1381638496, 1381638495, 1381638450, 1381638449, 1381638448] Looping around the photos to save general results len do output : 8 /1381638499.Didn't retrieve data . /1381638498.Didn't retrieve data . /1381638497.Didn't retrieve data . /1381638496.Didn't retrieve data . /1381638495.Didn't retrieve data . /1381638450.Didn't retrieve data . /1381638449.Didn't retrieve data . /1381638448.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, '3668232') ('4302', '26563505', '1381638499', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638498', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638497', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638496', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638495', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638450', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638449', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638448', None, None, None, None, None, '3668232') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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', '26563505', '1381638499', '0.063863720813574', None, None, None, None, '3668232'), ('4302', '26563505', '1381638498', '0.063863720813574', None, None, None, None, '3668232'), ('4302', '26563505', '1381638497', '0.063863720813574', None, None, None, None, '3668232'), ('4302', '26563505', '1381638496', '0.063863720813574', None, None, None, None, '3668232'), ('4302', '26563505', '1381638495', '0.063863720813574', None, None, None, None, '3668232'), ('4302', '26563505', '1381638450', '0.063863720813574', None, None, None, None, '3668232'), ('4302', '26563505', '1381638449', '0.063863720813574', None, None, None, None, '3668232'), ('4302', '26563505', '1381638448', '0.063863720813574', None, None, None, None, '3668232')] time used for this insertion : 0.014276981353759766 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.14501953125 time spend to save output : 0.014707803726196289 total time spend for step 2 : 0.1597273349761963 step3:velours_tree Fri Sep 5 07:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {26563505: [{'autre_refus': 26563534, 'Carton_gris': 26563535, 'papier': 26563536, 'flou': 26563537, 'Carton_brun': 26563538, 'kraft': 26563539, 'Teint_Dans_La_Masse': 26563540, 'environnement': 26563541, 'cartonnette': 26563542, 'mal_croppe': 26563544, 'plastique': 26563545, 'metal': 26563546}]} input_args_next_step : {26563505: ()} output_args : {26563505: [{'autre_refus': 26563534, 'Carton_gris': 26563535, 'papier': 26563536, 'flou': 26563537, 'Carton_brun': 26563538, 'kraft': 26563539, 'Teint_Dans_La_Masse': 26563540, 'environnement': 26563541, 'cartonnette': 26563542, 'mal_croppe': 26563544, 'plastique': 26563545, 'metal': 26563546}]} args : 26563505 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 : ({'autre_refus': 26563534, 'Carton_gris': 26563535, 'papier': 26563536, 'flou': 26563537, 'Carton_brun': 26563538, 'kraft': 26563539, 'Teint_Dans_La_Masse': 26563540, 'environnement': 26563541, 'cartonnette': 26563542, 'mal_croppe': 26563544, 'plastique': 26563545, 'metal': 26563546},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26563505) 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([26563505]) 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.30246710777282715 time spend to save output : 4.38690185546875e-05 total time spend for step 3 : 0.30251097679138184 step4:send_mail_cod Fri Sep 5 07:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1381638499: ('0.063863720813574',), 1381638498: ('0.063863720813574',), 1381638497: ('0.063863720813574',), 1381638496: ('0.063863720813574',), 1381638495: ('0.063863720813574',), 1381638450: ('0.063863720813574',), 1381638449: ('0.063863720813574',), 1381638448: ('0.063863720813574',)} input_args_next_step : {1381638499: ()} output_args : {1381638499: ('0.063863720813574',), 1381638498: ('0.063863720813574',), 1381638497: ('0.063863720813574',), 1381638496: ('0.063863720813574',), 1381638495: ('0.063863720813574',), 1381638450: ('0.063863720813574',), 1381638449: ('0.063863720813574',), 1381638448: ('0.063863720813574',)} args : 1381638499 depend.output_id : 0 input_args_next_step : {1381638499: ('0.063863720813574',), 1381638498: ()} output_args : {1381638499: ('0.063863720813574',), 1381638498: ('0.063863720813574',), 1381638497: ('0.063863720813574',), 1381638496: ('0.063863720813574',), 1381638495: ('0.063863720813574',), 1381638450: ('0.063863720813574',), 1381638449: ('0.063863720813574',), 1381638448: ('0.063863720813574',)} args : 1381638498 depend.output_id : 0 input_args_next_step : {1381638499: ('0.063863720813574',), 1381638498: ('0.063863720813574',), 1381638497: ()} output_args : {1381638499: ('0.063863720813574',), 1381638498: ('0.063863720813574',), 1381638497: ('0.063863720813574',), 1381638496: ('0.063863720813574',), 1381638495: ('0.063863720813574',), 1381638450: ('0.063863720813574',), 1381638449: ('0.063863720813574',), 1381638448: ('0.063863720813574',)} args : 1381638497 depend.output_id : 0 input_args_next_step : {1381638499: ('0.063863720813574',), 1381638498: ('0.063863720813574',), 1381638497: ('0.063863720813574',), 1381638496: ()} output_args : {1381638499: ('0.063863720813574',), 1381638498: ('0.063863720813574',), 1381638497: ('0.063863720813574',), 1381638496: ('0.063863720813574',), 1381638495: ('0.063863720813574',), 1381638450: ('0.063863720813574',), 1381638449: ('0.063863720813574',), 1381638448: ('0.063863720813574',)} args : 1381638496 depend.output_id : 0 input_args_next_step : {1381638499: ('0.063863720813574',), 1381638498: ('0.063863720813574',), 1381638497: ('0.063863720813574',), 1381638496: ('0.063863720813574',), 1381638495: ()} output_args : {1381638499: ('0.063863720813574',), 1381638498: ('0.063863720813574',), 1381638497: ('0.063863720813574',), 1381638496: ('0.063863720813574',), 1381638495: ('0.063863720813574',), 1381638450: ('0.063863720813574',), 1381638449: ('0.063863720813574',), 1381638448: ('0.063863720813574',)} args : 1381638495 depend.output_id : 0 input_args_next_step : {1381638499: ('0.063863720813574',), 1381638498: ('0.063863720813574',), 1381638497: ('0.063863720813574',), 1381638496: ('0.063863720813574',), 1381638495: ('0.063863720813574',), 1381638450: ()} output_args : {1381638499: ('0.063863720813574',), 1381638498: ('0.063863720813574',), 1381638497: ('0.063863720813574',), 1381638496: ('0.063863720813574',), 1381638495: ('0.063863720813574',), 1381638450: ('0.063863720813574',), 1381638449: ('0.063863720813574',), 1381638448: ('0.063863720813574',)} args : 1381638450 depend.output_id : 0 input_args_next_step : {1381638499: ('0.063863720813574',), 1381638498: ('0.063863720813574',), 1381638497: ('0.063863720813574',), 1381638496: ('0.063863720813574',), 1381638495: ('0.063863720813574',), 1381638450: ('0.063863720813574',), 1381638449: ()} output_args : {1381638499: ('0.063863720813574',), 1381638498: ('0.063863720813574',), 1381638497: ('0.063863720813574',), 1381638496: ('0.063863720813574',), 1381638495: ('0.063863720813574',), 1381638450: ('0.063863720813574',), 1381638449: ('0.063863720813574',), 1381638448: ('0.063863720813574',)} args : 1381638449 depend.output_id : 0 input_args_next_step : {1381638499: ('0.063863720813574',), 1381638498: ('0.063863720813574',), 1381638497: ('0.063863720813574',), 1381638496: ('0.063863720813574',), 1381638495: ('0.063863720813574',), 1381638450: ('0.063863720813574',), 1381638449: ('0.063863720813574',), 1381638448: ()} output_args : {1381638499: ('0.063863720813574',), 1381638498: ('0.063863720813574',), 1381638497: ('0.063863720813574',), 1381638496: ('0.063863720813574',), 1381638495: ('0.063863720813574',), 1381638450: ('0.063863720813574',), 1381638449: ('0.063863720813574',), 1381638448: ('0.063863720813574',)} args : 1381638448 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 : {26563505: [{'autre_refus': 26563534, 'Carton_gris': 26563535, 'papier': 26563536, 'flou': 26563537, 'Carton_brun': 26563538, 'kraft': 26563539, 'Teint_Dans_La_Masse': 26563540, 'environnement': 26563541, 'cartonnette': 26563542, 'mal_croppe': 26563544, 'plastique': 26563545, 'metal': 26563546}]} input_args_next_step : {1381638499: ('0.063863720813574',), 1381638498: ('0.063863720813574',), 1381638497: ('0.063863720813574',), 1381638496: ('0.063863720813574',), 1381638495: ('0.063863720813574',), 1381638450: ('0.063863720813574',), 1381638449: ('0.063863720813574',), 1381638448: ('0.063863720813574',), 26563505: ()} output_args : {26563505: [{'autre_refus': 26563534, 'Carton_gris': 26563535, 'papier': 26563536, 'flou': 26563537, 'Carton_brun': 26563538, 'kraft': 26563539, 'Teint_Dans_La_Masse': 26563540, 'environnement': 26563541, 'cartonnette': 26563542, 'mal_croppe': 26563544, 'plastique': 26563545, 'metal': 26563546}]} args : 26563505 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 :9, first value : ('0.063863720813574',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26563505) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1381638499,1381638498,1381638497,1381638496,1381638495,1381638450,1381638449,1381638448) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1381638448 begin to download photo : 1381638450 begin to download photo : 1381638496 begin to download photo : 1381638498 download finish for photo 1381638448 begin to download photo : 1381638449 download finish for photo 1381638498 begin to download photo : 1381638499 download finish for photo 1381638450 begin to download photo : 1381638495 download finish for photo 1381638496 begin to download photo : 1381638497 download finish for photo 1381638449 download finish for photo 1381638499 download finish for photo 1381638497 download finish for photo 1381638495 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 : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P26563505_05-09-2025_07_14_59.pdf 26563534 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26563534 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381638210: '1757049066_1443601_1381637362_bfd8420533e78aa748f7c1eb51b907f5_97655532_rle_crop_3945453142_0.png'} change filename to text .imagette265635341757049299/ imagette265635341757049299/1757049066_1443601_1381637362_bfd8420533e78aa748f7c1eb51b907f5_97655532_rle_crop_3945453142_0.png.png imagette265635371757049299/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/08b412619b858a37ee7507ee66a05755_28379453.png imagette265635341757049299 26563537 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26563537 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265635371757049299 26563539 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26563539 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381637525: '1757048824_1433306_1381635881_2f7d0e46988cce60f657a307406b9ca8_51673239_rle_crop_3945449460_0.png'} change filename to text .imagette265635391757049299/ imagette265635391757049299/1757048824_1433306_1381635881_2f7d0e46988cce60f657a307406b9ca8_51673239_rle_crop_3945449460_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/f88a5a550c6a49dad0bcbd0c3dcd490e_84711855.png imagette265635391757049299 26563542 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26563542 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381637079: '1757048707_1427880_1381635358_0dd73001661014096cb17c4bc07ce69d_7941786_rle_crop_3945446583_0.png', 1381637501: '1757048824_1433306_1381635878_c088de0d971e4baed882a7357c9f35f9_73162361_rle_crop_3945449535_0.png', 1381637502: '1757048824_1433306_1381635875_7d9b4415e731fda84edd131029c5c9a4_98112054_rle_crop_3945449567_0.png', 1381637503: '1757048824_1433306_1381635872_e9abffaef0de52df3e0f59f7bf21d914_68483474_rle_crop_3945449583_0.png', 1381637504: '1757048824_1433306_1381635872_e9abffaef0de52df3e0f59f7bf21d914_68483474_rle_crop_3945449577_0.png', 1381637505: '1757048824_1433306_1381635869_bed590904caeebf1d699457c3d105e6c_1194843_rle_crop_3945449593_0.png', 1381637886: '1757048946_1438744_1381635884_28dbfdc4a6a5cac4930bbcbb48854d5f_64286506_rle_crop_3945451001_0.png', 1381637887: '1757048946_1438744_1381635358_0dd73001661014096cb17c4bc07ce69d_7941786_rle_crop_3945446583_0.png', 1381638213: '1757049066_1443601_1381637362_bfd8420533e78aa748f7c1eb51b907f5_97655532_rle_crop_3945453148_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/26ac741a777d950691fd373eac0a8279_20266230.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/e96947e5ea144ce6a7587155cd3b5d54_79873279.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/5b75cc2d723be1392ad8a656296c7103_17519001.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/ccf3a26b7a4e95ae6ce060adb8c80c7c_39315585.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/d0d66633566d44a551745de5d6595c5f_13287858.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/e289b314bcb453fdfa862a082d8f2828_12620398.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/addccf687ca49d120d5e0366c6a2af88_13298002.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/26ac741a777d950691fd373eac0a8279_68690915.png change filename to text .imagette265635421757049300/ imagette265635421757049300/1757048707_1427880_1381635358_0dd73001661014096cb17c4bc07ce69d_7941786_rle_crop_3945446583_0.png.png imagette265635421757049300/1757049066_1443601_1381637362_bfd8420533e78aa748f7c1eb51b907f5_97655532_rle_crop_3945453148_0.png.png imagette265635421757049300/1757048946_1438744_1381635358_0dd73001661014096cb17c4bc07ce69d_7941786_rle_crop_3945446583_0.png.png imagette265635421757049300/1757048824_1433306_1381635875_7d9b4415e731fda84edd131029c5c9a4_98112054_rle_crop_3945449567_0.png.png imagette265635421757049300/1757048946_1438744_1381635884_28dbfdc4a6a5cac4930bbcbb48854d5f_64286506_rle_crop_3945451001_0.png.png imagette265635421757049300/1757048824_1433306_1381635872_e9abffaef0de52df3e0f59f7bf21d914_68483474_rle_crop_3945449577_0.png.png imagette265635421757049300/1757048824_1433306_1381635872_e9abffaef0de52df3e0f59f7bf21d914_68483474_rle_crop_3945449583_0.png.png imagette265635421757049300/1757048824_1433306_1381635878_c088de0d971e4baed882a7357c9f35f9_73162361_rle_crop_3945449535_0.png.png imagette265635421757049300/1757048824_1433306_1381635869_bed590904caeebf1d699457c3d105e6c_1194843_rle_crop_3945449593_0.png.png imagette265635441757049300/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/3a26be42f241283590908963b1b30524_48792880.png imagette265635421757049300 26563544 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26563544 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265635441757049300 26563545 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26563545 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381637104: '1757048707_1427880_1381635358_0dd73001661014096cb17c4bc07ce69d_7941786_rle_crop_3945446586_0.png', 1381637900: '1757048946_1438744_1381635358_0dd73001661014096cb17c4bc07ce69d_7941786_rle_crop_3945446586_0.png', 1381638417: '1757049145_1447616_1381637911_c172c9ab71dc8aea93dd4dd6dce96714_60439294_rle_crop_3945453990_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/31fb9619e48089cf413ed4965543d821_36643269.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/31fb9619e48089cf413ed4965543d821_48437101.png change filename to text .imagette265635451757049300/ imagette265635451757049300/1757048946_1438744_1381635358_0dd73001661014096cb17c4bc07ce69d_7941786_rle_crop_3945446586_0.png.png imagette265635451757049300/1757049145_1447616_1381637911_c172c9ab71dc8aea93dd4dd6dce96714_60439294_rle_crop_3945453990_0.png.png imagette265635451757049300/1757048707_1427880_1381635358_0dd73001661014096cb17c4bc07ce69d_7941786_rle_crop_3945446586_0.png.png imagette265635461757049300/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/921f6ce183d7394f27d432c9da672392_25806566.png imagette265635451757049300 26563546 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26563546 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette265635461757049300 26563535 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26563535 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381637070: '1757048707_1427880_1381635356_c5718e50bc3df4c32cebb6ead5ff8b02_66345481_rle_crop_3945446599_0.png', 1381637072: '1757048707_1427880_1381635354_35bfa233a0b5fc5c8b1f324587f8d396_93509154_rle_crop_3945446620_0.png', 1381637884: '1757048946_1438744_1381635356_c5718e50bc3df4c32cebb6ead5ff8b02_66345481_rle_crop_3945446599_0.png', 1381637885: '1757048946_1438744_1381635354_35bfa233a0b5fc5c8b1f324587f8d396_93509154_rle_crop_3945446620_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/54e3430cc8740f10a46f2b2d69d80c2c_47814822.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/ed6fa859b561a483013a9ab173882276_94985180.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/54e3430cc8740f10a46f2b2d69d80c2c_6942567.png change filename to text .imagette265635351757049300/ imagette265635351757049300/1757048707_1427880_1381635356_c5718e50bc3df4c32cebb6ead5ff8b02_66345481_rle_crop_3945446599_0.png.png imagette265635351757049300/1757048946_1438744_1381635354_35bfa233a0b5fc5c8b1f324587f8d396_93509154_rle_crop_3945446620_0.png.png imagette265635351757049300/1757048946_1438744_1381635356_c5718e50bc3df4c32cebb6ead5ff8b02_66345481_rle_crop_3945446599_0.png.png imagette265635351757049300/1757048707_1427880_1381635354_35bfa233a0b5fc5c8b1f324587f8d396_93509154_rle_crop_3945446620_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/ed6fa859b561a483013a9ab173882276_77536739.png imagette265635351757049300 26563538 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26563538 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381637891: '1757048946_1438744_1381635356_c5718e50bc3df4c32cebb6ead5ff8b02_66345481_rle_crop_3945446596_0.png', 1381638473: '1757049186_1448490_1381637720_06661a42c515f98c3054719bdf1bbfaa_57061981_rle_crop_3945454710_0.png', 1381638472: '1757049186_1448490_1381637723_93d66eb8112a25bd091f97597b7ea6e2_35936978_rle_crop_3945454702_0.png', 1381638471: '1757049186_1448490_1381637723_93d66eb8112a25bd091f97597b7ea6e2_35936978_rle_crop_3945454698_0.png', 1381638215: '1757049066_1443601_1381637362_bfd8420533e78aa748f7c1eb51b907f5_97655532_rle_crop_3945453144_0.png', 1381637899: '1757048946_1438744_1381635354_35bfa233a0b5fc5c8b1f324587f8d396_93509154_rle_crop_3945446616_0.png', 1381637897: '1757048946_1438744_1381635354_35bfa233a0b5fc5c8b1f324587f8d396_93509154_rle_crop_3945446623_0.png', 1381637895: '1757048946_1438744_1381635354_35bfa233a0b5fc5c8b1f324587f8d396_93509154_rle_crop_3945446621_0.png', 1381637893: '1757048946_1438744_1381635356_c5718e50bc3df4c32cebb6ead5ff8b02_66345481_rle_crop_3945446598_0.png', 1381637090: '1757048707_1427880_1381635356_c5718e50bc3df4c32cebb6ead5ff8b02_66345481_rle_crop_3945446596_0.png', 1381637513: '1757048824_1433306_1381635875_7d9b4415e731fda84edd131029c5c9a4_98112054_rle_crop_3945449566_0.png', 1381637511: '1757048824_1433306_1381635878_c088de0d971e4baed882a7357c9f35f9_73162361_rle_crop_3945449537_0.png', 1381637510: '1757048824_1433306_1381635881_2f7d0e46988cce60f657a307406b9ca8_51673239_rle_crop_3945449465_0.png', 1381637509: '1757048824_1433306_1381635881_2f7d0e46988cce60f657a307406b9ca8_51673239_rle_crop_3945449462_0.png', 1381637098: '1757048707_1427880_1381635354_35bfa233a0b5fc5c8b1f324587f8d396_93509154_rle_crop_3945446616_0.png', 1381637096: '1757048707_1427880_1381635354_35bfa233a0b5fc5c8b1f324587f8d396_93509154_rle_crop_3945446623_0.png', 1381637094: '1757048707_1427880_1381635354_35bfa233a0b5fc5c8b1f324587f8d396_93509154_rle_crop_3945446621_0.png', 1381637092: '1757048707_1427880_1381635356_c5718e50bc3df4c32cebb6ead5ff8b02_66345481_rle_crop_3945446598_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/13dd73ec0d8aedde1476374805cbeade_70960663.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/c502e2acba32e61fbc87518235de4126_5373460.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/7fc0effb323141f4ef042219e6d35865_18962582.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/f87887a739e64b09a953476b7a36b419_18724329.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/556f7e9b485b5614502a9f6e4c684c53_78789705.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/a53244e9a0e134f6b1a39aea894b2c0b_14834977.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/8920914760e4813e91f02393f54ff2f8_80593962.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/2e89a230edee0e6405b28fa689118650_93834355.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/6f854cd70e49c057242813f5b3716d88_73293744.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/13dd73ec0d8aedde1476374805cbeade_56997375.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/c310f57e4612d70e4abc197009b1cce3_51415771.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/781bb30a04d084bd1e8cfc65d9e0365d_1974954.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/b8895e906661ea1baeb1c225e44eb581_77131181.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/282db6e1981932b2f2d4c06d39ba628f_25227247.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/a53244e9a0e134f6b1a39aea894b2c0b_40993420.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/8920914760e4813e91f02393f54ff2f8_10517568.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/2e89a230edee0e6405b28fa689118650_73744834.png change filename to text .imagette265635381757049301/ imagette265635381757049301/1757049186_1448490_1381637720_06661a42c515f98c3054719bdf1bbfaa_57061981_rle_crop_3945454710_0.png.png imagette265635381757049301/1757048824_1433306_1381635881_2f7d0e46988cce60f657a307406b9ca8_51673239_rle_crop_3945449465_0.png.png imagette265635381757049301/1757048824_1433306_1381635878_c088de0d971e4baed882a7357c9f35f9_73162361_rle_crop_3945449537_0.png.png imagette265635381757049301/1757048946_1438744_1381635356_c5718e50bc3df4c32cebb6ead5ff8b02_66345481_rle_crop_3945446598_0.png.png imagette265635381757049301/1757048824_1433306_1381635875_7d9b4415e731fda84edd131029c5c9a4_98112054_rle_crop_3945449566_0.png.png imagette265635381757049301/1757048946_1438744_1381635356_c5718e50bc3df4c32cebb6ead5ff8b02_66345481_rle_crop_3945446596_0.png.png imagette265635381757049301/1757048707_1427880_1381635356_c5718e50bc3df4c32cebb6ead5ff8b02_66345481_rle_crop_3945446596_0.png.png imagette265635381757049301/1757048946_1438744_1381635354_35bfa233a0b5fc5c8b1f324587f8d396_93509154_rle_crop_3945446623_0.png.png imagette265635381757049301/1757048707_1427880_1381635354_35bfa233a0b5fc5c8b1f324587f8d396_93509154_rle_crop_3945446621_0.png.png imagette265635381757049301/1757049186_1448490_1381637723_93d66eb8112a25bd091f97597b7ea6e2_35936978_rle_crop_3945454698_0.png.png imagette265635381757049301/1757049186_1448490_1381637723_93d66eb8112a25bd091f97597b7ea6e2_35936978_rle_crop_3945454702_0.png.png imagette265635381757049301/1757048707_1427880_1381635354_35bfa233a0b5fc5c8b1f324587f8d396_93509154_rle_crop_3945446616_0.png.png imagette265635381757049301/1757048946_1438744_1381635354_35bfa233a0b5fc5c8b1f324587f8d396_93509154_rle_crop_3945446616_0.png.png imagette265635381757049301/1757048707_1427880_1381635356_c5718e50bc3df4c32cebb6ead5ff8b02_66345481_rle_crop_3945446598_0.png.png imagette265635381757049301/1757048824_1433306_1381635881_2f7d0e46988cce60f657a307406b9ca8_51673239_rle_crop_3945449462_0.png.png imagette265635381757049301/1757049066_1443601_1381637362_bfd8420533e78aa748f7c1eb51b907f5_97655532_rle_crop_3945453144_0.png.png imagette265635381757049301/1757048707_1427880_1381635354_35bfa233a0b5fc5c8b1f324587f8d396_93509154_rle_crop_3945446623_0.png.png imagette265635381757049301/1757048946_1438744_1381635354_35bfa233a0b5fc5c8b1f324587f8d396_93509154_rle_crop_3945446621_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/6f854cd70e49c057242813f5b3716d88_93646481.png imagette265635381757049301 26563540 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26563540 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1381637477: '1757048824_1433306_1381635872_e9abffaef0de52df3e0f59f7bf21d914_68483474_rle_crop_3945449589_0.png', 1381638470: '1757049186_1448490_1381637723_93d66eb8112a25bd091f97597b7ea6e2_35936978_rle_crop_3945454699_0.png', 1381638412: '1757049145_1447616_1381637911_c172c9ab71dc8aea93dd4dd6dce96714_60439294_rle_crop_3945453989_0.png', 1381638202: '1757049066_1443601_1381637362_bfd8420533e78aa748f7c1eb51b907f5_97655532_rle_crop_3945453145_0.png', 1381638200: '1757049066_1443601_1381637362_bfd8420533e78aa748f7c1eb51b907f5_97655532_rle_crop_3945453153_0.png', 1381638198: '1757049066_1443601_1381637440_7c6b9fbb5745bb984de25ff0ae89e4b8_59534421_rle_crop_3945453094_0.png', 1381637882: '1757048946_1438744_1381635354_35bfa233a0b5fc5c8b1f324587f8d396_93509154_rle_crop_3945446617_0.png', 1381637881: '1757048946_1438744_1381635356_c5718e50bc3df4c32cebb6ead5ff8b02_66345481_rle_crop_3945446597_0.png', 1381637880: '1757048946_1438744_1381635884_28dbfdc4a6a5cac4930bbcbb48854d5f_64286506_rle_crop_3945451005_0.png', 1381637481: '1757048824_1433306_1381635869_bed590904caeebf1d699457c3d105e6c_1194843_rle_crop_3945449602_0.png', 1381637058: '1757048707_1427880_1381635356_c5718e50bc3df4c32cebb6ead5ff8b02_66345481_rle_crop_3945446597_0.png', 1381637473: '1757048824_1433306_1381635875_7d9b4415e731fda84edd131029c5c9a4_98112054_rle_crop_3945449570_0.png', 1381637469: '1757048824_1433306_1381635875_7d9b4415e731fda84edd131029c5c9a4_98112054_rle_crop_3945449574_0.png', 1381637464: '1757048824_1433306_1381635878_c088de0d971e4baed882a7357c9f35f9_73162361_rle_crop_3945449541_0.png', 1381637460: '1757048824_1433306_1381635878_c088de0d971e4baed882a7357c9f35f9_73162361_rle_crop_3945449540_0.png', 1381637455: '1757048824_1433306_1381635881_2f7d0e46988cce60f657a307406b9ca8_51673239_rle_crop_3945449464_0.png', 1381637451: '1757048824_1433306_1381635881_2f7d0e46988cce60f657a307406b9ca8_51673239_rle_crop_3945449469_0.png', 1381637448: '1757048824_1433306_1381635881_2f7d0e46988cce60f657a307406b9ca8_51673239_rle_crop_3945449468_0.png', 1381637447: '1757048824_1433306_1381635881_2f7d0e46988cce60f657a307406b9ca8_51673239_rle_crop_3945449463_0.png', 1381637062: '1757048707_1427880_1381635354_35bfa233a0b5fc5c8b1f324587f8d396_93509154_rle_crop_3945446617_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/239b51b80975223fc7885272f3741da1_2491798.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/aac4c674cef75125d2daf5de2f009d62_12703372.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/c74e1c76bcbd8878ddf990a022269bc1_44168548.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/73d67d238990131ca8f8b7b4b32cb8fe_34616112.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/c8da5b9ed83ef9354edfd3db38d850ec_13265697.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/66ed9a51428edaa82e171c6193301c4c_29829473.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/e584aa9956a7cdcc1597aceb1192cb05_56098086.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/48b32b0e8d105caacccd93c1e78b1221_89809964.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/89fa4ac0adec85e263c8fb64388d5c37_30281932.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/4cb32fa8054a68b3129ec83eb536cb80_24674641.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/48b32b0e8d105caacccd93c1e78b1221_40192425.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/9ae6d0762a4451550f4c8c59f8ede68d_88458266.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/1ab77dcf4e9364d36449e2ed3dea2171_57373928.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/3085a964aafd9bb4ae859ec922721c7b_71294974.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/8e2872bf83f3557e4a4a81cee50e4c61_99745205.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/3a21100d65969f90e3f5be2b1daa84a9_31355139.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/a33fd6cb82a2fb327b8448acfa700fcc_46239568.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/11f3a8618bedb8f8cc1ca9ae40fc28d1_36027552.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/6659ae337f1932c2ee637ca85b462795_60904845.png change filename to text .imagette265635401757049302/ imagette265635401757049302/1757048707_1427880_1381635356_c5718e50bc3df4c32cebb6ead5ff8b02_66345481_rle_crop_3945446597_0.png.png imagette265635401757049302/1757049066_1443601_1381637362_bfd8420533e78aa748f7c1eb51b907f5_97655532_rle_crop_3945453145_0.png.png imagette265635401757049302/1757048824_1433306_1381635878_c088de0d971e4baed882a7357c9f35f9_73162361_rle_crop_3945449540_0.png.png imagette265635401757049302/1757049145_1447616_1381637911_c172c9ab71dc8aea93dd4dd6dce96714_60439294_rle_crop_3945453989_0.png.png imagette265635401757049302/1757048824_1433306_1381635881_2f7d0e46988cce60f657a307406b9ca8_51673239_rle_crop_3945449469_0.png.png imagette265635401757049302/1757048824_1433306_1381635878_c088de0d971e4baed882a7357c9f35f9_73162361_rle_crop_3945449541_0.png.png imagette265635401757049302/1757048824_1433306_1381635875_7d9b4415e731fda84edd131029c5c9a4_98112054_rle_crop_3945449570_0.png.png imagette265635401757049302/1757048824_1433306_1381635881_2f7d0e46988cce60f657a307406b9ca8_51673239_rle_crop_3945449463_0.png.png imagette265635401757049302/1757048824_1433306_1381635869_bed590904caeebf1d699457c3d105e6c_1194843_rle_crop_3945449602_0.png.png imagette265635401757049302/1757049066_1443601_1381637440_7c6b9fbb5745bb984de25ff0ae89e4b8_59534421_rle_crop_3945453094_0.png.png imagette265635401757049302/1757048946_1438744_1381635884_28dbfdc4a6a5cac4930bbcbb48854d5f_64286506_rle_crop_3945451005_0.png.png imagette265635401757049302/1757049066_1443601_1381637362_bfd8420533e78aa748f7c1eb51b907f5_97655532_rle_crop_3945453153_0.png.png imagette265635401757049302/1757048707_1427880_1381635354_35bfa233a0b5fc5c8b1f324587f8d396_93509154_rle_crop_3945446617_0.png.png imagette265635401757049302/1757048824_1433306_1381635875_7d9b4415e731fda84edd131029c5c9a4_98112054_rle_crop_3945449574_0.png.png imagette265635401757049302/1757049186_1448490_1381637723_93d66eb8112a25bd091f97597b7ea6e2_35936978_rle_crop_3945454699_0.png.png imagette265635401757049302/1757048824_1433306_1381635881_2f7d0e46988cce60f657a307406b9ca8_51673239_rle_crop_3945449468_0.png.png imagette265635401757049302/1757048824_1433306_1381635881_2f7d0e46988cce60f657a307406b9ca8_51673239_rle_crop_3945449464_0.png.png imagette265635401757049302/1757048946_1438744_1381635356_c5718e50bc3df4c32cebb6ead5ff8b02_66345481_rle_crop_3945446597_0.png.png imagette265635401757049302/1757048946_1438744_1381635354_35bfa233a0b5fc5c8b1f324587f8d396_93509154_rle_crop_3945446617_0.png.png imagette265635401757049302/1757048824_1433306_1381635872_e9abffaef0de52df3e0f59f7bf21d914_68483474_rle_crop_3945449589_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/e584aa9956a7cdcc1597aceb1192cb05_1742168.png imagette265635401757049302 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26563505 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26563548,26563549,26563550,26563551,26563552,26563553,26563554,26563555,26563556,26563557,26563558,26563559?tags=autre_refus,Carton_gris,papier,flou,Carton_brun,kraft,Teint_Dans_La_Masse,environnement,cartonnette,mal_croppe,plastique,metal your option no_mail is active, we will not send the real mail to your client args[1381638499] : ('0.063863720813574',) no score found for photo 1381638499 We are sending mail with results at report@fotonower.com args[1381638498] : ('0.063863720813574',) no score found for photo 1381638498 We are sending mail with results at report@fotonower.com args[1381638497] : ('0.063863720813574',) no score found for photo 1381638497 We are sending mail with results at report@fotonower.com args[1381638496] : ('0.063863720813574',) no score found for photo 1381638496 We are sending mail with results at report@fotonower.com args[1381638495] : ('0.063863720813574',) no score found for photo 1381638495 We are sending mail with results at report@fotonower.com args[1381638450] : ('0.063863720813574',) no score found for photo 1381638450 We are sending mail with results at report@fotonower.com args[1381638449] : ('0.063863720813574',) no score found for photo 1381638449 We are sending mail with results at report@fotonower.com args[1381638448] : ('0.063863720813574',) no score found for photo 1381638448 We are sending mail with results at report@fotonower.com refus_total : 0.063863720813574 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26563505 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_P26563505_05-09-2025_07_14_59.pdf results_Auto_P26563505_05-09-2025_07_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26563505_05-09-2025_07_14_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','26563505','results_Auto_P26563505_05-09-2025_07_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26563505_05-09-2025_07_14_59.pdf','pdf','','0.2','0.063863720813574') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26563505]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1381638499, 1381638498, 1381638497, 1381638496, 1381638495, 1381638450, 1381638449, 1381638448] map_info['map_portfolio_photo'] : {26563505: [1381638499, 1381638498, 1381638497, 1381638496, 1381638495, 1381638450, 1381638449, 1381638448, 1381638299, 1381638297, 1381638296, 1381638295, 1381638038, 1381638035, 1381638033, 1381638031, 1381638029, 1381637913, 1381637912, 1381637911, 1381637910, 1381637729, 1381637726, 1381637723, 1381637720, 1381637716, 1381637440, 1381637439, 1381637438, 1381637437, 1381637436, 1381637435, 1381637363, 1381637362, 1381637361, 1381637210, 1381637208, 1381637206, 1381637204, 1381637202, 1381636981, 1381636979, 1381636977, 1381636975, 1381636973, 1381636515, 1381636512, 1381636509, 1381635884, 1381635881, 1381635878, 1381635875, 1381635872, 1381635869, 1381635360, 1381635358, 1381635356, 1381635354, 1381634837, 1381634834, 1381634831, 1381634828]} final : False mtd_id 4302 list_pids : [1381638499, 1381638498, 1381638497, 1381638496, 1381638495, 1381638450, 1381638449, 1381638448] 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, '3668232') ('4302', '26563505', '1381638499', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638498', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638497', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638496', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638495', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638450', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638449', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638448', None, None, None, None, None, '3668232') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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', '26563505', '1381638499', None, None, None, None, None, '3668232'), ('4302', '26563505', '1381638498', None, None, None, None, None, '3668232'), ('4302', '26563505', '1381638497', None, None, None, None, None, '3668232'), ('4302', '26563505', '1381638496', None, None, None, None, None, '3668232'), ('4302', '26563505', '1381638495', None, None, None, None, None, '3668232'), ('4302', '26563505', '1381638450', None, None, None, None, None, '3668232'), ('4302', '26563505', '1381638449', None, None, None, None, None, '3668232'), ('4302', '26563505', '1381638448', None, None, None, None, None, '3668232')] time used for this insertion : 0.02608489990234375 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.293163537979126 time spend to save output : 0.026337146759033203 total time spend for step 4 : 5.319500684738159 step5:split_time_score Fri Sep 5 07:15:04 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 : ['26563505'] 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 : [('26563505',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26563505) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1381638448: {'path': 'temp/1757049299_3417522_1381638448_a3b6249fc39ac48d85aa2642d589c796_1324039.jpg', 'extension': 'jpg'}, 1381638449: {'path': 'temp/1757049299_3417522_1381638449_dc1c1c112f493316405193ca8129f743_46825969.jpg', 'extension': 'jpg'}, 1381638498: {'path': 'temp/1757049299_3417522_1381638498_22ca6abc2209df66e973a387519637bd_31989576.jpg', 'extension': 'jpg'}, 1381638499: {'path': 'temp/1757049299_3417522_1381638499_58c16b951a723cb4eac89e2a454fddb3_63657933.jpg', 'extension': 'jpg'}, 1381638496: {'path': 'temp/1757049299_3417522_1381638496_9af71bba74b5541288d7e25b1548f433_52436725.jpg', 'extension': 'jpg'}, 1381638497: {'path': 'temp/1757049299_3417522_1381638497_c345d9036a9e03b154cd65c275df1548_75395330.jpg', 'extension': 'jpg'}, 1381638450: {'path': 'temp/1757049299_3417522_1381638450_560ce71d2c923def9a8bebc37de89d96_11801930.jpg', 'extension': 'jpg'}, 1381638495: {'path': 'temp/1757049299_3417522_1381638495_ba8da882aeaf8c008aadda792f813856_7138180.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 = 26563505; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 26563505 group by h (('07', 62),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26563505 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 (26563505) 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 (26563505) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05092025 26563505 Nombre de photos uploadées : 62 / 23040 (0%) 05092025 26563505 Nombre de photos taguées (types de déchets): 0 / 62 (0%) 05092025 26563505 Nombre de photos taguées (volume) : 0 / 62 (0%) [{'photo_id': 1381634837, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/d45ffb499b99da2eff998878b38763a9_19529001.jpg', 'username': None, 'uploaded_at': 1757048473, 'text': 'image_05092025_07_00_14_10197.jpg'}, {'photo_id': 1381634834, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/bc5620ad961c1413929bfd5b16e4d675_77506787.jpg', 'username': None, 'uploaded_at': 1757048473, 'text': 'image_05092025_07_00_24_10136.jpg'}, {'photo_id': 1381634831, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/56e0ccfd44f2a8879452000c75057b1d_26064905.jpg', 'username': None, 'uploaded_at': 1757048473, 'text': 'image_05092025_07_00_34_10146.jpg'}, {'photo_id': 1381634828, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/5/dc98cec49fd935d390a3886b857495ee_54689612.jpg', 'username': None, 'uploaded_at': 1757048473, 'text': 'image_05092025_07_00_44_10139.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 3.337860107421875e-06 ?????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001653909683227539 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26563505, '2025-09-05' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-09-05' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2234129,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21547484397888184 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= 2234129 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26552286, 'dashboard_result_id': 14789120, '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_P26552286_05-09-2025_06_19_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26552308, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26552950, 'dashboard_result_id': 14789121, '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_P26552950_05-09-2025_06_20_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26552954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552965, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26553483, 'dashboard_result_id': 14789122, '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_P26553483_05-09-2025_06_20_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553501, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26553954, 'dashboard_result_id': 14789123, '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_P26553954_05-09-2025_06_20_40.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553974, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26555558, 'dashboard_result_id': 14789124, '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_P26555558_05-09-2025_06_21_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26555617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555628, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26555560, 'dashboard_result_id': 14789125, '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_P26555560_05-09-2025_06_22_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26555568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555575, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26556761, 'dashboard_result_id': 14789126, '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_P26556761_05-09-2025_06_22_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26556766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556777, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26556619, 'dashboard_result_id': 14789127, '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_P26556619_05-09-2025_06_23_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26556649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556660, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26556621, 'dashboard_result_id': 14789128, '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_P26556621_05-09-2025_06_24_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556636, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26557110, 'dashboard_result_id': 14789129, '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_P26557110_05-09-2025_06_24_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557129, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26557601, 'dashboard_result_id': 14789130, '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_P26557601_05-09-2025_06_25_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557606, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557615, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26557985, 'dashboard_result_id': 14789131, '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_P26557985_05-09-2025_06_25_41.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557999, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558000, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26558350, 'dashboard_result_id': 14789132, '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_P26558350_05-09-2025_06_26_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558364, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558368, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26558751, 'dashboard_result_id': 14789133, '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_P26558751_05-09-2025_06_26_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558771, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26559193, 'dashboard_result_id': 14789135, '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_P26559193_05-09-2025_06_27_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26559218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26559219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26559220, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26559221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26559222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26559223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26559224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26559225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26559226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26559228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26559229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26559230, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26561250, 'dashboard_result_id': 14789137, '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_P26561250_05-09-2025_05_49_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561265, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26561102, 'dashboard_result_id': 14789139, '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_P26561102_05-09-2025_05_47_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561135, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561141, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26561104, 'dashboard_result_id': 14789140, '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_P26561104_05-09-2025_05_48_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561189, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26561105, 'dashboard_result_id': 14789142, '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_P26561105_05-09-2025_06_03_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561106, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561114, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561117, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26561584, 'dashboard_result_id': 14789143, '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_P26561584_05-09-2025_06_17_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26561596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561604, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561607, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26562090, 'dashboard_result_id': 14789144, '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_P26562090_05-09-2025_06_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26562131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26562132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26562133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26562134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26562135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26562136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26562137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26562138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26562139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26562140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26562141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26562142, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26562602, 'dashboard_result_id': 14789145, '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_P26562602_05-09-2025_06_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26562613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26562614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26562615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26562616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26562617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26562618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26562619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26562620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26562621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26562622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26562623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26562624, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26562998, 'dashboard_result_id': 14789146, '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_P26562998_05-09-2025_07_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26563023, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26563024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26563025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26563026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26563027, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26563028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26563029, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26563030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26563031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26563032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26563033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26563034, 'pht': 3726}}"}, {'dashboat_entry_day': 2234129, 'dashboard_run_id': 2243332, 'mtr_portfolio_id': 26563505, 'dashboard_result_id': 14789147, '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_P26563505_05-09-2025_07_12_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26563534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26563535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26563536, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26563537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26563538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26563539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26563540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26563541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26563542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26563544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26563545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26563546, '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 = 26552286 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': 3667752, 'mtr_portfolio_id': 26552286, 'created_at': datetime.datetime(2025, 9, 5, 6, 19, 28), 'result': '0.04964269241984014', 'result_long': None, 'result_double': None}] Qualite : 0.04964269241984014 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26552286 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552286_05-09-2025_06_19_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26552286 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_P26552286_05-09-2025_06_19_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26552308, 'pht': 3726}}" where mtr_portfolio_id = 26552286 and dashboard_run_id = 2243332 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`=26552286 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789120, 0.04964269241984014, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552286_05-09-2025_06_19_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552297, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552298, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552304, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552306, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26552308, '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 = 26552950 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': 3667753, 'mtr_portfolio_id': 26552950, 'created_at': datetime.datetime(2025, 9, 5, 6, 19, 58), 'result': '0.052087121895723426', 'result_long': None, 'result_double': None}] Qualite : 0.052087121895723426 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26552950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552950_05-09-2025_06_20_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26552950 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_P26552950_05-09-2025_06_20_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26552954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552965, 'pht': 3726}}" where mtr_portfolio_id = 26552950 and dashboard_run_id = 2243332 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`=26552950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789121, 0.052087121895723426, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26552950_05-09-2025_06_20_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26552954, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26552955, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26552956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26552957, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26552958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26552959, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26552960, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26552961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26552962, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26552963, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26552964, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26552965, '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 = 26553483 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': 3667754, 'mtr_portfolio_id': 26553483, 'created_at': datetime.datetime(2025, 9, 5, 6, 20, 30), 'result': '0.04427018202150872', 'result_long': None, 'result_double': None}] Qualite : 0.04427018202150872 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26553483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553483_05-09-2025_06_20_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26553483 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_P26553483_05-09-2025_06_20_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553501, 'pht': 3726}}" where mtr_portfolio_id = 26553483 and dashboard_run_id = 2243332 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`=26553483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789122, 0.04427018202150872, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553483_05-09-2025_06_20_32.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553490, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553494, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553496, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553497, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553498, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553499, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553501, '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 = 26553954 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': 3667755, 'mtr_portfolio_id': 26553954, 'created_at': datetime.datetime(2025, 9, 5, 6, 20, 38), 'result': '0.038686864708222954', 'result_long': None, 'result_double': None}] Qualite : 0.038686864708222954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26553954 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553954_05-09-2025_06_20_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26553954 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_P26553954_05-09-2025_06_20_40.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553974, 'pht': 3726}}" where mtr_portfolio_id = 26553954 and dashboard_run_id = 2243332 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`=26553954 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789123, 0.038686864708222954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26553954_05-09-2025_06_20_40.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26553963, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26553964, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26553965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26553966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26553967, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26553968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26553969, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26553970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26553971, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26553972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26553973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26553974, '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 = 26555558 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': 3667756, 'mtr_portfolio_id': 26555558, 'created_at': datetime.datetime(2025, 9, 5, 6, 21, 30), 'result': '0.05693800466618908', 'result_long': None, 'result_double': None}] Qualite : 0.05693800466618908 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26555558 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555558_05-09-2025_06_21_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26555558 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_P26555558_05-09-2025_06_21_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26555617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555628, 'pht': 3726}}" where mtr_portfolio_id = 26555558 and dashboard_run_id = 2243332 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`=26555558 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789124, 0.05693800466618908, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555558_05-09-2025_06_21_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26555617, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555620, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555621, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555623, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555624, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555628, '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 = 26555560 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': 3667757, 'mtr_portfolio_id': 26555560, 'created_at': datetime.datetime(2025, 9, 5, 6, 21, 59), 'result': '0.043526961330972676', 'result_long': None, 'result_double': None}] Qualite : 0.043526961330972676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26555560 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555560_05-09-2025_06_22_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26555560 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_P26555560_05-09-2025_06_22_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26555568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555575, 'pht': 3726}}" where mtr_portfolio_id = 26555560 and dashboard_run_id = 2243332 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`=26555560 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789125, 0.043526961330972676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26555560_05-09-2025_06_22_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26555564, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26555565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26555566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26555567, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26555568, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26555569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26555570, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26555571, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26555572, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26555573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26555574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26555575, '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 = 26556761 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': 3667758, 'mtr_portfolio_id': 26556761, 'created_at': datetime.datetime(2025, 9, 5, 6, 22, 30), 'result': '0.050995299214166845', 'result_long': None, 'result_double': None}] Qualite : 0.050995299214166845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26556761 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556761_05-09-2025_06_22_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26556761 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_P26556761_05-09-2025_06_22_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26556766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556777, 'pht': 3726}}" where mtr_portfolio_id = 26556761 and dashboard_run_id = 2243332 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`=26556761 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789126, 0.050995299214166845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556761_05-09-2025_06_22_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26556766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556767, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556772, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556775, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556777, '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 = 26556619 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': 3667759, 'mtr_portfolio_id': 26556619, 'created_at': datetime.datetime(2025, 9, 5, 6, 23, 30), 'result': '0.08033527269443783', 'result_long': None, 'result_double': None}] Qualite : 0.08033527269443783 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26556619 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556619_05-09-2025_06_23_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26556619 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_P26556619_05-09-2025_06_23_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26556649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556660, 'pht': 3726}}" where mtr_portfolio_id = 26556619 and dashboard_run_id = 2243332 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`=26556619 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789127, 0.08033527269443783, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556619_05-09-2025_06_23_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26556649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556650, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556651, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556652, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556655, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556657, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556658, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556659, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556660, '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 = 26556621 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': 3667760, 'mtr_portfolio_id': 26556621, 'created_at': datetime.datetime(2025, 9, 5, 6, 24), 'result': '0.060162488673695266', 'result_long': None, 'result_double': None}] Qualite : 0.060162488673695266 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26556621 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556621_05-09-2025_06_24_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26556621 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_P26556621_05-09-2025_06_24_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556636, 'pht': 3726}}" where mtr_portfolio_id = 26556621 and dashboard_run_id = 2243332 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`=26556621 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789128, 0.060162488673695266, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26556621_05-09-2025_06_24_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26556625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26556626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26556627, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26556628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26556629, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26556630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26556631, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26556632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26556633, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26556634, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26556635, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26556636, '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 = 26557110 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': 3667761, 'mtr_portfolio_id': 26557110, 'created_at': datetime.datetime(2025, 9, 5, 6, 24, 28), 'result': '0.052274481522901775', 'result_long': None, 'result_double': None}] Qualite : 0.052274481522901775 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26557110 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557110_05-09-2025_06_24_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26557110 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_P26557110_05-09-2025_06_24_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557129, 'pht': 3726}}" where mtr_portfolio_id = 26557110 and dashboard_run_id = 2243332 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`=26557110 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789129, 0.052274481522901775, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557110_05-09-2025_06_24_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557119, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557123, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557125, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557129, '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 = 26557601 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': 3667762, 'mtr_portfolio_id': 26557601, 'created_at': datetime.datetime(2025, 9, 5, 6, 25, 29), 'result': '0.07206430920955262', 'result_long': None, 'result_double': None}] Qualite : 0.07206430920955262 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26557601 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557601_05-09-2025_06_25_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26557601 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_P26557601_05-09-2025_06_25_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557606, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557615, 'pht': 3726}}" where mtr_portfolio_id = 26557601 and dashboard_run_id = 2243332 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`=26557601 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789130, 0.07206430920955262, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557601_05-09-2025_06_25_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557604, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557606, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557607, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557608, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26557609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557611, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557613, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557614, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557615, '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 = 26557985 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': 3667763, 'mtr_portfolio_id': 26557985, 'created_at': datetime.datetime(2025, 9, 5, 6, 25, 37), 'result': '0.06697049275494514', 'result_long': None, 'result_double': None}] Qualite : 0.06697049275494514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26557985 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557985_05-09-2025_06_25_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26557985 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_P26557985_05-09-2025_06_25_41.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557999, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558000, 'pht': 3726}}" where mtr_portfolio_id = 26557985 and dashboard_run_id = 2243332 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`=26557985 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789131, 0.06697049275494514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26557985_05-09-2025_06_25_41.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26557989, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26557990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26557991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26557992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26557993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26557994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26557995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26557996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26557997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26557998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26557999, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558000, '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 = 26558350 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': 3667764, 'mtr_portfolio_id': 26558350, 'created_at': datetime.datetime(2025, 9, 5, 6, 25, 57), 'result': '0.05476973286801831', 'result_long': None, 'result_double': None}] Qualite : 0.05476973286801831 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26558350 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26558350_05-09-2025_06_26_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26558350 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_P26558350_05-09-2025_06_26_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558364, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558368, 'pht': 3726}}" where mtr_portfolio_id = 26558350 and dashboard_run_id = 2243332 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`=26558350 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789132, 0.05476973286801831, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26558350_05-09-2025_06_26_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558360, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558363, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558364, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558365, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558368, '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 = 26558751 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': 3667765, 'mtr_portfolio_id': 26558751, 'created_at': datetime.datetime(2025, 9, 5, 6, 26, 31), 'result': '0.067377216022561', 'result_long': None, 'result_double': None}] Qualite : 0.067377216022561 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26558751 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26558751_05-09-2025_06_26_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26558751 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_P26558751_05-09-2025_06_26_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558771, 'pht': 3726}}" where mtr_portfolio_id = 26558751 and dashboard_run_id = 2243332 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`=26558751 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789133, 0.067377216022561, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26558751_05-09-2025_06_26_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26558760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26558761, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26558762, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26558763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26558764, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26558765, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26558766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26558767, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26558768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26558769, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26558770, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26558771, '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 = 26559193 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': 3667766, 'mtr_portfolio_id': 26559193, 'created_at': datetime.datetime(2025, 9, 5, 6, 27, 30), 'result': '0.03707141247912107', 'result_long': None, 'result_double': None}] Qualite : 0.03707141247912107 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26559193 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26559193_05-09-2025_06_27_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26559193 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_P26559193_05-09-2025_06_27_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26559218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26559219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26559220, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26559221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26559222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26559223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26559224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26559225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26559226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26559228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26559229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26559230, 'pht': 3726}}" where mtr_portfolio_id = 26559193 and dashboard_run_id = 2243332 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`=26559193 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789135, 0.03707141247912107, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26559193_05-09-2025_06_27_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26559218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26559219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26559220, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26559221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26559222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26559223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26559224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26559225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26559226, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26559228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26559229, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26559230, '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 = 26561250 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': 3667844, 'mtr_portfolio_id': 26561250, 'created_at': datetime.datetime(2025, 9, 5, 5, 49, 29), 'result': '0.07289219547998828', 'result_long': None, 'result_double': None}] Qualite : 0.07289219547998828 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26561250 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561250_05-09-2025_05_49_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26561250 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_P26561250_05-09-2025_05_49_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561265, 'pht': 3726}}" where mtr_portfolio_id = 26561250 and dashboard_run_id = 2243332 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`=26561250 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789137, 0.07289219547998828, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561250_05-09-2025_05_49_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561257, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561258, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561260, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561263, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561265, '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 = 26561102 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': 3667836, 'mtr_portfolio_id': 26561102, 'created_at': datetime.datetime(2025, 9, 5, 5, 47, 29), 'result': '0.057297069317970954', 'result_long': None, 'result_double': None}] Qualite : 0.057297069317970954 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26561102 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561102_05-09-2025_05_47_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26561102 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_P26561102_05-09-2025_05_47_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561135, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561141, 'pht': 3726}}" where mtr_portfolio_id = 26561102 and dashboard_run_id = 2243332 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`=26561102 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789139, 0.057297069317970954, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561102_05-09-2025_05_47_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561131, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561133, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561135, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561138, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561141, '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 = 26561104 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': 3667837, 'mtr_portfolio_id': 26561104, 'created_at': datetime.datetime(2025, 9, 5, 5, 47, 59), 'result': '0.06210840669781008', 'result_long': None, 'result_double': None}] Qualite : 0.06210840669781008 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26561104 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561104_05-09-2025_05_48_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26561104 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_P26561104_05-09-2025_05_48_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561189, 'pht': 3726}}" where mtr_portfolio_id = 26561104 and dashboard_run_id = 2243332 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`=26561104 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789140, 0.06210840669781008, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561104_05-09-2025_05_48_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561180, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561183, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561185, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561186, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561189, '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 = 26561105 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': 3667838, 'mtr_portfolio_id': 26561105, 'created_at': datetime.datetime(2025, 9, 5, 6, 3, 30), 'result': '0.056753583017804365', 'result_long': None, 'result_double': None}] Qualite : 0.056753583017804365 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26561105 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561105_05-09-2025_06_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26561105 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_P26561105_05-09-2025_06_03_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561106, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561114, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561117, 'pht': 3726}}" where mtr_portfolio_id = 26561105 and dashboard_run_id = 2243332 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`=26561105 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789142, 0.056753583017804365, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561105_05-09-2025_06_03_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561106, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561107, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561108, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561110, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26561112, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561114, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561117, '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 = 26561584 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': 3667902, 'mtr_portfolio_id': 26561584, 'created_at': datetime.datetime(2025, 9, 5, 6, 17, 31), 'result': '0.039514970057971374', 'result_long': None, 'result_double': None}] Qualite : 0.039514970057971374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26561584 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561584_05-09-2025_06_17_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26561584 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_P26561584_05-09-2025_06_17_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26561596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561604, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561607, 'pht': 3726}}" where mtr_portfolio_id = 26561584 and dashboard_run_id = 2243332 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`=26561584 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789143, 0.039514970057971374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26561584_05-09-2025_06_17_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26561596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26561597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26561598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26561599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26561600, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26561601, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26561602, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26561603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26561604, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26561605, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26561606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26561607, '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 = 26562090 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': 3667972, 'mtr_portfolio_id': 26562090, 'created_at': datetime.datetime(2025, 9, 5, 6, 32, 58), 'result': '0.057623620304677416', 'result_long': None, 'result_double': None}] Qualite : 0.057623620304677416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26562090 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562090_05-09-2025_06_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26562090 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_P26562090_05-09-2025_06_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26562131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26562132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26562133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26562134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26562135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26562136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26562137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26562138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26562139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26562140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26562141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26562142, 'pht': 3726}}" where mtr_portfolio_id = 26562090 and dashboard_run_id = 2243332 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`=26562090 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789144, 0.057623620304677416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562090_05-09-2025_06_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26562131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26562132, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26562133, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26562134, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26562135, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26562136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26562137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26562138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26562139, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26562140, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26562141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26562142, '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 = 26562602 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': 3668061, 'mtr_portfolio_id': 26562602, 'created_at': datetime.datetime(2025, 9, 5, 6, 46, 59), 'result': '0.05466398608855699', 'result_long': None, 'result_double': None}] Qualite : 0.05466398608855699 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26562602 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562602_05-09-2025_06_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26562602 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_P26562602_05-09-2025_06_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26562613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26562614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26562615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26562616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26562617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26562618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26562619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26562620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26562621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26562622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26562623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26562624, 'pht': 3726}}" where mtr_portfolio_id = 26562602 and dashboard_run_id = 2243332 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`=26562602 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789145, 0.05466398608855699, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562602_05-09-2025_06_47_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26562613, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26562614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26562615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26562616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26562617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26562618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26562619, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26562620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26562621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26562622, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26562623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26562624, '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 = 26562998 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': 3668137, 'mtr_portfolio_id': 26562998, 'created_at': datetime.datetime(2025, 9, 5, 7, 3), 'result': '0.029307208754667403', 'result_long': None, 'result_double': None}] Qualite : 0.029307208754667403 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26562998 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562998_05-09-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26562998 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_P26562998_05-09-2025_07_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26563023, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26563024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26563025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26563026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26563027, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26563028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26563029, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26563030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26563031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26563032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26563033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26563034, 'pht': 3726}}" where mtr_portfolio_id = 26562998 and dashboard_run_id = 2243332 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`=26562998 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789146, 0.029307208754667403, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26562998_05-09-2025_07_03_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26563023, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26563024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26563025, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26563026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26563027, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26563028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26563029, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26563030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26563031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26563032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26563033, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26563034, '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 = 26563505 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': 3668232, 'mtr_portfolio_id': 26563505, 'created_at': datetime.datetime(2025, 9, 5, 7, 14, 59), 'result': '0.063863720813574', 'result_long': None, 'result_double': None}] Qualite : 0.063863720813574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26563505 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26563505_05-09-2025_07_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26563505 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_P26563505_05-09-2025_07_14_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26563534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26563535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26563536, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26563537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26563538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26563539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26563540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26563541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26563542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26563544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26563545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26563546, 'pht': 3726}}" where mtr_portfolio_id = 26563505 and dashboard_run_id = 2243332 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`=26563505 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14789147, 0.063863720813574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26563505_05-09-2025_07_14_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26563534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26563535, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26563536, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26563537, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26563538, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26563539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26563540, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26563541, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26563542, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26563544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26563545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26563546, '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 (26552286,26552950,26553483,26553954,26555558,26555560,26556761,26556619,26556621,26557110,26557601,26557985,26558350,26558751,26559193,26561250,26561102,26561104,26561105,26561584,26562090,26562602,26562998,26563505) result : ((1381585163,), (1381585166,), (1381585170,), (1381585665,), (1381585668,), (1381585671,), (1381585674,), (1381585677,), (1381585680,), (1381586198,), (1381586202,), (1381586206,), (1381586210,), (1381586214,), (1381586704,), (1381586707,), (1381586710,), (1381586992,), (1381586994,), (1381586997,), (1381587000,), (1381587003,), (1381587006,), (1381587312,), (1381587313,), (1381587314,), (1381587315,), (1381587316,), (1381587317,), (1381587397,), (1381587398,), (1381587400,), (1381587401,), (1381587402,), (1381587480,), (1381587483,), (1381587484,), (1381587485,), (1381587536,), (1381587537,), (1381587539,), (1381587540,), (1381587541,), (1381587542,), (1381587601,), (1381587602,), (1381587603,), (1381587604,), (1381587605,), (1381587655,), (1381587657,), (1381587659,), (1381587816,), (1381587817,), (1381587818,), (1381587820,), (1381587821,), (1381587823,), (1381587981,), (1381587982,), (1381587983,), (1381587985,), (1381588048,), (1381588049,), (1381588050,), (1381588051,), (1381588053,), (1381588055,), (1381588093,), (1381588095,), (1381588097,), (1381588099,), (1381588102,), (1381588104,), (1381588400,), (1381588393,), (1381588395,), (1381588397,), (1381588567,), (1381588569,), (1381588571,), (1381588573,), (1381588575,), (1381588743,), (1381588744,), (1381588745,), (1381588746,), (1381588747,), (1381588749,), (1381588979,), (1381588981,), (1381588984,), (1381588986,), (1381589178,), (1381589180,), (1381589182,), (1381589184,), (1381589187,), (1381589189,), (1381589294,), (1381589295,), (1381589296,), (1381589297,), (1381589298,), (1381589300,), (1381589350,), (1381589351,), (1381589352,), (1381589353,), (1381589392,), (1381589394,), (1381589395,), (1381589397,), (1381589398,), (1381589435,), (1381589443,), (1381589444,), (1381589446,), (1381589447,), (1381589489,), (1381589490,), (1381589491,), (1381589492,), (1381589540,), (1381589541,), (1381589542,), (1381589543,), (1381589545,), (1381589546,), (1381589611,), (1381589613,), (1381589616,), (1381589620,), (1381589623,), (1381589726,), (1381589727,), (1381589728,), (1381589729,), (1381589730,), (1381589765,), (1381589766,), (1381589821,), (1381589822,), (1381589823,), (1381589824,), (1381589865,), (1381589860,), (1381589861,), (1381589862,), (1381589863,), (1381589970,), (1381589971,), (1381589973,), (1381589974,), (1381590017,), (1381590018,), (1381590019,), (1381590020,), (1381590021,), (1381590022,), (1381590076,), (1381590078,), (1381590079,), (1381590080,), (1381590082,), (1381590157,), (1381590159,), (1381590160,), (1381590161,), (1381590196,), (1381590197,), (1381590198,), (1381590199,), (1381590234,), (1381590235,), (1381590236,), (1381590237,), (1381590239,), (1381590316,), (1381590317,), (1381590318,), (1381590319,), (1381590321,), (1381590351,), (1381590352,), (1381590353,), (1381590354,), (1381590355,), (1381590356,), (1381590404,), (1381590405,), (1381590407,), (1381590408,), (1381590409,), (1381590410,), (1381590454,), (1381590456,), (1381590457,), (1381590458,), (1381590504,), (1381590505,), (1381590506,), (1381590507,), (1381590508,), (1381590509,), (1381590543,), (1381590544,), (1381590545,), (1381590546,), (1381590548,), (1381590617,), (1381590618,), (1381590619,), (1381590661,), (1381590663,), (1381590664,), (1381590665,), (1381590666,), (1381590667,), (1381590717,), (1381590712,), (1381590713,), (1381590714,), (1381590715,), (1381590716,), (1381590753,), (1381590754,), (1381590828,), (1381590830,), (1381590832,), (1381590835,), (1381590837,), (1381590877,), (1381590878,), (1381590879,), (1381590880,), (1381590881,), (1381590927,), (1381590928,), (1381590929,), (1381590930,), (1381590964,), (1381590965,), (1381590966,), (1381590967,), (1381591124,), (1381591169,), (1381591170,), (1381591171,), (1381591172,), (1381591173,), (1381591217,), (1381591218,), (1381591220,), (1381591224,), (1381591227,), (1381591229,), (1381591243,), (1381591244,), (1381591245,), (1381591246,), (1381591248,), (1381591413,), (1381591415,), (1381591417,), (1381591419,), (1381591421,), (1381595847,), (1381595882,), (1381595883,), (1381595884,), (1381595886,), (1381595887,), (1381595947,), (1381595948,), (1381595949,), (1381596040,), (1381596041,), (1381596042,), (1381596099,), (1381596100,), (1381596101,), (1381596102,), (1381596147,), (1381596148,), (1381596149,), (1381596150,), (1381596151,), (1381596152,), (1381596199,), (1381596200,), (1381596202,), (1381596203,), (1381596205,), (1381596237,), (1381596238,), (1381596239,), (1381596296,), (1381596297,), (1381596298,), (1381596299,), (1381596300,), (1381596349,), (1381596350,), (1381596352,), (1381596354,), (1381596355,), (1381596389,), (1381596391,), (1381596392,), (1381596393,), (1381596449,), (1381596450,), (1381596488,), (1381596489,), (1381596535,), (1381596536,), (1381596537,), (1381596539,), (1381596541,), (1381596577,), (1381596579,), (1381596580,), (1381596582,), (1381596628,), (1381596625,), (1381596626,), (1381596627,), (1381596664,), (1381596665,), (1381596666,), (1381596667,), (1381596710,), (1381596711,), (1381596712,), (1381596801,), (1381596802,), (1381596803,), (1381596845,), (1381596846,), (1381596847,), (1381596848,), (1381596849,), (1381596892,), (1381596893,), (1381596894,), (1381596895,), (1381596896,), (1381596897,), (1381596948,), (1381596950,), (1381596951,), (1381596952,), (1381596954,), (1381597020,), (1381597021,), (1381597022,), (1381597023,), (1381597064,), (1381597065,), (1381597066,), (1381597068,), (1381597069,), (1381597097,), (1381597099,), (1381597100,), (1381597101,), (1381597102,), (1381597103,), (1381597151,), (1381597152,), (1381597153,), (1381597154,), (1381597155,), (1381597197,), (1381597198,), (1381597199,), (1381597200,), (1381597201,), (1381597203,), (1381597207,), (1381597209,), (1381597210,), (1381597211,), (1381597212,), (1381597287,), (1381597288,), (1381597289,), (1381597290,), (1381597327,), (1381597329,), (1381597332,), (1381597334,), (1381597336,), (1381597339,), (1381597640,), (1381602249,), (1381604849,), (1381604850,), (1381604851,), (1381604852,), (1381604854,), (1381604855,), (1381604894,), (1381604896,), (1381604942,), (1381604943,), (1381604944,), (1381604972,), (1381604973,), (1381605075,), (1381605077,), (1381605080,), (1381605083,), (1381605086,), (1381605087,), (1381605161,), (1381605163,), (1381605165,), (1381605219,), (1381605216,), (1381605217,), (1381605218,), (1381605265,), (1381605266,), (1381605267,), (1381605268,), (1381605269,), (1381605271,), (1381605323,), (1381605324,), (1381605325,), (1381605326,), (1381605327,), (1381605414,), (1381605415,), (1381605416,), (1381605417,), (1381605418,), (1381605419,), (1381605453,), (1381605454,), (1381605455,), (1381605456,), (1381605457,), (1381605508,), (1381605509,), (1381605510,), (1381605511,), (1381605568,), (1381605569,), (1381605570,), (1381605571,), (1381605608,), (1381605609,), (1381605610,), (1381605611,), (1381605613,), (1381605672,), (1381605673,), (1381605674,), (1381605716,), (1381605717,), (1381605718,), (1381605719,), (1381605720,), (1381605766,), (1381605767,), (1381605768,), (1381605769,), (1381605770,), (1381605771,), (1381605810,), (1381605812,), (1381605814,), (1381605815,), (1381605905,), (1381605906,), (1381605907,), (1381605908,), (1381605909,), (1381605910,), (1381605954,), (1381605955,), (1381605957,), (1381605958,), (1381605959,), (1381605961,), (1381605994,), (1381605995,), (1381605996,), (1381605997,), (1381605998,), (1381605999,), (1381606049,), (1381597636,), (1381597638,), (1381597846,), (1381597847,), (1381597848,), (1381597849,), (1381597850,), (1381598044,), (1381598046,), (1381598048,), (1381598050,), (1381598052,), (1381598054,), (1381598238,), (1381598239,), (1381598240,), (1381598241,), (1381598266,), (1381598275,), (1381598276,), (1381598278,), (1381598280,), (1381598281,), (1381598328,), (1381598329,), (1381598330,), (1381598332,), (1381598333,), (1381601466,), (1381601468,), (1381601877,), (1381601880,), (1381601883,), (1381601886,), (1381601889,), (1381602252,), (1381602255,), (1381602258,), (1381602261,), (1381602264,), (1381602337,), (1381606047,), (1381606048,), (1381606093,), (1381606094,), (1381606095,), (1381606096,), (1381606097,), (1381606161,), (1381606162,), (1381606163,), (1381606164,), (1381606165,), (1381606198,), (1381606199,), (1381606200,), (1381606201,), (1381606252,), (1381606253,), (1381606254,), (1381606255,), (1381606256,), (1381606294,), (1381606295,), (1381606297,), (1381606298,), (1381606299,), (1381606300,), (1381606345,), (1381606346,), (1381606347,), (1381606411,), (1381606412,), (1381606414,), (1381606415,), (1381606416,), (1381606417,), (1381606463,), (1381606464,), (1381606465,), (1381606466,), (1381606498,), (1381606499,), (1381606500,), (1381606501,), (1381606594,), (1381606644,), (1381607065,), (1381607067,), (1381609098,), (1381609096,), (1381609167,), (1381610003,), (1381610005,), (1381610325,), (1381610326,), (1381610327,), (1381610328,), (1381610330,), (1381610549,), (1381610550,), (1381610551,), (1381610552,), (1381610656,), (1381610657,), (1381610658,), (1381610659,), (1381610660,), (1381610732,), (1381610733,), (1381610734,), (1381610735,), (1381610736,), (1381610737,), (1381610774,), (1381610775,), (1381610776,), (1381610777,), (1381610835,), (1381610836,), (1381610837,), (1381610838,), (1381610839,), (1381610872,), (1381610873,), (1381610874,), (1381610875,), (1381610877,), (1381610919,), (1381610917,), (1381610918,), (1381611027,), (1381611036,), (1381611037,), (1381611039,), (1381611071,), (1381611072,), (1381611073,), (1381611074,), (1381611075,), (1381611076,), (1381611119,), (1381611120,), (1381611121,), (1381611122,), (1381611123,), (1381611169,), (1381611170,), (1381611171,), (1381611173,), (1381611174,), (1381611175,), (1381611225,), (1381611226,), (1381611227,), (1381611228,), (1381611229,), (1381611239,), (1381611240,), (1381611241,), (1381611242,), (1381611243,), (1381611244,), (1381611280,), (1381611281,), (1381611282,), (1381611283,), (1381611313,), (1381611314,), (1381611315,), (1381611316,), (1381611338,), (1381611339,), (1381611340,), (1381611360,), (1381611361,), (1381611363,), (1381611364,), (1381611365,), (1381611366,), (1381611439,), (1381611440,), (1381611441,), (1381611442,), (1381611443,), (1381611444,), (1381611483,), (1381611484,), (1381611485,), (1381611486,), (1381611528,), (1381611529,), (1381611530,), (1381611531,), (1381611532,), (1381611534,), (1381611578,), (1381611574,), (1381611575,), (1381611576,), (1381611577,), (1381611626,), (1381611627,), (1381611628,), (1381611629,), (1381611630,), (1381611631,), (1381611698,), (1381611699,), (1381611701,), (1381611702,), (1381611703,), (1381611757,), (1381611758,), (1381611759,), (1381611760,), (1381611761,), (1381611800,), (1381611801,), (1381611802,), (1381611803,), (1381611804,), (1381611805,), (1381611848,), (1381611849,), (1381611850,), (1381611851,), (1381611887,), (1381611888,), (1381611889,), (1381611890,), (1381611891,), (1381611892,), (1381611964,), (1381611965,), (1381611966,), (1381611967,), (1381612075,), (1381612076,), (1381612077,), (1381612078,), (1381612079,), (1381612080,), (1381612135,), (1381612136,), (1381612137,), (1381612138,), (1381612180,), (1381612181,), (1381612183,), (1381612184,), (1381612185,), (1381612186,), (1381612233,), (1381612234,), (1381612235,), (1381612236,), (1381612292,), (1381612293,), (1381612295,), (1381612296,), (1381612297,), (1381612298,), (1381612347,), (1381612349,), (1381612350,), (1381612351,), (1381612390,), (1381612392,), (1381612393,), (1381612394,), (1381612395,), (1381612396,), (1381612459,), (1381612456,), (1381612457,), (1381612458,), (1381612488,), (1381612489,), (1381612490,), (1381612560,), (1381612561,), (1381612562,), (1381612563,), (1381612564,), (1381612597,), (1381612598,), (1381612600,), (1381612601,), (1381612602,), (1381612603,), (1381612660,), (1381612661,), (1381612662,), (1381612663,), (1381612664,), (1381612708,), (1381612709,), (1381612710,), (1381612711,), (1381612712,), (1381612713,), (1381612760,), (1381612761,), (1381612762,), (1381612763,), (1381612831,), (1381612832,), (1381612833,), (1381612834,), (1381612873,), (1381612874,), (1381612875,), (1381612876,), (1381612877,), (1381612878,), (1381612915,), (1381612916,), (1381612917,), (1381612918,), (1381612952,), (1381612953,), (1381612954,), (1381612955,), (1381612993,), (1381612995,), (1381612998,), (1381612999,), (1381613045,), (1381613046,), (1381613047,), (1381613049,), (1381613050,), (1381613431,), (1381613433,), (1381613435,), (1381613437,), (1381613502,), (1381613504,), (1381613506,), (1381613508,), (1381613854,), (1381613846,), (1381613848,), (1381613850,), (1381613852,), (1381614041,), (1381614042,), (1381614377,), (1381614379,), (1381614382,), (1381614385,), (1381614890,), (1381614892,), (1381614894,), (1381614895,), (1381614897,), (1381615278,), (1381615281,), (1381615283,), (1381615285,), (1381615287,), (1381615548,), (1381615549,), (1381615550,), (1381615551,), (1381615552,), (1381615772,), (1381615773,), (1381615774,), (1381615775,), (1381615776,), (1381615777,), (1381616157,), (1381616159,), (1381617539,), (1381622250,), (1381624479,), (1381624480,), (1381624481,), (1381624482,), (1381624525,), (1381624526,), (1381624527,), (1381624528,), (1381624576,), (1381624577,), (1381624578,), (1381624579,), (1381624580,), (1381624624,), (1381624625,), (1381624627,), (1381624628,), (1381624690,), (1381624691,), (1381624692,), (1381624693,), (1381624694,), (1381624768,), (1381624769,), (1381624770,), (1381624771,), (1381624851,), (1381624852,), (1381624853,), (1381624854,), (1381624855,), (1381624900,), (1381624901,), (1381624902,), (1381624903,), (1381624953,), (1381624954,), (1381624955,), (1381624956,), (1381624957,), (1381624958,), (1381625033,), (1381625034,), (1381625035,), (1381625037,), (1381625038,), (1381625113,), (1381625114,), (1381625115,), (1381625116,), (1381625117,), (1381625118,), (1381625154,), (1381625155,), (1381625156,), (1381625157,), (1381625212,), (1381625213,), (1381625214,), (1381625215,), (1381625216,), (1381625271,), (1381625266,), (1381625267,), (1381625268,), (1381625269,), (1381625270,), (1381625322,), (1381625323,), (1381625324,), (1381625325,), (1381625405,), (1381625406,), (1381625407,), (1381625408,), (1381625409,), (1381625410,), (1381625450,), (1381625451,), (1381625452,), (1381625454,), (1381625487,), (1381625499,), (1381625500,), (1381625502,), (1381625503,), (1381625504,), (1381625553,), (1381625555,), (1381625556,), (1381625557,), (1381625603,), (1381625604,), (1381625605,), (1381625606,), (1381625685,), (1381625686,), (1381625687,), (1381625688,), (1381625689,), (1381625690,), (1381625725,), (1381625726,), (1381625727,), (1381625728,), (1381625795,), (1381625796,), (1381625797,), (1381625835,), (1381625836,), (1381625838,), (1381625840,), (1381625841,), (1381625904,), (1381625906,), (1381625907,), (1381625947,), (1381625948,), (1381625949,), (1381625950,), (1381625951,), (1381625985,), (1381625997,), (1381625998,), (1381625999,), (1381626039,), (1381626040,), (1381626041,), (1381626042,), (1381626043,), (1381626044,), (1381626100,), (1381626095,), (1381626096,), (1381626097,), (1381626098,), (1381626099,), (1381626136,), (1381626137,), (1381626138,), (1381626139,), (1381626228,), (1381626229,), (1381626230,), (1381626231,), (1381626232,), (1381626233,), (1381626275,), (1381626276,), (1381626277,), (1381626278,), (1381626279,), (1381626333,), (1381626335,), (1381626336,), (1381626337,), (1381626338,), (1381626339,), (1381626375,), (1381626376,), (1381626377,), (1381626378,), (1381626433,), (1381626435,), (1381626436,), (1381626437,), (1381626438,), (1381626439,), (1381626510,), (1381626512,), (1381626514,), (1381626515,), (1381626516,), (1381626569,), (1381626570,), (1381626571,), (1381626572,), (1381626573,), (1381626575,), (1381626612,), (1381626614,), (1381626615,), (1381626646,), (1381626647,), (1381626648,), (1381626649,), (1381626686,), (1381626687,), (1381626688,), (1381626689,), (1381626690,), (1381626691,), (1381626775,), (1381626776,), (1381626777,), (1381626778,), (1381626836,), (1381626837,), (1381626838,), (1381626840,), (1381626855,), (1381626856,), (1381626857,), (1381626859,), (1381626906,), (1381623513,), (1381623514,), (1381623515,), (1381623752,), (1381623753,), (1381623754,), (1381623755,), (1381623857,), (1381623858,), (1381623859,), (1381623860,), (1381623962,), (1381623963,), (1381623964,), (1381623965,), (1381624483,), (1381626903,), (1381626904,), (1381626905,), (1381627263,), (1381627265,), (1381627267,), (1381627269,), (1381627271,), (1381627273,), (1381628004,), (1381628007,), (1381628011,), (1381628015,), (1381628793,), (1381628796,), (1381628799,), (1381628802,), (1381628806,), (1381629063,), (1381629065,), (1381629067,), (1381629686,), (1381629689,), (1381629692,), (1381629695,), (1381630124,), (1381630126,), (1381630128,), (1381630130,), (1381630133,), (1381630527,), (1381630529,), (1381630531,), (1381630533,), (1381630535,), (1381630537,), (1381630635,), (1381630636,), (1381630637,), (1381630638,), (1381630639,), (1381630640,), (1381630917,), (1381630919,), (1381630921,), (1381630923,), (1381630925,), (1381630927,), (1381630979,), (1381630981,), (1381630983,), (1381630985,), (1381631153,), (1381631155,), (1381631157,), (1381631159,), (1381631161,), (1381631233,), (1381631234,), (1381631236,), (1381631237,), (1381631238,), (1381631276,), (1381631277,), (1381631278,), (1381631279,), (1381631280,), (1381631281,), (1381631321,), (1381631323,), (1381631325,), (1381631327,), (1381631375,), (1381631376,), (1381631377,), (1381631378,), (1381631379,), (1381631380,), (1381631429,), (1381631425,), (1381631426,), (1381631427,), (1381631428,), (1381631468,), (1381631469,), (1381631470,), (1381631471,), (1381631518,), (1381631519,), (1381631520,), (1381631521,), (1381631558,), (1381631559,), (1381631561,), (1381631563,), (1381631564,), (1381631615,), (1381631616,), (1381631617,), (1381631619,), (1381631651,), (1381631652,), (1381631653,), (1381631654,), (1381631655,), (1381631656,), (1381631699,), (1381631700,), (1381631701,), (1381631738,), (1381631740,), (1381631741,), (1381631783,), (1381631784,), (1381631785,), (1381631786,), (1381631787,), (1381631822,), (1381631823,), (1381631824,), (1381631825,), (1381631826,), (1381631877,), (1381631878,), (1381631879,), (1381631881,), (1381631882,), (1381631916,), (1381631917,), (1381631918,), (1381631919,), (1381631920,), (1381631960,), (1381631961,), (1381631963,), (1381631964,), (1381631965,), (1381632004,), (1381632005,), (1381632006,), (1381632007,), (1381632008,), (1381632009,), (1381632049,), (1381632050,), (1381632051,), (1381632052,), (1381632053,), (1381632096,), (1381632091,), (1381632092,), (1381632093,), (1381632094,), (1381632095,), (1381632151,), (1381632152,), (1381632153,), (1381632154,), (1381632155,), (1381632156,), (1381632229,), (1381632230,), (1381632231,), (1381632232,), (1381632233,), (1381632290,), (1381632291,), (1381632292,), (1381632293,), (1381632294,), (1381632295,), (1381632333,), (1381632334,), (1381632335,), (1381632336,), (1381632391,), (1381632392,), (1381632394,), (1381632396,), (1381632398,), (1381632400,), (1381632451,), (1381632452,), (1381632453,), (1381632454,), (1381632455,), (1381632456,), (1381632565,), (1381632566,), (1381632567,), (1381632568,), (1381632614,), (1381632615,), (1381632616,), (1381632617,), (1381632618,), (1381632666,), (1381632667,), (1381632668,), (1381632669,), (1381632670,), (1381632702,), (1381632703,), (1381632704,), (1381632705,), (1381632752,), (1381632753,), (1381632754,), (1381632755,), (1381632756,), (1381632818,), (1381632819,), (1381632820,), (1381632821,), (1381632822,), (1381632824,), (1381632872,), (1381632873,), (1381632874,), (1381632875,), (1381632876,), (1381632910,), (1381632911,), (1381632912,), (1381632972,), (1381632968,), (1381632969,), (1381632970,), (1381633008,), (1381633009,), (1381633010,), (1381633011,), (1381633012,), (1381633085,), (1381633095,), (1381633096,), (1381633097,), (1381633128,), (1381633129,), (1381633130,), (1381633131,), (1381633177,), (1381633215,), (1381633217,), (1381633265,), (1381633266,), (1381633267,), (1381633268,), (1381633306,), (1381633307,), (1381633308,), (1381633309,), (1381633350,), (1381633351,), (1381633352,), (1381633353,), (1381633354,), (1381633387,), (1381633388,), (1381633389,), (1381633390,), (1381633427,), (1381633428,), (1381633429,), (1381633430,), (1381633464,), (1381633471,), (1381633472,), (1381633473,), (1381633474,), (1381633552,), (1381633553,), (1381633554,), (1381633555,), (1381634077,), (1381634081,), (1381634084,), (1381634087,), (1381634090,), (1381634840,), (1381634828,), (1381634831,), (1381634834,), (1381634837,), (1381635354,), (1381635356,), (1381635358,), (1381635360,), (1381635869,), (1381635872,), (1381635875,), (1381635878,), (1381635881,), (1381635884,), (1381636509,), (1381636512,), (1381636515,), (1381636973,), (1381636975,), (1381636977,), (1381636979,), (1381636981,), (1381637202,), (1381637204,), (1381637206,), (1381637208,), (1381637210,), (1381637361,), (1381637362,), (1381637363,), (1381637435,), (1381637436,), (1381637437,), (1381637438,), (1381637439,), (1381637440,), (1381637716,), (1381637720,), (1381637723,), (1381637726,), (1381637729,), (1381637910,), (1381637911,), (1381637912,), (1381637913,), (1381638029,), (1381638031,), (1381638033,), (1381638035,), (1381638038,), (1381638295,), (1381638296,), (1381638297,), (1381638299,), (1381638448,), (1381638449,), (1381638450,), (1381638495,), (1381638496,), (1381638497,), (1381638498,), (1381638499,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05092025': {'nb_upload': 62, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26563505]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1381638499, 1381638498, 1381638497, 1381638496, 1381638495, 1381638450, 1381638449, 1381638448] map_info['map_portfolio_photo'] : {26563505: [1381638499, 1381638498, 1381638497, 1381638496, 1381638495, 1381638450, 1381638449, 1381638448, 1381638299, 1381638297, 1381638296, 1381638295, 1381638038, 1381638035, 1381638033, 1381638031, 1381638029, 1381637913, 1381637912, 1381637911, 1381637910, 1381637729, 1381637726, 1381637723, 1381637720, 1381637716, 1381637440, 1381637439, 1381637438, 1381637437, 1381637436, 1381637435, 1381637363, 1381637362, 1381637361, 1381637210, 1381637208, 1381637206, 1381637204, 1381637202, 1381636981, 1381636979, 1381636977, 1381636975, 1381636973, 1381636515, 1381636512, 1381636509, 1381635884, 1381635881, 1381635878, 1381635875, 1381635872, 1381635869, 1381635360, 1381635358, 1381635356, 1381635354, 1381634837, 1381634834, 1381634831, 1381634828]} final : True mtd_id 4302 list_pids : [1381638499, 1381638498, 1381638497, 1381638496, 1381638495, 1381638450, 1381638449, 1381638448] Looping around the photos to save general results len do output : 1 /26563505Didn'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, '3668232') ('4302', '26563505', '1381638499', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638498', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638497', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638496', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638495', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638450', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638449', None, None, None, None, None, '3668232') ('4302', None, None, None, None, None, None, None, '3668232') ('4302', '26563505', '1381638448', None, None, None, None, None, '3668232') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26563505', 'None', None, None, None, None, '3668232'), ('4302', '26563505', '1381638499', None, None, None, None, None, '3668232'), ('4302', '26563505', '1381638498', None, None, None, None, None, '3668232'), ('4302', '26563505', '1381638497', None, None, None, None, None, '3668232'), ('4302', '26563505', '1381638496', None, None, None, None, None, '3668232'), ('4302', '26563505', '1381638495', None, None, None, None, None, '3668232'), ('4302', '26563505', '1381638450', None, None, None, None, None, '3668232'), ('4302', '26563505', '1381638449', None, None, None, None, None, '3668232'), ('4302', '26563505', '1381638448', None, None, None, None, None, '3668232')] time used for this insertion : 0.019875526428222656 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.914443016052246 time spend to save output : 0.020059823989868164 total time spend for step 5 : 2.9345028400421143 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 (3668232) 2.04user 2.55system 0:13.32elapsed 34%CPU (0avgtext+0avgdata 160484maxresident)k 144inputs+11112outputs (4major+64317minor)pagefaults 0swaps