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 : 4027570 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 (2953738) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2953738) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23337140 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2953738'] with mtr_portfolio_ids : ['23337140'] and first list_photo_ids : [] new path : /proc/4027570/ Name: python3 Umask: 0002 State: R (running) Tgid: 4027570 Ngid: 0 Pid: 4027570 PPid: 4027569 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4027570 NSpid: 4027570 NSpgid: 4023623 NSsid: 4023623 VmPeak: 1107324 kB VmSize: 1107324 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98800 kB VmRSS: 98800 kB RssAnon: 60212 kB RssFile: 38588 kB RssShmem: 0 kB VmData: 866072 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 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: 52 nonvoluntary_ctxt_switches: 167 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4027570', 'Ngid': '0', 'Pid': '4027570', 'PPid': '4027569', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4027570', 'NSpid': '4027570', 'NSpgid': '4023623', 'NSsid': '4023623', 'VmPeak': '1107324 kB', 'VmSize': '1107324 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98800 kB', 'VmRSS': '98800 kB', 'RssAnon': '60212 kB', 'RssFile': '38588 kB', 'RssShmem': '0 kB', 'VmData': '866072 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', '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': '52', 'nonvoluntary_ctxt_switches': '167'} ('datou_batch_current', '4027570', '1107324', '0', '1107324', '866072', '98800', b'', 'marlene', '2953738') 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 (23337140) 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 (2953738 ) ) 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 (23337140) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1361078649, 'portfolio_id': 23337140}, {'photo_id': 1361078646, 'portfolio_id': 23337140}, {'photo_id': 1361078643, 'portfolio_id': 23337140}, {'photo_id': 1361078639, 'portfolio_id': 23337140}, {'photo_id': 1361078637, 'portfolio_id': 23337140}, {'photo_id': 1361078610, 'portfolio_id': 23337140}, {'photo_id': 1361078606, 'portfolio_id': 23337140}, {'photo_id': 1361078603, 'portfolio_id': 23337140}, {'photo_id': 1361078598, 'portfolio_id': 23337140}, {'photo_id': 1361078591, 'portfolio_id': 23337140}, {'photo_id': 1361078587, 'portfolio_id': 23337140}, {'photo_id': 1361078553, 'portfolio_id': 23337140}, {'photo_id': 1361078548, 'portfolio_id': 23337140}, {'photo_id': 1361078541, 'portfolio_id': 23337140}, {'photo_id': 1361078535, 'portfolio_id': 23337140}, {'photo_id': 1361078529, 'portfolio_id': 23337140}, {'photo_id': 1361078498, 'portfolio_id': 23337140}, {'photo_id': 1361078492, 'portfolio_id': 23337140}, {'photo_id': 1361078489, 'portfolio_id': 23337140}, {'photo_id': 1361078487, 'portfolio_id': 23337140}, {'photo_id': 1361078461, 'portfolio_id': 23337140}, {'photo_id': 1361078449, 'portfolio_id': 23337140}, {'photo_id': 1361078442, 'portfolio_id': 23337140}, {'photo_id': 1361078434, 'portfolio_id': 23337140}, {'photo_id': 1361078429, 'portfolio_id': 23337140}, {'photo_id': 1361078417, 'portfolio_id': 23337140}, {'photo_id': 1361078393, 'portfolio_id': 23337140}, {'photo_id': 1361078386, 'portfolio_id': 23337140}, {'photo_id': 1361078379, 'portfolio_id': 23337140}, {'photo_id': 1361078374, 'portfolio_id': 23337140}, {'photo_id': 1361078370, 'portfolio_id': 23337140}, {'photo_id': 1361078334, 'portfolio_id': 23337140}, {'photo_id': 1361078328, 'portfolio_id': 23337140}, {'photo_id': 1361078323, 'portfolio_id': 23337140}, {'photo_id': 1361078319, 'portfolio_id': 23337140}, {'photo_id': 1361078299, 'portfolio_id': 23337140}, {'photo_id': 1361078296, 'portfolio_id': 23337140}, {'photo_id': 1361078291, 'portfolio_id': 23337140}, {'photo_id': 1361078286, 'portfolio_id': 23337140}, {'photo_id': 1361078279, 'portfolio_id': 23337140}, {'photo_id': 1361078248, 'portfolio_id': 23337140}, {'photo_id': 1361078108, 'portfolio_id': 23337140}, {'photo_id': 1361078103, 'portfolio_id': 23337140}, {'photo_id': 1361078099, 'portfolio_id': 23337140}, {'photo_id': 1361078096, 'portfolio_id': 23337140}, {'photo_id': 1361078093, 'portfolio_id': 23337140}, {'photo_id': 1361078074, 'portfolio_id': 23337140}, {'photo_id': 1361078072, 'portfolio_id': 23337140}, {'photo_id': 1361078064, 'portfolio_id': 23337140}, {'photo_id': 1361078061, 'portfolio_id': 23337140}, {'photo_id': 1361078056, 'portfolio_id': 23337140}, {'photo_id': 1361078046, 'portfolio_id': 23337140}, {'photo_id': 1361078013, 'portfolio_id': 23337140}, {'photo_id': 1361078004, 'portfolio_id': 23337140}, {'photo_id': 1361077993, 'portfolio_id': 23337140}, {'photo_id': 1361077988, 'portfolio_id': 23337140}, {'photo_id': 1361077972, 'portfolio_id': 23337140}, {'photo_id': 1361077921, 'portfolio_id': 23337140}, {'photo_id': 1361077919, 'portfolio_id': 23337140}, {'photo_id': 1361077914, 'portfolio_id': 23337140}, {'photo_id': 1361077911, 'portfolio_id': 23337140}, {'photo_id': 1361077864, 'portfolio_id': 23337140}, {'photo_id': 1361077857, 'portfolio_id': 23337140}, {'photo_id': 1361077854, 'portfolio_id': 23337140}, {'photo_id': 1361077851, 'portfolio_id': 23337140}, {'photo_id': 1361077828, 'portfolio_id': 23337140}, {'photo_id': 1361077823, 'portfolio_id': 23337140}, {'photo_id': 1361077819, 'portfolio_id': 23337140}, {'photo_id': 1361077816, 'portfolio_id': 23337140}, {'photo_id': 1361077813, 'portfolio_id': 23337140}, {'photo_id': 1361077808, 'portfolio_id': 23337140}, {'photo_id': 1361077768, 'portfolio_id': 23337140}] map_portfolio_id_photo_id: {23337140: [1361078649, 1361078646, 1361078643, 1361078639, 1361078637, 1361078610, 1361078606, 1361078603, 1361078598, 1361078591, 1361078587, 1361078553, 1361078548, 1361078541, 1361078535, 1361078529, 1361078498, 1361078492, 1361078489, 1361078487, 1361078461, 1361078449, 1361078442, 1361078434, 1361078429, 1361078417, 1361078393, 1361078386, 1361078379, 1361078374, 1361078370, 1361078334, 1361078328, 1361078323, 1361078319, 1361078299, 1361078296, 1361078291, 1361078286, 1361078279, 1361078248, 1361078108, 1361078103, 1361078099, 1361078096, 1361078093, 1361078074, 1361078072, 1361078064, 1361078061, 1361078056, 1361078046, 1361078013, 1361078004, 1361077993, 1361077988, 1361077972, 1361077921, 1361077919, 1361077914, 1361077911, 1361077864, 1361077857, 1361077854, 1361077851, 1361077828, 1361077823, 1361077819, 1361077816, 1361077813, 1361077808, 1361077768]} ##### 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.016953468322753906 #### 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 Mon May 26 14:30:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23337140) 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 : 23337140 get user id for portfolio 23337140 get sub ptf for main ptf 23337140, type 3726 and hashtags ['plastique', 'cartonnette', 'mal_croppe', 'papier', 'metal', 'environnement', 'flou', 'Carton_gris', 'kraft', 'Teint_Dans_La_Masse', 'Carton_brun', '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`=23337140 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','cartonnette','mal_croppe','papier','metal','environnement','flou','Carton_gris','kraft','Teint_Dans_La_Masse','Carton_brun','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`=23337140 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','cartonnette','mal_croppe','papier','metal','environnement','flou','Carton_gris','kraft','Teint_Dans_La_Masse','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 23337140, 'sub_port_id': 23337151, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566172, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 57)}, 'environnement': {'main_port_id': 23337140, 'sub_port_id': 23337152, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566173, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 57)}, 'flou': {'main_port_id': 23337140, 'sub_port_id': 23337153, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566174, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 57)}, 'autre_refus': {'main_port_id': 23337140, 'sub_port_id': 23337154, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566175, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 57)}, 'Carton_brun': {'main_port_id': 23337140, 'sub_port_id': 23337155, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566176, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 57)}, 'mal_croppe': {'main_port_id': 23337140, 'sub_port_id': 23337156, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566177, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 57)}, 'papier': {'main_port_id': 23337140, 'sub_port_id': 23337157, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566178, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 23337140, 'sub_port_id': 23337158, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566179, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 57)}, 'kraft': {'main_port_id': 23337140, 'sub_port_id': 23337159, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566180, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 57)}, 'plastique': {'main_port_id': 23337140, 'sub_port_id': 23337160, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566181, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 57)}, 'metal': {'main_port_id': 23337140, 'sub_port_id': 23337161, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566182, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 57)}, 'cartonnette': {'main_port_id': 23337140, 'sub_port_id': 23337162, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566183, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23337151 , 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=23337140 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 (23337151) result : ((1361078082,), (1361078304,), (1361078355,), (1361078356,), (1361078357,), (1361078358,), (1361078359,), (1361078572,), (1361078573,), (1361078574,), (1361078624,), (1361078625,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23337140) result : ((1361077768,), (1361077808,), (1361077813,), (1361077816,), (1361077819,), (1361077823,), (1361077828,), (1361077851,), (1361077854,), (1361077857,), (1361077864,), (1361077911,), (1361077914,), (1361077919,), (1361077921,), (1361077972,), (1361077988,), (1361077993,), (1361078004,), (1361078013,), (1361078046,), (1361078056,), (1361078061,), (1361078064,), (1361078072,), (1361078074,), (1361078093,), (1361078096,), (1361078099,), (1361078103,), (1361078108,), (1361078248,), (1361078279,), (1361078286,), (1361078291,), (1361078296,), (1361078299,), (1361078319,), (1361078323,), (1361078328,), (1361078334,), (1361078370,), (1361078374,), (1361078379,), (1361078386,), (1361078393,), (1361078417,), (1361078429,), (1361078434,), (1361078442,), (1361078449,), (1361078461,), (1361078487,), (1361078489,), (1361078492,), (1361078498,), (1361078529,), (1361078535,), (1361078541,), (1361078548,), (1361078553,), (1361078587,), (1361078591,), (1361078598,), (1361078603,), (1361078606,), (1361078610,), (1361078637,), (1361078639,), (1361078643,), (1361078646,), (1361078649,)) 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 23337152 , 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=23337140 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 (23337152) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23337140) result : ((1361077768,), (1361077808,), (1361077813,), (1361077816,), (1361077819,), (1361077823,), (1361077828,), (1361077851,), (1361077854,), (1361077857,), (1361077864,), (1361077911,), (1361077914,), (1361077919,), (1361077921,), (1361077972,), (1361077988,), (1361077993,), (1361078004,), (1361078013,), (1361078046,), (1361078056,), (1361078061,), (1361078064,), (1361078072,), (1361078074,), (1361078093,), (1361078096,), (1361078099,), (1361078103,), (1361078108,), (1361078248,), (1361078279,), (1361078286,), (1361078291,), (1361078296,), (1361078299,), (1361078319,), (1361078323,), (1361078328,), (1361078334,), (1361078370,), (1361078374,), (1361078379,), (1361078386,), (1361078393,), (1361078417,), (1361078429,), (1361078434,), (1361078442,), (1361078449,), (1361078461,), (1361078487,), (1361078489,), (1361078492,), (1361078498,), (1361078529,), (1361078535,), (1361078541,), (1361078548,), (1361078553,), (1361078587,), (1361078591,), (1361078598,), (1361078603,), (1361078606,), (1361078610,), (1361078637,), (1361078639,), (1361078643,), (1361078646,), (1361078649,)) 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 23337153 , 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=23337140 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 (23337153) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23337140) result : ((1361077768,), (1361077808,), (1361077813,), (1361077816,), (1361077819,), (1361077823,), (1361077828,), (1361077851,), (1361077854,), (1361077857,), (1361077864,), (1361077911,), (1361077914,), (1361077919,), (1361077921,), (1361077972,), (1361077988,), (1361077993,), (1361078004,), (1361078013,), (1361078046,), (1361078056,), (1361078061,), (1361078064,), (1361078072,), (1361078074,), (1361078093,), (1361078096,), (1361078099,), (1361078103,), (1361078108,), (1361078248,), (1361078279,), (1361078286,), (1361078291,), (1361078296,), (1361078299,), (1361078319,), (1361078323,), (1361078328,), (1361078334,), (1361078370,), (1361078374,), (1361078379,), (1361078386,), (1361078393,), (1361078417,), (1361078429,), (1361078434,), (1361078442,), (1361078449,), (1361078461,), (1361078487,), (1361078489,), (1361078492,), (1361078498,), (1361078529,), (1361078535,), (1361078541,), (1361078548,), (1361078553,), (1361078587,), (1361078591,), (1361078598,), (1361078603,), (1361078606,), (1361078610,), (1361078637,), (1361078639,), (1361078643,), (1361078646,), (1361078649,)) 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 23337154 , 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=23337140 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 (23337154) result : ((1361078038,), (1361078039,), (1361078081,), (1361078571,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23337140) result : ((1361077768,), (1361077808,), (1361077813,), (1361077816,), (1361077819,), (1361077823,), (1361077828,), (1361077851,), (1361077854,), (1361077857,), (1361077864,), (1361077911,), (1361077914,), (1361077919,), (1361077921,), (1361077972,), (1361077988,), (1361077993,), (1361078004,), (1361078013,), (1361078046,), (1361078056,), (1361078061,), (1361078064,), (1361078072,), (1361078074,), (1361078093,), (1361078096,), (1361078099,), (1361078103,), (1361078108,), (1361078248,), (1361078279,), (1361078286,), (1361078291,), (1361078296,), (1361078299,), (1361078319,), (1361078323,), (1361078328,), (1361078334,), (1361078370,), (1361078374,), (1361078379,), (1361078386,), (1361078393,), (1361078417,), (1361078429,), (1361078434,), (1361078442,), (1361078449,), (1361078461,), (1361078487,), (1361078489,), (1361078492,), (1361078498,), (1361078529,), (1361078535,), (1361078541,), (1361078548,), (1361078553,), (1361078587,), (1361078591,), (1361078598,), (1361078603,), (1361078606,), (1361078610,), (1361078637,), (1361078639,), (1361078643,), (1361078646,), (1361078649,)) 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 23337155 , 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=23337140 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 (23337155) result : ((1361078042,), (1361078043,), (1361078083,), (1361078084,), (1361078307,), (1361078360,), (1361078362,), (1361078575,), (1361078576,), (1361078577,), (1361078626,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23337140) result : ((1361077768,), (1361077808,), (1361077813,), (1361077816,), (1361077819,), (1361077823,), (1361077828,), (1361077851,), (1361077854,), (1361077857,), (1361077864,), (1361077911,), (1361077914,), (1361077919,), (1361077921,), (1361077972,), (1361077988,), (1361077993,), (1361078004,), (1361078013,), (1361078046,), (1361078056,), (1361078061,), (1361078064,), (1361078072,), (1361078074,), (1361078093,), (1361078096,), (1361078099,), (1361078103,), (1361078108,), (1361078248,), (1361078279,), (1361078286,), (1361078291,), (1361078296,), (1361078299,), (1361078319,), (1361078323,), (1361078328,), (1361078334,), (1361078370,), (1361078374,), (1361078379,), (1361078386,), (1361078393,), (1361078417,), (1361078429,), (1361078434,), (1361078442,), (1361078449,), (1361078461,), (1361078487,), (1361078489,), (1361078492,), (1361078498,), (1361078529,), (1361078535,), (1361078541,), (1361078548,), (1361078553,), (1361078587,), (1361078591,), (1361078598,), (1361078603,), (1361078606,), (1361078610,), (1361078637,), (1361078639,), (1361078643,), (1361078646,), (1361078649,)) 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 23337156 , 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=23337140 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 (23337156) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23337140) result : ((1361077768,), (1361077808,), (1361077813,), (1361077816,), (1361077819,), (1361077823,), (1361077828,), (1361077851,), (1361077854,), (1361077857,), (1361077864,), (1361077911,), (1361077914,), (1361077919,), (1361077921,), (1361077972,), (1361077988,), (1361077993,), (1361078004,), (1361078013,), (1361078046,), (1361078056,), (1361078061,), (1361078064,), (1361078072,), (1361078074,), (1361078093,), (1361078096,), (1361078099,), (1361078103,), (1361078108,), (1361078248,), (1361078279,), (1361078286,), (1361078291,), (1361078296,), (1361078299,), (1361078319,), (1361078323,), (1361078328,), (1361078334,), (1361078370,), (1361078374,), (1361078379,), (1361078386,), (1361078393,), (1361078417,), (1361078429,), (1361078434,), (1361078442,), (1361078449,), (1361078461,), (1361078487,), (1361078489,), (1361078492,), (1361078498,), (1361078529,), (1361078535,), (1361078541,), (1361078548,), (1361078553,), (1361078587,), (1361078591,), (1361078598,), (1361078603,), (1361078606,), (1361078610,), (1361078637,), (1361078639,), (1361078643,), (1361078646,), (1361078649,)) 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 23337157 , 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=23337140 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 (23337157) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23337140) result : ((1361077768,), (1361077808,), (1361077813,), (1361077816,), (1361077819,), (1361077823,), (1361077828,), (1361077851,), (1361077854,), (1361077857,), (1361077864,), (1361077911,), (1361077914,), (1361077919,), (1361077921,), (1361077972,), (1361077988,), (1361077993,), (1361078004,), (1361078013,), (1361078046,), (1361078056,), (1361078061,), (1361078064,), (1361078072,), (1361078074,), (1361078093,), (1361078096,), (1361078099,), (1361078103,), (1361078108,), (1361078248,), (1361078279,), (1361078286,), (1361078291,), (1361078296,), (1361078299,), (1361078319,), (1361078323,), (1361078328,), (1361078334,), (1361078370,), (1361078374,), (1361078379,), (1361078386,), (1361078393,), (1361078417,), (1361078429,), (1361078434,), (1361078442,), (1361078449,), (1361078461,), (1361078487,), (1361078489,), (1361078492,), (1361078498,), (1361078529,), (1361078535,), (1361078541,), (1361078548,), (1361078553,), (1361078587,), (1361078591,), (1361078598,), (1361078603,), (1361078606,), (1361078610,), (1361078637,), (1361078639,), (1361078643,), (1361078646,), (1361078649,)) 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 23337158 , 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=23337140 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 (23337158) result : ((1361078035,), (1361078036,), (1361078037,), (1361078079,), (1361078354,), (1361078568,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23337140) result : ((1361077768,), (1361077808,), (1361077813,), (1361077816,), (1361077819,), (1361077823,), (1361077828,), (1361077851,), (1361077854,), (1361077857,), (1361077864,), (1361077911,), (1361077914,), (1361077919,), (1361077921,), (1361077972,), (1361077988,), (1361077993,), (1361078004,), (1361078013,), (1361078046,), (1361078056,), (1361078061,), (1361078064,), (1361078072,), (1361078074,), (1361078093,), (1361078096,), (1361078099,), (1361078103,), (1361078108,), (1361078248,), (1361078279,), (1361078286,), (1361078291,), (1361078296,), (1361078299,), (1361078319,), (1361078323,), (1361078328,), (1361078334,), (1361078370,), (1361078374,), (1361078379,), (1361078386,), (1361078393,), (1361078417,), (1361078429,), (1361078434,), (1361078442,), (1361078449,), (1361078461,), (1361078487,), (1361078489,), (1361078492,), (1361078498,), (1361078529,), (1361078535,), (1361078541,), (1361078548,), (1361078553,), (1361078587,), (1361078591,), (1361078598,), (1361078603,), (1361078606,), (1361078610,), (1361078637,), (1361078639,), (1361078643,), (1361078646,), (1361078649,)) 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 23337159 , 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=23337140 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 (23337159) result : ((1361078627,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23337140) result : ((1361077768,), (1361077808,), (1361077813,), (1361077816,), (1361077819,), (1361077823,), (1361077828,), (1361077851,), (1361077854,), (1361077857,), (1361077864,), (1361077911,), (1361077914,), (1361077919,), (1361077921,), (1361077972,), (1361077988,), (1361077993,), (1361078004,), (1361078013,), (1361078046,), (1361078056,), (1361078061,), (1361078064,), (1361078072,), (1361078074,), (1361078093,), (1361078096,), (1361078099,), (1361078103,), (1361078108,), (1361078248,), (1361078279,), (1361078286,), (1361078291,), (1361078296,), (1361078299,), (1361078319,), (1361078323,), (1361078328,), (1361078334,), (1361078370,), (1361078374,), (1361078379,), (1361078386,), (1361078393,), (1361078417,), (1361078429,), (1361078434,), (1361078442,), (1361078449,), (1361078461,), (1361078487,), (1361078489,), (1361078492,), (1361078498,), (1361078529,), (1361078535,), (1361078541,), (1361078548,), (1361078553,), (1361078587,), (1361078591,), (1361078598,), (1361078603,), (1361078606,), (1361078610,), (1361078637,), (1361078639,), (1361078643,), (1361078646,), (1361078649,)) 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 23337160 , 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=23337140 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 (23337160) result : ((1361078086,), (1361078363,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23337140) result : ((1361077768,), (1361077808,), (1361077813,), (1361077816,), (1361077819,), (1361077823,), (1361077828,), (1361077851,), (1361077854,), (1361077857,), (1361077864,), (1361077911,), (1361077914,), (1361077919,), (1361077921,), (1361077972,), (1361077988,), (1361077993,), (1361078004,), (1361078013,), (1361078046,), (1361078056,), (1361078061,), (1361078064,), (1361078072,), (1361078074,), (1361078093,), (1361078096,), (1361078099,), (1361078103,), (1361078108,), (1361078248,), (1361078279,), (1361078286,), (1361078291,), (1361078296,), (1361078299,), (1361078319,), (1361078323,), (1361078328,), (1361078334,), (1361078370,), (1361078374,), (1361078379,), (1361078386,), (1361078393,), (1361078417,), (1361078429,), (1361078434,), (1361078442,), (1361078449,), (1361078461,), (1361078487,), (1361078489,), (1361078492,), (1361078498,), (1361078529,), (1361078535,), (1361078541,), (1361078548,), (1361078553,), (1361078587,), (1361078591,), (1361078598,), (1361078603,), (1361078606,), (1361078610,), (1361078637,), (1361078639,), (1361078643,), (1361078646,), (1361078649,)) 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 23337161 , 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=23337140 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 (23337161) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23337140) result : ((1361077768,), (1361077808,), (1361077813,), (1361077816,), (1361077819,), (1361077823,), (1361077828,), (1361077851,), (1361077854,), (1361077857,), (1361077864,), (1361077911,), (1361077914,), (1361077919,), (1361077921,), (1361077972,), (1361077988,), (1361077993,), (1361078004,), (1361078013,), (1361078046,), (1361078056,), (1361078061,), (1361078064,), (1361078072,), (1361078074,), (1361078093,), (1361078096,), (1361078099,), (1361078103,), (1361078108,), (1361078248,), (1361078279,), (1361078286,), (1361078291,), (1361078296,), (1361078299,), (1361078319,), (1361078323,), (1361078328,), (1361078334,), (1361078370,), (1361078374,), (1361078379,), (1361078386,), (1361078393,), (1361078417,), (1361078429,), (1361078434,), (1361078442,), (1361078449,), (1361078461,), (1361078487,), (1361078489,), (1361078492,), (1361078498,), (1361078529,), (1361078535,), (1361078541,), (1361078548,), (1361078553,), (1361078587,), (1361078591,), (1361078598,), (1361078603,), (1361078606,), (1361078610,), (1361078637,), (1361078639,), (1361078643,), (1361078646,), (1361078649,)) 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 23337162 , 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=23337140 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 (23337162) result : ((1361078040,), (1361078041,), (1361078306,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23337140) result : ((1361077768,), (1361077808,), (1361077813,), (1361077816,), (1361077819,), (1361077823,), (1361077828,), (1361077851,), (1361077854,), (1361077857,), (1361077864,), (1361077911,), (1361077914,), (1361077919,), (1361077921,), (1361077972,), (1361077988,), (1361077993,), (1361078004,), (1361078013,), (1361078046,), (1361078056,), (1361078061,), (1361078064,), (1361078072,), (1361078074,), (1361078093,), (1361078096,), (1361078099,), (1361078103,), (1361078108,), (1361078248,), (1361078279,), (1361078286,), (1361078291,), (1361078296,), (1361078299,), (1361078319,), (1361078323,), (1361078328,), (1361078334,), (1361078370,), (1361078374,), (1361078379,), (1361078386,), (1361078393,), (1361078417,), (1361078429,), (1361078434,), (1361078442,), (1361078449,), (1361078461,), (1361078487,), (1361078489,), (1361078492,), (1361078498,), (1361078529,), (1361078535,), (1361078541,), (1361078548,), (1361078553,), (1361078587,), (1361078591,), (1361078598,), (1361078603,), (1361078606,), (1361078610,), (1361078637,), (1361078639,), (1361078643,), (1361078646,), (1361078649,)) 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`=23337140 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','cartonnette','mal_croppe','papier','metal','environnement','flou','Carton_gris','kraft','Teint_Dans_La_Masse','Carton_brun','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`=23337140 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','cartonnette','mal_croppe','papier','metal','environnement','flou','Carton_gris','kraft','Teint_Dans_La_Masse','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 23337140, 'sub_port_id': 23337164, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566184, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 59)}, 'environnement': {'main_port_id': 23337140, 'sub_port_id': 23337165, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566185, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 59)}, 'flou': {'main_port_id': 23337140, 'sub_port_id': 23337166, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566186, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 59)}, 'autre_refus': {'main_port_id': 23337140, 'sub_port_id': 23337167, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566187, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 59)}, 'Carton_brun': {'main_port_id': 23337140, 'sub_port_id': 23337168, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566188, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 59)}, 'mal_croppe': {'main_port_id': 23337140, 'sub_port_id': 23337169, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566189, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 59)}, 'papier': {'main_port_id': 23337140, 'sub_port_id': 23337170, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566190, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 23337140, 'sub_port_id': 23337171, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566191, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 59)}, 'kraft': {'main_port_id': 23337140, 'sub_port_id': 23337172, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566192, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 59)}, 'plastique': {'main_port_id': 23337140, 'sub_port_id': 23337173, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566193, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 59)}, 'metal': {'main_port_id': 23337140, 'sub_port_id': 23337174, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566194, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 59)}, 'cartonnette': {'main_port_id': 23337140, 'sub_port_id': 23337175, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15566195, 'last_updated_at': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 26, 14, 28, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 26, 14, 18, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23337164,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23337151 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23337165,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23337152 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23337166,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23337153 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23337167,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23337154 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23337168,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23337155 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23337169,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23337156 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23337170,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23337157 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23337171,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23337158 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23337172,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23337159 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23337173,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23337160 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23337174,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23337161 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23337175,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23337162 lien utilise dans velours : https://www.fotonower.com/velours/23337164,23337165,23337166,23337167,23337168,23337169,23337170,23337171,23337172,23337173,23337174,23337175?tags=Carton_gris,environnement,flou,autre_refus,Carton_brun,mal_croppe,papier,Teint_Dans_La_Masse,kraft,plastique,metal,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23337140]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1361078649, 1361078646, 1361078643, 1361078639, 1361078637, 1361078610, 1361078606, 1361078603, 1361078598, 1361078591, 1361078587, 1361078553, 1361078548, 1361078541, 1361078535, 1361078529] map_info['map_portfolio_photo'] : {23337140: [1361078649, 1361078646, 1361078643, 1361078639, 1361078637, 1361078610, 1361078606, 1361078603, 1361078598, 1361078591, 1361078587, 1361078553, 1361078548, 1361078541, 1361078535, 1361078529, 1361078498, 1361078492, 1361078489, 1361078487, 1361078461, 1361078449, 1361078442, 1361078434, 1361078429, 1361078417, 1361078393, 1361078386, 1361078379, 1361078374, 1361078370, 1361078334, 1361078328, 1361078323, 1361078319, 1361078299, 1361078296, 1361078291, 1361078286, 1361078279, 1361078248, 1361078108, 1361078103, 1361078099, 1361078096, 1361078093, 1361078074, 1361078072, 1361078064, 1361078061, 1361078056, 1361078046, 1361078013, 1361078004, 1361077993, 1361077988, 1361077972, 1361077921, 1361077919, 1361077914, 1361077911, 1361077864, 1361077857, 1361077854, 1361077851, 1361077828, 1361077823, 1361077819, 1361077816, 1361077813, 1361077808, 1361077768]} final : False mtd_id 4302 list_pids : [1361078649, 1361078646, 1361078643, 1361078639, 1361078637, 1361078610, 1361078606, 1361078603, 1361078598, 1361078591, 1361078587, 1361078553, 1361078548, 1361078541, 1361078535, 1361078529] Looping around the photos to save general results len do output : 1 /23337140. 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, '2953738') ('4302', '23337140', '1361078649', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078646', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078643', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078639', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078637', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078610', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078606', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078603', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078598', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078591', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078587', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078553', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078548', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078541', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078535', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078529', None, None, None, None, None, '2953738') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '23337140', "{'Carton_gris': 23337151, 'environnement': 23337152, 'flou': 23337153, 'autre_refus': 23337154, 'Carton_brun': 23337155, 'mal_croppe': 23337156, 'papier': 23337157, 'Teint_Dans_La_Masse': 23337158, 'kraft': 23337159, 'plastique': 23337160, 'metal': 23337161, 'cartonnette': 23337162}", None, None, None, None, '2953738'), ('4302', '23337140', '1361078649', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078646', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078643', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078639', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078637', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078610', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078606', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078603', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078598', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078591', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078587', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078553', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078548', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078541', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078535', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078529', None, None, None, None, None, '2953738')] time used for this insertion : 0.014631509780883789 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4273040294647217 time spend to save output : 0.015026092529296875 total time spend for step 1 : 1.4423301219940186 step2:final Mon May 26 14:31:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23337140) 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 23337140 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1361077768,1361077828,1361077823,1361077819,1361077816,1361077813,1361077808,1361077864,1361077857,1361077854,1361077851,1361077921,1361077919,1361077914,1361077911,1361078013,1361078004,1361077993,1361077988,1361077972,1361078074,1361078072,1361078064,1361078061,1361078056,1361078108,1361078046,1361078103,1361078099,1361078096,1361078093,1361078299,1361078296,1361078291,1361078286,1361078279,1361078248,1361078334,1361078328,1361078323,1361078319,1361078393,1361078386,1361078379,1361078374,1361078370,1361078461,1361078449,1361078442,1361078434,1361078429,1361078417,1361078498,1361078492,1361078489,1361078487,1361078553,1361078548,1361078541,1361078535,1361078529,1361078610,1361078606,1361078603,1361078598,1361078591,1361078587,1361078649,1361078646,1361078643,1361078639,1361078637); 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([23337140]) Inside saveOutput : final : False verbose : True original output for save of step final : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ('0.05430029501819769',), 1361078541: ('0.05430029501819769',), 1361078535: ('0.05430029501819769',), 1361078529: ('0.05430029501819769',)} new output for save of step final : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ('0.05430029501819769',), 1361078541: ('0.05430029501819769',), 1361078535: ('0.05430029501819769',), 1361078529: ('0.05430029501819769',)} [1361078649, 1361078646, 1361078643, 1361078639, 1361078637, 1361078610, 1361078606, 1361078603, 1361078598, 1361078591, 1361078587, 1361078553, 1361078548, 1361078541, 1361078535, 1361078529] map_info['map_portfolio_photo'] : {23337140: [1361078649, 1361078646, 1361078643, 1361078639, 1361078637, 1361078610, 1361078606, 1361078603, 1361078598, 1361078591, 1361078587, 1361078553, 1361078548, 1361078541, 1361078535, 1361078529, 1361078498, 1361078492, 1361078489, 1361078487, 1361078461, 1361078449, 1361078442, 1361078434, 1361078429, 1361078417, 1361078393, 1361078386, 1361078379, 1361078374, 1361078370, 1361078334, 1361078328, 1361078323, 1361078319, 1361078299, 1361078296, 1361078291, 1361078286, 1361078279, 1361078248, 1361078108, 1361078103, 1361078099, 1361078096, 1361078093, 1361078074, 1361078072, 1361078064, 1361078061, 1361078056, 1361078046, 1361078013, 1361078004, 1361077993, 1361077988, 1361077972, 1361077921, 1361077919, 1361077914, 1361077911, 1361077864, 1361077857, 1361077854, 1361077851, 1361077828, 1361077823, 1361077819, 1361077816, 1361077813, 1361077808, 1361077768]} final : False mtd_id 4302 list_pids : [1361078649, 1361078646, 1361078643, 1361078639, 1361078637, 1361078610, 1361078606, 1361078603, 1361078598, 1361078591, 1361078587, 1361078553, 1361078548, 1361078541, 1361078535, 1361078529] Looping around the photos to save general results len do output : 16 /1361078649.Didn't retrieve data . /1361078646.Didn't retrieve data . /1361078643.Didn't retrieve data . /1361078639.Didn't retrieve data . /1361078637.Didn't retrieve data . /1361078610.Didn't retrieve data . /1361078606.Didn't retrieve data . /1361078603.Didn't retrieve data . /1361078598.Didn't retrieve data . /1361078591.Didn't retrieve data . /1361078587.Didn't retrieve data . /1361078553.Didn't retrieve data . /1361078548.Didn't retrieve data . /1361078541.Didn't retrieve data . /1361078535.Didn't retrieve data . /1361078529.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, '2953738') ('4302', '23337140', '1361078649', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078646', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078643', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078639', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078637', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078610', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078606', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078603', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078598', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078591', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078587', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078553', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078548', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078541', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078535', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078529', None, None, None, None, None, '2953738') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 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', '23337140', '1361078649', '0.05430029501819769', None, None, None, None, '2953738'), ('4302', '23337140', '1361078646', '0.05430029501819769', None, None, None, None, '2953738'), ('4302', '23337140', '1361078643', '0.05430029501819769', None, None, None, None, '2953738'), ('4302', '23337140', '1361078639', '0.05430029501819769', None, None, None, None, '2953738'), ('4302', '23337140', '1361078637', '0.05430029501819769', None, None, None, None, '2953738'), ('4302', '23337140', '1361078610', '0.05430029501819769', None, None, None, None, '2953738'), ('4302', '23337140', '1361078606', '0.05430029501819769', None, None, None, None, '2953738'), ('4302', '23337140', '1361078603', '0.05430029501819769', None, None, None, None, '2953738'), ('4302', '23337140', '1361078598', '0.05430029501819769', None, None, None, None, '2953738'), ('4302', '23337140', '1361078591', '0.05430029501819769', None, None, None, None, '2953738'), ('4302', '23337140', '1361078587', '0.05430029501819769', None, None, None, None, '2953738'), ('4302', '23337140', '1361078553', '0.05430029501819769', None, None, None, None, '2953738'), ('4302', '23337140', '1361078548', '0.05430029501819769', None, None, None, None, '2953738'), ('4302', '23337140', '1361078541', '0.05430029501819769', None, None, None, None, '2953738'), ('4302', '23337140', '1361078535', '0.05430029501819769', None, None, None, None, '2953738'), ('4302', '23337140', '1361078529', '0.05430029501819769', None, None, None, None, '2953738')] time used for this insertion : 0.013221263885498047 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0659487247467041 time spend to save output : 0.014003515243530273 total time spend for step 2 : 0.07995223999023438 step3:velours_tree Mon May 26 14:31:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {23337140: [{'Carton_gris': 23337151, 'environnement': 23337152, 'flou': 23337153, 'autre_refus': 23337154, 'Carton_brun': 23337155, 'mal_croppe': 23337156, 'papier': 23337157, 'Teint_Dans_La_Masse': 23337158, 'kraft': 23337159, 'plastique': 23337160, 'metal': 23337161, 'cartonnette': 23337162}]} input_args_next_step : {23337140: ()} output_args : {23337140: [{'Carton_gris': 23337151, 'environnement': 23337152, 'flou': 23337153, 'autre_refus': 23337154, 'Carton_brun': 23337155, 'mal_croppe': 23337156, 'papier': 23337157, 'Teint_Dans_La_Masse': 23337158, 'kraft': 23337159, 'plastique': 23337160, 'metal': 23337161, 'cartonnette': 23337162}]} args : 23337140 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 23337151, 'environnement': 23337152, 'flou': 23337153, 'autre_refus': 23337154, 'Carton_brun': 23337155, 'mal_croppe': 23337156, 'papier': 23337157, 'Teint_Dans_La_Masse': 23337158, 'kraft': 23337159, 'plastique': 23337160, 'metal': 23337161, 'cartonnette': 23337162},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23337140) 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([23337140]) 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.42795491218566895 time spend to save output : 7.510185241699219e-05 total time spend for step 3 : 0.42803001403808594 step4:send_mail_cod Mon May 26 14:31:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ('0.05430029501819769',), 1361078541: ('0.05430029501819769',), 1361078535: ('0.05430029501819769',), 1361078529: ('0.05430029501819769',)} input_args_next_step : {1361078649: ()} output_args : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ('0.05430029501819769',), 1361078541: ('0.05430029501819769',), 1361078535: ('0.05430029501819769',), 1361078529: ('0.05430029501819769',)} args : 1361078649 depend.output_id : 0 input_args_next_step : {1361078649: ('0.05430029501819769',), 1361078646: ()} output_args : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ('0.05430029501819769',), 1361078541: ('0.05430029501819769',), 1361078535: ('0.05430029501819769',), 1361078529: ('0.05430029501819769',)} args : 1361078646 depend.output_id : 0 input_args_next_step : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ()} output_args : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ('0.05430029501819769',), 1361078541: ('0.05430029501819769',), 1361078535: ('0.05430029501819769',), 1361078529: ('0.05430029501819769',)} args : 1361078643 depend.output_id : 0 input_args_next_step : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ()} output_args : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ('0.05430029501819769',), 1361078541: ('0.05430029501819769',), 1361078535: ('0.05430029501819769',), 1361078529: ('0.05430029501819769',)} args : 1361078639 depend.output_id : 0 input_args_next_step : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ()} output_args : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ('0.05430029501819769',), 1361078541: ('0.05430029501819769',), 1361078535: ('0.05430029501819769',), 1361078529: ('0.05430029501819769',)} args : 1361078637 depend.output_id : 0 input_args_next_step : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ()} output_args : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ('0.05430029501819769',), 1361078541: ('0.05430029501819769',), 1361078535: ('0.05430029501819769',), 1361078529: ('0.05430029501819769',)} args : 1361078610 depend.output_id : 0 input_args_next_step : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ()} output_args : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ('0.05430029501819769',), 1361078541: ('0.05430029501819769',), 1361078535: ('0.05430029501819769',), 1361078529: ('0.05430029501819769',)} args : 1361078606 depend.output_id : 0 input_args_next_step : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ()} output_args : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ('0.05430029501819769',), 1361078541: ('0.05430029501819769',), 1361078535: ('0.05430029501819769',), 1361078529: ('0.05430029501819769',)} args : 1361078603 depend.output_id : 0 input_args_next_step : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ()} output_args : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ('0.05430029501819769',), 1361078541: ('0.05430029501819769',), 1361078535: ('0.05430029501819769',), 1361078529: ('0.05430029501819769',)} args : 1361078598 depend.output_id : 0 input_args_next_step : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ()} output_args : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ('0.05430029501819769',), 1361078541: ('0.05430029501819769',), 1361078535: ('0.05430029501819769',), 1361078529: ('0.05430029501819769',)} args : 1361078591 depend.output_id : 0 input_args_next_step : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ()} output_args : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ('0.05430029501819769',), 1361078541: ('0.05430029501819769',), 1361078535: ('0.05430029501819769',), 1361078529: ('0.05430029501819769',)} args : 1361078587 depend.output_id : 0 input_args_next_step : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ()} output_args : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ('0.05430029501819769',), 1361078541: ('0.05430029501819769',), 1361078535: ('0.05430029501819769',), 1361078529: ('0.05430029501819769',)} args : 1361078553 depend.output_id : 0 input_args_next_step : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ()} output_args : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ('0.05430029501819769',), 1361078541: ('0.05430029501819769',), 1361078535: ('0.05430029501819769',), 1361078529: ('0.05430029501819769',)} args : 1361078548 depend.output_id : 0 input_args_next_step : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ('0.05430029501819769',), 1361078541: ()} output_args : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ('0.05430029501819769',), 1361078541: ('0.05430029501819769',), 1361078535: ('0.05430029501819769',), 1361078529: ('0.05430029501819769',)} args : 1361078541 depend.output_id : 0 input_args_next_step : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ('0.05430029501819769',), 1361078541: ('0.05430029501819769',), 1361078535: ()} output_args : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ('0.05430029501819769',), 1361078541: ('0.05430029501819769',), 1361078535: ('0.05430029501819769',), 1361078529: ('0.05430029501819769',)} args : 1361078535 depend.output_id : 0 input_args_next_step : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ('0.05430029501819769',), 1361078541: ('0.05430029501819769',), 1361078535: ('0.05430029501819769',), 1361078529: ()} output_args : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ('0.05430029501819769',), 1361078541: ('0.05430029501819769',), 1361078535: ('0.05430029501819769',), 1361078529: ('0.05430029501819769',)} args : 1361078529 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 : {23337140: [{'Carton_gris': 23337151, 'environnement': 23337152, 'flou': 23337153, 'autre_refus': 23337154, 'Carton_brun': 23337155, 'mal_croppe': 23337156, 'papier': 23337157, 'Teint_Dans_La_Masse': 23337158, 'kraft': 23337159, 'plastique': 23337160, 'metal': 23337161, 'cartonnette': 23337162}]} input_args_next_step : {1361078649: ('0.05430029501819769',), 1361078646: ('0.05430029501819769',), 1361078643: ('0.05430029501819769',), 1361078639: ('0.05430029501819769',), 1361078637: ('0.05430029501819769',), 1361078610: ('0.05430029501819769',), 1361078606: ('0.05430029501819769',), 1361078603: ('0.05430029501819769',), 1361078598: ('0.05430029501819769',), 1361078591: ('0.05430029501819769',), 1361078587: ('0.05430029501819769',), 1361078553: ('0.05430029501819769',), 1361078548: ('0.05430029501819769',), 1361078541: ('0.05430029501819769',), 1361078535: ('0.05430029501819769',), 1361078529: ('0.05430029501819769',), 23337140: ()} output_args : {23337140: [{'Carton_gris': 23337151, 'environnement': 23337152, 'flou': 23337153, 'autre_refus': 23337154, 'Carton_brun': 23337155, 'mal_croppe': 23337156, 'papier': 23337157, 'Teint_Dans_La_Masse': 23337158, 'kraft': 23337159, 'plastique': 23337160, 'metal': 23337161, 'cartonnette': 23337162}]} args : 23337140 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 :17, first value : ('0.05430029501819769',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23337140) 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 (1361078649,1361078646,1361078643,1361078639,1361078637,1361078610,1361078606,1361078603,1361078598,1361078591,1361078587,1361078553,1361078548,1361078541,1361078535,1361078529) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1361078529 begin to download photo : 1361078553 begin to download photo : 1361078603 begin to download photo : 1361078639 download finish for photo 1361078529 begin to download photo : 1361078535 download finish for photo 1361078553 begin to download photo : 1361078587 download finish for photo 1361078639 begin to download photo : 1361078643 download finish for photo 1361078603 begin to download photo : 1361078606 download finish for photo 1361078535 begin to download photo : 1361078541 download finish for photo 1361078587 begin to download photo : 1361078591 download finish for photo 1361078643 begin to download photo : 1361078646 download finish for photo 1361078606 begin to download photo : 1361078610 download finish for photo 1361078541 begin to download photo : 1361078548 download finish for photo 1361078591 begin to download photo : 1361078598 download finish for photo 1361078646 begin to download photo : 1361078649 download finish for photo 1361078610 begin to download photo : 1361078637 download finish for photo 1361078548 download finish for photo 1361078649 download finish for photo 1361078598 download finish for photo 1361078637 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette233371531748262661/ length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P23337140_26-05-2025_14_31_01.pdf 23337153 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=23337153 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette233371531748262661 23337154 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=23337154 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361078038: '1748262026_1270582_1361077864_243a3b12d071c89ea70afd1caa3522dd_rle_crop_3813087058_0.png', 1361078039: '1748262026_1270582_1361077808_4305cc1e4a7815546113917129ba0f59_rle_crop_3813087141_0.png', 1361078081: '1748262086_1272658_1361077851_440650eccc5a13971a31b51f48ee65d8_rle_crop_3813087273_0.png', 1361078571: '1748262506_1286714_1361078370_0cc905a72bc9fa2406cc9cd4c8090c2c_rle_crop_3813089928_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/e288ab610d3a45998f4b8b2815589be3_32850012.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/37f79f36c2b47e295a3f5c1b53f4d29e_56877786.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/0517c5f878f26bd3e8a2f4171284f6b6_57389995.png change filename to text .imagette233371541748262661/ imagette233371541748262661/1748262506_1286714_1361078370_0cc905a72bc9fa2406cc9cd4c8090c2c_rle_crop_3813089928_0.png.png imagette233371541748262661/1748262026_1270582_1361077864_243a3b12d071c89ea70afd1caa3522dd_rle_crop_3813087058_0.png.png imagette233371541748262661/1748262086_1272658_1361077851_440650eccc5a13971a31b51f48ee65d8_rle_crop_3813087273_0.png.png imagette233371541748262661/1748262026_1270582_1361077808_4305cc1e4a7815546113917129ba0f59_rle_crop_3813087141_0.png.png imagette233371561748262661/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/f40cc25122d19a6ddf66a6ede7075665_28016247.png imagette233371541748262661 23337156 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=23337156 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette233371561748262661 23337159 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=23337159 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361078627: '1748262566_1288593_1361078323_5f9eabdc9c97efeb163663cf7e9ef85f_rle_crop_3813090027_0.png'} change filename to text .imagette233371591748262661/ imagette233371591748262661/1748262566_1288593_1361078323_5f9eabdc9c97efeb163663cf7e9ef85f_rle_crop_3813090027_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/4a848beb955c0ac7f5a6a1187d157923_83477703.png imagette233371591748262661 23337160 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=23337160 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361078086: '1748262086_1272658_1361077854_f53e5ff5e0fb778d3b333788263b191e_rle_crop_3813087258_0.png', 1361078363: '1748262267_1281368_1361078072_d7503f0ea2ca0963fd6a5f8df9fc2f85_rle_crop_3813088230_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/0211a38c25b0c979e5007068cc5ece64_79685191.png change filename to text .imagette233371601748262661/ imagette233371601748262661/1748262086_1272658_1361077854_f53e5ff5e0fb778d3b333788263b191e_rle_crop_3813087258_0.png.png imagette233371601748262661/1748262267_1281368_1361078072_d7503f0ea2ca0963fd6a5f8df9fc2f85_rle_crop_3813088230_0.png.png imagette233371611748262661/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/f6cffca1e29330ff8200eeab86be231d_72367707.png imagette233371601748262661 23337161 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=23337161 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette233371611748262661 23337162 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=23337162 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361078040: '1748262026_1270582_1361077808_4305cc1e4a7815546113917129ba0f59_rle_crop_3813087137_0.png', 1361078041: '1748262026_1270582_1361077808_4305cc1e4a7815546113917129ba0f59_rle_crop_3813087135_0.png', 1361078306: '1748262207_1278183_1361077768_1ca3332f2f428004235bf5c8415fc2cf_rle_crop_3813087952_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/5957531a5f66b69cc4c6de34e4efa9a6_37728393.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/ad60f1340f9bd45b9a3c2a47ea3d92f7_90255008.png change filename to text .imagette233371621748262661/ imagette233371621748262661/1748262026_1270582_1361077808_4305cc1e4a7815546113917129ba0f59_rle_crop_3813087137_0.png.png imagette233371621748262661/1748262207_1278183_1361077768_1ca3332f2f428004235bf5c8415fc2cf_rle_crop_3813087952_0.png.png imagette233371621748262661/1748262026_1270582_1361077808_4305cc1e4a7815546113917129ba0f59_rle_crop_3813087135_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/dce254a64e9b2038120f2c77fef5c993_12531741.png imagette233371621748262661 23337151 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=23337151 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361078082: '1748262086_1272658_1361077857_a43817bc25af4594b66d2f39369ba836_rle_crop_3813087244_0.png', 1361078304: '1748262207_1278183_1361077828_133dddc416c1aa7d6bf8550eca7dbab0_rle_crop_3813087941_0.png', 1361078355: '1748262267_1281368_1361078072_d7503f0ea2ca0963fd6a5f8df9fc2f85_rle_crop_3813088225_0.png', 1361078356: '1748262267_1281368_1361078064_bd2c7531c3eff1ad572b361f1c72a09f_rle_crop_3813088248_0.png', 1361078357: '1748262267_1281368_1361078064_bd2c7531c3eff1ad572b361f1c72a09f_rle_crop_3813088244_0.png', 1361078358: '1748262267_1281368_1361078061_16815165bfe6a1e2653bc9062d4abb17_rle_crop_3813088256_0.png', 1361078359: '1748262267_1281368_1361078056_6ae5bb797bf9968f89765d829457e8ac_rle_crop_3813088267_0.png', 1361078572: '1748262506_1286714_1361078374_abb5a64dc4fb69feb1fcb8b213e179a1_rle_crop_3813089912_0.png', 1361078573: '1748262506_1286714_1361078370_0cc905a72bc9fa2406cc9cd4c8090c2c_rle_crop_3813089924_0.png', 1361078574: '1748262506_1286714_1361078370_0cc905a72bc9fa2406cc9cd4c8090c2c_rle_crop_3813089920_0.png', 1361078624: '1748262566_1288593_1361078328_4f92e6b71c74b13c8bc6439c54bea498_rle_crop_3813090011_0.png', 1361078625: '1748262566_1288593_1361078328_4f92e6b71c74b13c8bc6439c54bea498_rle_crop_3813090016_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/945462ef915d33f12389732d59283b83_16449278.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/86123c020c87d50e1fb4cd5d5a0fd110_48738660.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/f77796691c6c7c26bc60e47e421d9d6d_13242947.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/e335605391015ca5cc9a068bbeecc53b_64637045.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/1dcc71b5c27a533fdf3eb821c25c24a9_29714378.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/43027b2a52ea413e6fbc7e3ddb7b0d9f_87503346.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/c312e6c4d2aebf8cfb62352a1999b7c1_71323152.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/d08a09cccb3560992d4678432a262359_27755066.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/ad009b02e5b2519a1eedf0679ae60600_59376061.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/eab20faca648568d36a4b03de034bc85_67096615.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/555276cb46b39082c2e835d0d5494eb2_48679822.png change filename to text .imagette233371511748262662/ imagette233371511748262662/1748262506_1286714_1361078370_0cc905a72bc9fa2406cc9cd4c8090c2c_rle_crop_3813089924_0.png.png imagette233371511748262662/1748262566_1288593_1361078328_4f92e6b71c74b13c8bc6439c54bea498_rle_crop_3813090016_0.png.png imagette233371511748262662/1748262267_1281368_1361078064_bd2c7531c3eff1ad572b361f1c72a09f_rle_crop_3813088248_0.png.png imagette233371511748262662/1748262267_1281368_1361078061_16815165bfe6a1e2653bc9062d4abb17_rle_crop_3813088256_0.png.png imagette233371511748262662/1748262267_1281368_1361078064_bd2c7531c3eff1ad572b361f1c72a09f_rle_crop_3813088244_0.png.png imagette233371511748262662/1748262566_1288593_1361078328_4f92e6b71c74b13c8bc6439c54bea498_rle_crop_3813090011_0.png.png imagette233371511748262662/1748262267_1281368_1361078072_d7503f0ea2ca0963fd6a5f8df9fc2f85_rle_crop_3813088225_0.png.png imagette233371511748262662/1748262086_1272658_1361077857_a43817bc25af4594b66d2f39369ba836_rle_crop_3813087244_0.png.png imagette233371511748262662/1748262506_1286714_1361078374_abb5a64dc4fb69feb1fcb8b213e179a1_rle_crop_3813089912_0.png.png imagette233371511748262662/1748262267_1281368_1361078056_6ae5bb797bf9968f89765d829457e8ac_rle_crop_3813088267_0.png.png imagette233371511748262662/1748262207_1278183_1361077828_133dddc416c1aa7d6bf8550eca7dbab0_rle_crop_3813087941_0.png.png imagette233371511748262662/1748262506_1286714_1361078370_0cc905a72bc9fa2406cc9cd4c8090c2c_rle_crop_3813089920_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/c7a24e25893ea64296c8bc8fc5ab5d71_78221947.png imagette233371511748262662 23337155 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=23337155 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361078042: '1748262026_1270582_1361077819_e6c361ef83938d6496232c6d37614c50_rle_crop_3813087095_0.png', 1361078043: '1748262026_1270582_1361077816_a7d57c157d3e386db308b6d46c4c9c1b_rle_crop_3813087103_0.png', 1361078083: '1748262086_1272658_1361077854_f53e5ff5e0fb778d3b333788263b191e_rle_crop_3813087255_0.png', 1361078084: '1748262086_1272658_1361077851_440650eccc5a13971a31b51f48ee65d8_rle_crop_3813087272_0.png', 1361078307: '1748262207_1278183_1361077828_133dddc416c1aa7d6bf8550eca7dbab0_rle_crop_3813087944_0.png', 1361078360: '1748262267_1281368_1361078064_bd2c7531c3eff1ad572b361f1c72a09f_rle_crop_3813088242_0.png', 1361078362: '1748262267_1281368_1361078056_6ae5bb797bf9968f89765d829457e8ac_rle_crop_3813088268_0.png', 1361078575: '1748262506_1286714_1361078379_5a33d97b4f64fd4e5f1d77f5aa8bfea4_rle_crop_3813089890_0.png', 1361078576: '1748262506_1286714_1361078374_abb5a64dc4fb69feb1fcb8b213e179a1_rle_crop_3813089913_0.png', 1361078577: '1748262506_1286714_1361078370_0cc905a72bc9fa2406cc9cd4c8090c2c_rle_crop_3813089927_0.png', 1361078626: '1748262566_1288593_1361078323_5f9eabdc9c97efeb163663cf7e9ef85f_rle_crop_3813090032_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/a12244d3adf55b452936c6df49a83aed_40835347.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/d889354d9138d623b79081c7640a9f7f_79453964.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/aa8b29934f8547df8fec1ac78cda1ff6_68202967.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/ec4886d323ab1df4e0ed6ba0d8137322_29653778.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/62321fbe72f1b02634c38fc33ec9bf27_70391001.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/7d2b86030f64bc81171d2bbb67619f8e_73295122.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/23ebfb30c55eb5abfa7e8504b47c3550_88472570.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/77f1f8d4d2eb3e4213586bf083653b84_92588426.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/5a4b09a115c2f6e7f04d4766871e8e6a_3218884.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/135d3dc8d78f3d4a3b8c05f516c023a5_33159824.png change filename to text .imagette233371551748262662/ imagette233371551748262662/1748262086_1272658_1361077854_f53e5ff5e0fb778d3b333788263b191e_rle_crop_3813087255_0.png.png imagette233371551748262662/1748262506_1286714_1361078379_5a33d97b4f64fd4e5f1d77f5aa8bfea4_rle_crop_3813089890_0.png.png imagette233371551748262662/1748262207_1278183_1361077828_133dddc416c1aa7d6bf8550eca7dbab0_rle_crop_3813087944_0.png.png imagette233371551748262662/1748262267_1281368_1361078064_bd2c7531c3eff1ad572b361f1c72a09f_rle_crop_3813088242_0.png.png imagette233371551748262662/1748262086_1272658_1361077851_440650eccc5a13971a31b51f48ee65d8_rle_crop_3813087272_0.png.png imagette233371551748262662/1748262026_1270582_1361077819_e6c361ef83938d6496232c6d37614c50_rle_crop_3813087095_0.png.png imagette233371551748262662/1748262566_1288593_1361078323_5f9eabdc9c97efeb163663cf7e9ef85f_rle_crop_3813090032_0.png.png imagette233371551748262662/1748262506_1286714_1361078374_abb5a64dc4fb69feb1fcb8b213e179a1_rle_crop_3813089913_0.png.png imagette233371551748262662/1748262267_1281368_1361078056_6ae5bb797bf9968f89765d829457e8ac_rle_crop_3813088268_0.png.png imagette233371551748262662/1748262026_1270582_1361077816_a7d57c157d3e386db308b6d46c4c9c1b_rle_crop_3813087103_0.png.png imagette233371551748262662/1748262506_1286714_1361078370_0cc905a72bc9fa2406cc9cd4c8090c2c_rle_crop_3813089927_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/ac812abc008686b37867e7f460a1c2e5_55640088.png imagette233371551748262662 23337158 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=23337158 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361078035: '1748262026_1270582_1361077823_a75aaba75a8c4a256eb0673524a76165_rle_crop_3813087078_0.png', 1361078036: '1748262026_1270582_1361077823_a75aaba75a8c4a256eb0673524a76165_rle_crop_3813087077_0.png', 1361078037: '1748262026_1270582_1361077816_a7d57c157d3e386db308b6d46c4c9c1b_rle_crop_3813087110_0.png', 1361078079: '1748262086_1272658_1361077851_440650eccc5a13971a31b51f48ee65d8_rle_crop_3813087269_0.png', 1361078354: '1748262267_1281368_1361078064_bd2c7531c3eff1ad572b361f1c72a09f_rle_crop_3813088250_0.png', 1361078568: '1748262506_1286714_1361078370_0cc905a72bc9fa2406cc9cd4c8090c2c_rle_crop_3813089923_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/0bdddc0a017fb04cf36057c3effb3d2a_12578642.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/78342d6875d72f72d99a084a7d3974b6_85256052.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/9dbea924bd11454a9ba99d361d4294ca_77945310.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/8fdf7b8783deb28e1bf1de8519762c46_4203353.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/7fb493dddbaff3355d0088db1beab1c0_45879447.png change filename to text .imagette233371581748262663/ imagette233371581748262663/1748262026_1270582_1361077823_a75aaba75a8c4a256eb0673524a76165_rle_crop_3813087078_0.png.png imagette233371581748262663/1748262026_1270582_1361077823_a75aaba75a8c4a256eb0673524a76165_rle_crop_3813087077_0.png.png imagette233371581748262663/1748262086_1272658_1361077851_440650eccc5a13971a31b51f48ee65d8_rle_crop_3813087269_0.png.png imagette233371581748262663/1748262267_1281368_1361078064_bd2c7531c3eff1ad572b361f1c72a09f_rle_crop_3813088250_0.png.png imagette233371581748262663/1748262506_1286714_1361078370_0cc905a72bc9fa2406cc9cd4c8090c2c_rle_crop_3813089923_0.png.png imagette233371581748262663/1748262026_1270582_1361077816_a7d57c157d3e386db308b6d46c4c9c1b_rle_crop_3813087110_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/b4563f8f5b254ab8f1c1668177dbc1d0_9266195.png imagette233371581748262663 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=23337140 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/23337164,23337165,23337166,23337167,23337168,23337169,23337170,23337171,23337172,23337173,23337174,23337175?tags=Carton_gris,environnement,flou,autre_refus,Carton_brun,mal_croppe,papier,Teint_Dans_La_Masse,kraft,plastique,metal,cartonnette your option no_mail is active, we will not send the real mail to your client args[1361078649] : ('0.05430029501819769',) no score found for photo 1361078649 We are sending mail with results at report@fotonower.com args[1361078646] : ('0.05430029501819769',) no score found for photo 1361078646 We are sending mail with results at report@fotonower.com args[1361078643] : ('0.05430029501819769',) no score found for photo 1361078643 We are sending mail with results at report@fotonower.com args[1361078639] : ('0.05430029501819769',) no score found for photo 1361078639 We are sending mail with results at report@fotonower.com args[1361078637] : ('0.05430029501819769',) no score found for photo 1361078637 We are sending mail with results at report@fotonower.com args[1361078610] : ('0.05430029501819769',) no score found for photo 1361078610 We are sending mail with results at report@fotonower.com args[1361078606] : ('0.05430029501819769',) no score found for photo 1361078606 We are sending mail with results at report@fotonower.com args[1361078603] : ('0.05430029501819769',) no score found for photo 1361078603 We are sending mail with results at report@fotonower.com args[1361078598] : ('0.05430029501819769',) no score found for photo 1361078598 We are sending mail with results at report@fotonower.com args[1361078591] : ('0.05430029501819769',) no score found for photo 1361078591 We are sending mail with results at report@fotonower.com args[1361078587] : ('0.05430029501819769',) no score found for photo 1361078587 We are sending mail with results at report@fotonower.com args[1361078553] : ('0.05430029501819769',) no score found for photo 1361078553 We are sending mail with results at report@fotonower.com args[1361078548] : ('0.05430029501819769',) no score found for photo 1361078548 We are sending mail with results at report@fotonower.com args[1361078541] : ('0.05430029501819769',) no score found for photo 1361078541 We are sending mail with results at report@fotonower.com args[1361078535] : ('0.05430029501819769',) no score found for photo 1361078535 We are sending mail with results at report@fotonower.com args[1361078529] : ('0.05430029501819769',) no score found for photo 1361078529 We are sending mail with results at report@fotonower.com refus_total : 0.05430029501819769 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=23337140 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_P23337140_26-05-2025_14_31_01.pdf results_Auto_P23337140_26-05-2025_14_31_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23337140_26-05-2025_14_31_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','23337140','results_Auto_P23337140_26-05-2025_14_31_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23337140_26-05-2025_14_31_01.pdf','pdf','','0.24','0.05430029501819769') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23337140]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1361078649, 1361078646, 1361078643, 1361078639, 1361078637, 1361078610, 1361078606, 1361078603, 1361078598, 1361078591, 1361078587, 1361078553, 1361078548, 1361078541, 1361078535, 1361078529] map_info['map_portfolio_photo'] : {23337140: [1361078649, 1361078646, 1361078643, 1361078639, 1361078637, 1361078610, 1361078606, 1361078603, 1361078598, 1361078591, 1361078587, 1361078553, 1361078548, 1361078541, 1361078535, 1361078529, 1361078498, 1361078492, 1361078489, 1361078487, 1361078461, 1361078449, 1361078442, 1361078434, 1361078429, 1361078417, 1361078393, 1361078386, 1361078379, 1361078374, 1361078370, 1361078334, 1361078328, 1361078323, 1361078319, 1361078299, 1361078296, 1361078291, 1361078286, 1361078279, 1361078248, 1361078108, 1361078103, 1361078099, 1361078096, 1361078093, 1361078074, 1361078072, 1361078064, 1361078061, 1361078056, 1361078046, 1361078013, 1361078004, 1361077993, 1361077988, 1361077972, 1361077921, 1361077919, 1361077914, 1361077911, 1361077864, 1361077857, 1361077854, 1361077851, 1361077828, 1361077823, 1361077819, 1361077816, 1361077813, 1361077808, 1361077768]} final : False mtd_id 4302 list_pids : [1361078649, 1361078646, 1361078643, 1361078639, 1361078637, 1361078610, 1361078606, 1361078603, 1361078598, 1361078591, 1361078587, 1361078553, 1361078548, 1361078541, 1361078535, 1361078529] 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, '2953738') ('4302', '23337140', '1361078649', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078646', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078643', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078639', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078637', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078610', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078606', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078603', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078598', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078591', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078587', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078553', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078548', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078541', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078535', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078529', None, None, None, None, None, '2953738') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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', '23337140', '1361078649', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078646', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078643', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078639', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078637', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078610', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078606', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078603', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078598', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078591', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078587', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078553', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078548', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078541', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078535', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078529', None, None, None, None, None, '2953738')] time used for this insertion : 0.014723062515258789 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.501872301101685 time spend to save output : 0.015088558197021484 total time spend for step 4 : 5.516960859298706 step5:split_time_score Mon May 26 14:31:06 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['23337140'] 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 : [('23337140',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23337140) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1361078529: {'path': 'temp/1748262661_4027570_1361078529_dad0af9c4cd8478a015c8e5678c75381.jpg', 'extension': 'jpg'}, 1361078535: {'path': 'temp/1748262661_4027570_1361078535_8bf4fef1fcf35aa109c89e4ddbcc88af.jpg', 'extension': 'jpg'}, 1361078541: {'path': 'temp/1748262661_4027570_1361078541_bd2e42e7210f027cd5d498bb91b878f5.jpg', 'extension': 'jpg'}, 1361078548: {'path': 'temp/1748262661_4027570_1361078548_8bdb1b4fb551afdc7e2324aa1909fc87.jpg', 'extension': 'jpg'}, 1361078639: {'path': 'temp/1748262661_4027570_1361078639_674fb08c6aba2e30cb94cf357e4c5bc3.jpg', 'extension': 'jpg'}, 1361078643: {'path': 'temp/1748262661_4027570_1361078643_891e19269fb8c3993e37793909c8ccdc.jpg', 'extension': 'jpg'}, 1361078646: {'path': 'temp/1748262661_4027570_1361078646_691272bb4ba8d9765d24ab5b6e17ef73.jpg', 'extension': 'jpg'}, 1361078649: {'path': 'temp/1748262661_4027570_1361078649_f00893f5bd81cd72c4dbcf092a086812.jpg', 'extension': 'jpg'}, 1361078553: {'path': 'temp/1748262661_4027570_1361078553_4db5c44078b51d082207b18d368dda20.jpg', 'extension': 'jpg'}, 1361078587: {'path': 'temp/1748262661_4027570_1361078587_e212d5f4c62b1eb11b84e24891a0f3cb.jpg', 'extension': 'jpg'}, 1361078591: {'path': 'temp/1748262661_4027570_1361078591_fb89edc4c5da99fd36fb274d6e4a39c3.jpg', 'extension': 'jpg'}, 1361078598: {'path': 'temp/1748262661_4027570_1361078598_47f261a06084914e3421f520f7996009.jpg', 'extension': 'jpg'}, 1361078603: {'path': 'temp/1748262661_4027570_1361078603_3788addc767973c2898fa920d46efd4b.jpg', 'extension': 'jpg'}, 1361078606: {'path': 'temp/1748262661_4027570_1361078606_9448c9a4db8f2d9afa688ef5d9a789d2.jpg', 'extension': 'jpg'}, 1361078610: {'path': 'temp/1748262661_4027570_1361078610_894fcaba72ce96f7248caeee83247ecb.jpg', 'extension': 'jpg'}, 1361078637: {'path': 'temp/1748262661_4027570_1361078637_21f8afe28ab919398ddcc9a89584b0ff.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 = 23337140; (('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 = 23337140 group by h (('14', 72),) 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=23337140 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 (23337140) 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 (23337140) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26052025 23337140 Nombre de photos uploadées : 72 / 23040 (0%) 26052025 23337140 Nombre de photos taguées (types de déchets): 0 / 72 (0%) 26052025 23337140 Nombre de photos taguées (volume) : 0 / 72 (0%) [{'photo_id': 1361077768, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/1ca3332f2f428004235bf5c8415fc2cf.jpg', 'username': None, 'uploaded_at': 1748261767, 'text': 'image_26052025_14_15_14_010132m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1361077828, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/133dddc416c1aa7d6bf8550eca7dbab0.jpg', 'username': None, 'uploaded_at': 1748261827, 'text': 'image_26052025_14_15_34_010143m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1361077823, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/a75aaba75a8c4a256eb0673524a76165.jpg', 'username': None, 'uploaded_at': 1748261827, 'text': 'image_26052025_14_16_04_010147m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1361077819, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/26/e6c361ef83938d6496232c6d37614c50.jpg', 'username': None, 'uploaded_at': 1748261827, 'text': 'image_26052025_14_16_14_010139m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 8.58306884765625e-06 ???????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002402782440185547 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 23337140, '2025-05-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1834524,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02355217933654785 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= 1834524 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23319692, 'dashboard_result_id': 10895736, '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_P23319692_26-05-2025_11_17_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319704, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23319847, 'dashboard_result_id': 10895737, '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_P23319847_26-05-2025_05_33_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319859, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23320077, 'dashboard_result_id': 10895738, '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_P23320077_26-05-2025_11_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23320084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320087, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320089, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23325134, 'dashboard_result_id': 10895739, '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_P23325134_26-05-2025_11_08_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325387, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23320531, 'dashboard_result_id': 10895740, '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_P23320531_26-05-2025_11_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23320532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320543, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23321016, 'dashboard_result_id': 10895741, '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_P23321016_26-05-2025_11_15_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321028, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23325136, 'dashboard_result_id': 10895742, '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_P23325136_26-05-2025_11_08_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325351, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23321495, 'dashboard_result_id': 10895743, '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_P23321495_26-05-2025_11_15_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321507, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23321641, 'dashboard_result_id': 10895744, '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_P23321641_26-05-2025_11_14_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321653, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23325138, 'dashboard_result_id': 10895745, '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_P23325138_26-05-2025_11_07_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325313, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325314, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23322061, 'dashboard_result_id': 10895746, '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_P23322061_26-05-2025_11_13_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322064, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23322065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322073, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23325141, 'dashboard_result_id': 10895747, '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_P23325141_26-05-2025_11_07_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325277, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23322562, 'dashboard_result_id': 10895748, '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_P23322562_26-05-2025_11_12_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23322571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322583, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23323551, 'dashboard_result_id': 10895749, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323564, 'pht': 3726}, 'url_report': ''}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23323111, 'dashboard_result_id': 10895750, '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_P23323111_26-05-2025_11_12_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323124, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23323520, 'dashboard_result_id': 10895751, '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_P23323520_26-05-2025_09_03_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323533, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323534, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23323923, 'dashboard_result_id': 10895752, '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_P23323923_26-05-2025_11_11_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23323924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323935, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23324068, 'dashboard_result_id': 10895753, '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_P23324068_26-05-2025_11_10_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23324069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324080, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23324122, 'dashboard_result_id': 10895754, '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_P23324122_26-05-2025_11_10_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324135, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23324402, 'dashboard_result_id': 10895755, '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_P23324402_26-05-2025_11_09_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324415, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23324563, 'dashboard_result_id': 10895757, '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_P23324563_26-05-2025_11_09_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324576, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23325143, 'dashboard_result_id': 10895758, '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_P23325143_26-05-2025_11_06_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325162, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23325201, 'dashboard_result_id': 10895759, '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_P23325201_26-05-2025_11_19_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325214, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23325821, 'dashboard_result_id': 10895760, '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_P23325821_26-05-2025_11_33_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325855, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23326708, 'dashboard_result_id': 10895762, '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_P23326708_26-05-2025_11_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23326719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23326720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23326721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23326722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23326723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23326724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23326725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23326726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23326727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23326728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23326729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23326730, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23327651, 'dashboard_result_id': 10895763, '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_P23327651_26-05-2025_12_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23327665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23327666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23327667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23327668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23327669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23327670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23327671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23327672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23327673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23327674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23327675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23327676, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23328708, 'dashboard_result_id': 10895764, '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_P23328708_26-05-2025_13_59_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23328751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23328752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23328753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23328754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23328755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23328756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23328757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23328758, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23328759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23328760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23328761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23328762, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23335603, 'dashboard_result_id': 10895765, '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_P23335603_26-05-2025_13_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23335611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23335612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23335613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335623, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23336428, 'dashboard_result_id': 10895767, '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_P23336428_26-05-2025_14_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336452, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23336675, 'dashboard_result_id': 10895768, '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_P23336675_26-05-2025_14_16_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336682, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336689, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336694, 'pht': 3726}}"}, {'dashboat_entry_day': 1834524, 'dashboard_run_id': 1843097, 'mtr_portfolio_id': 23337140, 'dashboard_result_id': 10895769, '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_P23337140_26-05-2025_14_29_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23337151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23337152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23337153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23337154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23337155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23337156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23337157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23337158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23337159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23337160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23337161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23337162, '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 = 23319692 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': 2948214, 'mtr_portfolio_id': 23319692, 'created_at': datetime.datetime(2025, 5, 26, 11, 17, 29), 'result': '0.02519662063444177', 'result_long': None, 'result_double': None}] Qualite : 0.02519662063444177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23319692 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23319692_26-05-2025_11_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23319692 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_P23319692_26-05-2025_11_17_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319704, 'pht': 3726}}" where mtr_portfolio_id = 23319692 and dashboard_run_id = 1843097 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`=23319692 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895736, 0.02519662063444177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23319692_26-05-2025_11_17_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319693, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319699, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319700, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319701, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319702, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319704, '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 = 23319847 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': 2948254, 'mtr_portfolio_id': 23319847, 'created_at': datetime.datetime(2025, 5, 26, 5, 33, 33), 'result': '0.04429005484375135', 'result_long': None, 'result_double': None}] Qualite : 0.04429005484375135 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23319847 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23319847_26-05-2025_05_33_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23319847 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_P23319847_26-05-2025_05_33_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319859, 'pht': 3726}}" where mtr_portfolio_id = 23319847 and dashboard_run_id = 1843097 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`=23319847 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895737, 0.04429005484375135, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23319847_26-05-2025_05_33_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23319848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23319849, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23319850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23319851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23319852, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23319853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23319854, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23319855, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23319856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23319857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23319858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23319859, '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 = 23320077 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': 2948365, 'mtr_portfolio_id': 23320077, 'created_at': datetime.datetime(2025, 5, 26, 11, 16, 28), 'result': '0.03387753435924145', 'result_long': None, 'result_double': None}] Qualite : 0.03387753435924145 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23320077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23320077_26-05-2025_11_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23320077 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_P23320077_26-05-2025_11_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23320084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320087, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320089, 'pht': 3726}}" where mtr_portfolio_id = 23320077 and dashboard_run_id = 1843097 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`=23320077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895738, 0.03387753435924145, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23320077_26-05-2025_11_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320080, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320082, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23320084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320086, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320087, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320089, '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 = 23325134 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': 2951444, 'mtr_portfolio_id': 23325134, 'created_at': datetime.datetime(2025, 5, 26, 11, 8, 30), 'result': '0.04692466993136173', 'result_long': None, 'result_double': None}] Qualite : 0.04692466993136173 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325134 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325134_26-05-2025_11_08_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325134 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_P23325134_26-05-2025_11_08_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325387, 'pht': 3726}}" where mtr_portfolio_id = 23325134 and dashboard_run_id = 1843097 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`=23325134 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895739, 0.04692466993136173, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325134_26-05-2025_11_08_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325377, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325378, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325379, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325381, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325382, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325387, '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 = 23320531 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': 2948625, 'mtr_portfolio_id': 23320531, 'created_at': datetime.datetime(2025, 5, 26, 11, 15, 59), 'result': '0.05544331765388143', 'result_long': None, 'result_double': None}] Qualite : 0.05544331765388143 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23320531 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23320531_26-05-2025_11_16_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23320531 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_P23320531_26-05-2025_11_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23320532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320543, 'pht': 3726}}" where mtr_portfolio_id = 23320531 and dashboard_run_id = 1843097 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`=23320531 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895740, 0.05544331765388143, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23320531_26-05-2025_11_16_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23320532, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23320533, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23320534, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23320535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23320536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23320537, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23320538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23320539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23320540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23320541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23320542, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23320543, '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 = 23321016 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': 2948863, 'mtr_portfolio_id': 23321016, 'created_at': datetime.datetime(2025, 5, 26, 11, 15, 31), 'result': '0.0894193868825305', 'result_long': None, 'result_double': None}] Qualite : 0.0894193868825305 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23321016 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23321016_26-05-2025_11_15_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23321016 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_P23321016_26-05-2025_11_15_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321028, 'pht': 3726}}" where mtr_portfolio_id = 23321016 and dashboard_run_id = 1843097 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`=23321016 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895741, 0.0894193868825305, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23321016_26-05-2025_11_15_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321022, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321026, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321028, '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 = 23325136 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': 2951445, 'mtr_portfolio_id': 23325136, 'created_at': datetime.datetime(2025, 5, 26, 11, 8, 1), 'result': '0.022613860282363396', 'result_long': None, 'result_double': None}] Qualite : 0.022613860282363396 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325136 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325136_26-05-2025_11_08_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325136 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_P23325136_26-05-2025_11_08_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325351, 'pht': 3726}}" where mtr_portfolio_id = 23325136 and dashboard_run_id = 1843097 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`=23325136 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895742, 0.022613860282363396, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325136_26-05-2025_11_08_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325340, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325344, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325345, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325351, '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 = 23321495 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 = 23321495 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 = 23321495 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23321495 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 = 23321495 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 = 23321495 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23321495_26-05-2025_11_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23321495 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_P23321495_26-05-2025_11_15_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321496, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321498, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321500, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321507, 'pht': 3726}}" where mtr_portfolio_id = 23321495 and dashboard_run_id = 1843097 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 = 23321641 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': 2949196, 'mtr_portfolio_id': 23321641, 'created_at': datetime.datetime(2025, 5, 26, 11, 14, 1), 'result': '0.02985346412270691', 'result_long': None, 'result_double': None}] Qualite : 0.02985346412270691 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23321641 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23321641_26-05-2025_11_14_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23321641 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_P23321641_26-05-2025_11_14_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321653, 'pht': 3726}}" where mtr_portfolio_id = 23321641 and dashboard_run_id = 1843097 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`=23321641 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895744, 0.02985346412270691, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23321641_26-05-2025_11_14_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23321642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23321643, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23321644, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23321645, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23321646, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23321647, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23321648, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23321649, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23321650, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23321651, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23321652, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23321653, '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 = 23325138 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': 2951446, 'mtr_portfolio_id': 23325138, 'created_at': datetime.datetime(2025, 5, 26, 11, 7, 30), 'result': '0.036139356830812215', 'result_long': None, 'result_double': None}] Qualite : 0.036139356830812215 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325138 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325138_26-05-2025_11_07_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325138 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_P23325138_26-05-2025_11_07_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325313, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325314, 'pht': 3726}}" where mtr_portfolio_id = 23325138 and dashboard_run_id = 1843097 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`=23325138 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895745, 0.036139356830812215, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325138_26-05-2025_11_07_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325304, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325310, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325313, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325314, '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 = 23322061 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': 2949486, 'mtr_portfolio_id': 23322061, 'created_at': datetime.datetime(2025, 5, 26, 11, 13, 28), 'result': '0.02602303439189305', 'result_long': None, 'result_double': None}] Qualite : 0.02602303439189305 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23322061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23322061_26-05-2025_11_13_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23322061 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_P23322061_26-05-2025_11_13_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322064, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23322065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322073, 'pht': 3726}}" where mtr_portfolio_id = 23322061 and dashboard_run_id = 1843097 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`=23322061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895746, 0.02602303439189305, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23322061_26-05-2025_11_13_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322062, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322063, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322064, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23322065, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322068, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322072, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322073, '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 = 23325141 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': 2951447, 'mtr_portfolio_id': 23325141, 'created_at': datetime.datetime(2025, 5, 26, 11, 7, 1), 'result': '0.0429633289857965', 'result_long': None, 'result_double': None}] Qualite : 0.0429633289857965 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325141 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325141_26-05-2025_11_07_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325141 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_P23325141_26-05-2025_11_07_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325277, 'pht': 3726}}" where mtr_portfolio_id = 23325141 and dashboard_run_id = 1843097 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`=23325141 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895747, 0.0429633289857965, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325141_26-05-2025_11_07_04.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325266, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325267, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325268, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325269, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325270, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325271, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325273, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325275, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325277, '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 = 23322562 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': 2949854, 'mtr_portfolio_id': 23322562, 'created_at': datetime.datetime(2025, 5, 26, 11, 12, 29), 'result': '0.02768663961105856', 'result_long': None, 'result_double': None}] Qualite : 0.02768663961105856 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23322562 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23322562_26-05-2025_11_12_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23322562 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_P23322562_26-05-2025_11_12_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23322571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322583, 'pht': 3726}}" where mtr_portfolio_id = 23322562 and dashboard_run_id = 1843097 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`=23322562 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895748, 0.02768663961105856, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23322562_26-05-2025_11_12_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23322571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23322572, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23322573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23322574, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23322575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23322576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23322577, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23322578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23322579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23322580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23322581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23322583, '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 = 23323551 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': 2950540, 'mtr_portfolio_id': 23323551, 'created_at': datetime.datetime(2025, 5, 26, 9, 5, 30), 'result': '0.04185348961256268', 'result_long': None, 'result_double': None}] Qualite : 0.04185348961256268 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23323551 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%23323551%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23323551 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323564, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 23323551 and dashboard_run_id = 1843097 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`=23323551 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895749, 0.04185348961256268, "{'max_time_prod_two_photos': 0, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323554, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323555, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323556, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323563, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323564, 'pht': 3726}, 'url_report': ''}") 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 = 23323111 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': 2950232, 'mtr_portfolio_id': 23323111, 'created_at': datetime.datetime(2025, 5, 26, 11, 11, 58), 'result': '0.05436677666639777', 'result_long': None, 'result_double': None}] Qualite : 0.05436677666639777 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23323111 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323111_26-05-2025_11_12_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23323111 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_P23323111_26-05-2025_11_12_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323124, 'pht': 3726}}" where mtr_portfolio_id = 23323111 and dashboard_run_id = 1843097 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`=23323111 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895750, 0.05436677666639777, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323111_26-05-2025_11_12_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323115, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323117, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323119, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323120, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323124, '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 = 23323520 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': 2950535, 'mtr_portfolio_id': 23323520, 'created_at': datetime.datetime(2025, 5, 26, 9, 3, 28), 'result': '0.05594342227950576', 'result_long': None, 'result_double': None}] Qualite : 0.05594342227950576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23323520 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323520_26-05-2025_09_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23323520 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_P23323520_26-05-2025_09_03_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323533, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323534, 'pht': 3726}}" where mtr_portfolio_id = 23323520 and dashboard_run_id = 1843097 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`=23323520 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895751, 0.05594342227950576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323520_26-05-2025_09_03_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323523, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323525, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23323526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323527, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323528, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323529, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323530, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323533, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323534, '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 = 23323923 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': 2950727, 'mtr_portfolio_id': 23323923, 'created_at': datetime.datetime(2025, 5, 26, 11, 11, 29), 'result': '0.02269183291199363', 'result_long': None, 'result_double': None}] Qualite : 0.02269183291199363 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23323923 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323923_26-05-2025_11_11_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23323923 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_P23323923_26-05-2025_11_11_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23323924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323935, 'pht': 3726}}" where mtr_portfolio_id = 23323923 and dashboard_run_id = 1843097 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`=23323923 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895752, 0.02269183291199363, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23323923_26-05-2025_11_11_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23323924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23323925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23323926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23323927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23323928, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23323929, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23323930, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23323931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23323932, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23323933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23323934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23323935, '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 = 23324068 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': 2950787, 'mtr_portfolio_id': 23324068, 'created_at': datetime.datetime(2025, 5, 26, 11, 10, 28), 'result': '0.0338376396467845', 'result_long': None, 'result_double': None}] Qualite : 0.0338376396467845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23324068 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324068_26-05-2025_11_10_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23324068 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_P23324068_26-05-2025_11_10_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23324069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324080, 'pht': 3726}}" where mtr_portfolio_id = 23324068 and dashboard_run_id = 1843097 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`=23324068 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895753, 0.0338376396467845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324068_26-05-2025_11_10_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23324069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324077, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324080, '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 = 23324122 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': 2950845, 'mtr_portfolio_id': 23324122, 'created_at': datetime.datetime(2025, 5, 26, 11, 9, 59), 'result': '0.019603365584841985', 'result_long': None, 'result_double': None}] Qualite : 0.019603365584841985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23324122 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324122_26-05-2025_11_10_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23324122 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_P23324122_26-05-2025_11_10_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324135, 'pht': 3726}}" where mtr_portfolio_id = 23324122 and dashboard_run_id = 1843097 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`=23324122 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895754, 0.019603365584841985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324122_26-05-2025_11_10_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324124, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324127, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324129, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324130, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324132, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324134, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324135, '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 = 23324402 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': 2951013, 'mtr_portfolio_id': 23324402, 'created_at': datetime.datetime(2025, 5, 26, 11, 9, 28), 'result': '0.017948956951831813', 'result_long': None, 'result_double': None}] Qualite : 0.017948956951831813 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23324402 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324402_26-05-2025_11_09_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23324402 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_P23324402_26-05-2025_11_09_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324415, 'pht': 3726}}" where mtr_portfolio_id = 23324402 and dashboard_run_id = 1843097 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`=23324402 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895755, 0.017948956951831813, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324402_26-05-2025_11_09_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324404, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324407, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324411, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324412, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324415, '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 = 23324563 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': 2951108, 'mtr_portfolio_id': 23324563, 'created_at': datetime.datetime(2025, 5, 26, 11, 9), 'result': '0.012910999500873472', 'result_long': None, 'result_double': None}] Qualite : 0.012910999500873472 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23324563 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324563_26-05-2025_11_09_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23324563 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_P23324563_26-05-2025_11_09_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324576, 'pht': 3726}}" where mtr_portfolio_id = 23324563 and dashboard_run_id = 1843097 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`=23324563 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895757, 0.012910999500873472, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23324563_26-05-2025_11_09_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23324565, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23324566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23324567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23324568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23324569, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23324570, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23324571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23324572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23324573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23324574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23324575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23324576, '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 = 23325143 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': 2951448, 'mtr_portfolio_id': 23325143, 'created_at': datetime.datetime(2025, 5, 26, 11, 6, 32), 'result': '0.0803310808757231', 'result_long': None, 'result_double': None}] Qualite : 0.0803310808757231 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325143 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325143_26-05-2025_11_06_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325143 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_P23325143_26-05-2025_11_06_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325162, 'pht': 3726}}" where mtr_portfolio_id = 23325143 and dashboard_run_id = 1843097 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`=23325143 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895758, 0.0803310808757231, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325143_26-05-2025_11_06_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325151, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325156, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325157, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325159, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325160, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325161, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325162, '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 = 23325201 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': 2951498, 'mtr_portfolio_id': 23325201, 'created_at': datetime.datetime(2025, 5, 26, 11, 19, 33), 'result': '0.052389026009317004', 'result_long': None, 'result_double': None}] Qualite : 0.052389026009317004 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325201 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325201_26-05-2025_11_19_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325201 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_P23325201_26-05-2025_11_19_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325214, 'pht': 3726}}" where mtr_portfolio_id = 23325201 and dashboard_run_id = 1843097 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`=23325201 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895759, 0.052389026009317004, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325201_26-05-2025_11_19_33.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325205, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325210, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325214, '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 = 23325821 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': 2951771, 'mtr_portfolio_id': 23325821, 'created_at': datetime.datetime(2025, 5, 26, 11, 33, 58), 'result': '0.04660843160354288', 'result_long': None, 'result_double': None}] Qualite : 0.04660843160354288 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23325821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325821_26-05-2025_11_33_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23325821 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_P23325821_26-05-2025_11_33_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325855, 'pht': 3726}}" where mtr_portfolio_id = 23325821 and dashboard_run_id = 1843097 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`=23325821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895760, 0.04660843160354288, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23325821_26-05-2025_11_33_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23325843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23325844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23325845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23325846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23325847, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23325848, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23325849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23325850, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23325851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23325852, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23325853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23325855, '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 = 23326708 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': 2952066, 'mtr_portfolio_id': 23326708, 'created_at': datetime.datetime(2025, 5, 26, 11, 47), 'result': '0.04892546956012179', 'result_long': None, 'result_double': None}] Qualite : 0.04892546956012179 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23326708 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23326708_26-05-2025_11_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23326708 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_P23326708_26-05-2025_11_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23326719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23326720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23326721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23326722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23326723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23326724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23326725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23326726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23326727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23326728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23326729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23326730, 'pht': 3726}}" where mtr_portfolio_id = 23326708 and dashboard_run_id = 1843097 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`=23326708 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895762, 0.04892546956012179, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23326708_26-05-2025_11_47_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23326719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23326720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23326721, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23326722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23326723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23326724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23326725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23326726, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23326727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23326728, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23326729, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23326730, '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 = 23327651 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': 2952347, 'mtr_portfolio_id': 23327651, 'created_at': datetime.datetime(2025, 5, 26, 12, 2, 59), 'result': '0.0399187429071831', 'result_long': None, 'result_double': None}] Qualite : 0.0399187429071831 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23327651 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23327651_26-05-2025_12_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23327651 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_P23327651_26-05-2025_12_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23327665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23327666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23327667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23327668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23327669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23327670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23327671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23327672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23327673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23327674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23327675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23327676, 'pht': 3726}}" where mtr_portfolio_id = 23327651 and dashboard_run_id = 1843097 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`=23327651 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895763, 0.0399187429071831, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23327651_26-05-2025_12_02_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23327665, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23327666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23327667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23327668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23327669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23327670, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23327671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23327672, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23327673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23327674, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23327675, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23327676, '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 = 23328708 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': 2952662, 'mtr_portfolio_id': 23328708, 'created_at': datetime.datetime(2025, 5, 26, 13, 59, 58), 'result': '0.05322573463366244', 'result_long': None, 'result_double': None}] Qualite : 0.05322573463366244 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23328708 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23328708_26-05-2025_13_59_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23328708 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_P23328708_26-05-2025_13_59_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23328751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23328752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23328753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23328754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23328755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23328756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23328757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23328758, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23328759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23328760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23328761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23328762, 'pht': 3726}}" where mtr_portfolio_id = 23328708 and dashboard_run_id = 1843097 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`=23328708 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895764, 0.05322573463366244, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23328708_26-05-2025_13_59_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23328751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23328752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23328753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23328754, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23328755, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23328756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23328757, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23328758, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23328759, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23328760, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23328761, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23328762, '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 = 23335603 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': 2953477, 'mtr_portfolio_id': 23335603, 'created_at': datetime.datetime(2025, 5, 26, 13, 48, 59), 'result': '0.04992283243862639', 'result_long': None, 'result_double': None}] Qualite : 0.04992283243862639 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23335603 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23335603_26-05-2025_13_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23335603 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_P23335603_26-05-2025_13_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23335611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23335612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23335613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335623, 'pht': 3726}}" where mtr_portfolio_id = 23335603 and dashboard_run_id = 1843097 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`=23335603 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895765, 0.04992283243862639, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23335603_26-05-2025_13_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23335608, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23335609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23335611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23335612, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23335613, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23335615, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23335616, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23335617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23335619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23335620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23335621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23335623, '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 = 23336428 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': 2953526, 'mtr_portfolio_id': 23336428, 'created_at': datetime.datetime(2025, 5, 26, 14, 2, 59), 'result': '0.04674909162262245', 'result_long': None, 'result_double': None}] Qualite : 0.04674909162262245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23336428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23336428_26-05-2025_14_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23336428 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_P23336428_26-05-2025_14_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336452, 'pht': 3726}}" where mtr_portfolio_id = 23336428 and dashboard_run_id = 1843097 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`=23336428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895767, 0.04674909162262245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23336428_26-05-2025_14_02_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336441, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336444, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336446, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336447, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336449, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336450, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336451, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336452, '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 = 23336675 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': 2953614, 'mtr_portfolio_id': 23336675, 'created_at': datetime.datetime(2025, 5, 26, 14, 16, 28), 'result': '0.03821279076052263', 'result_long': None, 'result_double': None}] Qualite : 0.03821279076052263 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23336675 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23336675_26-05-2025_14_16_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23336675 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_P23336675_26-05-2025_14_16_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336682, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336689, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336694, 'pht': 3726}}" where mtr_portfolio_id = 23336675 and dashboard_run_id = 1843097 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`=23336675 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895768, 0.03821279076052263, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23336675_26-05-2025_14_16_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23336682, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23336683, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23336684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23336685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23336686, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23336687, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23336689, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23336690, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23336691, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23336692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23336693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23336694, '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 = 23337140 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': 2953738, 'mtr_portfolio_id': 23337140, 'created_at': datetime.datetime(2025, 5, 26, 14, 31), 'result': '0.05430029501819769', 'result_long': None, 'result_double': None}] Qualite : 0.05430029501819769 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23337140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23337140_26-05-2025_14_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23337140 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_P23337140_26-05-2025_14_31_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23337151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23337152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23337153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23337154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23337155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23337156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23337157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23337158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23337159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23337160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23337161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23337162, 'pht': 3726}}" where mtr_portfolio_id = 23337140 and dashboard_run_id = 1843096 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`=23337140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10895769, 0.05430029501819769, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23337140_26-05-2025_14_31_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23337151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23337152, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23337153, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23337154, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23337155, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23337156, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23337157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23337158, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23337159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23337160, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23337161, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23337162, '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 (23319692,23319847,23320077,23325134,23320531,23321016,23325136,23321495,23321641,23325138,23322061,23325141,23322562,23323551,23323111,23323520,23323923,23324068,23324122,23324402,23324563,23325143,23325201,23325821,23326708,23327651,23328708,23335603,23336428,23336675,23337140) result : ((1361037641,), (1361037643,), (1361037662,), (1361037664,), (1361037666,), (1361037694,), (1361037721,), (1361037723,), (1361037725,), (1361037727,), (1361037747,), (1361037749,), (1361037751,), (1361037753,), (1361037776,), (1361037778,), (1361037780,), (1361037795,), (1361037797,), (1361037799,), (1361037801,), (1361037803,), (1361037804,), (1361037813,), (1361037816,), (1361037818,), (1361037821,), (1361037824,), (1361037827,), (1361037836,), (1361037838,), (1361037840,), (1361037842,), (1361037858,), (1361037859,), (1361037860,), (1361037861,), (1361037862,), (1361037863,), (1361037876,), (1361037878,), (1361037880,), (1361037882,), (1361037884,), (1361037895,), (1361037897,), (1361037899,), (1361037901,), (1361037903,), (1361037915,), (1361037918,), (1361037920,), (1361037922,), (1361037925,), (1361037955,), (1361037947,), (1361037948,), (1361037949,), (1361037951,), (1361037953,), (1361037970,), (1361037972,), (1361037974,), (1361037986,), (1361037988,), (1361037990,), (1361037992,), (1361037994,), (1361038010,), (1361038013,), (1361038015,), (1361038036,), (1361038038,), (1361038040,), (1361038042,), (1361038044,), (1361038046,), (1361038055,), (1361038057,), (1361038059,), (1361038061,), (1361038092,), (1361038094,), (1361038096,), (1361038108,), (1361038110,), (1361038112,), (1361038114,), (1361038116,), (1361038118,), (1361038127,), (1361038129,), (1361038131,), (1361038150,), (1361038152,), (1361038154,), (1361038156,), (1361038159,), (1361038176,), (1361038178,), (1361038179,), (1361038181,), (1361038183,), (1361038193,), (1361038195,), (1361038197,), (1361038208,), (1361038210,), (1361038212,), (1361038214,), (1361038217,), (1361038218,), (1361038232,), (1361038234,), (1361038237,), (1361038272,), (1361038258,), (1361038260,), (1361038263,), (1361038266,), (1361038269,), (1361038294,), (1361038296,), (1361038298,), (1361038300,), (1361038302,), (1361038304,), (1361038313,), (1361038315,), (1361038317,), (1361038319,), (1361038321,), (1361038332,), (1361038334,), (1361038336,), (1361038338,), (1361038340,), (1361038342,), (1361038352,), (1361038354,), (1361038356,), (1361038358,), (1361038371,), (1361038373,), (1361038375,), (1361038377,), (1361038379,), (1361038395,), (1361038398,), (1361038401,), (1361038403,), (1361038416,), (1361038419,), (1361038422,), (1361038425,), (1361038428,), (1361038429,), (1361038441,), (1361038443,), (1361038445,), (1361038447,), (1361038449,), (1361038451,), (1361038464,), (1361038467,), (1361038469,), (1361038472,), (1361038489,), (1361038491,), (1361038493,), (1361038495,), (1361038497,), (1361038499,), (1361038509,), (1361038511,), (1361038513,), (1361038515,), (1361038517,), (1361038527,), (1361038528,), (1361038529,), (1361038530,), (1361038531,), (1361038532,), (1361038544,), (1361038546,), (1361038548,), (1361038564,), (1361038566,), (1361038569,), (1361038571,), (1361038574,), (1361038576,), (1361038601,), (1361038918,), (1361038919,), (1361038920,), (1361038941,), (1361038943,), (1361038945,), (1361038965,), (1361038967,), (1361038969,), (1361038971,), (1361038990,), (1361039024,), (1361039025,), (1361039057,), (1361039059,), (1361039061,), (1361039063,), (1361039065,), (1361039067,), (1361039084,), (1361039086,), (1361039089,), (1361039102,), (1361039104,), (1361039106,), (1361039126,), (1361039129,), (1361039132,), (1361039135,), (1361039138,), (1361039140,), (1361039158,), (1361039161,), (1361039164,), (1361039188,), (1361039192,), (1361039195,), (1361039198,), (1361039203,), (1361039206,), (1361039222,), (1361039225,), (1361039229,), (1361039232,), (1361039236,), (1361039239,), (1361039258,), (1361039260,), (1361039262,), (1361039264,), (1361039288,), (1361039291,), (1361039294,), (1361039297,), (1361039300,), (1361039304,), (1361039325,), (1361039332,), (1361039334,), (1361039338,), (1361039381,), (1361039365,), (1361039368,), (1361039371,), (1361039374,), (1361039378,), (1361039406,), (1361039409,), (1361039412,), (1361039415,), (1361039442,), (1361039446,), (1361039449,), (1361039453,), (1361039457,), (1361039474,), (1361039476,), (1361039478,), (1361039480,), (1361039483,), (1361039507,), (1361039509,), (1361039511,), (1361039513,), (1361039515,), (1361039533,), (1361039535,), (1361039537,), (1361039539,), (1361039541,), (1361039543,), (1361039558,), (1361039561,), (1361039564,), (1361039592,), (1361039595,), (1361039598,), (1361039601,), (1361039604,), (1361039608,), (1361039630,), (1361039631,), (1361039632,), (1361039633,), (1361039635,), (1361039639,), (1361039658,), (1361039661,), (1361039664,), (1361039697,), (1361039699,), (1361039701,), (1361039704,), (1361039709,), (1361039714,), (1361039744,), (1361039748,), (1361039750,), (1361039776,), (1361039779,), (1361039781,), (1361039783,), (1361039787,), (1361039790,), (1361039815,), (1361039818,), (1361039821,), (1361039824,), (1361039827,), (1361039853,), (1361039855,), (1361039858,), (1361039860,), (1361039863,), (1361039867,), (1361039895,), (1361040417,), (1361040420,), (1361040423,), (1361040427,), (1361040431,), (1361040450,), (1361040451,), (1361040453,), (1361040456,), (1361040459,), (1361040481,), (1361040484,), (1361040487,), (1361040491,), (1361040495,), (1361040520,), (1361040522,), (1361040524,), (1361040526,), (1361040528,), (1361040531,), (1361040555,), (1361040557,), (1361040560,), (1361040564,), (1361040590,), (1361040593,), (1361040596,), (1361040600,), (1361040605,), (1361040611,), (1361040633,), (1361040635,), (1361040637,), (1361040640,), (1361040643,), (1361040666,), (1361040669,), (1361040672,), (1361040676,), (1361040680,), (1361040706,), (1361040708,), (1361040710,), (1361040713,), (1361040716,), (1361040741,), (1361040744,), (1361040747,), (1361040751,), (1361040756,), (1361040779,), (1361040781,), (1361040783,), (1361040786,), (1361040788,), (1361040810,), (1361040813,), (1361040816,), (1361040820,), (1361040824,), (1361040847,), (1361040849,), (1361040851,), (1361040854,), (1361040881,), (1361040885,), (1361040889,), (1361040892,), (1361040894,), (1361040897,), (1361040936,), (1361040924,), (1361040926,), (1361040928,), (1361040931,), (1361040954,), (1361040956,), (1361040959,), (1361040963,), (1361040967,), (1361040972,), (1361041002,), (1361041006,), (1361041009,), (1361041012,), (1361041040,), (1361041045,), (1361041054,), (1361041063,), (1361041074,), (1361041077,), (1361041096,), (1361041098,), (1361041101,), (1361041105,), (1361041136,), (1361041139,), (1361041143,), (1361041146,), (1361041149,), (1361041153,), (1361041173,), (1361041177,), (1361041181,), (1361041205,), (1361041207,), (1361041210,), (1361041214,), (1361041221,), (1361041225,), (1361041241,), (1361041243,), (1361041246,), (1361041250,), (1361041273,), (1361041275,), (1361041278,), (1361041282,), (1361041286,), (1361041291,), (1361041317,), (1361041321,), (1361041325,), (1361041328,), (1361041332,), (1361041336,), (1361041363,), (1361041365,), (1361041368,), (1361041372,), (1361041399,), (1361041402,), (1361041406,), (1361041410,), (1361041414,), (1361041417,), (1361041432,), (1361041434,), (1361041437,), (1361041441,), (1361041461,), (1361041465,), (1361041470,), (1361041517,), (1361042075,), (1361042078,), (1361042082,), (1361042115,), (1361042117,), (1361042120,), (1361042124,), (1361042128,), (1361042132,), (1361042147,), (1361042149,), (1361042152,), (1361042178,), (1361042180,), (1361042183,), (1361042187,), (1361042190,), (1361042195,), (1361042215,), (1361042217,), (1361042220,), (1361042224,), (1361042229,), (1361042247,), (1361042249,), (1361042252,), (1361042256,), (1361042260,), (1361042265,), (1361042279,), (1361042282,), (1361042285,), (1361042289,), (1361042308,), (1361042313,), (1361042317,), (1361042320,), (1361042325,), (1361042329,), (1361042345,), (1361042347,), (1361042350,), (1361042354,), (1361042374,), (1361042375,), (1361042377,), (1361042380,), (1361042383,), (1361042386,), (1361042402,), (1361042404,), (1361042407,), (1361042411,), (1361042433,), (1361042435,), (1361042438,), (1361042442,), (1361042460,), (1361042464,), (1361042468,), (1361042472,), (1361042478,), (1361042483,), (1361042500,), (1361042503,), (1361042507,), (1361042510,), (1361042536,), (1361042539,), (1361042543,), (1361042546,), (1361042552,), (1361042557,), (1361042585,), (1361043222,), (1361043228,), (1361043233,), (1361043271,), (1361043275,), (1361043280,), (1361043283,), (1361043286,), (1361043308,), (1361043310,), (1361043313,), (1361043317,), (1361043320,), (1361043324,), (1361043348,), (1361043350,), (1361043353,), (1361043357,), (1361043361,), (1361043386,), (1361043390,), (1361043392,), (1361043395,), (1361043399,), (1361043425,), (1361043427,), (1361043430,), (1361043434,), (1361043439,), (1361043480,), (1361043483,), (1361043487,), (1361043492,), (1361043495,), (1361043528,), (1361043532,), (1361043535,), (1361043538,), (1361043543,), (1361043568,), (1361043572,), (1361043576,), (1361043581,), (1361043585,), (1361043614,), (1361043616,), (1361043619,), (1361043622,), (1361043679,), (1361043681,), (1361043684,), (1361043688,), (1361043695,), (1361043698,), (1361043711,), (1361043713,), (1361043716,), (1361043751,), (1361043754,), (1361043758,), (1361043763,), (1361043767,), (1361043773,), (1361043813,), (1361043815,), (1361043818,), (1361043822,), (1361043847,), (1361043850,), (1361043854,), (1361043857,), (1361043861,), (1361043865,), (1361043892,), (1361044591,), (1361044593,), (1361044596,), (1361044599,), (1361044634,), (1361044637,), (1361044641,), (1361044645,), (1361044649,), (1361044653,), (1361044676,), (1361044678,), (1361044681,), (1361044685,), (1361044723,), (1361044725,), (1361044728,), (1361044732,), (1361044738,), (1361044742,), (1361044766,), (1361044768,), (1361044770,), (1361044774,), (1361044800,), (1361044803,), (1361044806,), (1361044811,), (1361044815,), (1361044820,), (1361044841,), (1361044843,), (1361044846,), (1361044850,), (1361044883,), (1361044887,), (1361044892,), (1361044895,), (1361044900,), (1361044906,), (1361044929,), (1361044932,), (1361044935,), (1361044939,), (1361044965,), (1361044970,), (1361044975,), (1361044981,), (1361044987,), (1361044996,), (1361045058,), (1361045061,), (1361045064,), (1361045067,), (1361045110,), (1361045112,), (1361045115,), (1361045118,), (1361045121,), (1361045145,), (1361045147,), (1361045150,), (1361045154,), (1361045158,), (1361045178,), (1361045180,), (1361045183,), (1361045187,), (1361045213,), (1361045216,), (1361045219,), (1361045222,), (1361045225,), (1361045267,), (1361045251,), (1361045253,), (1361045256,), (1361045260,), (1361045263,), (1361045288,), (1361045291,), (1361045293,), (1361045297,), (1361045324,), (1361045325,), (1361045326,), (1361045328,), (1361045331,), (1361045335,), (1361045359,), (1361045363,), (1361045367,), (1361045371,), (1361045401,), (1361045405,), (1361045410,), (1361045415,), (1361045420,), (1361045488,), (1361045498,), (1361045501,), (1361045503,), (1361045533,), (1361045537,), (1361045541,), (1361045545,), (1361045549,), (1361045577,), (1361045580,), (1361045583,), (1361045586,), (1361045589,), (1361045595,), (1361045636,), (1361045640,), (1361045643,), (1361045692,), (1361045697,), (1361045702,), (1361045707,), (1361045713,), (1361045718,), (1361045742,), (1361045745,), (1361045748,), (1361045787,), (1361045790,), (1361045793,), (1361045799,), (1361045805,), (1361045808,), (1361045827,), (1361045830,), (1361045833,), (1361045874,), (1361045879,), (1361045883,), (1361045889,), (1361045893,), (1361045900,), (1361045948,), (1361043882,), (1361043885,), (1361043888,), (1361043918,), (1361043920,), (1361043923,), (1361043927,), (1361043932,), (1361043937,), (1361043959,), (1361043962,), (1361043966,), (1361043970,), (1361043999,), (1361044002,), (1361044005,), (1361044009,), (1361044013,), (1361044020,), (1361044058,), (1361044064,), (1361044070,), (1361044073,), (1361044151,), (1361044155,), (1361044158,), (1361044162,), (1361044166,), (1361044171,), (1361044188,), (1361044191,), (1361044194,), (1361044198,), (1361044231,), (1361044233,), (1361044235,), (1361044238,), (1361044242,), (1361044269,), (1361044271,), (1361044274,), (1361044278,), (1361044281,), (1361044304,), (1361044308,), (1361044310,), (1361044313,), (1361044316,), (1361044344,), (1361044348,), (1361044354,), (1361044361,), (1361044365,), (1361044371,), (1361044398,), (1361044400,), (1361044403,), (1361044407,), (1361044439,), (1361044442,), (1361044446,), (1361044451,), (1361044456,), (1361044460,), (1361044482,), (1361044484,), (1361044487,), (1361044491,), (1361044531,), (1361044535,), (1361044602,), (1361047251,), (1361047255,), (1361047260,), (1361047302,), (1361047304,), (1361047307,), (1361047310,), (1361047350,), (1361047353,), (1361047357,), (1361047360,), (1361047364,), (1361047367,), (1361047396,), (1361047399,), (1361047402,), (1361047427,), (1361047431,), (1361047435,), (1361047439,), (1361047442,), (1361047472,), (1361047473,), (1361047475,), (1361047478,), (1361047482,), (1361047516,), (1361047519,), (1361047527,), (1361047531,), (1361047534,), (1361047537,), (1361047557,), (1361047559,), (1361047560,), (1361047564,), (1361047567,), (1361047593,), (1361047600,), (1361047605,), (1361047610,), (1361047616,), (1361047621,), (1361047651,), (1361047655,), (1361047657,), (1361047663,), (1361047704,), (1361047707,), (1361047710,), (1361047714,), (1361047717,), (1361047725,), (1361047753,), (1361047756,), (1361047759,), (1361047764,), (1361047789,), (1361047791,), (1361047795,), (1361047799,), (1361047802,), (1361047807,), (1361047830,), (1361047832,), (1361047835,), (1361047839,), (1361047874,), (1361047856,), (1361047862,), (1361047865,), (1361047868,), (1361047871,), (1361047890,), (1361047893,), (1361047897,), (1361047900,), (1361047903,), (1361047920,), (1361047980,), (1361048029,), (1361048063,), (1361048066,), (1361048068,), (1361048071,), (1361048098,), (1361048100,), (1361048103,), (1361048107,), (1361048114,), (1361048116,), (1361048131,), (1361048132,), (1361048135,), (1361048139,), (1361048173,), (1361048175,), (1361048177,), (1361048182,), (1361048186,), (1361048190,), (1361048208,), (1361048210,), (1361048212,), (1361048215,), (1361048222,), (1361048223,), (1361048233,), (1361048237,), (1361048239,), (1361048242,), (1361048261,), (1361048264,), (1361048268,), (1361048271,), (1361048275,), (1361048279,), (1361048305,), (1361048311,), (1361048316,), (1361048321,), (1361048334,), (1361048337,), (1361048339,), (1361048341,), (1361048346,), (1361048399,), (1361048381,), (1361048386,), (1361048389,), (1361048392,), (1361048396,), (1361048435,), (1361048437,), (1361048438,), (1361048440,), (1361048473,), (1361048476,), (1361048479,), (1361048484,), (1361048489,), (1361048524,), (1361048527,), (1361048530,), (1361048533,), (1361048538,), (1361048543,), (1361048578,), (1361048581,), (1361048585,), (1361048593,), (1361048635,), (1361048638,), (1361048641,), (1361048644,), (1361048647,), (1361048652,), (1361048685,), (1361048688,), (1361048692,), (1361048696,), (1361048701,), (1361048720,), (1361048723,), (1361048726,), (1361048728,), (1361048732,), (1361048735,), (1361048757,), (1361048760,), (1361048764,), (1361048768,), (1361048796,), (1361048800,), (1361048804,), (1361048807,), (1361048810,), (1361048813,), (1361048842,), (1361048846,), (1361048849,), (1361048851,), (1361048853,), (1361048881,), (1361048884,), (1361048886,), (1361048893,), (1361048898,), (1361048902,), (1361048920,), (1361048927,), (1361048932,), (1361048938,), (1361048943,), (1361048972,), (1361048975,), (1361048979,), (1361048983,), (1361048989,), (1361048994,), (1361049014,), (1361049018,), (1361049024,), (1361049028,), (1361049035,), (1361049088,), (1361049069,), (1361049072,), (1361049079,), (1361049083,), (1361049117,), (1361049119,), (1361049123,), (1361049127,), (1361049132,), (1361049164,), (1361049168,), (1361049170,), (1361049172,), (1361049175,), (1361049198,), (1361049201,), (1361049204,), (1361049209,), (1361049213,), (1361049229,), (1361049235,), (1361049239,), (1361049248,), (1361049253,), (1361049257,), (1361049281,), (1361049284,), (1361049287,), (1361049328,), (1361049331,), (1361049335,), (1361049340,), (1361049344,), (1361049347,), (1361049365,), (1361049376,), (1361049379,), (1361049383,), (1361049387,), (1361049405,), (1361049408,), (1361049414,), (1361049420,), (1361049425,), (1361049427,), (1361049444,), (1361049447,), (1361049452,), (1361049458,), (1361049500,), (1361049504,), (1361049508,), (1361049509,), (1361049517,), (1361049522,), (1361049552,), (1361049555,), (1361049560,), (1361049565,), (1361049571,), (1361049595,), (1361049596,), (1361049601,), (1361049606,), (1361049611,), (1361049617,), (1361049638,), (1361049641,), (1361049646,), (1361049651,), (1361049675,), (1361049685,), (1361049690,), (1361049697,), (1361049703,), (1361049705,), (1361049747,), (1361049737,), (1361049744,), (1361049780,), (1361049788,), (1361049791,), (1361049797,), (1361049802,), (1361049807,), (1361049834,), (1361049836,), (1361049839,), (1361049881,), (1361049884,), (1361049887,), (1361049890,), (1361049892,), (1361049898,), (1361049926,), (1361049929,), (1361049935,), (1361049984,), (1361049986,), (1361049989,), (1361049993,), (1361049996,), (1361050001,), (1361050019,), (1361050022,), (1361050026,), (1361050065,), (1361050069,), (1361050072,), (1361050077,), (1361050080,), (1361050084,), (1361050112,), (1361050115,), (1361050119,), (1361050124,), (1361050129,), (1361050166,), (1361050169,), (1361050172,), (1361050181,), (1361050187,), (1361050263,), (1361050268,), (1361050272,), (1361050277,), (1361050283,), (1361050287,), (1361050315,), (1361050317,), (1361050320,), (1361050371,), (1361050374,), (1361050378,), (1361050383,), (1361050385,), (1361050391,), (1361050427,), (1361050430,), (1361050432,), (1361050436,), (1361050440,), (1361050472,), (1361050476,), (1361050481,), (1361050486,), (1361050491,), (1361050497,), (1361050529,), (1361038597,), (1361038599,), (1361038616,), (1361038618,), (1361038620,), (1361038622,), (1361038624,), (1361038641,), (1361038643,), (1361038645,), (1361038647,), (1361038649,), (1361038651,), (1361038667,), (1361038670,), (1361038672,), (1361038674,), (1361038690,), (1361038692,), (1361038694,), (1361038696,), (1361038698,), (1361038700,), (1361038711,), (1361038713,), (1361038715,), (1361038717,), (1361038730,), (1361038732,), (1361038734,), (1361038736,), (1361038738,), (1361038740,), (1361038754,), (1361038756,), (1361038758,), (1361038783,), (1361038785,), (1361038787,), (1361038789,), (1361038792,), (1361038795,), (1361038809,), (1361038811,), (1361038813,), (1361038815,), (1361038827,), (1361038829,), (1361038831,), (1361038833,), (1361038835,), (1361038837,), (1361038843,), (1361038851,), (1361038854,), (1361038855,), (1361038863,), (1361038865,), (1361038867,), (1361038869,), (1361038871,), (1361038884,), (1361038887,), (1361038890,), (1361038893,), (1361038898,), (1361038899,), (1361038900,), (1361038902,), (1361038907,), (1361038921,), (1361039881,), (1361039884,), (1361039887,), (1361039891,), (1361039918,), (1361039920,), (1361039922,), (1361039924,), (1361039925,), (1361039950,), (1361039953,), (1361039956,), (1361039960,), (1361039963,), (1361039995,), (1361039997,), (1361039999,), (1361040030,), (1361040032,), (1361040035,), (1361040038,), (1361040042,), (1361040046,), (1361040067,), (1361040070,), (1361040073,), (1361040108,), (1361040112,), (1361040115,), (1361040119,), (1361040125,), (1361040130,), (1361040153,), (1361040156,), (1361040159,), (1361040192,), (1361040194,), (1361040196,), (1361040199,), (1361040203,), (1361040222,), (1361040225,), (1361040228,), (1361040232,), (1361040236,), (1361040264,), (1361040266,), (1361040268,), (1361040271,), (1361040293,), (1361040296,), (1361040299,), (1361040303,), (1361040307,), (1361040310,), (1361040329,), (1361040331,), (1361040333,), (1361040337,), (1361040356,), (1361040359,), (1361040362,), (1361040366,), (1361040370,), (1361040374,), (1361040392,), (1361040395,), (1361040397,), (1361040399,), (1361040401,), (1361040433,), (1361041498,), (1361041501,), (1361041505,), (1361041508,), (1361041514,), (1361041529,), (1361041530,), (1361041533,), (1361041537,), (1361041579,), (1361041581,), (1361041584,), (1361041588,), (1361041591,), (1361041597,), (1361041622,), (1361041624,), (1361041627,), (1361041631,), (1361041668,), (1361041670,), (1361041673,), (1361041677,), (1361041680,), (1361041684,), (1361041728,), (1361041732,), (1361041736,), (1361041742,), (1361041747,), (1361041768,), (1361041771,), (1361041777,), (1361041782,), (1361041785,), (1361041795,), (1361041797,), (1361041800,), (1361041804,), (1361041806,), (1361041830,), (1361041836,), (1361041842,), (1361041848,), (1361041865,), (1361041867,), (1361041870,), (1361041874,), (1361041877,), (1361041882,), (1361041900,), (1361041902,), (1361041905,), (1361041909,), (1361041912,), (1361041917,), (1361041935,), (1361041937,), (1361041940,), (1361041944,), (1361041968,), (1361041971,), (1361041974,), (1361041977,), (1361041981,), (1361041997,), (1361042000,), (1361042003,), (1361042007,), (1361042030,), (1361042034,), (1361042038,), (1361042043,), (1361042047,), (1361042053,), (1361042086,), (1361042576,), (1361042579,), (1361042582,), (1361042612,), (1361042616,), (1361042620,), (1361042625,), (1361042630,), (1361042633,), (1361042657,), (1361042660,), (1361042664,), (1361042669,), (1361042692,), (1361042695,), (1361042698,), (1361042701,), (1361042704,), (1361042727,), (1361042729,), (1361042733,), (1361042762,), (1361042764,), (1361042767,), (1361042769,), (1361042805,), (1361042808,), (1361042852,), (1361042855,), (1361042858,), (1361042862,), (1361042865,), (1361042871,), (1361042899,), (1361042901,), (1361042905,), (1361042910,), (1361042914,), (1361042918,), (1361042945,), (1361042948,), (1361042952,), (1361042957,), (1361042986,), (1361042999,), (1361043003,), (1361043010,), (1361043015,), (1361043019,), (1361043037,), (1361043040,), (1361043044,), (1361043049,), (1361043055,), (1361043077,), (1361043081,), (1361043085,), (1361043089,), (1361043095,), (1361043152,), (1361043158,), (1361043167,), (1361043174,), (1361043180,), (1361043238,), (1361050520,), (1361050522,), (1361050525,), (1361050562,), (1361050565,), (1361050569,), (1361050574,), (1361050580,), (1361050586,), (1361050613,), (1361050616,), (1361050619,), (1361050624,), (1361050664,), (1361050668,), (1361050673,), (1361050677,), (1361050682,), (1361050691,), (1361050725,), (1361050730,), (1361050736,), (1361050742,), (1361050750,), (1361050808,), (1361050811,), (1361050815,), (1361050820,), (1361050825,), (1361050855,), (1361050858,), (1361050861,), (1361050863,), (1361050867,), (1361050870,), (1361050894,), (1361050896,), (1361050898,), (1361050901,), (1361050906,), (1361050933,), (1361050936,), (1361050940,), (1361050945,), (1361050950,), (1361050955,), (1361050978,), (1361050979,), (1361050981,), (1361050984,), (1361051007,), (1361051010,), (1361051015,), (1361051021,), (1361051024,), (1361051031,), (1361051055,), (1361051058,), (1361051061,), (1361051064,), (1361051094,), (1361051096,), (1361051101,), (1361051106,), (1361051111,), (1361051116,), (1361051161,), (1361051166,), (1361051174,), (1361051182,), (1361051190,), (1361051196,), (1361051267,), (1361051251,), (1361051256,), (1361051259,), (1361051263,), (1361051710,), (1361051750,), (1361051754,), (1361051759,), (1361051763,), (1361051820,), (1361051823,), (1361051826,), (1361051830,), (1361051833,), (1361051837,), (1361051867,), (1361051870,), (1361051908,), (1361051911,), (1361051914,), (1361051918,), (1361051921,), (1361051963,), (1361051965,), (1361051969,), (1361051974,), (1361051980,), (1361052226,), (1361052229,), (1361052234,), (1361052322,), (1361052300,), (1361052303,), (1361052307,), (1361052312,), (1361052318,), (1361052345,), (1361052347,), (1361052349,), (1361052353,), (1361052384,), (1361052393,), (1361052399,), (1361052405,), (1361052410,), (1361052415,), (1361052434,), (1361052436,), (1361052439,), (1361052443,), (1361052448,), (1361052452,), (1361052474,), (1361052478,), (1361052483,), (1361052489,), (1361052598,), (1361052622,), (1361052626,), (1361052632,), (1361052637,), (1361052669,), (1361052671,), (1361052674,), (1361052678,), (1361052703,), (1361052706,), (1361052709,), (1361052713,), (1361052718,), (1361052723,), (1361052752,), (1361052755,), (1361052757,), (1361052760,), (1361052763,), (1361052788,), (1361052792,), (1361052797,), (1361052802,), (1361052808,), (1361052813,), (1361053161,), (1361053164,), (1361053168,), (1361053173,), (1361053272,), (1361053290,), (1361053298,), (1361053308,), (1361053314,), (1361053317,), (1361053353,), (1361053356,), (1361053360,), (1361053561,), (1361053578,), (1361053592,), (1361053600,), (1361053608,), (1361053612,), (1361053639,), (1361053642,), (1361053646,), (1361053650,), (1361053698,), (1361053688,), (1361053692,), (1361053696,), (1361053737,), (1361053745,), (1361053751,), (1361053756,), (1361053759,), (1361053806,), (1361053810,), (1361053814,), (1361053818,), (1361053823,), (1361053849,), (1361053852,), (1361053856,), (1361053860,), (1361053893,), (1361053895,), (1361053898,), (1361053902,), (1361053907,), (1361053912,), (1361054218,), (1361054233,), (1361054238,), (1361054243,), (1361054354,), (1361054363,), (1361054367,), (1361054502,), (1361054506,), (1361054511,), (1361054555,), (1361054558,), (1361054562,), (1361054565,), (1361054568,), (1361054574,), (1361054612,), (1361054615,), (1361054618,), (1361054622,), (1361054624,), (1361054641,), (1361054680,), (1361054683,), (1361054725,), (1361054728,), (1361054731,), (1361054734,), (1361054737,), (1361054772,), (1361054779,), (1361054782,), (1361054787,), (1361054792,), (1361054797,), (1361054822,), (1361054815,), (1361054819,), (1361054851,), (1361054854,), (1361054858,), (1361054863,), (1361054867,), (1361054900,), (1361054904,), (1361054907,), (1361054910,), (1361054914,), (1361054918,), (1361054946,), (1361054951,), (1361054956,), (1361054960,), (1361054996,), (1361054999,), (1361055002,), (1361055005,), (1361055009,), (1361055016,), (1361055048,), (1361055051,), (1361055054,), (1361055059,), (1361055091,), (1361055094,), (1361055097,), (1361055099,), (1361055103,), (1361055107,), (1361055136,), (1361055143,), (1361055146,), (1361055149,), (1361055190,), (1361055193,), (1361055197,), (1361055202,), (1361055207,), (1361055211,), (1361055230,), (1361055233,), (1361055236,), (1361055277,), (1361055280,), (1361055283,), (1361055291,), (1361055297,), (1361055301,), (1361055323,), (1361055328,), (1361055332,), (1361055339,), (1361055345,), (1361055349,), (1361055369,), (1361055372,), (1361055375,), (1361055439,), (1361055446,), (1361055450,), (1361055457,), (1361055463,), (1361055469,), (1361055529,), (1361055516,), (1361055520,), (1361055523,), (1361055525,), (1361055614,), (1361055644,), (1361055646,), (1361055649,), (1361055678,), (1361055783,), (1361055785,), (1361055787,), (1361055791,), (1361055795,), (1361055832,), (1361055834,), (1361055838,), (1361055842,), (1361055847,), (1361055958,), (1361055962,), (1361055993,), (1361056017,), (1361056035,), (1361056037,), (1361056099,), (1361056104,), (1361056107,), (1361056110,), (1361056114,), (1361056133,), (1361056136,), (1361056141,), (1361056146,), (1361056154,), (1361056162,), (1361056316,), (1361056319,), (1361056342,), (1361056350,), (1361056356,), (1361056409,), (1361056412,), (1361056415,), (1361056419,), (1361056452,), (1361056455,), (1361056461,), (1361056467,), (1361057273,), (1361073258,), (1361073170,), (1361073237,), (1361073587,), (1361073590,), (1361073593,), (1361073810,), (1361073812,), (1361074283,), (1361074394,), (1361074720,), (1361075052,), (1361075054,), (1361075057,), (1361075196,), (1361075217,), (1361075351,), (1361075365,), (1361075394,), (1361075424,), (1361075444,), (1361075447,), (1361075480,), (1361075484,), (1361075487,), (1361075518,), (1361075521,), (1361075526,), (1361075532,), (1361075538,), (1361075544,), (1361075562,), (1361075565,), (1361075569,), (1361075574,), (1361075580,), (1361075585,), (1361075694,), (1361075698,), (1361075882,), (1361075886,), (1361075890,), (1361075895,), (1361075940,), (1361075946,), (1361075949,), (1361075956,), (1361076014,), (1361076011,), (1361076122,), (1361076126,), (1361076129,), (1361076132,), (1361076135,), (1361076161,), (1361076172,), (1361076207,), (1361076210,), (1361076214,), (1361076219,), (1361076225,), (1361076250,), (1361076254,), (1361076258,), (1361076263,), (1361076314,), (1361076321,), (1361076324,), (1361076334,), (1361076340,), (1361076636,), (1361076664,), (1361076697,), (1361076730,), (1361076764,), (1361076796,), (1361077074,), (1361077103,), (1361077132,), (1361077409,), (1361077416,), (1361077420,), (1361077423,), (1361077434,), (1361077437,), (1361077458,), (1361077461,), (1361077467,), (1361077470,), (1361077500,), (1361077503,), (1361077539,), (1361077549,), (1361077554,), (1361077559,), (1361077563,), (1361077567,), (1361077590,), (1361077596,), (1361077600,), (1361077602,), (1361077638,), (1361077654,), (1361077674,), (1361077677,), (1361077680,), (1361077684,), (1361077727,), (1361077732,), (1361077771,), (1361077768,), (1361077808,), (1361077813,), (1361077816,), (1361077819,), (1361077823,), (1361077828,), (1361077851,), (1361077854,), (1361077857,), (1361077864,), (1361077911,), (1361077914,), (1361077919,), (1361077921,), (1361077972,), (1361077988,), (1361077993,), (1361078004,), (1361078013,), (1361078046,), (1361078056,), (1361078061,), (1361078064,), (1361078072,), (1361078074,), (1361078093,), (1361078096,), (1361078099,), (1361078103,), (1361078108,), (1361078248,), (1361078279,), (1361078286,), (1361078291,), (1361078296,), (1361078299,), (1361078319,), (1361078323,), (1361078328,), (1361078334,), (1361078370,), (1361078374,), (1361078379,), (1361078386,), (1361078393,), (1361078417,), (1361078429,), (1361078434,), (1361078442,), (1361078449,), (1361078461,), (1361078487,), (1361078489,), (1361078492,), (1361078498,), (1361078529,), (1361078535,), (1361078541,), (1361078548,), (1361078553,), (1361078587,), (1361078591,), (1361078598,), (1361078603,), (1361078606,), (1361078610,), (1361078637,), (1361078639,), (1361078643,), (1361078646,), (1361078649,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26052025': {'nb_upload': 72, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23337140]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1361078649, 1361078646, 1361078643, 1361078639, 1361078637, 1361078610, 1361078606, 1361078603, 1361078598, 1361078591, 1361078587, 1361078553, 1361078548, 1361078541, 1361078535, 1361078529] map_info['map_portfolio_photo'] : {23337140: [1361078649, 1361078646, 1361078643, 1361078639, 1361078637, 1361078610, 1361078606, 1361078603, 1361078598, 1361078591, 1361078587, 1361078553, 1361078548, 1361078541, 1361078535, 1361078529, 1361078498, 1361078492, 1361078489, 1361078487, 1361078461, 1361078449, 1361078442, 1361078434, 1361078429, 1361078417, 1361078393, 1361078386, 1361078379, 1361078374, 1361078370, 1361078334, 1361078328, 1361078323, 1361078319, 1361078299, 1361078296, 1361078291, 1361078286, 1361078279, 1361078248, 1361078108, 1361078103, 1361078099, 1361078096, 1361078093, 1361078074, 1361078072, 1361078064, 1361078061, 1361078056, 1361078046, 1361078013, 1361078004, 1361077993, 1361077988, 1361077972, 1361077921, 1361077919, 1361077914, 1361077911, 1361077864, 1361077857, 1361077854, 1361077851, 1361077828, 1361077823, 1361077819, 1361077816, 1361077813, 1361077808, 1361077768]} final : True mtd_id 4302 list_pids : [1361078649, 1361078646, 1361078643, 1361078639, 1361078637, 1361078610, 1361078606, 1361078603, 1361078598, 1361078591, 1361078587, 1361078553, 1361078548, 1361078541, 1361078535, 1361078529] Looping around the photos to save general results len do output : 1 /23337140Didn'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, '2953738') ('4302', '23337140', '1361078649', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078646', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078643', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078639', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078637', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078610', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078606', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078603', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078598', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078591', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078587', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078553', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078548', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078541', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078535', None, None, None, None, None, '2953738') ('4302', None, None, None, None, None, None, None, '2953738') ('4302', '23337140', '1361078529', None, None, None, None, None, '2953738') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '23337140', 'None', None, None, None, None, '2953738'), ('4302', '23337140', '1361078649', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078646', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078643', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078639', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078637', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078610', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078606', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078603', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078598', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078591', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078587', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078553', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078548', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078541', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078535', None, None, None, None, None, '2953738'), ('4302', '23337140', '1361078529', None, None, None, None, None, '2953738')] time used for this insertion : 0.013837099075317383 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.7368996143341064 time spend to save output : 0.014277935028076172 total time spend for step 5 : 2.7511775493621826 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 (2953738) 2.94user 2.15system 0:14.84elapsed 34%CPU (0avgtext+0avgdata 160132maxresident)k 168inputs+14824outputs (9major+76816minor)pagefaults 0swaps