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 : 1322121 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 (3569063) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3569063) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26121970 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3569063'] with mtr_portfolio_ids : ['26121970'] and first list_photo_ids : [] new path : /proc/1322121/ Name: python3 Umask: 0002 State: R (running) Tgid: 1322121 Ngid: 0 Pid: 1322121 PPid: 1322041 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1322121 NSpid: 1322121 NSpgid: 1321301 NSsid: 1321301 VmPeak: 1107344 kB VmSize: 1107344 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 101224 kB VmRSS: 101224 kB RssAnon: 60172 kB RssFile: 41052 kB RssShmem: 0 kB VmData: 866096 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 536 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: 46 nonvoluntary_ctxt_switches: 279 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1322121', 'Ngid': '0', 'Pid': '1322121', 'PPid': '1322041', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1322121', 'NSpid': '1322121', 'NSpgid': '1321301', 'NSsid': '1321301', 'VmPeak': '1107344 kB', 'VmSize': '1107344 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '101224 kB', 'VmRSS': '101224 kB', 'RssAnon': '60172 kB', 'RssFile': '41052 kB', 'RssShmem': '0 kB', 'VmData': '866096 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '536 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': '46', 'nonvoluntary_ctxt_switches': '279'} ('datou_batch_current', '1322121', '1107344', '0', '1107344', '866096', '101224', b'', 'marlene', '3569063') 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 (26121970) 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 (3569063 ) ) 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 (26121970) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1378289647, 'portfolio_id': 26121970}, {'photo_id': 1378289602, 'portfolio_id': 26121970}, {'photo_id': 1378289550, 'portfolio_id': 26121970}, {'photo_id': 1378289457, 'portfolio_id': 26121970}, {'photo_id': 1378289359, 'portfolio_id': 26121970}, {'photo_id': 1378289275, 'portfolio_id': 26121970}, {'photo_id': 1378288677, 'portfolio_id': 26121970}, {'photo_id': 1378288650, 'portfolio_id': 26121970}, {'photo_id': 1378288622, 'portfolio_id': 26121970}, {'photo_id': 1378288598, 'portfolio_id': 26121970}, {'photo_id': 1378287168, 'portfolio_id': 26121970}, {'photo_id': 1378287063, 'portfolio_id': 26121970}, {'photo_id': 1378286967, 'portfolio_id': 26121970}, {'photo_id': 1378286866, 'portfolio_id': 26121970}, {'photo_id': 1378286765, 'portfolio_id': 26121970}, {'photo_id': 1378286445, 'portfolio_id': 26121970}, {'photo_id': 1378286368, 'portfolio_id': 26121970}, {'photo_id': 1378286298, 'portfolio_id': 26121970}, {'photo_id': 1378286223, 'portfolio_id': 26121970}, {'photo_id': 1378286153, 'portfolio_id': 26121970}, {'photo_id': 1378286077, 'portfolio_id': 26121970}, {'photo_id': 1378285243, 'portfolio_id': 26121970}, {'photo_id': 1378285242, 'portfolio_id': 26121970}, {'photo_id': 1378285241, 'portfolio_id': 26121970}, {'photo_id': 1378284991, 'portfolio_id': 26121970}, {'photo_id': 1378284989, 'portfolio_id': 26121970}, {'photo_id': 1378284987, 'portfolio_id': 26121970}, {'photo_id': 1378284975, 'portfolio_id': 26121970}, {'photo_id': 1378284952, 'portfolio_id': 26121970}, {'photo_id': 1378284620, 'portfolio_id': 26121970}, {'photo_id': 1378284587, 'portfolio_id': 26121970}, {'photo_id': 1378284542, 'portfolio_id': 26121970}, {'photo_id': 1378284512, 'portfolio_id': 26121970}, {'photo_id': 1378284474, 'portfolio_id': 26121970}, {'photo_id': 1378284438, 'portfolio_id': 26121970}, {'photo_id': 1378284110, 'portfolio_id': 26121970}, {'photo_id': 1378284109, 'portfolio_id': 26121970}, {'photo_id': 1378284106, 'portfolio_id': 26121970}, {'photo_id': 1378284105, 'portfolio_id': 26121970}, {'photo_id': 1378283502, 'portfolio_id': 26121970}, {'photo_id': 1378283443, 'portfolio_id': 26121970}, {'photo_id': 1378283391, 'portfolio_id': 26121970}, {'photo_id': 1378283334, 'portfolio_id': 26121970}, {'photo_id': 1378283285, 'portfolio_id': 26121970}, {'photo_id': 1378283257, 'portfolio_id': 26121970}, {'photo_id': 1378282614, 'portfolio_id': 26121970}, {'photo_id': 1378282517, 'portfolio_id': 26121970}, {'photo_id': 1378282424, 'portfolio_id': 26121970}, {'photo_id': 1378282352, 'portfolio_id': 26121970}, {'photo_id': 1378282291, 'portfolio_id': 26121970}, {'photo_id': 1378281767, 'portfolio_id': 26121970}, {'photo_id': 1378281665, 'portfolio_id': 26121970}, {'photo_id': 1378281566, 'portfolio_id': 26121970}, {'photo_id': 1378281437, 'portfolio_id': 26121970}, {'photo_id': 1378279917, 'portfolio_id': 26121970}, {'photo_id': 1378279808, 'portfolio_id': 26121970}, {'photo_id': 1378279696, 'portfolio_id': 26121970}, {'photo_id': 1378278336, 'portfolio_id': 26121970}, {'photo_id': 1378278283, 'portfolio_id': 26121970}, {'photo_id': 1378277002, 'portfolio_id': 26121970}, {'photo_id': 1378276911, 'portfolio_id': 26121970}, {'photo_id': 1378276832, 'portfolio_id': 26121970}, {'photo_id': 1378276751, 'portfolio_id': 26121970}, {'photo_id': 1378276660, 'portfolio_id': 26121970}] map_portfolio_id_photo_id: {26121970: [1378289647, 1378289602, 1378289550, 1378289457, 1378289359, 1378289275, 1378288677, 1378288650, 1378288622, 1378288598, 1378287168, 1378287063, 1378286967, 1378286866, 1378286765, 1378286445, 1378286368, 1378286298, 1378286223, 1378286153, 1378286077, 1378285243, 1378285242, 1378285241, 1378284991, 1378284989, 1378284987, 1378284975, 1378284952, 1378284620, 1378284587, 1378284542, 1378284512, 1378284474, 1378284438, 1378284110, 1378284109, 1378284106, 1378284105, 1378283502, 1378283443, 1378283391, 1378283334, 1378283285, 1378283257, 1378282614, 1378282517, 1378282424, 1378282352, 1378282291, 1378281767, 1378281665, 1378281566, 1378281437, 1378279917, 1378279808, 1378279696, 1378278336, 1378278283, 1378277002, 1378276911, 1378276832, 1378276751, 1378276660]} ##### 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.015471220016479492 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Aug 21 22:30:30 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 (26121970) 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 : 26121970 get user id for portfolio 26121970 get sub ptf for main ptf 26121970, type 3726 and hashtags ['papier', 'Carton_brun', 'flou', 'metal', 'cartonnette', 'plastique', 'kraft', 'environnement', 'Teint_Dans_La_Masse', 'mal_croppe', 'Carton_gris', '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`=26121970 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_brun','flou','metal','cartonnette','plastique','kraft','environnement','Teint_Dans_La_Masse','mal_croppe','Carton_gris','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`=26121970 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_brun','flou','metal','cartonnette','plastique','kraft','environnement','Teint_Dans_La_Masse','mal_croppe','Carton_gris','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 26121970, 'sub_port_id': 26121999, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594129, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 26)}, 'autre_refus': {'main_port_id': 26121970, 'sub_port_id': 26122000, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594130, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 26)}, 'papier': {'main_port_id': 26121970, 'sub_port_id': 26122001, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594131, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 26121970, 'sub_port_id': 26122002, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594132, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 26)}, 'Carton_gris': {'main_port_id': 26121970, 'sub_port_id': 26122003, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594133, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 26)}, 'mal_croppe': {'main_port_id': 26121970, 'sub_port_id': 26122004, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594134, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 26)}, 'Carton_brun': {'main_port_id': 26121970, 'sub_port_id': 26122005, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594135, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 26)}, 'cartonnette': {'main_port_id': 26121970, 'sub_port_id': 26122006, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594136, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 26)}, 'environnement': {'main_port_id': 26121970, 'sub_port_id': 26122007, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594137, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 26)}, 'kraft': {'main_port_id': 26121970, 'sub_port_id': 26122008, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594138, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 26)}, 'metal': {'main_port_id': 26121970, 'sub_port_id': 26122009, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594139, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 26)}, 'flou': {'main_port_id': 26121970, 'sub_port_id': 26122010, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594140, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26121999 , 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=26121970 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 (26121999) result : ((1378284792,), (1378284794,), (1378285846,), (1378285850,), (1378286552,), (1378286556,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26121970) result : ((1378276660,), (1378276751,), (1378276832,), (1378276911,), (1378277002,), (1378278283,), (1378278336,), (1378279696,), (1378279808,), (1378279917,), (1378281437,), (1378281566,), (1378281665,), (1378281767,), (1378282291,), (1378282352,), (1378282424,), (1378282517,), (1378282614,), (1378283257,), (1378283285,), (1378283334,), (1378283391,), (1378283443,), (1378283502,), (1378284105,), (1378284106,), (1378284109,), (1378284110,), (1378284438,), (1378284474,), (1378284512,), (1378284542,), (1378284587,), (1378284620,), (1378284952,), (1378284975,), (1378284987,), (1378284989,), (1378284991,), (1378285241,), (1378285242,), (1378285243,), (1378286077,), (1378286153,), (1378286223,), (1378286298,), (1378286368,), (1378286445,), (1378286765,), (1378286866,), (1378286967,), (1378287063,), (1378287168,), (1378288598,), (1378288622,), (1378288650,), (1378288677,), (1378289275,), (1378289359,), (1378289457,), (1378289550,), (1378289602,), (1378289647,)) 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 26122000 , 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=26121970 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 (26122000) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26121970) result : ((1378276660,), (1378276751,), (1378276832,), (1378276911,), (1378277002,), (1378278283,), (1378278336,), (1378279696,), (1378279808,), (1378279917,), (1378281437,), (1378281566,), (1378281665,), (1378281767,), (1378282291,), (1378282352,), (1378282424,), (1378282517,), (1378282614,), (1378283257,), (1378283285,), (1378283334,), (1378283391,), (1378283443,), (1378283502,), (1378284105,), (1378284106,), (1378284109,), (1378284110,), (1378284438,), (1378284474,), (1378284512,), (1378284542,), (1378284587,), (1378284620,), (1378284952,), (1378284975,), (1378284987,), (1378284989,), (1378284991,), (1378285241,), (1378285242,), (1378285243,), (1378286077,), (1378286153,), (1378286223,), (1378286298,), (1378286368,), (1378286445,), (1378286765,), (1378286866,), (1378286967,), (1378287063,), (1378287168,), (1378288598,), (1378288622,), (1378288650,), (1378288677,), (1378289275,), (1378289359,), (1378289457,), (1378289550,), (1378289602,), (1378289647,)) 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 26122001 , 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=26121970 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 (26122001) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26121970) result : ((1378276660,), (1378276751,), (1378276832,), (1378276911,), (1378277002,), (1378278283,), (1378278336,), (1378279696,), (1378279808,), (1378279917,), (1378281437,), (1378281566,), (1378281665,), (1378281767,), (1378282291,), (1378282352,), (1378282424,), (1378282517,), (1378282614,), (1378283257,), (1378283285,), (1378283334,), (1378283391,), (1378283443,), (1378283502,), (1378284105,), (1378284106,), (1378284109,), (1378284110,), (1378284438,), (1378284474,), (1378284512,), (1378284542,), (1378284587,), (1378284620,), (1378284952,), (1378284975,), (1378284987,), (1378284989,), (1378284991,), (1378285241,), (1378285242,), (1378285243,), (1378286077,), (1378286153,), (1378286223,), (1378286298,), (1378286368,), (1378286445,), (1378286765,), (1378286866,), (1378286967,), (1378287063,), (1378287168,), (1378288598,), (1378288622,), (1378288650,), (1378288677,), (1378289275,), (1378289359,), (1378289457,), (1378289550,), (1378289602,), (1378289647,)) 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 26122002 , 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=26121970 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 (26122002) result : ((1378283846,), (1378283850,), (1378283854,), (1378283858,), (1378283862,), (1378284780,), (1378284782,), (1378284784,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26121970) result : ((1378276660,), (1378276751,), (1378276832,), (1378276911,), (1378277002,), (1378278283,), (1378278336,), (1378279696,), (1378279808,), (1378279917,), (1378281437,), (1378281566,), (1378281665,), (1378281767,), (1378282291,), (1378282352,), (1378282424,), (1378282517,), (1378282614,), (1378283257,), (1378283285,), (1378283334,), (1378283391,), (1378283443,), (1378283502,), (1378284105,), (1378284106,), (1378284109,), (1378284110,), (1378284438,), (1378284474,), (1378284512,), (1378284542,), (1378284587,), (1378284620,), (1378284952,), (1378284975,), (1378284987,), (1378284989,), (1378284991,), (1378285241,), (1378285242,), (1378285243,), (1378286077,), (1378286153,), (1378286223,), (1378286298,), (1378286368,), (1378286445,), (1378286765,), (1378286866,), (1378286967,), (1378287063,), (1378287168,), (1378288598,), (1378288622,), (1378288650,), (1378288677,), (1378289275,), (1378289359,), (1378289457,), (1378289550,), (1378289602,), (1378289647,)) 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 26122003 , 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=26121970 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 (26122003) result : ((1378283881,), (1378285021,), (1378285023,), (1378285809,), (1378285813,), (1378285817,), (1378285821,), (1378286521,), (1378286525,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26121970) result : ((1378276660,), (1378276751,), (1378276832,), (1378276911,), (1378277002,), (1378278283,), (1378278336,), (1378279696,), (1378279808,), (1378279917,), (1378281437,), (1378281566,), (1378281665,), (1378281767,), (1378282291,), (1378282352,), (1378282424,), (1378282517,), (1378282614,), (1378283257,), (1378283285,), (1378283334,), (1378283391,), (1378283443,), (1378283502,), (1378284105,), (1378284106,), (1378284109,), (1378284110,), (1378284438,), (1378284474,), (1378284512,), (1378284542,), (1378284587,), (1378284620,), (1378284952,), (1378284975,), (1378284987,), (1378284989,), (1378284991,), (1378285241,), (1378285242,), (1378285243,), (1378286077,), (1378286153,), (1378286223,), (1378286298,), (1378286368,), (1378286445,), (1378286765,), (1378286866,), (1378286967,), (1378287063,), (1378287168,), (1378288598,), (1378288622,), (1378288650,), (1378288677,), (1378289275,), (1378289359,), (1378289457,), (1378289550,), (1378289602,), (1378289647,)) 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 26122004 , 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=26121970 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 (26122004) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26121970) result : ((1378276660,), (1378276751,), (1378276832,), (1378276911,), (1378277002,), (1378278283,), (1378278336,), (1378279696,), (1378279808,), (1378279917,), (1378281437,), (1378281566,), (1378281665,), (1378281767,), (1378282291,), (1378282352,), (1378282424,), (1378282517,), (1378282614,), (1378283257,), (1378283285,), (1378283334,), (1378283391,), (1378283443,), (1378283502,), (1378284105,), (1378284106,), (1378284109,), (1378284110,), (1378284438,), (1378284474,), (1378284512,), (1378284542,), (1378284587,), (1378284620,), (1378284952,), (1378284975,), (1378284987,), (1378284989,), (1378284991,), (1378285241,), (1378285242,), (1378285243,), (1378286077,), (1378286153,), (1378286223,), (1378286298,), (1378286368,), (1378286445,), (1378286765,), (1378286866,), (1378286967,), (1378287063,), (1378287168,), (1378288598,), (1378288622,), (1378288650,), (1378288677,), (1378289275,), (1378289359,), (1378289457,), (1378289550,), (1378289602,), (1378289647,)) 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 26122005 , 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=26121970 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 (26122005) result : ((1378285046,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26121970) result : ((1378276660,), (1378276751,), (1378276832,), (1378276911,), (1378277002,), (1378278283,), (1378278336,), (1378279696,), (1378279808,), (1378279917,), (1378281437,), (1378281566,), (1378281665,), (1378281767,), (1378282291,), (1378282352,), (1378282424,), (1378282517,), (1378282614,), (1378283257,), (1378283285,), (1378283334,), (1378283391,), (1378283443,), (1378283502,), (1378284105,), (1378284106,), (1378284109,), (1378284110,), (1378284438,), (1378284474,), (1378284512,), (1378284542,), (1378284587,), (1378284620,), (1378284952,), (1378284975,), (1378284987,), (1378284989,), (1378284991,), (1378285241,), (1378285242,), (1378285243,), (1378286077,), (1378286153,), (1378286223,), (1378286298,), (1378286368,), (1378286445,), (1378286765,), (1378286866,), (1378286967,), (1378287063,), (1378287168,), (1378288598,), (1378288622,), (1378288650,), (1378288677,), (1378289275,), (1378289359,), (1378289457,), (1378289550,), (1378289602,), (1378289647,)) 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 26122006 , 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=26121970 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 (26122006) result : ((1378283894,), (1378285033,), (1378285035,), (1378285038,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26121970) result : ((1378276660,), (1378276751,), (1378276832,), (1378276911,), (1378277002,), (1378278283,), (1378278336,), (1378279696,), (1378279808,), (1378279917,), (1378281437,), (1378281566,), (1378281665,), (1378281767,), (1378282291,), (1378282352,), (1378282424,), (1378282517,), (1378282614,), (1378283257,), (1378283285,), (1378283334,), (1378283391,), (1378283443,), (1378283502,), (1378284105,), (1378284106,), (1378284109,), (1378284110,), (1378284438,), (1378284474,), (1378284512,), (1378284542,), (1378284587,), (1378284620,), (1378284952,), (1378284975,), (1378284987,), (1378284989,), (1378284991,), (1378285241,), (1378285242,), (1378285243,), (1378286077,), (1378286153,), (1378286223,), (1378286298,), (1378286368,), (1378286445,), (1378286765,), (1378286866,), (1378286967,), (1378287063,), (1378287168,), (1378288598,), (1378288622,), (1378288650,), (1378288677,), (1378289275,), (1378289359,), (1378289457,), (1378289550,), (1378289602,), (1378289647,)) 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 26122007 , 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=26121970 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 (26122007) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26121970) result : ((1378276660,), (1378276751,), (1378276832,), (1378276911,), (1378277002,), (1378278283,), (1378278336,), (1378279696,), (1378279808,), (1378279917,), (1378281437,), (1378281566,), (1378281665,), (1378281767,), (1378282291,), (1378282352,), (1378282424,), (1378282517,), (1378282614,), (1378283257,), (1378283285,), (1378283334,), (1378283391,), (1378283443,), (1378283502,), (1378284105,), (1378284106,), (1378284109,), (1378284110,), (1378284438,), (1378284474,), (1378284512,), (1378284542,), (1378284587,), (1378284620,), (1378284952,), (1378284975,), (1378284987,), (1378284989,), (1378284991,), (1378285241,), (1378285242,), (1378285243,), (1378286077,), (1378286153,), (1378286223,), (1378286298,), (1378286368,), (1378286445,), (1378286765,), (1378286866,), (1378286967,), (1378287063,), (1378287168,), (1378288598,), (1378288622,), (1378288650,), (1378288677,), (1378289275,), (1378289359,), (1378289457,), (1378289550,), (1378289602,), (1378289647,)) 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 26122008 , 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=26121970 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 (26122008) result : ((1378286579,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26121970) result : ((1378276660,), (1378276751,), (1378276832,), (1378276911,), (1378277002,), (1378278283,), (1378278336,), (1378279696,), (1378279808,), (1378279917,), (1378281437,), (1378281566,), (1378281665,), (1378281767,), (1378282291,), (1378282352,), (1378282424,), (1378282517,), (1378282614,), (1378283257,), (1378283285,), (1378283334,), (1378283391,), (1378283443,), (1378283502,), (1378284105,), (1378284106,), (1378284109,), (1378284110,), (1378284438,), (1378284474,), (1378284512,), (1378284542,), (1378284587,), (1378284620,), (1378284952,), (1378284975,), (1378284987,), (1378284989,), (1378284991,), (1378285241,), (1378285242,), (1378285243,), (1378286077,), (1378286153,), (1378286223,), (1378286298,), (1378286368,), (1378286445,), (1378286765,), (1378286866,), (1378286967,), (1378287063,), (1378287168,), (1378288598,), (1378288622,), (1378288650,), (1378288677,), (1378289275,), (1378289359,), (1378289457,), (1378289550,), (1378289602,), (1378289647,)) 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 26122009 , 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=26121970 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 (26122009) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26121970) result : ((1378276660,), (1378276751,), (1378276832,), (1378276911,), (1378277002,), (1378278283,), (1378278336,), (1378279696,), (1378279808,), (1378279917,), (1378281437,), (1378281566,), (1378281665,), (1378281767,), (1378282291,), (1378282352,), (1378282424,), (1378282517,), (1378282614,), (1378283257,), (1378283285,), (1378283334,), (1378283391,), (1378283443,), (1378283502,), (1378284105,), (1378284106,), (1378284109,), (1378284110,), (1378284438,), (1378284474,), (1378284512,), (1378284542,), (1378284587,), (1378284620,), (1378284952,), (1378284975,), (1378284987,), (1378284989,), (1378284991,), (1378285241,), (1378285242,), (1378285243,), (1378286077,), (1378286153,), (1378286223,), (1378286298,), (1378286368,), (1378286445,), (1378286765,), (1378286866,), (1378286967,), (1378287063,), (1378287168,), (1378288598,), (1378288622,), (1378288650,), (1378288677,), (1378289275,), (1378289359,), (1378289457,), (1378289550,), (1378289602,), (1378289647,)) 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 26122010 , 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=26121970 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 (26122010) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26121970) result : ((1378276660,), (1378276751,), (1378276832,), (1378276911,), (1378277002,), (1378278283,), (1378278336,), (1378279696,), (1378279808,), (1378279917,), (1378281437,), (1378281566,), (1378281665,), (1378281767,), (1378282291,), (1378282352,), (1378282424,), (1378282517,), (1378282614,), (1378283257,), (1378283285,), (1378283334,), (1378283391,), (1378283443,), (1378283502,), (1378284105,), (1378284106,), (1378284109,), (1378284110,), (1378284438,), (1378284474,), (1378284512,), (1378284542,), (1378284587,), (1378284620,), (1378284952,), (1378284975,), (1378284987,), (1378284989,), (1378284991,), (1378285241,), (1378285242,), (1378285243,), (1378286077,), (1378286153,), (1378286223,), (1378286298,), (1378286368,), (1378286445,), (1378286765,), (1378286866,), (1378286967,), (1378287063,), (1378287168,), (1378288598,), (1378288622,), (1378288650,), (1378288677,), (1378289275,), (1378289359,), (1378289457,), (1378289550,), (1378289602,), (1378289647,)) 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`=26121970 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_brun','flou','metal','cartonnette','plastique','kraft','environnement','Teint_Dans_La_Masse','mal_croppe','Carton_gris','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`=26121970 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_brun','flou','metal','cartonnette','plastique','kraft','environnement','Teint_Dans_La_Masse','mal_croppe','Carton_gris','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 26121970, 'sub_port_id': 26122011, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594141, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 28)}, 'autre_refus': {'main_port_id': 26121970, 'sub_port_id': 26122012, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594142, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 28)}, 'papier': {'main_port_id': 26121970, 'sub_port_id': 26122013, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594143, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 26121970, 'sub_port_id': 26122014, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594144, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 28)}, 'Carton_gris': {'main_port_id': 26121970, 'sub_port_id': 26122015, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594145, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 28)}, 'mal_croppe': {'main_port_id': 26121970, 'sub_port_id': 26122016, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594146, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 28)}, 'Carton_brun': {'main_port_id': 26121970, 'sub_port_id': 26122017, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594147, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 28)}, 'cartonnette': {'main_port_id': 26121970, 'sub_port_id': 26122018, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594148, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 28)}, 'environnement': {'main_port_id': 26121970, 'sub_port_id': 26122019, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594149, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 28)}, 'kraft': {'main_port_id': 26121970, 'sub_port_id': 26122020, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594150, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 28)}, 'metal': {'main_port_id': 26121970, 'sub_port_id': 26122021, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594151, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 28)}, 'flou': {'main_port_id': 26121970, 'sub_port_id': 26122022, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17594152, 'last_updated_at': datetime.datetime(2025, 8, 21, 22, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 21, 22, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 21, 22, 19, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26122011,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26121999 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26122012,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26122000 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26122013,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26122001 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26122014,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26122002 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26122015,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26122003 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26122016,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26122004 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26122017,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26122005 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26122018,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26122006 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26122019,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26122007 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26122020,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26122008 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26122021,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26122009 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26122022,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26122010 lien utilise dans velours : https://www.fotonower.com/velours/26122011,26122012,26122013,26122014,26122015,26122016,26122017,26122018,26122019,26122020,26122021,26122022?tags=plastique,autre_refus,papier,Teint_Dans_La_Masse,Carton_gris,mal_croppe,Carton_brun,cartonnette,environnement,kraft,metal,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26121970]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1378289647, 1378289602, 1378289550, 1378289457, 1378289359, 1378289275, 1378288677, 1378288650, 1378288622, 1378288598] map_info['map_portfolio_photo'] : {26121970: [1378289647, 1378289602, 1378289550, 1378289457, 1378289359, 1378289275, 1378288677, 1378288650, 1378288622, 1378288598, 1378287168, 1378287063, 1378286967, 1378286866, 1378286765, 1378286445, 1378286368, 1378286298, 1378286223, 1378286153, 1378286077, 1378285243, 1378285242, 1378285241, 1378284991, 1378284989, 1378284987, 1378284975, 1378284952, 1378284620, 1378284587, 1378284542, 1378284512, 1378284474, 1378284438, 1378284110, 1378284109, 1378284106, 1378284105, 1378283502, 1378283443, 1378283391, 1378283334, 1378283285, 1378283257, 1378282614, 1378282517, 1378282424, 1378282352, 1378282291, 1378281767, 1378281665, 1378281566, 1378281437, 1378279917, 1378279808, 1378279696, 1378278336, 1378278283, 1378277002, 1378276911, 1378276832, 1378276751, 1378276660]} final : False mtd_id 4302 list_pids : [1378289647, 1378289602, 1378289550, 1378289457, 1378289359, 1378289275, 1378288677, 1378288650, 1378288622, 1378288598] Looping around the photos to save general results len do output : 1 /26121970. 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, '3569063') ('4302', '26121970', '1378289647', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378289602', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378289550', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378289457', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378289359', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378289275', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378288677', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378288650', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378288622', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378288598', None, None, None, None, None, '3569063') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26121970', "{'plastique': 26121999, 'autre_refus': 26122000, 'papier': 26122001, 'Teint_Dans_La_Masse': 26122002, 'Carton_gris': 26122003, 'mal_croppe': 26122004, 'Carton_brun': 26122005, 'cartonnette': 26122006, 'environnement': 26122007, 'kraft': 26122008, 'metal': 26122009, 'flou': 26122010}", None, None, None, None, '3569063'), ('4302', '26121970', '1378289647', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378289602', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378289550', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378289457', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378289359', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378289275', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378288677', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378288650', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378288622', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378288598', None, None, None, None, None, '3569063')] time used for this insertion : 0.014404058456420898 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5588879585266113 time spend to save output : 0.015157461166381836 total time spend for step 1 : 1.5740454196929932 step2:final Thu Aug 21 22:30:32 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 (26121970) 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 26121970 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1378277002,1378276911,1378276832,1378276751,1378276660,1378278336,1378278283,1378279917,1378279808,1378279696,1378281767,1378281665,1378281566,1378281437,1378282614,1378282517,1378282424,1378282352,1378283502,1378282291,1378283443,1378283391,1378283334,1378283285,1378283257,1378284109,1378284110,1378284105,1378284106,1378284620,1378284587,1378284542,1378284512,1378284474,1378284438,1378284991,1378284989,1378284987,1378284975,1378284952,1378285243,1378285242,1378285241,1378286445,1378286368,1378286298,1378286223,1378286153,1378286077,1378287168,1378287063,1378286967,1378286866,1378286765,1378288677,1378288650,1378288622,1378288598,1378289647,1378289602,1378289550,1378289457,1378289359,1378289275); 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([26121970]) Inside saveOutput : final : False verbose : True original output for save of step final : {1378289647: ('0.047892098748535186',), 1378289602: ('0.047892098748535186',), 1378289550: ('0.047892098748535186',), 1378289457: ('0.047892098748535186',), 1378289359: ('0.047892098748535186',), 1378289275: ('0.047892098748535186',), 1378288677: ('0.047892098748535186',), 1378288650: ('0.047892098748535186',), 1378288622: ('0.047892098748535186',), 1378288598: ('0.047892098748535186',)} new output for save of step final : {1378289647: ('0.047892098748535186',), 1378289602: ('0.047892098748535186',), 1378289550: ('0.047892098748535186',), 1378289457: ('0.047892098748535186',), 1378289359: ('0.047892098748535186',), 1378289275: ('0.047892098748535186',), 1378288677: ('0.047892098748535186',), 1378288650: ('0.047892098748535186',), 1378288622: ('0.047892098748535186',), 1378288598: ('0.047892098748535186',)} [1378289647, 1378289602, 1378289550, 1378289457, 1378289359, 1378289275, 1378288677, 1378288650, 1378288622, 1378288598] map_info['map_portfolio_photo'] : {26121970: [1378289647, 1378289602, 1378289550, 1378289457, 1378289359, 1378289275, 1378288677, 1378288650, 1378288622, 1378288598, 1378287168, 1378287063, 1378286967, 1378286866, 1378286765, 1378286445, 1378286368, 1378286298, 1378286223, 1378286153, 1378286077, 1378285243, 1378285242, 1378285241, 1378284991, 1378284989, 1378284987, 1378284975, 1378284952, 1378284620, 1378284587, 1378284542, 1378284512, 1378284474, 1378284438, 1378284110, 1378284109, 1378284106, 1378284105, 1378283502, 1378283443, 1378283391, 1378283334, 1378283285, 1378283257, 1378282614, 1378282517, 1378282424, 1378282352, 1378282291, 1378281767, 1378281665, 1378281566, 1378281437, 1378279917, 1378279808, 1378279696, 1378278336, 1378278283, 1378277002, 1378276911, 1378276832, 1378276751, 1378276660]} final : False mtd_id 4302 list_pids : [1378289647, 1378289602, 1378289550, 1378289457, 1378289359, 1378289275, 1378288677, 1378288650, 1378288622, 1378288598] Looping around the photos to save general results len do output : 10 /1378289647.Didn't retrieve data . /1378289602.Didn't retrieve data . /1378289550.Didn't retrieve data . /1378289457.Didn't retrieve data . /1378289359.Didn't retrieve data . /1378289275.Didn't retrieve data . /1378288677.Didn't retrieve data . /1378288650.Didn't retrieve data . /1378288622.Didn't retrieve data . /1378288598.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, '3569063') ('4302', '26121970', '1378289647', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378289602', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378289550', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378289457', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378289359', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378289275', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378288677', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378288650', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378288622', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378288598', None, None, None, None, None, '3569063') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '26121970', '1378289647', '0.047892098748535186', None, None, None, None, '3569063'), ('4302', '26121970', '1378289602', '0.047892098748535186', None, None, None, None, '3569063'), ('4302', '26121970', '1378289550', '0.047892098748535186', None, None, None, None, '3569063'), ('4302', '26121970', '1378289457', '0.047892098748535186', None, None, None, None, '3569063'), ('4302', '26121970', '1378289359', '0.047892098748535186', None, None, None, None, '3569063'), ('4302', '26121970', '1378289275', '0.047892098748535186', None, None, None, None, '3569063'), ('4302', '26121970', '1378288677', '0.047892098748535186', None, None, None, None, '3569063'), ('4302', '26121970', '1378288650', '0.047892098748535186', None, None, None, None, '3569063'), ('4302', '26121970', '1378288622', '0.047892098748535186', None, None, None, None, '3569063'), ('4302', '26121970', '1378288598', '0.047892098748535186', None, None, None, None, '3569063')] time used for this insertion : 0.012898445129394531 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0666499137878418 time spend to save output : 0.01342153549194336 total time spend for step 2 : 0.08007144927978516 step3:velours_tree Thu Aug 21 22:30:32 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 : {26121970: [{'plastique': 26121999, 'autre_refus': 26122000, 'papier': 26122001, 'Teint_Dans_La_Masse': 26122002, 'Carton_gris': 26122003, 'mal_croppe': 26122004, 'Carton_brun': 26122005, 'cartonnette': 26122006, 'environnement': 26122007, 'kraft': 26122008, 'metal': 26122009, 'flou': 26122010}]} input_args_next_step : {26121970: ()} output_args : {26121970: [{'plastique': 26121999, 'autre_refus': 26122000, 'papier': 26122001, 'Teint_Dans_La_Masse': 26122002, 'Carton_gris': 26122003, 'mal_croppe': 26122004, 'Carton_brun': 26122005, 'cartonnette': 26122006, 'environnement': 26122007, 'kraft': 26122008, 'metal': 26122009, 'flou': 26122010}]} args : 26121970 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'plastique': 26121999, 'autre_refus': 26122000, 'papier': 26122001, 'Teint_Dans_La_Masse': 26122002, 'Carton_gris': 26122003, 'mal_croppe': 26122004, 'Carton_brun': 26122005, 'cartonnette': 26122006, 'environnement': 26122007, 'kraft': 26122008, 'metal': 26122009, 'flou': 26122010},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26121970) 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([26121970]) 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.28236842155456543 time spend to save output : 5.626678466796875e-05 total time spend for step 3 : 0.2824246883392334 step4:send_mail_cod Thu Aug 21 22:30:32 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 : {1378289647: ('0.047892098748535186',), 1378289602: ('0.047892098748535186',), 1378289550: ('0.047892098748535186',), 1378289457: ('0.047892098748535186',), 1378289359: ('0.047892098748535186',), 1378289275: ('0.047892098748535186',), 1378288677: ('0.047892098748535186',), 1378288650: ('0.047892098748535186',), 1378288622: ('0.047892098748535186',), 1378288598: ('0.047892098748535186',)} input_args_next_step : {1378289647: ()} output_args : {1378289647: ('0.047892098748535186',), 1378289602: ('0.047892098748535186',), 1378289550: ('0.047892098748535186',), 1378289457: ('0.047892098748535186',), 1378289359: ('0.047892098748535186',), 1378289275: ('0.047892098748535186',), 1378288677: ('0.047892098748535186',), 1378288650: ('0.047892098748535186',), 1378288622: ('0.047892098748535186',), 1378288598: ('0.047892098748535186',)} args : 1378289647 depend.output_id : 0 input_args_next_step : {1378289647: ('0.047892098748535186',), 1378289602: ()} output_args : {1378289647: ('0.047892098748535186',), 1378289602: ('0.047892098748535186',), 1378289550: ('0.047892098748535186',), 1378289457: ('0.047892098748535186',), 1378289359: ('0.047892098748535186',), 1378289275: ('0.047892098748535186',), 1378288677: ('0.047892098748535186',), 1378288650: ('0.047892098748535186',), 1378288622: ('0.047892098748535186',), 1378288598: ('0.047892098748535186',)} args : 1378289602 depend.output_id : 0 input_args_next_step : {1378289647: ('0.047892098748535186',), 1378289602: ('0.047892098748535186',), 1378289550: ()} output_args : {1378289647: ('0.047892098748535186',), 1378289602: ('0.047892098748535186',), 1378289550: ('0.047892098748535186',), 1378289457: ('0.047892098748535186',), 1378289359: ('0.047892098748535186',), 1378289275: ('0.047892098748535186',), 1378288677: ('0.047892098748535186',), 1378288650: ('0.047892098748535186',), 1378288622: ('0.047892098748535186',), 1378288598: ('0.047892098748535186',)} args : 1378289550 depend.output_id : 0 input_args_next_step : {1378289647: ('0.047892098748535186',), 1378289602: ('0.047892098748535186',), 1378289550: ('0.047892098748535186',), 1378289457: ()} output_args : {1378289647: ('0.047892098748535186',), 1378289602: ('0.047892098748535186',), 1378289550: ('0.047892098748535186',), 1378289457: ('0.047892098748535186',), 1378289359: ('0.047892098748535186',), 1378289275: ('0.047892098748535186',), 1378288677: ('0.047892098748535186',), 1378288650: ('0.047892098748535186',), 1378288622: ('0.047892098748535186',), 1378288598: ('0.047892098748535186',)} args : 1378289457 depend.output_id : 0 input_args_next_step : {1378289647: ('0.047892098748535186',), 1378289602: ('0.047892098748535186',), 1378289550: ('0.047892098748535186',), 1378289457: ('0.047892098748535186',), 1378289359: ()} output_args : {1378289647: ('0.047892098748535186',), 1378289602: ('0.047892098748535186',), 1378289550: ('0.047892098748535186',), 1378289457: ('0.047892098748535186',), 1378289359: ('0.047892098748535186',), 1378289275: ('0.047892098748535186',), 1378288677: ('0.047892098748535186',), 1378288650: ('0.047892098748535186',), 1378288622: ('0.047892098748535186',), 1378288598: ('0.047892098748535186',)} args : 1378289359 depend.output_id : 0 input_args_next_step : {1378289647: ('0.047892098748535186',), 1378289602: ('0.047892098748535186',), 1378289550: ('0.047892098748535186',), 1378289457: ('0.047892098748535186',), 1378289359: ('0.047892098748535186',), 1378289275: ()} output_args : {1378289647: ('0.047892098748535186',), 1378289602: ('0.047892098748535186',), 1378289550: ('0.047892098748535186',), 1378289457: ('0.047892098748535186',), 1378289359: ('0.047892098748535186',), 1378289275: ('0.047892098748535186',), 1378288677: ('0.047892098748535186',), 1378288650: ('0.047892098748535186',), 1378288622: ('0.047892098748535186',), 1378288598: ('0.047892098748535186',)} args : 1378289275 depend.output_id : 0 input_args_next_step : {1378289647: ('0.047892098748535186',), 1378289602: ('0.047892098748535186',), 1378289550: ('0.047892098748535186',), 1378289457: ('0.047892098748535186',), 1378289359: ('0.047892098748535186',), 1378289275: ('0.047892098748535186',), 1378288677: ()} output_args : {1378289647: ('0.047892098748535186',), 1378289602: ('0.047892098748535186',), 1378289550: ('0.047892098748535186',), 1378289457: ('0.047892098748535186',), 1378289359: ('0.047892098748535186',), 1378289275: ('0.047892098748535186',), 1378288677: ('0.047892098748535186',), 1378288650: ('0.047892098748535186',), 1378288622: ('0.047892098748535186',), 1378288598: ('0.047892098748535186',)} args : 1378288677 depend.output_id : 0 input_args_next_step : {1378289647: ('0.047892098748535186',), 1378289602: ('0.047892098748535186',), 1378289550: ('0.047892098748535186',), 1378289457: ('0.047892098748535186',), 1378289359: ('0.047892098748535186',), 1378289275: ('0.047892098748535186',), 1378288677: ('0.047892098748535186',), 1378288650: ()} output_args : {1378289647: ('0.047892098748535186',), 1378289602: ('0.047892098748535186',), 1378289550: ('0.047892098748535186',), 1378289457: ('0.047892098748535186',), 1378289359: ('0.047892098748535186',), 1378289275: ('0.047892098748535186',), 1378288677: ('0.047892098748535186',), 1378288650: ('0.047892098748535186',), 1378288622: ('0.047892098748535186',), 1378288598: ('0.047892098748535186',)} args : 1378288650 depend.output_id : 0 input_args_next_step : {1378289647: ('0.047892098748535186',), 1378289602: ('0.047892098748535186',), 1378289550: ('0.047892098748535186',), 1378289457: ('0.047892098748535186',), 1378289359: ('0.047892098748535186',), 1378289275: ('0.047892098748535186',), 1378288677: ('0.047892098748535186',), 1378288650: ('0.047892098748535186',), 1378288622: ()} output_args : {1378289647: ('0.047892098748535186',), 1378289602: ('0.047892098748535186',), 1378289550: ('0.047892098748535186',), 1378289457: ('0.047892098748535186',), 1378289359: ('0.047892098748535186',), 1378289275: ('0.047892098748535186',), 1378288677: ('0.047892098748535186',), 1378288650: ('0.047892098748535186',), 1378288622: ('0.047892098748535186',), 1378288598: ('0.047892098748535186',)} args : 1378288622 depend.output_id : 0 input_args_next_step : {1378289647: ('0.047892098748535186',), 1378289602: ('0.047892098748535186',), 1378289550: ('0.047892098748535186',), 1378289457: ('0.047892098748535186',), 1378289359: ('0.047892098748535186',), 1378289275: ('0.047892098748535186',), 1378288677: ('0.047892098748535186',), 1378288650: ('0.047892098748535186',), 1378288622: ('0.047892098748535186',), 1378288598: ()} output_args : {1378289647: ('0.047892098748535186',), 1378289602: ('0.047892098748535186',), 1378289550: ('0.047892098748535186',), 1378289457: ('0.047892098748535186',), 1378289359: ('0.047892098748535186',), 1378289275: ('0.047892098748535186',), 1378288677: ('0.047892098748535186',), 1378288650: ('0.047892098748535186',), 1378288622: ('0.047892098748535186',), 1378288598: ('0.047892098748535186',)} args : 1378288598 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 : {26121970: [{'plastique': 26121999, 'autre_refus': 26122000, 'papier': 26122001, 'Teint_Dans_La_Masse': 26122002, 'Carton_gris': 26122003, 'mal_croppe': 26122004, 'Carton_brun': 26122005, 'cartonnette': 26122006, 'environnement': 26122007, 'kraft': 26122008, 'metal': 26122009, 'flou': 26122010}]} input_args_next_step : {1378289647: ('0.047892098748535186',), 1378289602: ('0.047892098748535186',), 1378289550: ('0.047892098748535186',), 1378289457: ('0.047892098748535186',), 1378289359: ('0.047892098748535186',), 1378289275: ('0.047892098748535186',), 1378288677: ('0.047892098748535186',), 1378288650: ('0.047892098748535186',), 1378288622: ('0.047892098748535186',), 1378288598: ('0.047892098748535186',), 26121970: ()} output_args : {26121970: [{'plastique': 26121999, 'autre_refus': 26122000, 'papier': 26122001, 'Teint_Dans_La_Masse': 26122002, 'Carton_gris': 26122003, 'mal_croppe': 26122004, 'Carton_brun': 26122005, 'cartonnette': 26122006, 'environnement': 26122007, 'kraft': 26122008, 'metal': 26122009, 'flou': 26122010}]} args : 26121970 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :11, first value : ('0.047892098748535186',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26121970) 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 (1378289647,1378289602,1378289550,1378289457,1378289359,1378289275,1378288677,1378288650,1378288622,1378288598) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1378288598 begin to download photo : 1378288677 begin to download photo : 1378289457 begin to download photo : 1378289647 download finish for photo 1378288677 begin to download photo : 1378289275 download finish for photo 1378288598 begin to download photo : 1378288622 download finish for photo 1378289457 begin to download photo : 1378289550 download finish for photo 1378289647 download finish for photo 1378288622 begin to download photo : 1378288650 download finish for photo 1378289275 begin to download photo : 1378289359 download finish for photo 1378289550 begin to download photo : 1378289602 download finish for photo 1378289359 download finish for photo 1378288650 download finish for photo 1378289602 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P26121970_21-08-2025_22_30_33.pdf 26121999 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=26121999 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1378284792: '1755807805_77882_1378279808_34f947838fbd332fa8fc74d64f9f76d2_rle_crop_3923360553_0.png', 1378284794: '1755807805_77882_1378279696_aa3b9c7b1d2f2851299cb994632c05c5_rle_crop_3923360560_0.png', 1378285846: '1755807927_84686_1378282352_a62f8cae0f97cd09de3d5e6a56684402_rle_crop_3923374260_0.png', 1378285850: '1755807927_84686_1378282291_2c651566873882461b0980c21837a0bd_rle_crop_3923374273_0.png', 1378286552: '1755807987_86337_1378284512_503304973e339692121d43de7b5049e3_rle_crop_3923387297_0.png', 1378286556: '1755807987_86337_1378284512_503304973e339692121d43de7b5049e3_rle_crop_3923387296_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/f68f591a73c6af46f490e1f0e07080ea_51685543.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/11523cb071f510d5d1d7d54070d9a057_74286940.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/0504dc037f49ce23b4c72e776f590c89_30135809.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/69a721253bea63c60add4accd8a9cd45_72334147.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/e72398957392197c84d318fefafe2c69_50211337.png change filename to text .imagette261219991755808233/ imagette261219991755808233/1755807927_84686_1378282352_a62f8cae0f97cd09de3d5e6a56684402_rle_crop_3923374260_0.png.png imagette261219991755808233/1755807805_77882_1378279808_34f947838fbd332fa8fc74d64f9f76d2_rle_crop_3923360553_0.png.png imagette261219991755808233/1755807987_86337_1378284512_503304973e339692121d43de7b5049e3_rle_crop_3923387296_0.png.png imagette261219991755808233/1755807805_77882_1378279696_aa3b9c7b1d2f2851299cb994632c05c5_rle_crop_3923360560_0.png.png imagette261219991755808233/1755807987_86337_1378284512_503304973e339692121d43de7b5049e3_rle_crop_3923387297_0.png.png imagette261219991755808233/1755807927_84686_1378282291_2c651566873882461b0980c21837a0bd_rle_crop_3923374273_0.png.png imagette261220001755808233/ imagette261220041755808233/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/d9d6f3467c7c1aa23d8330573cf33e6f_90038938.png imagette261219991755808233 26122000 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=26122000 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261220001755808233 26122004 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=26122004 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261220041755808233 26122006 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=26122006 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1378283894: '1755807686_71946_1378276911_5c3d6694b53cb31d3064f40c45881d60_rle_crop_3923335690_0.png', 1378285033: '1755807867_82398_1378283391_22b1fddeaf20577d45d9c9fd62366102_rle_crop_3923360727_0.png', 1378285035: '1755807867_82398_1378283391_22b1fddeaf20577d45d9c9fd62366102_rle_crop_3923360728_0.png', 1378285038: '1755807867_82398_1378283334_0c98d78b58ec77462e953eda820c0530_rle_crop_3923360736_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/d197529f9fa9a19fa763e0e5ed6fedb1_10351611.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/10a06e73024eed2afd9207a5a61e21bd_84468675.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/bbdd802383ea4ec82882ba60211128d2_32210417.png change filename to text .imagette261220061755808233/ imagette261220061755808233/1755807867_82398_1378283391_22b1fddeaf20577d45d9c9fd62366102_rle_crop_3923360727_0.png.png imagette261220061755808233/1755807867_82398_1378283334_0c98d78b58ec77462e953eda820c0530_rle_crop_3923360736_0.png.png imagette261220061755808233/1755807686_71946_1378276911_5c3d6694b53cb31d3064f40c45881d60_rle_crop_3923335690_0.png.png imagette261220061755808233/1755807867_82398_1378283391_22b1fddeaf20577d45d9c9fd62366102_rle_crop_3923360728_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/1b91391c3d5d9b3539353d4296183bf7_974551.png imagette261220061755808233 26122008 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=26122008 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1378286579: '1755807987_86337_1378284438_30a1101f143a589fc8f6ae36d6f00c84_rle_crop_3923387315_0.png'} change filename to text .imagette261220081755808233/ imagette261220081755808233/1755807987_86337_1378284438_30a1101f143a589fc8f6ae36d6f00c84_rle_crop_3923387315_0.png.png imagette261220091755808234/ imagette261220101755808234/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/cacb7877fd699fcc347db518d3026946_36292644.png imagette261220081755808233 26122009 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=26122009 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261220091755808234 26122010 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=26122010 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette261220101755808234 26122002 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=26122002 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1378283846: '1755807686_71946_1378278336_2c8a3f839dcecb0d07b41412dd51092e_rle_crop_3923335638_0.png', 1378283850: '1755807686_71946_1378276832_ebb0ffe50de271cce33b375f0bac91aa_rle_crop_3923335731_0.png', 1378283854: '1755807686_71946_1378276751_4456afb53b689203e03a9a4c95427fa4_rle_crop_3923337784_0.png', 1378283858: '1755807686_71946_1378276751_4456afb53b689203e03a9a4c95427fa4_rle_crop_3923337790_0.png', 1378283862: '1755807686_71946_1378276660_88eb5445da26ff7010a2412e996784e5_rle_crop_3923337819_0.png', 1378284780: '1755807805_77882_1378281767_cec8bf87eec9a279a258c66de389350b_rle_crop_3923360544_0.png', 1378284782: '1755807805_77882_1378281767_cec8bf87eec9a279a258c66de389350b_rle_crop_3923360548_0.png', 1378284784: '1755807805_77882_1378279696_aa3b9c7b1d2f2851299cb994632c05c5_rle_crop_3923360562_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/c0a74275f90e6f46d2a1671b61453dec_72033212.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/6ee89f1c51dbdf933d3f29460e7b95be_10375010.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/d37869b45834dfada550dbf49e11e25d_42915524.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/b0c237726671fba6f4204b5b9fa3eed9_58807038.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/f99529c138c5840e763aa7b65fd61e2d_56295578.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/b30029c89a59c61bff82588be856ee18_24858421.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/2c08fc7fada3b6b94f73542bd05d289d_60569080.png change filename to text .imagette261220021755808234/ imagette261220021755808234/1755807805_77882_1378281767_cec8bf87eec9a279a258c66de389350b_rle_crop_3923360548_0.png.png imagette261220021755808234/1755807686_71946_1378276751_4456afb53b689203e03a9a4c95427fa4_rle_crop_3923337784_0.png.png imagette261220021755808234/1755807686_71946_1378276751_4456afb53b689203e03a9a4c95427fa4_rle_crop_3923337790_0.png.png imagette261220021755808234/1755807686_71946_1378278336_2c8a3f839dcecb0d07b41412dd51092e_rle_crop_3923335638_0.png.png imagette261220021755808234/1755807805_77882_1378281767_cec8bf87eec9a279a258c66de389350b_rle_crop_3923360544_0.png.png imagette261220021755808234/1755807686_71946_1378276832_ebb0ffe50de271cce33b375f0bac91aa_rle_crop_3923335731_0.png.png imagette261220021755808234/1755807805_77882_1378279696_aa3b9c7b1d2f2851299cb994632c05c5_rle_crop_3923360562_0.png.png imagette261220021755808234/1755807686_71946_1378276660_88eb5445da26ff7010a2412e996784e5_rle_crop_3923337819_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/cfea54d66a1e7ce955a6cfe38d410de3_83808772.png imagette261220021755808234 26122003 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=26122003 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1378283881: '1755807686_71946_1378276751_4456afb53b689203e03a9a4c95427fa4_rle_crop_3923337779_0.png', 1378285021: '1755807867_82398_1378283443_a91d8610962b624df250a458f0f86b33_rle_crop_3923360716_0.png', 1378285023: '1755807867_82398_1378283257_2eaa0916cbebd7a7d18a266a4d8491e8_rle_crop_3923360759_0.png', 1378285809: '1755807927_84686_1378283502_5c5b6d9b80716d2c8c2cf9bdf7f25003_rle_crop_3923374221_0.png', 1378285813: '1755807927_84686_1378282424_61a3a8b6aa3c1c02130d8360c6e8d678_rle_crop_3923374243_0.png', 1378285817: '1755807927_84686_1378282352_a62f8cae0f97cd09de3d5e6a56684402_rle_crop_3923374248_0.png', 1378285821: '1755807927_84686_1378282352_a62f8cae0f97cd09de3d5e6a56684402_rle_crop_3923374250_0.png', 1378286521: '1755807987_86337_1378284438_30a1101f143a589fc8f6ae36d6f00c84_rle_crop_3923387321_0.png', 1378286525: '1755807987_86337_1378284438_30a1101f143a589fc8f6ae36d6f00c84_rle_crop_3923387319_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/bbab0977e92f286acce676e61907145d_56930994.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/e46a204ced2210139d6414e850e55efc_90932523.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/d7e30b365b3c6bccba2a72adc0108b38_48177951.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/4e90baf6f38d30ae5709515ee734dff0_9755971.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/8c945f2dc39ed8429fd5339b63ea4d9b_26395544.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/71fc8cf95e4a443398ef28bd135f6300_56116610.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/b472b47c6215eaac2f66fe42b7948ea8_92794949.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/9d2377419b8f3913333bcaf4ceb96bf5_97895747.png change filename to text .imagette261220031755808234/ imagette261220031755808234/1755807686_71946_1378276751_4456afb53b689203e03a9a4c95427fa4_rle_crop_3923337779_0.png.png imagette261220031755808234/1755807927_84686_1378282352_a62f8cae0f97cd09de3d5e6a56684402_rle_crop_3923374248_0.png.png imagette261220031755808234/1755807927_84686_1378282352_a62f8cae0f97cd09de3d5e6a56684402_rle_crop_3923374250_0.png.png imagette261220031755808234/1755807927_84686_1378283502_5c5b6d9b80716d2c8c2cf9bdf7f25003_rle_crop_3923374221_0.png.png imagette261220031755808234/1755807987_86337_1378284438_30a1101f143a589fc8f6ae36d6f00c84_rle_crop_3923387319_0.png.png imagette261220031755808234/1755807927_84686_1378282424_61a3a8b6aa3c1c02130d8360c6e8d678_rle_crop_3923374243_0.png.png imagette261220031755808234/1755807867_82398_1378283443_a91d8610962b624df250a458f0f86b33_rle_crop_3923360716_0.png.png imagette261220031755808234/1755807987_86337_1378284438_30a1101f143a589fc8f6ae36d6f00c84_rle_crop_3923387321_0.png.png imagette261220031755808234/1755807867_82398_1378283257_2eaa0916cbebd7a7d18a266a4d8491e8_rle_crop_3923360759_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/d16424b21530cb7f6f3824e69314cf39_74196004.png imagette261220031755808234 26122005 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=26122005 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1378285046: '1755807867_82398_1378283285_85dce23bfd294ed4f0712551d866c054_rle_crop_3923360753_0.png'} change filename to text .imagette261220051755808235/ imagette261220051755808235/1755807867_82398_1378283285_85dce23bfd294ed4f0712551d866c054_rle_crop_3923360753_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/1e1c57a8097307a98422a135d6b73032_32847050.png imagette261220051755808235 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26121970 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/26122011,26122012,26122013,26122014,26122015,26122016,26122017,26122018,26122019,26122020,26122021,26122022?tags=plastique,autre_refus,papier,Teint_Dans_La_Masse,Carton_gris,mal_croppe,Carton_brun,cartonnette,environnement,kraft,metal,flou your option no_mail is active, we will not send the real mail to your client args[1378289647] : ('0.047892098748535186',) no score found for photo 1378289647 We are sending mail with results at report@fotonower.com args[1378289602] : ('0.047892098748535186',) no score found for photo 1378289602 We are sending mail with results at report@fotonower.com args[1378289550] : ('0.047892098748535186',) no score found for photo 1378289550 We are sending mail with results at report@fotonower.com args[1378289457] : ('0.047892098748535186',) no score found for photo 1378289457 We are sending mail with results at report@fotonower.com args[1378289359] : ('0.047892098748535186',) no score found for photo 1378289359 We are sending mail with results at report@fotonower.com args[1378289275] : ('0.047892098748535186',) no score found for photo 1378289275 We are sending mail with results at report@fotonower.com args[1378288677] : ('0.047892098748535186',) no score found for photo 1378288677 We are sending mail with results at report@fotonower.com args[1378288650] : ('0.047892098748535186',) no score found for photo 1378288650 We are sending mail with results at report@fotonower.com args[1378288622] : ('0.047892098748535186',) no score found for photo 1378288622 We are sending mail with results at report@fotonower.com args[1378288598] : ('0.047892098748535186',) no score found for photo 1378288598 We are sending mail with results at report@fotonower.com refus_total : 0.047892098748535186 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=26121970 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_P26121970_21-08-2025_22_30_33.pdf results_Auto_P26121970_21-08-2025_22_30_33.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26121970_21-08-2025_22_30_33.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','26121970','results_Auto_P26121970_21-08-2025_22_30_33.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26121970_21-08-2025_22_30_33.pdf','pdf','','0.21','0.047892098748535186') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26121970]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1378289647, 1378289602, 1378289550, 1378289457, 1378289359, 1378289275, 1378288677, 1378288650, 1378288622, 1378288598] map_info['map_portfolio_photo'] : {26121970: [1378289647, 1378289602, 1378289550, 1378289457, 1378289359, 1378289275, 1378288677, 1378288650, 1378288622, 1378288598, 1378287168, 1378287063, 1378286967, 1378286866, 1378286765, 1378286445, 1378286368, 1378286298, 1378286223, 1378286153, 1378286077, 1378285243, 1378285242, 1378285241, 1378284991, 1378284989, 1378284987, 1378284975, 1378284952, 1378284620, 1378284587, 1378284542, 1378284512, 1378284474, 1378284438, 1378284110, 1378284109, 1378284106, 1378284105, 1378283502, 1378283443, 1378283391, 1378283334, 1378283285, 1378283257, 1378282614, 1378282517, 1378282424, 1378282352, 1378282291, 1378281767, 1378281665, 1378281566, 1378281437, 1378279917, 1378279808, 1378279696, 1378278336, 1378278283, 1378277002, 1378276911, 1378276832, 1378276751, 1378276660]} final : False mtd_id 4302 list_pids : [1378289647, 1378289602, 1378289550, 1378289457, 1378289359, 1378289275, 1378288677, 1378288650, 1378288622, 1378288598] 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, '3569063') ('4302', '26121970', '1378289647', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378289602', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378289550', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378289457', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378289359', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378289275', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378288677', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378288650', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378288622', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378288598', None, None, None, None, None, '3569063') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '26121970', '1378289647', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378289602', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378289550', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378289457', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378289359', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378289275', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378288677', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378288650', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378288622', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378288598', None, None, None, None, None, '3569063')] time used for this insertion : 0.013481378555297852 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.651411294937134 time spend to save output : 0.013771533966064453 total time spend for step 4 : 3.6651828289031982 step5:split_time_score Thu Aug 21 22:30:36 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 : ['26121970'] 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 : [('26121970',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26121970) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1378289647: {'path': 'temp/1755808232_1322121_1378289647_150cbdb704544adb8b3597a97f55a5f2.jpg', 'extension': 'jpg'}, 1378288677: {'path': 'temp/1755808232_1322121_1378288677_37eb7baa9cf18bb928a1a3c58e35de1c.jpg', 'extension': 'jpg'}, 1378289275: {'path': 'temp/1755808232_1322121_1378289275_896761b790e46b548f686ba63746a758.jpg', 'extension': 'jpg'}, 1378289359: {'path': 'temp/1755808232_1322121_1378289359_6d0c960c1f0260eade7e896a57ad0569.jpg', 'extension': 'jpg'}, 1378288598: {'path': 'temp/1755808232_1322121_1378288598_0fd4318cbd868efe1e945949690b2d81.jpg', 'extension': 'jpg'}, 1378288622: {'path': 'temp/1755808232_1322121_1378288622_33a6e31bbf667fca91967fe1228bdc50.jpg', 'extension': 'jpg'}, 1378288650: {'path': 'temp/1755808232_1322121_1378288650_478c8140d5318c117135d4666513d89d.jpg', 'extension': 'jpg'}, 1378289457: {'path': 'temp/1755808232_1322121_1378289457_55fb3121336eba7b76f37c5a75f89173.jpg', 'extension': 'jpg'}, 1378289550: {'path': 'temp/1755808232_1322121_1378289550_8b05132880d75792ebd07352a097af27.jpg', 'extension': 'jpg'}, 1378289602: {'path': 'temp/1755808232_1322121_1378289602_22341833c6091f59aa69b6e73e2515db.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 = 26121970; (('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 = 26121970 group by h (('22', 64),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=26121970 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 (26121970) 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 (26121970) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 21082025 26121970 Nombre de photos uploadées : 64 / 23040 (0%) 21082025 26121970 Nombre de photos taguées (types de déchets): 0 / 64 (0%) 21082025 26121970 Nombre de photos taguées (volume) : 0 / 64 (0%) [{'photo_id': 1378277002, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/88e32edcaed5f90273869398e560b499.jpg', 'username': None, 'uploaded_at': 1755807367, 'text': 'image_21082025_22_15_04_009141m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1378276911, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/5c3d6694b53cb31d3064f40c45881d60.jpg', 'username': None, 'uploaded_at': 1755807367, 'text': 'image_21082025_22_15_14_010140m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1378276832, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/ebb0ffe50de271cce33b375f0bac91aa.jpg', 'username': None, 'uploaded_at': 1755807367, 'text': 'image_21082025_22_15_24_010140m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1378276751, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/21/4456afb53b689203e03a9a4c95427fa4.jpg', 'username': None, 'uploaded_at': 1755807367, 'text': 'image_21082025_22_15_34_010137m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 6.198883056640625e-06 ???????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003988981246948242 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26121970, '2025-08-21' ) 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-08-21' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2150059,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.22583389282226562 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= 2150059 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26104011, 'dashboard_result_id': 14157120, '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_P26104011_21-08-2025_06_09_38.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26104017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26104018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26104019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26104020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26104021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26104022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26104023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26104024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26104025, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26104026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26104027, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26104028, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26104370, 'dashboard_result_id': 14157121, '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_P26104370_21-08-2025_06_09_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26104395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26104396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26104397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26104398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26104399, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26104400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26104401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26104402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26104403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26104404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26104405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26104406, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26104723, 'dashboard_result_id': 14157122, '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_P26104723_21-08-2025_06_10_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26104724, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26104725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26104726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26104727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26104728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26104729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26104730, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26104731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26104732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26104733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26104734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26104735, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26105181, 'dashboard_result_id': 14157123, '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_P26105181_21-08-2025_06_10_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26105187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26105188, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26105189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26105190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26105191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26105192, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26105193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26105194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26105195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26105196, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26105197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26105198, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26105970, 'dashboard_result_id': 14157124, '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_P26105970_21-08-2025_06_11_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26105974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26105975, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26105976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26105977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26105978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26105979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26105980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26105981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26105982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26105983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26105984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26105985, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26106247, 'dashboard_result_id': 14157125, '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_P26106247_21-08-2025_06_11_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26106257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26106258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26106259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26106260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26106261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26106262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26106263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26106264, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26106265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26106266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26106267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26106268, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26106455, 'dashboard_result_id': 14157126, '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_P26106455_21-08-2025_06_11_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26106480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26106481, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26106482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26106483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26106484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26106485, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26106486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26106487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26106488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26106489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26106490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26106491, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26106867, 'dashboard_result_id': 14157127, '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_P26106867_21-08-2025_06_12_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26106902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26106903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26106904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26106905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26106906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26106907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26106908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26106910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26106911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26106912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26106913, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26106914, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26107371, 'dashboard_result_id': 14157128, '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_P26107371_21-08-2025_06_12_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26107424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26107425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26107426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26107427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26107428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26107429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26107430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26107431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26107432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26107433, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26107434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26107435, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26107795, 'dashboard_result_id': 14157129, '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_P26107795_21-08-2025_06_13_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26107832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26107833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26107834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26107835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26107836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26107837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26107838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26107839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26107840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26107841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26107842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26107843, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26108299, 'dashboard_result_id': 14157130, '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_P26108299_21-08-2025_06_13_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26108304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26108305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26108306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26108307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26108308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26108309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26108310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26108311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26108312, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26108313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26108314, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26108315, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26108628, 'dashboard_result_id': 14157131, '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_P26108628_21-08-2025_06_13_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26108638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26108639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26108640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26108641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26108642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26108643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26108644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26108645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26108646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26108647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26108648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26108649, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26108923, 'dashboard_result_id': 14157132, '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_P26108923_21-08-2025_06_14_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26108948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26108949, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26108950, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26108951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26108952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26108953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26108954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26108956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26108957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26108958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26108959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26108960, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26109293, 'dashboard_result_id': 14157133, '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_P26109293_21-08-2025_06_14_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26109318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26109319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26109320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26109321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26109322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26109323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26109324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26109325, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26109326, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26109327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26109328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26109329, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26109627, 'dashboard_result_id': 14157134, '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_P26109627_21-08-2025_06_15_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26109647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26109648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26109649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26109650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26109651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26109652, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26109653, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26109654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26109655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26109656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26109657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26109658, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26110833, 'dashboard_result_id': 14157135, '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_P26110833_21-08-2025_06_15_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26110838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26110839, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26110840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26110841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26110842, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26110843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26110844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26110845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26110846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26110847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26110848, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26110849, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26112339, 'dashboard_result_id': 14157136, '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_P26112339_21-08-2025_07_55_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26112358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26112359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26112360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26112361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26112362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26112363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26112364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26112365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26112366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26112367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26112368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26112369, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26113196, 'dashboard_result_id': 14157137, '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_P26113196_21-08-2025_08_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26113212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26113213, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26113214, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26113215, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26113216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26113217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26113218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26113219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26113220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26113221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26113222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26113223, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26115072, 'dashboard_result_id': 14157138, '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_P26115072_21-08-2025_09_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26115086, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26115087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26115088, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26115089, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26115090, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26115091, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26115092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26115093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26115094, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26115095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26115096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26115097, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26115347, 'dashboard_result_id': 14157139, '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_P26115347_21-08-2025_10_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26115348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26115349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26115350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26115351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26115352, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26115353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26115354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26115355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26115356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26115357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26115358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26115359, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26116002, 'dashboard_result_id': 14157140, '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_P26116002_21-08-2025_10_39_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26116008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26116009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26116010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26116011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26116012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26116013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26116014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26116015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26116016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26116017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26116018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26116019, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26116798, 'dashboard_result_id': 14157141, '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_P26116798_21-08-2025_10_58_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26116803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26116804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26116805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26116806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26116807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26116808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26116809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26116810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26116811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26116812, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26116813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26116814, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26120751, 'dashboard_result_id': 14157142, '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_P26120751_21-08-2025_22_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26120759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26120760, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26120761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26120762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26120763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26120764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26120765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26120766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26120767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26120768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26120769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26120770, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26121224, 'dashboard_result_id': 14157143, '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_P26121224_21-08-2025_22_19_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26121252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26121253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26121254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26121255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26121256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26121257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26121258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26121259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26121260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26121261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26121262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26121263, 'pht': 3726}}"}, {'dashboat_entry_day': 2150059, 'dashboard_run_id': 2161687, 'mtr_portfolio_id': 26121970, 'dashboard_result_id': 14157144, '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_P26121970_21-08-2025_22_28_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26121999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26122000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26122001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26122002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26122003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26122004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26122005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26122006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26122007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26122008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26122009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26122010, '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 = 26104011 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': 3567225, 'mtr_portfolio_id': 26104011, 'created_at': datetime.datetime(2025, 8, 21, 6, 9, 33), 'result': '0.036997032264661285', 'result_long': None, 'result_double': None}] Qualite : 0.036997032264661285 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26104011 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26104011_21-08-2025_06_09_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26104011 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_P26104011_21-08-2025_06_09_38.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26104017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26104018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26104019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26104020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26104021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26104022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26104023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26104024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26104025, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26104026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26104027, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26104028, 'pht': 3726}}" where mtr_portfolio_id = 26104011 and dashboard_run_id = 2161687 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`=26104011 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157120, 0.036997032264661285, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26104011_21-08-2025_06_09_38.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26104017, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26104018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26104019, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26104020, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26104021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26104022, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26104023, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26104024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26104025, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26104026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26104027, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26104028, '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 = 26104370 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': 3567226, 'mtr_portfolio_id': 26104370, 'created_at': datetime.datetime(2025, 8, 21, 6, 9, 29), 'result': '0.06290727548478742', 'result_long': None, 'result_double': None}] Qualite : 0.06290727548478742 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26104370 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26104370_21-08-2025_06_09_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26104370 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_P26104370_21-08-2025_06_09_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26104395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26104396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26104397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26104398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26104399, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26104400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26104401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26104402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26104403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26104404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26104405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26104406, 'pht': 3726}}" where mtr_portfolio_id = 26104370 and dashboard_run_id = 2161687 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`=26104370 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157121, 0.06290727548478742, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26104370_21-08-2025_06_09_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26104395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26104396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26104397, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26104398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26104399, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26104400, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26104401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26104402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26104403, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26104404, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26104405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26104406, '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 = 26104723 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': 3567227, 'mtr_portfolio_id': 26104723, 'created_at': datetime.datetime(2025, 8, 21, 6, 9, 59), 'result': '0.0648997128330575', 'result_long': None, 'result_double': None}] Qualite : 0.0648997128330575 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26104723 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26104723_21-08-2025_06_10_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26104723 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_P26104723_21-08-2025_06_10_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26104724, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26104725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26104726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26104727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26104728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26104729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26104730, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26104731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26104732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26104733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26104734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26104735, 'pht': 3726}}" where mtr_portfolio_id = 26104723 and dashboard_run_id = 2161687 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`=26104723 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157122, 0.0648997128330575, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26104723_21-08-2025_06_10_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26104724, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26104725, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26104726, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26104727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26104728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26104729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26104730, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26104731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26104732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26104733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26104734, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26104735, '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 = 26105181 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': 3567228, 'mtr_portfolio_id': 26105181, 'created_at': datetime.datetime(2025, 8, 21, 6, 10, 29), 'result': '0.07584460237293264', 'result_long': None, 'result_double': None}] Qualite : 0.07584460237293264 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26105181 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26105181_21-08-2025_06_10_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26105181 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_P26105181_21-08-2025_06_10_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26105187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26105188, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26105189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26105190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26105191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26105192, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26105193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26105194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26105195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26105196, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26105197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26105198, 'pht': 3726}}" where mtr_portfolio_id = 26105181 and dashboard_run_id = 2161687 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`=26105181 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157123, 0.07584460237293264, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26105181_21-08-2025_06_10_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26105187, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26105188, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26105189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26105190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26105191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26105192, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26105193, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26105194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26105195, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26105196, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26105197, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26105198, '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 = 26105970 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': 3567229, 'mtr_portfolio_id': 26105970, 'created_at': datetime.datetime(2025, 8, 21, 6, 11), 'result': '0.05278433804259537', 'result_long': None, 'result_double': None}] Qualite : 0.05278433804259537 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26105970 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26105970_21-08-2025_06_11_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26105970 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_P26105970_21-08-2025_06_11_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26105974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26105975, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26105976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26105977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26105978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26105979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26105980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26105981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26105982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26105983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26105984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26105985, 'pht': 3726}}" where mtr_portfolio_id = 26105970 and dashboard_run_id = 2161687 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`=26105970 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157124, 0.05278433804259537, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26105970_21-08-2025_06_11_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26105974, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26105975, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26105976, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26105977, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26105978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26105979, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26105980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26105981, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26105982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26105983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26105984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26105985, '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 = 26106247 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': 3567230, 'mtr_portfolio_id': 26106247, 'created_at': datetime.datetime(2025, 8, 21, 6, 11, 32), 'result': '0.055348475501581756', 'result_long': None, 'result_double': None}] Qualite : 0.055348475501581756 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26106247 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26106247_21-08-2025_06_11_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26106247 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_P26106247_21-08-2025_06_11_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26106257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26106258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26106259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26106260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26106261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26106262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26106263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26106264, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26106265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26106266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26106267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26106268, 'pht': 3726}}" where mtr_portfolio_id = 26106247 and dashboard_run_id = 2161687 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`=26106247 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157125, 0.055348475501581756, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26106247_21-08-2025_06_11_35.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26106257, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26106258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26106259, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26106260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26106261, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26106262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26106263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26106264, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26106265, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26106266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26106267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26106268, '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 = 26106455 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': 3567231, 'mtr_portfolio_id': 26106455, 'created_at': datetime.datetime(2025, 8, 21, 6, 11, 28), 'result': '0.0352462081204029', 'result_long': None, 'result_double': None}] Qualite : 0.0352462081204029 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26106455 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26106455_21-08-2025_06_11_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26106455 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_P26106455_21-08-2025_06_11_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26106480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26106481, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26106482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26106483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26106484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26106485, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26106486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26106487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26106488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26106489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26106490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26106491, 'pht': 3726}}" where mtr_portfolio_id = 26106455 and dashboard_run_id = 2161687 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`=26106455 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157126, 0.0352462081204029, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26106455_21-08-2025_06_11_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26106480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26106481, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26106482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26106483, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26106484, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26106485, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26106486, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26106487, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26106488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26106489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26106490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26106491, '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 = 26106867 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': 3567232, 'mtr_portfolio_id': 26106867, 'created_at': datetime.datetime(2025, 8, 21, 6, 11, 58), 'result': '0.04875656707478276', 'result_long': None, 'result_double': None}] Qualite : 0.04875656707478276 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26106867 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26106867_21-08-2025_06_12_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26106867 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_P26106867_21-08-2025_06_12_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26106902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26106903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26106904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26106905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26106906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26106907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26106908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26106910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26106911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26106912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26106913, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26106914, 'pht': 3726}}" where mtr_portfolio_id = 26106867 and dashboard_run_id = 2161687 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`=26106867 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157127, 0.04875656707478276, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26106867_21-08-2025_06_12_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26106902, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26106903, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26106904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26106905, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26106906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26106907, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26106908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26106910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26106911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26106912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26106913, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26106914, '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 = 26107371 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': 3567233, 'mtr_portfolio_id': 26107371, 'created_at': datetime.datetime(2025, 8, 21, 6, 12, 29), 'result': '0.041520223827048036', 'result_long': None, 'result_double': None}] Qualite : 0.041520223827048036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26107371 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26107371_21-08-2025_06_12_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26107371 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_P26107371_21-08-2025_06_12_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26107424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26107425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26107426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26107427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26107428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26107429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26107430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26107431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26107432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26107433, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26107434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26107435, 'pht': 3726}}" where mtr_portfolio_id = 26107371 and dashboard_run_id = 2161687 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`=26107371 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157128, 0.041520223827048036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26107371_21-08-2025_06_12_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26107424, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26107425, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26107426, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26107427, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26107428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26107429, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26107430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26107431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26107432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26107433, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26107434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26107435, '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 = 26107795 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': 3567234, 'mtr_portfolio_id': 26107795, 'created_at': datetime.datetime(2025, 8, 21, 6, 13), 'result': '0.029293285642726395', 'result_long': None, 'result_double': None}] Qualite : 0.029293285642726395 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26107795 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26107795_21-08-2025_06_13_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26107795 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_P26107795_21-08-2025_06_13_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26107832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26107833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26107834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26107835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26107836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26107837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26107838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26107839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26107840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26107841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26107842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26107843, 'pht': 3726}}" where mtr_portfolio_id = 26107795 and dashboard_run_id = 2161687 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`=26107795 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157129, 0.029293285642726395, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26107795_21-08-2025_06_13_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26107832, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26107833, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26107834, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26107835, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26107836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26107837, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26107838, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26107839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26107840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26107841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26107842, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26107843, '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 = 26108299 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': 3567235, 'mtr_portfolio_id': 26108299, 'created_at': datetime.datetime(2025, 8, 21, 6, 13, 28), 'result': '0.03978402661304686', 'result_long': None, 'result_double': None}] Qualite : 0.03978402661304686 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26108299 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26108299_21-08-2025_06_13_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26108299 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_P26108299_21-08-2025_06_13_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26108304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26108305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26108306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26108307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26108308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26108309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26108310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26108311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26108312, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26108313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26108314, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26108315, 'pht': 3726}}" where mtr_portfolio_id = 26108299 and dashboard_run_id = 2161687 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`=26108299 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157130, 0.03978402661304686, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26108299_21-08-2025_06_13_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26108304, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26108305, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26108306, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26108307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26108308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26108309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26108310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26108311, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26108312, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26108313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26108314, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26108315, '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 = 26108628 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': 3567236, 'mtr_portfolio_id': 26108628, 'created_at': datetime.datetime(2025, 8, 21, 6, 13, 27), 'result': '0.0381780617768708', 'result_long': None, 'result_double': None}] Qualite : 0.0381780617768708 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26108628 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26108628_21-08-2025_06_13_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26108628 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_P26108628_21-08-2025_06_13_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26108638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26108639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26108640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26108641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26108642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26108643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26108644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26108645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26108646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26108647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26108648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26108649, 'pht': 3726}}" where mtr_portfolio_id = 26108628 and dashboard_run_id = 2161687 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`=26108628 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157131, 0.0381780617768708, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26108628_21-08-2025_06_13_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26108638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26108639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26108640, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26108641, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26108642, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26108643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26108644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26108645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26108646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26108647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26108648, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26108649, '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 = 26108923 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': 3567237, 'mtr_portfolio_id': 26108923, 'created_at': datetime.datetime(2025, 8, 21, 6, 13, 57), 'result': '0.03553716616165677', 'result_long': None, 'result_double': None}] Qualite : 0.03553716616165677 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26108923 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26108923_21-08-2025_06_14_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26108923 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_P26108923_21-08-2025_06_14_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26108948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26108949, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26108950, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26108951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26108952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26108953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26108954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26108956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26108957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26108958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26108959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26108960, 'pht': 3726}}" where mtr_portfolio_id = 26108923 and dashboard_run_id = 2161687 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`=26108923 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157132, 0.03553716616165677, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26108923_21-08-2025_06_14_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26108948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26108949, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26108950, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26108951, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26108952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26108953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26108954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26108956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26108957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26108958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26108959, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26108960, '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 = 26109293 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': 3567238, 'mtr_portfolio_id': 26109293, 'created_at': datetime.datetime(2025, 8, 21, 6, 14, 28), 'result': '0.034017574433070644', 'result_long': None, 'result_double': None}] Qualite : 0.034017574433070644 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26109293 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26109293_21-08-2025_06_14_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26109293 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_P26109293_21-08-2025_06_14_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26109318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26109319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26109320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26109321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26109322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26109323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26109324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26109325, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26109326, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26109327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26109328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26109329, 'pht': 3726}}" where mtr_portfolio_id = 26109293 and dashboard_run_id = 2161687 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`=26109293 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157133, 0.034017574433070644, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26109293_21-08-2025_06_14_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 26109318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26109319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26109320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26109321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26109322, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26109323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26109324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26109325, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26109326, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26109327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26109328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26109329, '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 = 26109627 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': 3567239, 'mtr_portfolio_id': 26109627, 'created_at': datetime.datetime(2025, 8, 21, 6, 14, 58), 'result': '0.039700312273563666', 'result_long': None, 'result_double': None}] Qualite : 0.039700312273563666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26109627 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26109627_21-08-2025_06_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26109627 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_P26109627_21-08-2025_06_15_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26109647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26109648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26109649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26109650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26109651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26109652, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26109653, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26109654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26109655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26109656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26109657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26109658, 'pht': 3726}}" where mtr_portfolio_id = 26109627 and dashboard_run_id = 2161687 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`=26109627 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157134, 0.039700312273563666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26109627_21-08-2025_06_15_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26109647, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26109648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26109649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26109650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26109651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26109652, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26109653, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26109654, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26109655, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26109656, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26109657, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26109658, '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 = 26110833 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': 3567240, 'mtr_portfolio_id': 26110833, 'created_at': datetime.datetime(2025, 8, 21, 6, 15, 31), 'result': '0.12393717367823562', 'result_long': None, 'result_double': None}] Qualite : 0.12393717367823562 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26110833 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26110833_21-08-2025_06_15_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26110833 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_P26110833_21-08-2025_06_15_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26110838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26110839, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26110840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26110841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26110842, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26110843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26110844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26110845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26110846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26110847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26110848, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26110849, 'pht': 3726}}" where mtr_portfolio_id = 26110833 and dashboard_run_id = 2161687 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`=26110833 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157135, 0.12393717367823562, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26110833_21-08-2025_06_15_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26110838, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26110839, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26110840, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26110841, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26110842, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26110843, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26110844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26110845, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26110846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26110847, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26110848, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26110849, '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 = 26112339 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': 3567525, 'mtr_portfolio_id': 26112339, 'created_at': datetime.datetime(2025, 8, 21, 7, 55, 1), 'result': '0.013108964206823257', 'result_long': None, 'result_double': None}] Qualite : 0.013108964206823257 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26112339 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26112339_21-08-2025_07_55_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26112339 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_P26112339_21-08-2025_07_55_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26112358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26112359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26112360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26112361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26112362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26112363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26112364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26112365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26112366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26112367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26112368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26112369, 'pht': 3726}}" where mtr_portfolio_id = 26112339 and dashboard_run_id = 2161687 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`=26112339 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157136, 0.013108964206823257, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26112339_21-08-2025_07_55_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26112358, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26112359, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26112360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26112361, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26112362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26112363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26112364, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26112365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26112366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26112367, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26112368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26112369, '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 = 26113196 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': 3567631, 'mtr_portfolio_id': 26113196, 'created_at': datetime.datetime(2025, 8, 21, 8, 17), 'result': '0.012975109061569257', 'result_long': None, 'result_double': None}] Qualite : 0.012975109061569257 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26113196 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26113196_21-08-2025_08_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26113196 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_P26113196_21-08-2025_08_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26113212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26113213, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26113214, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26113215, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26113216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26113217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26113218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26113219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26113220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26113221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26113222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26113223, 'pht': 3726}}" where mtr_portfolio_id = 26113196 and dashboard_run_id = 2161687 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`=26113196 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157137, 0.012975109061569257, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26113196_21-08-2025_08_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26113212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26113213, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26113214, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26113215, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26113216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26113217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26113218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26113219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26113220, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26113221, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26113222, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26113223, '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 = 26115072 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26115072 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 26115072 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26115072 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 26115072 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26115072 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26115072_21-08-2025_09_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26115072 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_P26115072_21-08-2025_09_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26115086, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26115087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26115088, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26115089, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26115090, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26115091, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26115092, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26115093, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26115094, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26115095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26115096, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26115097, 'pht': 3726}}" where mtr_portfolio_id = 26115072 and dashboard_run_id = 2161687 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 = 26115347 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': 3567917, 'mtr_portfolio_id': 26115347, 'created_at': datetime.datetime(2025, 8, 21, 10, 2, 57), 'result': '0.010201268372996074', 'result_long': None, 'result_double': None}] Qualite : 0.010201268372996074 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26115347 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26115347_21-08-2025_10_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26115347 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_P26115347_21-08-2025_10_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26115348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26115349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26115350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26115351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26115352, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26115353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26115354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26115355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26115356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26115357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26115358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26115359, 'pht': 3726}}" where mtr_portfolio_id = 26115347 and dashboard_run_id = 2161687 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`=26115347 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157139, 0.010201268372996074, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26115347_21-08-2025_10_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26115348, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26115349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26115350, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26115351, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26115352, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26115353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26115354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26115355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26115356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26115357, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26115358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26115359, '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 = 26116002 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': 3567995, 'mtr_portfolio_id': 26116002, 'created_at': datetime.datetime(2025, 8, 21, 10, 39), 'result': '0.14282706536816278', 'result_long': None, 'result_double': None}] Qualite : 0.14282706536816278 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26116002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26116002_21-08-2025_10_39_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26116002 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_P26116002_21-08-2025_10_39_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26116008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26116009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26116010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26116011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26116012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26116013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26116014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26116015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26116016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26116017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26116018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26116019, 'pht': 3726}}" where mtr_portfolio_id = 26116002 and dashboard_run_id = 2161687 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`=26116002 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157140, 0.14282706536816278, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26116002_21-08-2025_10_39_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26116008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26116009, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26116010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26116011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26116012, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26116013, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26116014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26116015, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26116016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26116017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26116018, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26116019, '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 = 26116798 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': 3568080, 'mtr_portfolio_id': 26116798, 'created_at': datetime.datetime(2025, 8, 21, 11, 3), 'result': '0.0774473111382444', 'result_long': None, 'result_double': None}] Qualite : 0.0774473111382444 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26116798 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26116798_21-08-2025_11_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26116798 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_P26116798_21-08-2025_11_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26116803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26116804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26116805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26116806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26116807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26116808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26116809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26116810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26116811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26116812, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26116813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26116814, 'pht': 3726}}" where mtr_portfolio_id = 26116798 and dashboard_run_id = 2161687 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`=26116798 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157141, 0.0774473111382444, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26116798_21-08-2025_11_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26116803, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26116804, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26116805, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26116806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26116807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26116808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26116809, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26116810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26116811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26116812, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26116813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26116814, '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 = 26120751 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': 3568818, 'mtr_portfolio_id': 26120751, 'created_at': datetime.datetime(2025, 8, 21, 22, 2, 57), 'result': '0.06888134085002251', 'result_long': None, 'result_double': None}] Qualite : 0.06888134085002251 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26120751 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26120751_21-08-2025_22_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26120751 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_P26120751_21-08-2025_22_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26120759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26120760, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26120761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26120762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26120763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26120764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26120765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26120766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26120767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26120768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26120769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26120770, 'pht': 3726}}" where mtr_portfolio_id = 26120751 and dashboard_run_id = 2161687 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`=26120751 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157142, 0.06888134085002251, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26120751_21-08-2025_22_02_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26120759, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26120760, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26120761, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26120762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26120763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26120764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26120765, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26120766, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26120767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26120768, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26120769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26120770, '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 = 26121224 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': 3568951, 'mtr_portfolio_id': 26121224, 'created_at': datetime.datetime(2025, 8, 21, 22, 18, 59), 'result': '0.053515270552368065', 'result_long': None, 'result_double': None}] Qualite : 0.053515270552368065 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26121224 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26121224_21-08-2025_22_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26121224 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_P26121224_21-08-2025_22_19_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26121252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26121253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26121254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26121255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26121256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26121257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26121258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26121259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26121260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26121261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26121262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26121263, 'pht': 3726}}" where mtr_portfolio_id = 26121224 and dashboard_run_id = 2161687 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`=26121224 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157143, 0.053515270552368065, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26121224_21-08-2025_22_19_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26121252, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26121253, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26121254, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26121255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26121256, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26121257, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26121258, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26121259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26121260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26121261, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26121262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26121263, '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 = 26121970 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': 3569063, 'mtr_portfolio_id': 26121970, 'created_at': datetime.datetime(2025, 8, 21, 22, 30, 32), 'result': '0.047892098748535186', 'result_long': None, 'result_double': None}] Qualite : 0.047892098748535186 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26121970 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26121970_21-08-2025_22_30_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26121970 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_P26121970_21-08-2025_22_30_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26121999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26122000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26122001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26122002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26122003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26122004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26122005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26122006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26122007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26122008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26122009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26122010, 'pht': 3726}}" where mtr_portfolio_id = 26121970 and dashboard_run_id = 2161687 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`=26121970 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14157144, 0.047892098748535186, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26121970_21-08-2025_22_30_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26121999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26122000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26122001, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26122002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26122003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26122004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26122005, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26122006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26122007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26122008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26122009, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26122010, '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 (26104011,26104370,26104723,26105181,26105970,26106247,26106455,26106867,26107371,26107795,26108299,26108628,26108923,26109293,26109627,26110833,26112339,26113196,26115072,26115347,26116002,26116798,26120751,26121224,26121970) result : ((1378154677,), (1378154679,), (1378154707,), (1378154709,), (1378154711,), (1378154713,), (1378154716,), (1378154727,), (1378154775,), (1378154777,), (1378154779,), (1378154781,), (1378154784,), (1378154787,), (1378154799,), (1378154802,), (1378154821,), (1378154822,), (1378154823,), (1378154825,), (1378154829,), (1378154833,), (1378154920,), (1378154921,), (1378154929,), (1378154937,), (1378154945,), (1378154949,), (1378154997,), (1378155001,), (1378155002,), (1378155022,), (1378155024,), (1378155026,), (1378155061,), (1378155063,), (1378155064,), (1378155066,), (1378155069,), (1378155174,), (1378155177,), (1378155179,), (1378155181,), (1378155184,), (1378155282,), (1378155283,), (1378155284,), (1378155324,), (1378155434,), (1378155435,), (1378155436,), (1378155438,), (1378155441,), (1378155444,), (1378155446,), (1378155448,), (1378155530,), (1378155536,), (1378155543,), (1378155544,), (1378155546,), (1378155548,), (1378155557,), (1378155561,), (1378155565,), (1378155568,), (1378155657,), (1378155606,), (1378155634,), (1378155902,), (1378155904,), (1378155906,), (1378155975,), (1378155977,), (1378155978,), (1378155980,), (1378155982,), (1378155993,), (1378155996,), (1378155999,), (1378156001,), (1378156005,), (1378156014,), (1378156015,), (1378156016,), (1378156080,), (1378156082,), (1378156083,), (1378156084,), (1378156086,), (1378156103,), (1378156105,), (1378156107,), (1378156109,), (1378156173,), (1378156176,), (1378156180,), (1378156181,), (1378156203,), (1378156206,), (1378156208,), (1378156209,), (1378156210,), (1378156212,), (1378156228,), (1378156229,), (1378156230,), (1378156232,), (1378156234,), (1378156254,), (1378156256,), (1378156258,), (1378156261,), (1378156264,), (1378156281,), (1378156283,), (1378156285,), (1378156333,), (1378156339,), (1378156342,), (1378156344,), (1378156357,), (1378156358,), (1378156359,), (1378156361,), (1378156363,), (1378156388,), (1378156399,), (1378156401,), (1378156403,), (1378156406,), (1378156409,), (1378156455,), (1378156451,), (1378156453,), (1378156476,), (1378156479,), (1378156481,), (1378156482,), (1378156484,), (1378156485,), (1378156567,), (1378156569,), (1378156571,), (1378156592,), (1378156594,), (1378156597,), (1378156598,), (1378156601,), (1378156616,), (1378156620,), (1378156624,), (1378156629,), (1378156634,), (1378156637,), (1378156649,), (1378156650,), (1378156652,), (1378156655,), (1378156659,), (1378156690,), (1378156697,), (1378156698,), (1378156699,), (1378156737,), (1378156741,), (1378156743,), (1378156745,), (1378156763,), (1378156764,), (1378156765,), (1378156766,), (1378156768,), (1378156770,), (1378156781,), (1378156783,), (1378156784,), (1378156786,), (1378156820,), (1378156821,), (1378156822,), (1378156824,), (1378156828,), (1378156831,), (1378156860,), (1378156863,), (1378156865,), (1378156866,), (1378156868,), (1378156939,), (1378156941,), (1378156942,), (1378156944,), (1378156969,), (1378156973,), (1378156974,), (1378156975,), (1378156977,), (1378157003,), (1378157006,), (1378157027,), (1378157043,), (1378157132,), (1378157135,), (1378157137,), (1378157140,), (1378157162,), (1378157164,), (1378157166,), (1378157198,), (1378157199,), (1378157200,), (1378157202,), (1378157204,), (1378157206,), (1378157209,), (1378157210,), (1378157212,), (1378157214,), (1378157216,), (1378157218,), (1378157221,), (1378157224,), (1378157288,), (1378157291,), (1378157293,), (1378157294,), (1378157309,), (1378157311,), (1378157313,), (1378157315,), (1378157318,), (1378157320,), (1378157331,), (1378157332,), (1378157333,), (1378157335,), (1378157359,), (1378157361,), (1378157363,), (1378157365,), (1378157368,), (1378157371,), (1378157383,), (1378157386,), (1378157390,), (1378157394,), (1378157397,), (1378157475,), (1378157479,), (1378157483,), (1378157489,), (1378157492,), (1378157494,), (1378157522,), (1378157527,), (1378158492,), (1378158485,), (1378158486,), (1378158487,), (1378158489,), (1378158511,), (1378158583,), (1378158603,), (1378158605,), (1378158607,), (1378158610,), (1378158623,), (1378158624,), (1378158651,), (1378158658,), (1378158661,), (1378158663,), (1378158679,), (1378158681,), (1378158682,), (1378158683,), (1378158684,), (1378158687,), (1378158733,), (1378158734,), (1378158735,), (1378158753,), (1378158754,), (1378158756,), (1378158758,), (1378158772,), (1378158774,), (1378158775,), (1378158777,), (1378158786,), (1378158787,), (1378158789,), (1378158820,), (1378158824,), (1378158826,), (1378158829,), (1378158891,), (1378158922,), (1378158923,), (1378158925,), (1378158950,), (1378158964,), (1378158967,), (1378158969,), (1378158974,), (1378158999,), (1378158990,), (1378158992,), (1378158994,), (1378158995,), (1378159012,), (1378159014,), (1378159016,), (1378159017,), (1378159122,), (1378159125,), (1378159140,), (1378159157,), (1378159158,), (1378159159,), (1378159176,), (1378159177,), (1378159179,), (1378159204,), (1378159207,), (1378159210,), (1378159211,), (1378159246,), (1378159250,), (1378159251,), (1378159252,), (1378159337,), (1378159338,), (1378159340,), (1378159343,), (1378159364,), (1378159366,), (1378159367,), (1378159369,), (1378159387,), (1378159388,), (1378159389,), (1378159391,), (1378159393,), (1378159408,), (1378159409,), (1378159411,), (1378159413,), (1378159417,), (1378159433,), (1378159438,), (1378159440,), (1378159441,), (1378159443,), (1378159489,), (1378159491,), (1378159510,), (1378159511,), (1378159516,), (1378159528,), (1378159530,), (1378159532,), (1378159534,), (1378159536,), (1378159550,), (1378159546,), (1378159549,), (1378159573,), (1378159575,), (1378159577,), (1378159585,), (1378159588,), (1378159591,), (1378159603,), (1378159606,), (1378159609,), (1378159611,), (1378159626,), (1378159647,), (1378159648,), (1378159649,), (1378159651,), (1378159654,), (1378159657,), (1378159669,), (1378159671,), (1378159672,), (1378159673,), (1378159675,), (1378159753,), (1378159756,), (1378159759,), (1378159809,), (1378159811,), (1378159812,), (1378159814,), (1378159837,), (1378159840,), (1378159877,), (1378159878,), (1378159879,), (1378159881,), (1378159900,), (1378159905,), (1378159907,), (1378159909,), (1378159990,), (1378159991,), (1378159992,), (1378159994,), (1378160014,), (1378160017,), (1378160018,), (1378160019,), (1378160021,), (1378160086,), (1378160088,), (1378160185,), (1378160178,), (1378160182,), (1378160226,), (1378160228,), (1378160229,), (1378160232,), (1378160236,), (1378160301,), (1378160303,), (1378160306,), (1378160331,), (1378160333,), (1378160334,), (1378160351,), (1378160354,), (1378160355,), (1378160357,), (1378160359,), (1378160372,), (1378160398,), (1378160400,), (1378160403,), (1378160477,), (1378160480,), (1378160482,), (1378160502,), (1378160504,), (1378160505,), (1378160508,), (1378160524,), (1378160525,), (1378160526,), (1378160528,), (1378160530,), (1378160551,), (1378160553,), (1378160554,), (1378160564,), (1378160565,), (1378160628,), (1378160630,), (1378160631,), (1378160632,), (1378160645,), (1378160647,), (1378160649,), (1378160653,), (1378160654,), (1378160656,), (1378160660,), (1378160663,), (1378160666,), (1378160669,), (1378160673,), (1378160691,), (1378160708,), (1378160710,), (1378160715,), (1378160723,), (1378160802,), (1378160811,), (1378160894,), (1378160909,), (1378160912,), (1378160930,), (1378160931,), (1378160932,), (1378160934,), (1378160937,), (1378160939,), (1378160956,), (1378160958,), (1378160961,), (1378160963,), (1378160980,), (1378160982,), (1378160983,), (1378160984,), (1378161009,), (1378161010,), (1378161011,), (1378161014,), (1378161021,), (1378161079,), (1378161082,), (1378161085,), (1378161088,), (1378161091,), (1378161111,), (1378161112,), (1378161113,), (1378161115,), (1378161118,), (1378161121,), (1378161135,), (1378161136,), (1378161138,), (1378161139,), (1378161141,), (1378161143,), (1378161188,), (1378161190,), (1378161192,), (1378161196,), (1378161232,), (1378161235,), (1378161236,), (1378161237,), (1378161240,), (1378161243,), (1378161292,), (1378161293,), (1378161294,), (1378161296,), (1378161317,), (1378161320,), (1378161324,), (1378161327,), (1378161330,), (1378161332,), (1378161341,), (1378161343,), (1378161346,), (1378161347,), (1378161350,), (1378161378,), (1378161369,), (1378161371,), (1378161373,), (1378161375,), (1378161393,), (1378161394,), (1378161395,), (1378161397,), (1378161400,), (1378161414,), (1378161447,), (1378161449,), (1378161450,), (1378161452,), (1378161471,), (1378161472,), (1378161473,), (1378161475,), (1378161494,), (1378161495,), (1378161497,), (1378161499,), (1378161502,), (1378161519,), (1378161521,), (1378161522,), (1378161523,), (1378161525,), (1378161528,), (1378161552,), (1378161556,), (1378161558,), (1378161561,), (1378161565,), (1378161575,), (1378161600,), (1378161602,), (1378161604,), (1378161606,), (1378161608,), (1378161630,), (1378161632,), (1378161633,), (1378161634,), (1378161635,), (1378161637,), (1378161652,), (1378161669,), (1378161911,), (1378161976,), (1378161977,), (1378161978,), (1378161980,), (1378161982,), (1378161984,), (1378162007,), (1378162010,), (1378162011,), (1378162012,), (1378162014,), (1378162016,), (1378162034,), (1378162036,), (1378162039,), (1378162066,), (1378162068,), (1378162069,), (1378162070,), (1378162097,), (1378162099,), (1378162100,), (1378162102,), (1378162105,), (1378162125,), (1378162127,), (1378162129,), (1378162147,), (1378162149,), (1378162150,), (1378162151,), (1378162153,), (1378162154,), (1378162167,), (1378162169,), (1378162171,), (1378162173,), (1378162216,), (1378162219,), (1378162222,), (1378162225,), (1378162228,), (1378162282,), (1378162284,), (1378162285,), (1378162286,), (1378162288,), (1378162325,), (1378162392,), (1378162490,), (1378162493,), (1378162497,), (1378162501,), (1378162514,), (1378162544,), (1378162546,), (1378162549,), (1378162552,), (1378162570,), (1378162572,), (1378162616,), (1378162618,), (1378162619,), (1378162628,), (1378162630,), (1378162754,), (1378162755,), (1378162756,), (1378162758,), (1378162760,), (1378162763,), (1378162768,), (1378162771,), (1378162774,), (1378162781,), (1378162787,), (1378162789,), (1378162792,), (1378162795,), (1378162802,), (1378162816,), (1378162832,), (1378162834,), (1378162835,), (1378162836,), (1378162839,), (1378162860,), (1378162862,), (1378162865,), (1378162907,), (1378162923,), (1378162925,), (1378162927,), (1378162949,), (1378162952,), (1378162954,), (1378163015,), (1378163058,), (1378163131,), (1378163132,), (1378163134,), (1378163153,), (1378163156,), (1378163198,), (1378163200,), (1378163202,), (1378163205,), (1378163284,), (1378163286,), (1378163288,), (1378163291,), (1378163293,), (1378163296,), (1378163307,), (1378163309,), (1378163311,), (1378163337,), (1378163333,), (1378163335,), (1378163362,), (1378163364,), (1378163365,), (1378163366,), (1378163408,), (1378163410,), (1378163412,), (1378163414,), (1378163417,), (1378163468,), (1378163470,), (1378163472,), (1378163474,), (1378163537,), (1378163544,), (1378163545,), (1378163547,), (1378163551,), (1378163606,), (1378163610,), (1378163612,), (1378163615,), (1378163618,), (1378163646,), (1378163648,), (1378163649,), (1378163650,), (1378163755,), (1378163756,), (1378163757,), (1378163759,), (1378163760,), (1378163764,), (1378163780,), (1378163782,), (1378163784,), (1378163803,), (1378163804,), (1378163805,), (1378163807,), (1378163809,), (1378163832,), (1378163834,), (1378163835,), (1378163836,), (1378163837,), (1378163839,), (1378163862,), (1378163864,), (1378163874,), (1378163889,), (1378163928,), (1378163930,), (1378163932,), (1378163934,), (1378163937,), (1378164020,), (1378164021,), (1378164022,), (1378164024,), (1378164027,), (1378164095,), (1378164100,), (1378164103,), (1378164105,), (1378164127,), (1378164124,), (1378164126,), (1378164163,), (1378164164,), (1378164165,), (1378164167,), (1378164205,), (1378164220,), (1378164223,), (1378164226,), (1378164230,), (1378164242,), (1378164244,), (1378164245,), (1378164247,), (1378164250,), (1378164304,), (1378164309,), (1378164310,), (1378164312,), (1378164315,), (1378164387,), (1378164389,), (1378164407,), (1378164409,), (1378164410,), (1378164411,), (1378164413,), (1378164421,), (1378164488,), (1378164491,), (1378164494,), (1378164496,), (1378164499,), (1378164528,), (1378164530,), (1378164532,), (1378164533,), (1378164556,), (1378164558,), (1378164560,), (1378164562,), (1378164582,), (1378164584,), (1378164585,), (1378164586,), (1378164600,), (1378164601,), (1378164602,), (1378164604,), (1378164609,), (1378164662,), (1378164664,), (1378164666,), (1378164668,), (1378164671,), (1378164711,), (1378164714,), (1378164717,), (1378164722,), (1378164727,), (1378164762,), (1378164748,), (1378164756,), (1378164758,), (1378164760,), (1378164772,), (1378164779,), (1378164780,), (1378164801,), (1378164809,), (1378164810,), (1378164843,), (1378164851,), (1378164852,), (1378164872,), (1378164914,), (1378164922,), (1378164923,), (1378164924,), (1378164926,), (1378164944,), (1378164951,), (1378164952,), (1378164954,), (1378164956,), (1378164959,), (1378164975,), (1378164984,), (1378164986,), (1378164989,), (1378164991,), (1378164994,), (1378165027,), (1378165033,), (1378165078,), (1378165086,), (1378165121,), (1378165122,), (1378165124,), (1378167302,), (1378167294,), (1378167379,), (1378167440,), (1378167449,), (1378167488,), (1378167802,), (1378168592,), (1378168621,), (1378176842,), (1378176935,), (1378176939,), (1378177110,), (1378177658,), (1378178215,), (1378178234,), (1378179257,), (1378181516,), (1378181610,), (1378181765,), (1378181788,), (1378181790,), (1378182008,), (1378182012,), (1378182163,), (1378194014,), (1378194504,), (1378194663,), (1378194996,), (1378195006,), (1378195165,), (1378195170,), (1378195818,), (1378196000,), (1378196183,), (1378196207,), (1378196780,), (1378196912,), (1378196915,), (1378196916,), (1378197008,), (1378198831,), (1378199618,), (1378199622,), (1378200109,), (1378200115,), (1378200292,), (1378200371,), (1378200401,), (1378200404,), (1378200421,), (1378200423,), (1378200424,), (1378200879,), (1378201779,), (1378202126,), (1378202128,), (1378202256,), (1378202272,), (1378202449,), (1378202555,), (1378202557,), (1378202830,), (1378249672,), (1378249673,), (1378249723,), (1378249730,), (1378250083,), (1378250115,), (1378250141,), (1378250181,), (1378250219,), (1378250253,), (1378250983,), (1378251008,), (1378251053,), (1378251781,), (1378251828,), (1378251896,), (1378251948,), (1378252537,), (1378252563,), (1378252590,), (1378252611,), (1378252631,), (1378252646,), (1378252647,), (1378252648,), (1378252663,), (1378252688,), (1378252719,), (1378253155,), (1378253158,), (1378253161,), (1378253306,), (1378253338,), (1378253363,), (1378253389,), (1378253415,), (1378253800,), (1378253829,), (1378253884,), (1378253967,), (1378254041,), (1378254130,), (1378254725,), (1378254799,), (1378254870,), (1378254952,), (1378255034,), (1378256409,), (1378256523,), (1378257215,), (1378257288,), (1378257370,), (1378257462,), (1378258299,), (1378258366,), (1378258481,), (1378258570,), (1378258686,), (1378260058,), (1378260152,), (1378260258,), (1378260336,), (1378262091,), (1378261898,), (1378262002,), (1378263092,), (1378263147,), (1378263193,), (1378263229,), (1378263858,), (1378263860,), (1378263908,), (1378263915,), (1378263960,), (1378263963,), (1378264007,), (1378264010,), (1378264348,), (1378264399,), (1378264439,), (1378264463,), (1378264488,), (1378265070,), (1378265101,), (1378265150,), (1378265217,), (1378265975,), (1378266027,), (1378266076,), (1378266125,), (1378266179,), (1378266226,), (1378267294,), (1378267369,), (1378267429,), (1378267868,), (1378267944,), (1378268017,), (1378268070,), (1378268941,), (1378268987,), (1378269019,), (1378269908,), (1378269952,), (1378270023,), (1378270084,), (1378270152,), (1378270817,), (1378270820,), (1378270896,), (1378270898,), (1378270970,), (1378270976,), (1378271050,), (1378271056,), (1378271178,), (1378271181,), (1378271285,), (1378271316,), (1378272444,), (1378272520,), (1378272574,), (1378272644,), (1378272705,), (1378272793,), (1378273176,), (1378273258,), (1378273357,), (1378273457,), (1378273541,), (1378273623,), (1378274248,), (1378274280,), (1378274338,), (1378275858,), (1378275860,), (1378275953,), (1378275961,), (1378276052,), (1378276057,), (1378276121,), (1378276141,), (1378276190,), (1378276221,), (1378277076,), (1378276660,), (1378276751,), (1378276832,), (1378276911,), (1378277002,), (1378278283,), (1378278336,), (1378279696,), (1378279808,), (1378279917,), (1378281437,), (1378281566,), (1378281665,), (1378281767,), (1378282291,), (1378282352,), (1378282424,), (1378282517,), (1378282614,), (1378283257,), (1378283285,), (1378283334,), (1378283391,), (1378283443,), (1378283502,), (1378284105,), (1378284106,), (1378284109,), (1378284110,), (1378284438,), (1378284474,), (1378284512,), (1378284542,), (1378284587,), (1378284620,), (1378284952,), (1378284975,), (1378284987,), (1378284989,), (1378284991,), (1378285241,), (1378285242,), (1378285243,), (1378286077,), (1378286153,), (1378286223,), (1378286298,), (1378286368,), (1378286445,), (1378286765,), (1378286866,), (1378286967,), (1378287063,), (1378287168,), (1378288598,), (1378288622,), (1378288650,), (1378288677,), (1378289275,), (1378289359,), (1378289457,), (1378289550,), (1378289602,), (1378289647,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'21082025': {'nb_upload': 64, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26121970]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1378289647, 1378289602, 1378289550, 1378289457, 1378289359, 1378289275, 1378288677, 1378288650, 1378288622, 1378288598] map_info['map_portfolio_photo'] : {26121970: [1378289647, 1378289602, 1378289550, 1378289457, 1378289359, 1378289275, 1378288677, 1378288650, 1378288622, 1378288598, 1378287168, 1378287063, 1378286967, 1378286866, 1378286765, 1378286445, 1378286368, 1378286298, 1378286223, 1378286153, 1378286077, 1378285243, 1378285242, 1378285241, 1378284991, 1378284989, 1378284987, 1378284975, 1378284952, 1378284620, 1378284587, 1378284542, 1378284512, 1378284474, 1378284438, 1378284110, 1378284109, 1378284106, 1378284105, 1378283502, 1378283443, 1378283391, 1378283334, 1378283285, 1378283257, 1378282614, 1378282517, 1378282424, 1378282352, 1378282291, 1378281767, 1378281665, 1378281566, 1378281437, 1378279917, 1378279808, 1378279696, 1378278336, 1378278283, 1378277002, 1378276911, 1378276832, 1378276751, 1378276660]} final : True mtd_id 4302 list_pids : [1378289647, 1378289602, 1378289550, 1378289457, 1378289359, 1378289275, 1378288677, 1378288650, 1378288622, 1378288598] Looping around the photos to save general results len do output : 1 /26121970Didn'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, '3569063') ('4302', '26121970', '1378289647', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378289602', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378289550', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378289457', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378289359', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378289275', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378288677', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378288650', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378288622', None, None, None, None, None, '3569063') ('4302', None, None, None, None, None, None, None, '3569063') ('4302', '26121970', '1378288598', None, None, None, None, None, '3569063') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '26121970', 'None', None, None, None, None, '3569063'), ('4302', '26121970', '1378289647', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378289602', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378289550', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378289457', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378289359', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378289275', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378288677', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378288650', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378288622', None, None, None, None, None, '3569063'), ('4302', '26121970', '1378288598', None, None, None, None, None, '3569063')] time used for this insertion : 0.015121698379516602 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7257764339447021 time spend to save output : 0.015274524688720703 total time spend for step 5 : 1.7410509586334229 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 (3569063) 2.56user 2.27system 0:12.44elapsed 38%CPU (0avgtext+0avgdata 162580maxresident)k 448inputs+11032outputs (7major+78872minor)pagefaults 0swaps